/*
Theme Name: Braccini
Theme URI: https://mariasilviabraccini.it
Author: Pasquale Ricciardi
Author URI: https://lineadigitale.it
Description: Tema su misura per il sito della Dott.ssa Maria Silvia Braccini. Sistema Marcellus + Karla, gradienti cream/white/ink, illustrazioni su mat organici.
Version: 3.2.1
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: braccini
*/

/* ============================================================
   1. TOKEN
   ============================================================ */
:root {
	--bc-ink: #1C2D45;
	--bc-forest: #284C2B;
	--bc-sage: #99A989;
	--bc-blue: #6D92A6;
	--bc-slate: #3E5C6E;
	--bc-cream: #E0E4D6;
	--bc-white: #FFFFFF;

	--bc-serif: "Marcellus", Georgia, "Times New Roman", serif;
	--bc-sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--bc-wrap: 1180px;
	--bc-pad-x: clamp(20px, 5vw, 80px);
	--bc-pad-y: clamp(52px, 7vw, 96px);

	--bc-line-sage: 1px solid rgba(153, 169, 137, .6);
	--bc-line-forest: 1px solid rgba(40, 76, 43, .3);
	--bc-line-cream: 1px solid rgba(224, 228, 214, .3);
	--bc-border-card: 1px solid rgba(153, 169, 137, .4);
	--bc-radius: 22px;
	--bc-radius-lg: 26px;
	/* spessore unico: il bordo delle pillole e l'anello animato coincidono */
	--bc-hair: 2px;

	/* Gradienti: sostituiscono i riempimenti piatti di bande, box e pulsanti.
	   Gli estremi sono scelti per restare tutti sopra 4.5:1 con il testo previsto. */
	--bc-grad-white: linear-gradient(160deg, #FFFFFF 0%, #FBFCF8 100%);
	/* Tre varianti per famiglia: box affiancati non ripetono mai lo stesso gradiente. */
	--bc-grad-white-a: linear-gradient(160deg, #FFFFFF 0%, #F8FAF2 100%);
	--bc-grad-white-b: linear-gradient(215deg, #FFFFFF 0%, #ECF1DF 100%);
	--bc-grad-white-c: linear-gradient(115deg, #FFFFFF 0%, #E9F0F1 100%);
	--bc-grad-tint-a: linear-gradient(160deg, rgba(224, 228, 214, .88) 0%, rgba(224, 228, 214, .34) 100%);
	--bc-grad-tint-b: linear-gradient(215deg, rgba(224, 228, 214, .70) 0%, rgba(153, 169, 137, .40) 100%);
	--bc-grad-tint-c: linear-gradient(115deg, rgba(224, 228, 214, .80) 0%, rgba(109, 146, 166, .30) 100%);
	--bc-grad-sage-a: linear-gradient(160deg, rgba(153, 169, 137, .38) 0%, rgba(153, 169, 137, .12) 100%);
	--bc-grad-sage-b: linear-gradient(215deg, rgba(153, 169, 137, .30) 0%, rgba(40, 76, 43, .20) 100%);
	--bc-grad-sage-c: linear-gradient(115deg, rgba(153, 169, 137, .34) 0%, rgba(109, 146, 166, .28) 100%);
	--bc-grad-ink-a: linear-gradient(160deg, #2A3D54 0%, #1C2D45 55%, #15243A 100%);
	--bc-grad-ink-b: linear-gradient(215deg, #2A4162 0%, #1B2C42 60%, #131F31 100%);
	--bc-grad-ink-c: linear-gradient(115deg, #1D3A3A 0%, #1C2D45 55%, #17273C 100%);
	--bc-grad-inksoft-a: linear-gradient(160deg, rgba(224, 228, 214, .15) 0%, rgba(224, 228, 214, .03) 100%);
	--bc-grad-inksoft-b: linear-gradient(215deg, rgba(224, 228, 214, .10) 0%, rgba(153, 169, 137, .16) 100%);
	--bc-grad-inksoft-c: linear-gradient(115deg, rgba(224, 228, 214, .12) 0%, rgba(109, 146, 166, .20) 100%);
	--bc-grad-cream: linear-gradient(155deg, #E7EADE 0%, #E0E4D6 55%, #D8DDCE 100%);
	--bc-grad-ink: linear-gradient(155deg, #24374F 0%, #1C2D45 55%, #16253A 100%);
	--bc-grad-forest: linear-gradient(140deg, #315C34 0%, #284C2B 55%, #1F3D22 100%);
	--bc-grad-sage: linear-gradient(140deg, #A6B497 0%, #99A989 55%, #8FA07F 100%);
	--bc-grad-tint: linear-gradient(160deg, rgba(224, 228, 214, .80) 0%, rgba(224, 228, 214, .42) 100%);
	--bc-grad-sage-soft: linear-gradient(160deg, rgba(153, 169, 137, .32) 0%, rgba(153, 169, 137, .15) 100%);
	--bc-grad-ink-soft: linear-gradient(160deg, rgba(224, 228, 214, .12) 0%, rgba(224, 228, 214, .03) 100%);
}

/* ============================================================
   2. BASE
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bc-white);
	color: var(--bc-ink);
	font-family: var(--bc-sans);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a { color: var(--bc-forest); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--bc-ink); }

:focus-visible { outline: 2px solid var(--bc-ink); outline-offset: 2px; }
::selection { background: var(--bc-sage); color: var(--bc-ink); }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.bc-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--bc-grad-ink);
	color: var(--bc-cream);
	padding: 12px 20px;
}
.bc-skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ============================================================
   3. LAYOUT — bande e contenitori
   ============================================================ */
.bc-band {
	background: var(--bc-grad-white);
	padding: var(--bc-pad-y) var(--bc-pad-x);
}
.bc-band--cream { background: var(--bc-grad-cream); }
.bc-band--dark { background: linear-gradient(150deg, #273A51 0%, #1C2D45 48%, #1A3330 100%); color: var(--bc-cream); }
.bc-band--hero {
	padding: clamp(44px, 6vw, 80px) var(--bc-pad-x);
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
/* Gradiente animato dell'hero: quattro macchie che scorrono lentamente
   sopra il fondo cream. Alpha contenuti per non intaccare la leggibilità. */
.bc-band--hero::before,
.bc-band--hero::after {
	content: "";
	position: absolute;
	inset: -30%;
	z-index: -1;
	will-change: transform;
}
.bc-band--hero::before {
	background:
		radial-gradient(36% 42% at 22% 26%, rgba(153, 169, 137, .70), transparent 62%),
		radial-gradient(32% 38% at 78% 18%, rgba(109, 146, 166, .42), transparent 62%),
		radial-gradient(42% 46% at 62% 88%, rgba(40, 76, 43, .26), transparent 66%);
	animation: bcHeroFloat 14s ease-in-out infinite alternate;
}
.bc-band--hero::after {
	background:
		radial-gradient(38% 44% at 12% 82%, rgba(255, 255, 255, .55), transparent 62%),
		radial-gradient(34% 40% at 88% 70%, rgba(153, 169, 137, .38), transparent 64%);
	animation: bcHeroDrift 19s ease-in-out infinite alternate;
}
@keyframes bcHeroFloat {
	0%   { transform: translate3d(-8%, -5%, 0) scale(1.02) rotate(0deg); }
	50%  { transform: translate3d(7%, 4%, 0) scale(1.18) rotate(4deg); }
	100% { transform: translate3d(-5%, 8%, 0) scale(1.06) rotate(-4deg); }
}
@keyframes bcHeroDrift {
	0%   { transform: translate3d(6%, 4%, 0) scale(1.12) rotate(-3deg); }
	50%  { transform: translate3d(-7%, -3%, 0) scale(1.02) rotate(3deg); }
	100% { transform: translate3d(5%, -6%, 0) scale(1.16) rotate(0deg); }
}
.bc-band--quote {
	background: linear-gradient(115deg, #ADBA9F 0%, #99A989 48%, #8FA07F 100%);
	/* un po' di aria in basso: è lì che entra il ramo botanico */
	padding: clamp(56px, 8vw, 100px) var(--bc-pad-x) clamp(110px, 11vw, 150px);
}

.bc-band--dark a { color: var(--bc-cream); }
.bc-band--dark a:hover { color: var(--bc-white); }

.bc-wrap { max-width: var(--bc-wrap); margin: 0 auto; }
.bc-wrap--narrow { max-width: 820px; }

.bc-duo {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}
.bc-duo--spaced { margin-bottom: clamp(40px, 5vw, 64px); }

/* I box affiancati si allungano fino all'altezza della riga. */
.bc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	align-items: stretch;
}
.bc-grid > * { min-width: 0; }
.bc-grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bc-grid--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.bc-grid--wide { gap: clamp(28px, 4vw, 56px); }
/* eccezione: quando i box devono restare alti quanto il contenuto */
.bc-grid--start { align-items: start; }

.bc-span-all { grid-column: 1 / -1; }

/* Rotazione dei riempimenti: ogni box di una riga prende una variante diversa.
   Le classi dei box dichiarano la terna --bc-fill-a/b/c, qui si sceglie quale usare. */
.bc-grid > *:nth-of-type(3n + 2),
.bc-steps > li:nth-of-type(3n + 2),
.bc-chips > li:nth-of-type(3n + 2) { --bc-fill: var(--bc-fill-b); }
.bc-grid > *:nth-of-type(3n + 3),
.bc-steps > li:nth-of-type(3n + 3),
.bc-chips > li:nth-of-type(3n + 3) { --bc-fill: var(--bc-fill-c); }

/* ============================================================
   4. TIPOGRAFIA
   ============================================================ */
.bc-eyebrow {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--bc-forest);
}
.bc-band--dark .bc-eyebrow { color: var(--bc-cream); }

.bc-h1 {
	margin: 0;
	font-family: var(--bc-serif);
	font-weight: 400;
	font-size: clamp(38px, 4.8vw, 60px);
	line-height: 1.1;
	letter-spacing: .005em;
	text-wrap: pretty;
	max-width: 20ch;
}
.bc-h1--sm { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; max-width: 18ch; }

.bc-h2 {
	margin: 0 0 30px;
	font-family: var(--bc-serif);
	font-weight: 400;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.18;
	letter-spacing: .01em;
	text-wrap: pretty;
	max-width: 26ch;
}
.bc-h2--flush { margin-bottom: 0; }
.bc-h2--tight { margin-bottom: 18px; }
.bc-h2--wide { max-width: 36ch; }
.bc-h2--sm { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.22; }

.bc-h3 {
	margin: 0 0 8px;
	font-family: var(--bc-serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.3;
}
.bc-h3--sm { font-size: 22px; }

.bc-lead {
	margin: 22px 0 0;
	font-size: clamp(18px, 1.5vw, 20px);
	font-weight: 500;
	line-height: 1.5;
	max-width: 52ch;
	text-wrap: pretty;
}
.bc-lead--serif {
	font-family: var(--bc-serif);
	font-weight: 400;
	font-size: clamp(20px, 1.8vw, 24px);
	line-height: 1.4;
	max-width: 44ch;
}

.bc-copy { max-width: 68ch; }
.bc-copy > p { margin: 0 0 12px; }
.bc-copy > p:last-child { margin-bottom: 0; }

.bc-note { margin: 6px 0 0; font-size: 14px; color: var(--bc-slate); }
.bc-band--dark .bc-note { color: var(--bc-cream); }

.bc-kicker {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bc-slate);
}

.bc-microlabel {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bc-slate);
}

.bc-breadcrumb { margin: 0 0 16px; font-size: 14px; }
.bc-breadcrumb a { color: var(--bc-slate); }
.bc-breadcrumb__sep { margin: 0 8px; color: var(--bc-slate); }
.bc-breadcrumb__current { font-weight: 600; color: var(--bc-forest); }

.bc-list { margin: 0 0 12px; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; max-width: 68ch; }
.bc-list:last-child { margin-bottom: 0; }
.bc-list--cols { columns: 2; column-gap: 32px; font-size: 16px; display: block; }
.bc-list--cols li { break-inside: avoid; margin-bottom: 6px; }

/* ============================================================
   5. PILLOLE: bordino animato e micro-interazioni
   ============================================================ */
/* L'anello percorre il perimetro in loop lento. Usa una conic-gradient
   ruotata via custom property e un mask che ne lascia visibile solo il bordo. */
@property --bc-ring {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

/* Il bordo è dipinto dal box del bordo stesso: due livelli di background,
   il riempimento ritagliato sul padding-box e l'anello sul border-box.
   Lo spessore coincide sempre con border-width, senza sfrangiature di mask. */
:root {
	--bc-ring-none: linear-gradient(rgba(0, 0, 0, 0) 0 0);
	/* opachi: la conic è dipinta sul border-box e non ha nulla sotto di sé */
	--bc-ring-base: #B4BFA6;
	--bc-ring-1: #6E8560;
	--bc-ring-2: #EDF1E4;
	--bc-ring-3: #6D92A6;
}

.bc-btn,
.bc-chips > li {
	border: var(--bc-hair) solid transparent;
	animation: bcRing 9s linear infinite;
}

@keyframes bcRing {
	to { --bc-ring: 360deg; }
}

/* colori dell'anello per contesto */
.bc-btn {
	--bc-ring-base: #3E6E41;
	--bc-ring-1: #8FA57F;
	--bc-ring-2: #F2F5EA;
	--bc-ring-3: #7EA3B7;
}
.bc-btn--ghost {
	--bc-ring-base: #45566B;
	--bc-ring-1: #284C2B;
	--bc-ring-2: #99A989;
	--bc-ring-3: #6D92A6;
}
.bc-chips > li {
	--bc-ring-base: #BAC4AD;
	--bc-ring-1: #5C7A4F;
	--bc-ring-2: #F4F7EC;
	--bc-ring-3: #7EA3B7;
}
.bc-band--dark .bc-chips > li,
.bc-card--dark .bc-chips > li {
	--bc-ring-base: #6F7B7C;
	--bc-ring-1: #99A989;
	--bc-ring-2: #FFFFFF;
	--bc-ring-3: #6D92A6;
}
.bc-btn--light {
	--bc-ring-base: #AEB6AB;
	--bc-ring-1: #99A989;
	--bc-ring-2: #3E5C6E;
	--bc-ring-3: #6D92A6;
}
.bc-chips > li:nth-of-type(3n + 2) { animation-delay: -3s; }
.bc-chips > li:nth-of-type(3n + 3) { animation-delay: -6s; }

@media (prefers-reduced-motion: reduce) {
	.bc-btn,
	.bc-chips > li { animation: none; }
}

/* ============================================================
   5b. BOTTONI
   ============================================================ */
.bc-btn {
	text-decoration: none;
	--bc-btn-fill: var(--bc-grad-forest);
	background:
		var(--bc-btn-fill) padding-box,
		conic-gradient(
			from var(--bc-ring, 0deg),
			var(--bc-ring-base) 0deg 215deg,
			var(--bc-ring-1) 272deg,
			var(--bc-ring-2) 300deg,
			var(--bc-ring-3) 328deg,
			var(--bc-ring-base) 360deg
		) border-box;
	color: var(--bc-white);
	font-family: var(--bc-sans);
	font-weight: 600;
	font-size: 16px;
	padding: 13px 26px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	cursor: pointer;
	transition: color .3s ease, transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s ease, letter-spacing .3s ease;
}
.bc-btn:hover {
	--bc-btn-fill: var(--bc-grad-ink);
	color: var(--bc-white);
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 10px 24px rgba(28, 45, 69, .22);
	letter-spacing: .02em;
}
.bc-btn:active {
	transform: translateY(0) scale(.97);
	box-shadow: 0 3px 10px rgba(28, 45, 69, .18);
	--bc-btn-fill: var(--bc-grad-forest);
	color: var(--bc-cream);
}

.bc-btn--ghost {
	--bc-btn-fill: var(--bc-grad-white-a);
	color: var(--bc-ink);
}
.bc-btn--ghost:hover { --bc-btn-fill: var(--bc-grad-ink); color: var(--bc-cream); }

.bc-btn--light { --bc-btn-fill: var(--bc-grad-cream); color: var(--bc-ink); }
.bc-btn--light:hover { --bc-btn-fill: var(--bc-grad-white); color: var(--bc-ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.bc-btn--light:active { --bc-btn-fill: var(--bc-grad-cream); color: var(--bc-ink); }

.bc-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 0; }

/* I contesti scuri colorano tutti i link in cream: i pulsanti devono restare
   leggibili sul proprio riempimento, non su quello della banda. */
.bc-band--dark .bc-btn,
.bc-card--dark .bc-btn,
.bc-ctaband .bc-btn { color: var(--bc-white); }
.bc-band--dark .bc-btn--light,
.bc-card--dark .bc-btn--light,
.bc-ctaband .bc-btn--light { color: var(--bc-ink); }
.bc-band--dark .bc-btn--light:hover,
.bc-ctaband .bc-btn--light:hover { color: var(--bc-ink); }
.bc-band--dark .bc-btn--ghost,
.bc-ctaband .bc-btn--ghost {
	color: var(--bc-cream);
	--bc-btn-fill: var(--bc-grad-ink-a);
	--bc-ring-base: #7C8886;
	--bc-ring-1: #99A989;
	--bc-ring-2: #EDF1E4;
	--bc-ring-3: #6D92A6;
}
.bc-band--dark .bc-btn--ghost:hover,
.bc-ctaband .bc-btn--ghost:hover { color: var(--bc-ink); --bc-btn-fill: var(--bc-grad-cream); }

/* ============================================================
   6. HEADER
   ============================================================ */
.bc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 14px 32px;
	flex-wrap: wrap;
	padding: 14px var(--bc-pad-x);
	background: var(--bc-grad-white);
	border-bottom: 1px solid rgba(153, 169, 137, .5);
}

/* Logo completo: simbolo + logotipo + payoff. Il testo aggiunto è centrato sul
   logotipo (dal 27.6% della larghezza) e siede sotto il payoff (fondo all'84.7%). */
.bc-logo { position: relative; display: block; flex: none; text-decoration: none; color: var(--bc-ink); }
.bc-logo:hover { color: var(--bc-ink); }
.bc-logo__img { display: block; height: 72px; width: auto; }
.bc-logo__sub {
	position: absolute;
	left: 27.6%;
	right: 0;
	top: calc(84.7% + 3px);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .26em;
	text-indent: .26em;
	text-transform: uppercase;
	text-align: center;
	color: var(--bc-ink);
}

.bc-nav { display: flex; gap: 8px 26px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.bc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 26px; align-items: center; flex-wrap: wrap; }
.bc-nav li { position: relative; }
.bc-nav a {
	text-decoration: none;
	color: var(--bc-ink);
	font-weight: 500;
	font-size: 15px;
	padding: 6px 0;
	display: inline-block;
}
.bc-nav .current-menu-item > a,
.bc-nav .current-menu-ancestor > a,
.bc-nav .current_page_item > a,
.bc-nav .current_page_ancestor > a,
.bc-nav a[aria-current="page"] {
	color: var(--bc-forest);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

.bc-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	flex-direction: column;
	gap: 0;
	background: var(--bc-grad-white);
	border: var(--bc-border-card);
	border-radius: 14px;
	padding: 8px 0;
	box-shadow: 0 12px 30px rgba(28, 45, 69, .1);
}
.bc-nav li:hover > .sub-menu,
.bc-nav li:focus-within > .sub-menu { display: flex; }
.bc-nav .sub-menu a { display: block; padding: 8px 18px; width: 100%; }

.bc-header__cta { font-size: 15px; padding: 12px 24px; }

.bc-burger {
	display: none;
	margin-left: auto;
	background: transparent;
	border: var(--bc-hair) solid var(--bc-ink);
	color: var(--bc-ink);
	font-family: var(--bc-sans);
	font-weight: 600;
	font-size: 15px;
	border-radius: 999px;
	min-height: 44px;
	padding: 8px 18px;
	cursor: pointer;
	transition: background .3s ease, color .3s ease, transform .25s cubic-bezier(.2, .8, .3, 1);
}
.bc-burger:hover { background: var(--bc-grad-forest); color: var(--bc-white); border-color: var(--bc-forest); }
.bc-burger:active { transform: scale(.96); }

/* Con logo completo e sei voci il menu orizzontale serve da 1101px in su:
   fino a 1360px si compatta, sotto si passa al pulsante Menu. */
@media (min-width: 1101px) and (max-width: 1360px) {
	.bc-header { gap: 14px 16px; }
	.bc-logo__img { height: 62px; }
	.bc-nav,
	.bc-nav ul { gap: 8px 16px; }
	.bc-nav a { font-size: 14px; }
	.bc-header__cta { font-size: 14px; padding: 10px 18px; }
}
@media (max-width: 1100px) {
	.bc-header { padding: 10px var(--bc-pad-x); }
	.bc-logo__img { height: 58px; }
	.bc-burger { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; font-size: 14px; }
	/* il menu a discesa si apre allineato a sinistra, sotto il pulsante */
	.bc-nav { display: none; width: 100%; margin-left: 0; }
	.bc-header.is-open .bc-nav { display: flex; }
	.bc-nav ul { flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; width: 100%; }
	.bc-nav .sub-menu {
		display: flex;
		position: static;
		border: none;
		box-shadow: none;
		background: none;
		align-items: flex-start;
		padding: 0 0 0 14px;
	}
	.bc-nav .sub-menu a { text-align: left; }
	.bc-header__cta { display: none; }
	.bc-header.is-open .bc-header__cta { display: inline-flex; width: 100%; order: 9; }
}
@media (max-width: 420px) {
	.bc-logo__img { height: 50px; }
}

/* ============================================================
   7. HERO
   ============================================================ */
.bc-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(28px, 4vw, 60px);
	align-items: center;
}
.bc-hero__media { position: relative; }
.bc-hero__mat {
	position: absolute;
	inset: 6% 4%;
	background: linear-gradient(160deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .44) 100%);
	border-radius: 56% 44% 52% 48% / 58% 46% 54% 42%;
}
.bc-hero__mat--b { border-radius: 48% 52% 45% 55% / 55% 45% 52% 48%; }
.bc-hero__mat--c { border-radius: 55% 45% 48% 52% / 45% 52% 48% 55%; }
.bc-hero__mat--d { border-radius: 45% 55% 52% 48% / 52% 48% 55% 45%; }
.bc-hero__mat--e { border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%; }
.bc-hero__img {
	position: relative;
	display: block;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	height: auto;
}

/* ritratto in cornice: verticale, senza mat sotto */
.bc-hero__img--ritratto {
	max-width: 420px;
}
@media (max-width: 900px) {
	.bc-hero__img--ritratto { max-width: 320px; }
}

/* ============================================================
   8. CARD
   ============================================================ */
.bc-card {
	--bc-fill-a: var(--bc-grad-white-a);
	--bc-fill-b: var(--bc-grad-white-b);
	--bc-fill-c: var(--bc-grad-white-c);
	--bc-fill: var(--bc-fill-a);
	background: var(--bc-fill);
	border: var(--bc-border-card);
	border-radius: var(--bc-radius);
	padding: 28px;
}
.bc-card--tint {
	--bc-fill-a: var(--bc-grad-tint-a);
	--bc-fill-b: var(--bc-grad-tint-b);
	--bc-fill-c: var(--bc-grad-tint-c);
}
.bc-card--sage {
	--bc-fill-a: var(--bc-grad-sage-a);
	--bc-fill-b: var(--bc-grad-sage-b);
	--bc-fill-c: var(--bc-grad-sage-c);
	border: none;
}
.bc-card--dark {
	--bc-fill-a: var(--bc-grad-ink-a);
	--bc-fill-b: var(--bc-grad-ink-b);
	--bc-fill-c: var(--bc-grad-ink-c);
	color: var(--bc-cream);
	border: none;
}
.bc-card--dark a { color: var(--bc-cream); }
.bc-card--outline { background: transparent; border: var(--bc-line-cream); }
.bc-card--lg { border-radius: var(--bc-radius-lg); padding: clamp(26px, 3.4vw, 42px); }
.bc-card--flush { padding: 6px 28px; }
.bc-card > p { margin: 0 0 12px; max-width: 68ch; }
.bc-card > p:last-child { margin-bottom: 0; }
.bc-card > .bc-note { margin-top: 15px; }
.bc-card:has(> .bc-note) { display: flex; flex-direction: column; }
.bc-card:has(> .bc-note) > .bc-note { margin-top: auto; padding-top: 15px; }
.bc-card--spaced { margin-top: clamp(28px, 4vw, 44px); }

.bc-cardlink {
	text-decoration: none;
	color: var(--bc-ink);
	--bc-fill-a: var(--bc-grad-white-a);
	--bc-fill-b: var(--bc-grad-white-b);
	--bc-fill-c: var(--bc-grad-white-c);
	--bc-fill: var(--bc-fill-a);
	background: var(--bc-fill);
	border: var(--bc-border-card);
	border-radius: var(--bc-radius);
	padding: 24px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.bc-cardlink:hover { color: var(--bc-ink); border-color: var(--bc-sage); }
/* la card resta bianca anche su banda ink: il testo deve restare inchiostro */
.bc-band--dark .bc-cardlink,
.bc-band--dark .bc-cardlink:hover { color: var(--bc-ink); }
.bc-cardlink__mat {
	display: block;
	background: var(--bc-grad-sage-a);
	border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
	padding: 14px;
}
.bc-cardlink:nth-of-type(2) .bc-cardlink__mat { border-radius: 48% 52% 45% 55% / 55% 45% 52% 48%; background: var(--bc-grad-sage-b); }
.bc-cardlink:nth-of-type(3) .bc-cardlink__mat { border-radius: 55% 45% 48% 52% / 45% 52% 48% 55%; background: var(--bc-grad-sage-c); }
.bc-cardlink:nth-of-type(4) .bc-cardlink__mat { border-radius: 45% 55% 52% 48% / 52% 48% 55% 45%; background: linear-gradient(255deg, rgba(153, 169, 137, .30) 0%, rgba(224, 228, 214, .55) 100%); }
.bc-cardlink__img { display: block; width: 100%; height: 190px; object-fit: contain; }
/* Card "La tua salute a 360°": gradiente dedicato, diverso dalle terne white/sage. */
.bc-cardlink.bc-cardlink--360 { background: linear-gradient(235deg, #FFFFFF 0%, #EDF2F3 48%, #DCE6E4 100%); }
.bc-cardlink--360 .bc-cardlink__mat {
	border-radius: 50% 50% 46% 54% / 46% 54% 50% 50%;
	background: linear-gradient(20deg, rgba(109, 146, 166, .32) 0%, rgba(224, 228, 214, .6) 60%, rgba(153, 169, 137, .3) 100%);
}
/* Card link esterni (Con chi collaboro): senza illustrazione, bordo animato
   come pillole e bottoni, riempimento diverso per ognuna delle cinque card. */
.bc-cardlink--ext {
	gap: 10px;
	padding: 26px 26px 24px;
	border: var(--bc-hair) solid transparent;
	--bc-ring-base: #C3CCB7;
	--bc-ring-1: #5C7A4F;
	--bc-ring-2: #F4F7EC;
	--bc-ring-3: #7EA3B7;
	background:
		var(--bc-fill) padding-box,
		conic-gradient(
			from var(--bc-ring, 0deg),
			var(--bc-ring-base) 0deg 215deg,
			var(--bc-ring-1) 272deg,
			var(--bc-ring-2) 300deg,
			var(--bc-ring-3) 328deg,
			var(--bc-ring-base) 360deg
		) border-box;
	animation: bcRing 9s linear infinite;
}
.bc-cardlink--ext:hover { border-color: transparent; }
.bc-grid > .bc-cardlink--ext:nth-of-type(1) { --bc-fill: var(--bc-grad-white-a); }
.bc-grid > .bc-cardlink--ext:nth-of-type(2) { --bc-fill: var(--bc-grad-white-b); animation-delay: -1.8s; }
.bc-grid > .bc-cardlink--ext:nth-of-type(3) { --bc-fill: var(--bc-grad-white-c); animation-delay: -3.6s; }
.bc-grid > .bc-cardlink--ext:nth-of-type(4) { --bc-fill: linear-gradient(20deg, #F6F3EA 0%, #FFFFFF 55%, #F0F4EA 100%); animation-delay: -5.4s; }
.bc-grid > .bc-cardlink--ext:nth-of-type(5) { --bc-fill: linear-gradient(300deg, #FFFFFF 0%, #EEF3F5 60%, #E3EBEF 100%); animation-delay: -7.2s; }
@media (prefers-reduced-motion: reduce) {
	.bc-cardlink--ext { animation: none; }
}
.bc-cardlink--ext .bc-cardlink__text { color: var(--bc-slate); }
.bc-cardlink--ext .bc-cardlink__more { padding-top: 10px; }
.bc-cardlink__title { font-family: var(--bc-serif); font-size: 24px; line-height: 1.25; }
.bc-cardlink__text { font-size: 16px; line-height: 1.6; }
.bc-cardlink__more {
	margin-top: auto;
	color: var(--bc-forest);
	font-weight: 600;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ============================================================
   9. BANDA CTA
   ============================================================ */
.bc-ctaband {
	margin-top: clamp(36px, 5vw, 56px);
	background: linear-gradient(115deg, #273A51 0%, #1C2D45 45%, #1B3A33 100%);
	color: var(--bc-cream);
	border-radius: var(--bc-radius);
	padding: clamp(28px, 4vw, 44px);
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}
.bc-ctaband > div { max-width: 60ch; }
.bc-ctaband p { margin: 0; }
.bc-ctaband .bc-h3 { margin: 0 0 8px; }
.bc-ctaband a { color: var(--bc-cream); }
.bc-ctaband .bc-btn { flex: none; }
.bc-ctaband .bc-actions { margin: 0; }
.bc-ctaband--light {
	background: linear-gradient(115deg, #FFFFFF 0%, #F7F9F1 55%, #EEF2E6 100%);
	color: var(--bc-ink);
	border: var(--bc-border-card);
	padding: clamp(26px, 3.4vw, 38px);
}
.bc-ctaband--light a { color: var(--bc-forest); }
.bc-ctaband--light .bc-btn { color: var(--bc-white); }
.bc-ctaband--outline {
	background: linear-gradient(115deg, rgba(224, 228, 214, .12) 0%, rgba(153, 169, 137, .07) 100%);
	border: var(--bc-line-cream);
	padding: clamp(26px, 3.4vw, 38px);
	margin-top: clamp(32px, 4vw, 48px);
}
.bc-ctaband--block { display: block; }
.bc-ctaband--block > div { max-width: 70ch; }

/* ============================================================
   10. LISTE "STATEMENT"
   ============================================================ */
.bc-statement {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 14px 40px;
}
.bc-statement--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bc-statement > li {
	display: flex;
	gap: 14px;
	align-items: baseline;
	font-family: var(--bc-serif);
	font-size: 21px;
	line-height: 1.35;
	border-top: var(--bc-line-forest);
	padding-top: 14px;
}
.bc-statement--lg > li {
	font-size: clamp(20px, 1.8vw, 24px);
	border-top: var(--bc-line-sage);
	padding-top: 16px;
}
.bc-statement--plain > li {
	font-family: var(--bc-sans);
	font-size: 17px;
	line-height: 1.6;
	padding-top: 12px;
}
.bc-band--dark .bc-statement > li { border-top: var(--bc-line-cream); }

.bc-dot {
	flex: none;
	width: 11px;
	height: 11px;
	border-radius: 60% 40% 55% 45%;
	background: var(--bc-grad-forest);
}
.bc-statement--lg .bc-dot { width: 12px; height: 12px; background: var(--bc-grad-sage); transform: translateY(-1px); }
.bc-statement--plain .bc-dot { width: 10px; height: 10px; }
.bc-band--dark .bc-dot { background: var(--bc-grad-cream); }

/* ============================================================
   11. CHIPS
   ============================================================ */
.bc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.bc-chips--tight { gap: 8px; }
.bc-chips--10 { gap: 10px; }
.bc-chips > li {
	/* opachi di proposito: un riempimento traslucido lascerebbe trasparire
	   la conic-gradient anche al centro della pillola. */
	--bc-fill-a: linear-gradient(160deg, #E4E7DB 0%, #F5F6F1 100%);
	--bc-fill-b: linear-gradient(215deg, #E8EBE1 0%, #D6DDD0 100%);
	--bc-fill-c: linear-gradient(115deg, #E6E9DE 0%, #D3DEE4 100%);
	--bc-fill: var(--bc-fill-a);
	background:
		var(--bc-fill) padding-box,
		conic-gradient(
			from var(--bc-ring, 0deg),
			var(--bc-ring-base) 0deg 215deg,
			var(--bc-ring-1) 272deg,
			var(--bc-ring-2) 300deg,
			var(--bc-ring-3) 328deg,
			var(--bc-ring-base) 360deg
		) border-box;
	border-radius: 999px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 500;
}
.bc-band--cream .bc-chips > li {
	--bc-fill-a: var(--bc-grad-white-a);
	--bc-fill-b: var(--bc-grad-white-b);
	--bc-fill-c: var(--bc-grad-white-c);
}
.bc-card--tint .bc-chips > li,
.bc-card--sage .bc-chips > li,
.bc-form .bc-chips > li {
	--bc-fill-a: var(--bc-grad-white-a);
	--bc-fill-b: var(--bc-grad-white-b);
	--bc-fill-c: var(--bc-grad-white-c);
}
.bc-chips--sm > li { padding: 7px 15px; }
.bc-chips--xs > li { padding: 8px 16px; font-size: 14px; }
.bc-band--dark .bc-chips > li,
.bc-card--dark .bc-chips > li {
	--bc-fill-a: linear-gradient(160deg, #3A485E 0%, #223249 100%);
	--bc-fill-b: linear-gradient(215deg, #303F56 0%, #314154 100%);
	--bc-fill-c: linear-gradient(115deg, #344359 0%, #2D4159 100%);
	padding: 8px 16px;
	font-size: 15px;
}
.bc-band--dark .bc-chips--sm > li,
.bc-card--dark .bc-chips--sm > li { padding: 7px 15px; font-size: 14px; }
.bc-band--dark .bc-chips--xs > li,
.bc-card--dark .bc-chips--xs > li { padding: 6px 14px; font-size: 14px; }

/* ============================================================
   12. STEP NUMERATI
   ============================================================ */
.bc-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.bc-steps > li {
	--bc-fill-a: var(--bc-grad-tint-a);
	--bc-fill-b: var(--bc-grad-tint-b);
	--bc-fill-c: var(--bc-grad-tint-c);
	--bc-fill: var(--bc-fill-a);
	background: var(--bc-fill);
	border: var(--bc-border-card);
	border-radius: var(--bc-radius);
	padding: 28px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.bc-band--cream .bc-steps > li {
	--bc-fill-a: var(--bc-grad-white-a);
	--bc-fill-b: var(--bc-grad-white-b);
	--bc-fill-c: var(--bc-grad-white-c);
}
/* su fondo ink il riempimento chiaro abbassava il contrasto del testo cream:
   card trasparente con bordo cream, testo cream su ink (rapporto ~11:1). */
.bc-band--dark .bc-steps > li {
	--bc-fill-a: var(--bc-grad-inksoft-a);
	--bc-fill-b: var(--bc-grad-inksoft-b);
	--bc-fill-c: var(--bc-grad-inksoft-c);
	border: 1px solid rgba(224, 228, 214, .4);
	color: var(--bc-cream);
}
.bc-steps p { margin: 0; }
.bc-steps .bc-h3 { margin: 0 0 4px; }
.bc-step__badge { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bc-step__label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .18em;
	text-indent: .18em;
	text-transform: uppercase;
	color: var(--bc-slate);
}
.bc-band--dark .bc-step__label { color: var(--bc-cream); }
.bc-step__num {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--bc-grad-sage);
	color: var(--bc-ink);
	font-family: var(--bc-serif);
	font-size: 19px;
	display: grid;
	place-items: center;
}

/* --- Carosello (attivato via JS: .bc-carousel avvolge la lista) --- */
.bc-carousel {
	--bc-slide: min(380px, 78vw);
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}
.bc-carousel__track {
	display: flex;
	grid-template-columns: none;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 6px calc(50vw - var(--bc-slide) / 2) 10px;
}
.bc-carousel__track::-webkit-scrollbar { display: none; }
.bc-carousel__track > * {
	flex: 0 0 var(--bc-slide);
	scroll-snap-align: center;
	filter: blur(4px);
	opacity: .45;
	transform: scale(.94);
	transition: filter .45s ease, opacity .45s ease, transform .45s ease;
}
.bc-carousel__track > *.is-active {
	filter: none;
	opacity: 1;
	transform: none;
}

/* Le griglie di schede diventano carosello solo sotto i 780px:
   su desktop restano griglie e la navigazione sparisce. */
@media (min-width: 781px) {
	.bc-carousel--mobile {
		width: auto;
		margin-left: 0;
	}
	.bc-carousel--mobile .bc-carousel__nav { display: none; }
	.bc-carousel--mobile .bc-carousel__track {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		overflow: visible;
		padding: 0;
	}
	.bc-carousel--mobile .bc-grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.bc-carousel--mobile .bc-grid--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
	.bc-carousel--mobile .bc-carousel__track > * {
		flex: none;
		filter: none;
		opacity: 1;
		transform: none;
	}
}

.bc-carousel__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 26px;
}
.bc-carousel__btn {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: var(--bc-hair) solid var(--bc-forest);
	background: var(--bc-grad-white);
	color: var(--bc-forest);
	font-family: var(--bc-sans);
	font-size: 20px;
	line-height: 1;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .3s ease, color .3s ease, transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s ease, opacity .2s ease;
}
.bc-carousel__btn:hover:not([disabled]) {
	background: var(--bc-grad-forest);
	color: var(--bc-white);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 20px rgba(28, 45, 69, .2);
}
.bc-carousel__btn:active:not([disabled]) { transform: scale(.94); box-shadow: none; }
.bc-carousel__btn[disabled] { opacity: .35; cursor: default; }
.bc-carousel__count {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--bc-slate);
	min-width: 5ch;
	text-align: center;
}
.bc-band--cream .bc-carousel__btn { background: var(--bc-grad-white); }
.bc-band--dark .bc-carousel__btn {
	background: transparent;
	border-color: var(--bc-cream);
	color: var(--bc-cream);
}
.bc-band--dark .bc-carousel__btn:hover:not([disabled]) { background: var(--bc-grad-cream); color: var(--bc-ink); }
.bc-band--dark .bc-carousel__count { color: var(--bc-cream); }

@media (prefers-reduced-motion: reduce) {
	.bc-carousel__track { scroll-behavior: auto; }
	.bc-carousel__track > * { filter: none; opacity: 1; transform: none; }
}

.bc-flow { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.bc-flow__row { display: flex; gap: 16px; align-items: flex-start; }
.bc-flow__row p { margin: 0; }
.bc-flow__num {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bc-grad-sage);
	color: var(--bc-ink);
	font-family: var(--bc-serif);
	font-size: 17px;
	display: grid;
	place-items: center;
}

/* ============================================================
   13. ACCORDION
   ============================================================ */
.bc-accordion { border-top: var(--bc-line-forest); }
.bc-band--dark .bc-accordion { border-top: var(--bc-line-cream); }
.bc-accordion--sage { border-top: var(--bc-line-sage); }

.bc-accordion__item { border-bottom: var(--bc-line-forest); }
.bc-band--dark .bc-accordion__item { border-bottom: var(--bc-line-cream); }
.bc-accordion--sage > .bc-accordion__item { border-bottom: var(--bc-line-sage); }

.bc-accordion__q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.4;
}
.bc-accordion__plus {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: var(--bc-hair) solid var(--bc-forest);
	color: var(--bc-forest);
	display: grid;
	place-items: center;
	font-size: 17px;
	font-weight: 600;
	transition: transform .25s;
}
.bc-band--dark .bc-accordion__plus { border-color: var(--bc-cream); color: var(--bc-cream); }
details[open] > .bc-accordion__q .bc-accordion__plus { transform: rotate(45deg); }

.bc-accordion__a { padding: 0 44px 20px 0; max-width: 68ch; }
.bc-accordion__a > p { margin: 0 0 12px; }
.bc-accordion__a > p:last-child { margin-bottom: 0; }
.bc-accordion__a ul { margin: 0 0 12px; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.bc-accordion__a ul:last-child { margin-bottom: 0; }

/* ============================================================
   14. TIMELINE ESPERIENZA
   ============================================================ */
.bc-timeline { border-top: var(--bc-line-sage); }
.bc-timeline__row {
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr;
	gap: 16px 32px;
	padding: 24px 0;
	border-bottom: var(--bc-line-sage);
}
.bc-timeline__row p { margin: 0; }
.bc-timeline__row .bc-h3 { margin: 0 0 4px; }
@media (max-width: 640px) {
	.bc-timeline__row { grid-template-columns: 1fr; }
}

/* --- Illustrazione a tutta larghezza --- */
.bc-illustration {
	width: 100vw;
	margin: clamp(8px, 2vw, 20px) 0 clamp(30px, 4vw, 48px) calc(50% - 50vw);
}
.bc-illustration img {
	display: block;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	height: auto;
}
/* sotto i 780px la scena diventa illeggibile a tutta larghezza:
   resta alla dimensione minima leggibile e si scorre lateralmente. */
@media (max-width: 780px) {
	.bc-illustration {
		overflow-x: auto;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.bc-illustration::-webkit-scrollbar { display: none; }
	.bc-illustration img { min-width: 760px; max-width: none; }
}

/* ============================================================
   15. PULL-QUOTE
   ============================================================ */
.bc-quote {
	margin: 0 auto;
	max-width: 880px;
	font-family: var(--bc-serif);
	font-size: clamp(24px, 2.8vw, 34px);
	line-height: 1.4;
	color: var(--bc-ink);
	text-align: center;
	text-wrap: pretty;
}

/* ============================================================
   16. SEDI
   ============================================================ */
.bc-sede .bc-h3 { margin: 0 0 4px; }
.bc-cardlabel { margin: 0 0 12px; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--bc-forest); }
.bc-card--dark .bc-cardlabel, .bc-band--dark .bc-cardlabel { color: var(--bc-cream); }

.bc-sede__struttura { margin: 0 0 12px; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--bc-forest); }
.bc-sede__riga { margin: 0 0 10px; }
.bc-sede__riga--tight { margin: 0 0 4px; }
.bc-sede__orari { margin: 0; font-weight: 500; }

.bc-sede--lg .bc-h2 { margin: 0 0 6px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.25; max-width: none; }
.bc-sede--lg .bc-sede__struttura { margin: 0 0 18px; font-size: 16px; }
.bc-sede__fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: var(--bc-line-sage);
	padding-top: 18px;
}
.bc-sede__fields p { margin: 0; }

/* ============================================================
   17. FORM
   ============================================================ */
.bc-form {
	background: var(--bc-grad-tint);
	border: var(--bc-border-card);
	border-radius: var(--bc-radius-lg);
	padding: clamp(26px, 3.4vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.bc-field { display: flex; flex-direction: column; gap: 6px; }
.bc-label { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.bc-label span { font-weight: 400; color: var(--bc-slate); }
.bc-form input[type="text"],
.bc-form input[type="email"],
.bc-form input[type="tel"],
.bc-form textarea {
	font-family: var(--bc-sans);
	font-size: 16px;
	color: var(--bc-ink);
	padding: 13px 16px;
	border: 1px solid rgba(62, 92, 110, .5);
	border-radius: 12px;
	background: var(--bc-white);
	min-height: 48px;
	width: 100%;
}
.bc-form textarea { resize: vertical; }
/* su fondo cream il riempimento della card si confonde: form bianca */
.bc-band--cream .bc-form { background: var(--bc-grad-white); }
.bc-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.bc-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--bc-forest); flex: none; }
.bc-form .bc-btn { align-self: flex-start; }
.bc-form__nota { margin: 0; font-size: 14px; color: var(--bc-slate); }
.bc-hp { position: absolute; left: -9999px; }

.bc-notice { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.bc-notice--ok { background: linear-gradient(160deg, rgba(153, 169, 137, .45) 0%, rgba(153, 169, 137, .22) 100%); color: var(--bc-ink); }
.bc-notice--ko { background: linear-gradient(160deg, rgba(184, 84, 60, .22) 0%, rgba(184, 84, 60, .10) 100%); color: var(--bc-ink); }

/* ============================================================
   18. FOOTER
   ============================================================ */
.bc-footer {
	background: linear-gradient(115deg, #1F3346 0%, #1C2D45 50%, #16273C 100%);
	color: var(--bc-cream);
	padding: clamp(48px, 7vw, 84px) var(--bc-pad-x) 0;
}
.bc-footer__grid {
	max-width: var(--bc-wrap);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 40px;
}
.bc-footer__col { font-size: 15px; line-height: 1.7; }
.bc-footer__col p { margin: 0 0 12px; }
.bc-footer__col p:last-child { margin-bottom: 0; }
.bc-footer a { color: var(--bc-cream); }
.bc-footer a:hover { color: var(--bc-white); }
.bc-footer__name { margin: 0; font-family: var(--bc-serif); font-size: 20px; letter-spacing: .13em; text-transform: uppercase; line-height: 1.4; }
.bc-footer__payoff { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.bc-footer__label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.bc-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bc-footer__bottom {
	max-width: var(--bc-wrap);
	margin: 48px auto 0;
	border-top: 1px solid rgba(224, 228, 214, .25);
	padding: 22px 0 34px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	justify-content: space-between;
	font-size: 14px;
	line-height: 1.6;
}
.bc-footer__bottom p { margin: 0; max-width: 72ch; }

/* ============================================================
   19. PROSE (pagine legali, mappa del sito, home)
   ============================================================ */
.bc-prose { max-width: 72ch; }
.bc-prose h2 {
	margin: 44px 0 14px;
	font-family: var(--bc-serif);
	font-weight: 400;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.25;
}
.bc-prose h3 { margin: 30px 0 10px; font-family: var(--bc-serif); font-weight: 400; font-size: 22px; line-height: 1.3; }
.bc-prose h2:first-child, .bc-prose h3:first-child { margin-top: 0; }
.bc-prose p { margin: 0 0 16px; }
.bc-prose ul, .bc-prose ol { margin: 0 0 16px; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

.bc-sitemap, .bc-sitemap ul { list-style: none; margin: 0; padding: 0; }
.bc-sitemap > li { border-top: var(--bc-line-sage); padding: 14px 0; font-family: var(--bc-serif); font-size: 22px; }
.bc-sitemap > li > ul { margin-top: 8px; padding-left: 18px; font-family: var(--bc-sans); font-size: 16px; }
.bc-sitemap > li > ul > li { padding: 4px 0; }

/* ============================================================
   20. ELEMENTI DECORATIVI
   Due famiglie: i rami botanici, ancorati ai bordi delle bande e
   tagliati dal margine, e le illustrazioni tematiche, agganciate al
   contenuto di cui parlano. Tutti in pseudo-elementi assoluti dietro
   al testo, senza eventi: il flusso della pagina non cambia.
   ============================================================ */
.bc-band--dark,
.bc-band--quote,
.bc-band--hero,
#faq {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.bc-band--dark::before,
.bc-band--dark::after,
.bc-band--quote::before,
.bc-hero::after,
#faq::before,
#faq::after,
.bc-timeline::before,
.bc-flow::after,
.bc-footer::before {
	content: "";
	position: absolute;
	z-index: -1;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	pointer-events: none;
}

/* --- rami botanici: sempre a filo di un bordo, mai isolati al centro --- */

/* orizzontale: attraversa da parte a parte il fondo della banda citazione */
.bc-band--quote::before {
	left: 50%;
	transform: translateX(-50%);
	bottom: clamp(-62px, -3.2vw, -38px);
	width: min(760px, 74vw);
	aspect-ratio: 1400 / 330;
	background-image: url("assets/img/deco-bot-orizzontale.png");
	opacity: .4;
}

/* obliquo: angolo alto a destra delle bande scure, tagliato dal bordo */
.bc-band--dark::before {
	right: clamp(-260px, -13vw, -140px);
	top: clamp(-230px, -12vw, -130px);
	width: min(780px, 62vw);
	aspect-ratio: 1200 / 778;
	background-image: url("assets/img/deco-bot-obliquo.png");
	filter: brightness(1.4);
	opacity: .13;
}

/* la griglia dell'hero fa da riferimento per l'ornamento nel margine */
.bc-hero { position: relative; isolation: isolate; }

/* verticale: nel margine laterale, solo quando c'è spazio fuori dal contenuto */
.bc-hero::after,
#faq::after {
	width: 200px;
	aspect-ratio: 367 / 900;
	background-image: url("assets/img/deco-bot-verticale.png");
	opacity: .4;
}
.bc-hero::after {
	left: -240px;
	top: 50%;
	transform: translateY(-50%);
	height: min(86%, 520px);
	width: 212px;
}
#faq::after {
	left: max(10px, calc(50% - 780px));
	top: 50%;
	transform: translateY(-50%);
	width: 180px;
	height: min(78%, 520px);
}

/* ramo sottile lungo il bordo alto del footer */
.bc-footer { position: relative; isolation: isolate; overflow: hidden; }
.bc-footer::before {
	left: 50%;
	transform: translateX(-50%);
	top: clamp(-40px, -2vw, -20px);
	width: min(1100px, 92vw);
	aspect-ratio: 1400 / 461;
	background-image: url("assets/img/deco-ramo.png");
	filter: brightness(1.7) saturate(.75);
	opacity: .3;
}

/* --- illustrazioni tematiche --- */

/* rete funzionale: angolo basso a sinistra delle bande scure */
.bc-band--dark::after {
	left: clamp(-190px, -10vw, -110px);
	bottom: clamp(-170px, -9vw, -100px);
	width: min(520px, 42vw);
	aspect-ratio: 900 / 820;
	background-image: url("assets/img/deco-rete.png");
	opacity: .1;
}

/* tablet con i dati: angolo basso a destra delle FAQ */
#faq::before {
	right: clamp(-190px, -10vw, -110px);
	bottom: clamp(-150px, -8vw, -90px);
	width: min(540px, 46vw);
	aspect-ratio: 900 / 609;
	background-image: url("assets/img/deco-tablet.png");
	opacity: .17;
}

/* lente: nel margine destro accanto alla timeline delle esperienze */
.bc-timeline { position: relative; isolation: isolate; }
.bc-timeline::before {
	right: -30px;
	top: -132px;
	width: 168px;
	aspect-ratio: 380 / 418;
	background-image: url("assets/img/deco-lente.png");
	opacity: .6;
}

/* schema del percorso: chiude la colonna dei passaggi in Contatti */
.bc-flow { position: relative; isolation: isolate; padding-bottom: 4px; }
.bc-flow::after {
	right: 6px;
	bottom: -70px;
	width: 190px;
	aspect-ratio: 420 / 334;
	background-image: url("assets/img/deco-percorso.png");
	opacity: .55;
}

/* luna e ramo: nel margine, accanto agli elenchi in evidenza */
.bc-statement--lg { position: relative; isolation: isolate; }
.bc-statement--lg::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -190px;
	top: -60px;
	width: 176px;
	aspect-ratio: 420 / 346;
	background-image: url("assets/img/deco-riposo.png");
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	opacity: .55;
}

/* --- adattamenti per larghezza --- */
@media (max-width: 1500px) {
	.bc-hero::after { display: none; }
}
@media (max-width: 1420px) {
	#faq::after { display: none; }
}
@media (max-width: 1560px) {
	.bc-statement--lg::after { display: none; }
}
@media (max-width: 980px) {
	.bc-timeline::before { width: 120px; top: -96px; right: -10px; }
	.bc-flow::after { width: 130px; bottom: -46px; }
}
@media (max-width: 780px) {
	.bc-band--dark::after,
	#faq::before,
	.bc-timeline::before,
	.bc-flow::after { display: none; }
	.bc-band--dark::before { opacity: .12; width: 90vw; }
	.bc-band--quote { padding-bottom: clamp(90px, 22vw, 120px); }
	.bc-band--quote::before {
		width: 84vw;
		bottom: -34px;
		opacity: .42;
	}
	.bc-footer::before { opacity: .22; }
}
@media (prefers-reduced-motion: no-preference) {
	.bc-timeline::before { animation: bcDecoFloat 13s ease-in-out infinite alternate; }
	.bc-flow::after { animation: bcDecoFloat 15s ease-in-out infinite alternate; }
}
@keyframes bcDecoFloat {
	from { transform: translateY(0) rotate(0deg); }
	to { transform: translateY(-10px) rotate(-3deg); }
}

/* Testo che segue il sottotitolo (es. Con chi collaboro) */
.bc-lead + .bc-copy { margin-top: 18px; }

/* ============================================================
   CARD AGGIUNTE DALLA DASHBOARD
   Sei gradienti dedicati, mai usati altrove, a rotazione (classe bc-xfill-N
   assegnata in PHP solo alle card oltre quelle originali). Stanno in fondo al
   file così prevalgono sulla rotazione a/b/c di griglie e step.
   ============================================================ */
.bc-grid > .bc-xfill-1,
.bc-steps > li.bc-xfill-1 { --bc-fill: linear-gradient(145deg, #FFFFFF 0%, #F3F1E7 100%); }
.bc-grid > .bc-xfill-2,
.bc-steps > li.bc-xfill-2 { --bc-fill: linear-gradient(230deg, #FFFFFF 0%, #E7EEE9 100%); animation-delay: -1.5s; }
.bc-grid > .bc-xfill-3,
.bc-steps > li.bc-xfill-3 { --bc-fill: linear-gradient(95deg, #FFFFFF 0%, #EAEFF4 100%); animation-delay: -3s; }
.bc-grid > .bc-xfill-4,
.bc-steps > li.bc-xfill-4 { --bc-fill: linear-gradient(185deg, #FAFBF6 0%, #EEF0E2 100%); animation-delay: -4.5s; }
.bc-grid > .bc-xfill-5,
.bc-steps > li.bc-xfill-5 { --bc-fill: linear-gradient(320deg, #FFFFFF 0%, #F1ECE6 100%); animation-delay: -6s; }
.bc-grid > .bc-xfill-6,
.bc-steps > li.bc-xfill-6 { --bc-fill: linear-gradient(40deg, #FFFFFF 0%, #E6EDEE 55%, #EEF1E6 100%); animation-delay: -7.5s; }
