/* =====================================================================
   CURABOOTS — Tema A "Evoluzione" (restyling scelto il 09/10/2026)
   Bozza di riferimento: projects/curaboots/mockups/a-evoluzione/index.html
   Caricato in header.php DOPO curaboots-theme.css: vince sulle regole precedenti.
   Componenti nuovi con prefisso cb- (header, home, footer). Le pagine interne
   ereditano token, bottoni e titoli dalla sezione "Base".
   ===================================================================== */

/* ---------- Token ---------- */
:root {
  --cb-primary: #2563EB;
  --cb-primary-700: #1D4ED8;
  --cb-night: #1E3A8A;          /* fondi profondi, fascia evento */
  --cb-ice: #EFF5FF;            /* sezioni tenui */
  --cb-ice-2: #DBEAFE;          /* chip, bordi chiari */
  --cb-ink: #333A45;            /* testo */
  --cb-ink-2: #1F2530;          /* titoli */
  --cb-fg-muted: #5B6472;       /* testo secondario (contrasto 6:1) */
  --cb-border: #E4E9F1;
  --cb-bg: #FFFFFF;
  --cb-radius-sm: 10px;
  --cb-radius: 18px;
  --cb-radius-lg: 28px;
  --cb-shadow-1: 0 1px 2px rgba(15,23,42,.05), 0 2px 8px rgba(15,23,42,.05);
  --cb-shadow-2: 0 2px 4px rgba(15,23,42,.04), 0 14px 34px rgba(15,23,42,.09);
  --cb-shadow-blue: 0 10px 26px rgba(37,99,235,.28);
  --cb-gutter: 16px;
  --cb-max: 1200px;
  --cb-sez: 72px;
  --cb-head-h: 72px;
}
@media (min-width: 768px) { :root { --cb-gutter: 32px; --cb-sez: 104px; } }
@media (min-width: 1100px) { :root { --cb-sez: 128px; } }

/* ---------- Base (vale per tutto il sito) ---------- */
html { scroll-padding-top: calc(var(--cb-head-h) + 16px); }
body { background: var(--cb-bg); color: var(--cb-ink); }
h1, h2, h3, h4, h5, h6, .content-title { color: var(--cb-ink-2); }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.75rem); letter-spacing: -.03em; }
p { color: var(--cb-ink); }
a:hover { color: var(--cb-primary-700); }
:focus-visible { outline: 3px solid var(--cb-primary); outline-offset: 3px; }
.cb-sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.cb-skip { position: absolute; left: -9999px; }
.cb-skip:focus { left: 16px; top: 16px; z-index: 1100; background: #fff; padding: 10px 16px; border-radius: 8px; }

.cb-wrap { width: 100%; max-width: var(--cb-max); margin: 0 auto; padding: 0 var(--cb-gutter); }
/* Pagine interne (Bootstrap): stessa larghezza e stessi margini laterali della home */
.container { max-width: calc(var(--cb-max) + 2 * var(--cb-gutter)); padding-left: var(--cb-gutter); padding-right: var(--cb-gutter); }
.cb-head + #contenuto + article .entry-content > .container:first-child { margin-top: 32px; }
.cb-sez { padding: var(--cb-sez) 0; }
.cb-sez--ice { background: var(--cb-ice); }

/* Immagini dei componenti nuovi: niente ombra/raggio globali del vecchio tema */
.cb-a img { box-shadow: none; border-radius: 0; max-width: 100%; height: auto; display: block; }

/* Intestazione di sezione */
.cb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cb-primary);
}
.cb-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.cb-intro { max-width: 720px; margin-bottom: 48px; }
.cb-intro p { color: var(--cb-fg-muted); font-size: 1.05rem; }
.cb-intro--center { margin-left: auto; margin-right: auto; text-align: center; }
.cb-intro--center .cb-eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* Bottoni del tema A (le pagine interne usano ancora .btn di Bootstrap/tema) */
.cb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1.2 var(--cb-font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.cb-btn:hover { text-decoration: none; }
.cb-btn svg { width: 18px; height: 18px; flex: none; }
.cb-btn--primary { background: var(--cb-primary); color: #fff; box-shadow: var(--cb-shadow-blue); }
.cb-btn--primary:hover, .cb-btn--primary:focus-visible { background: var(--cb-primary-700); color: #fff; transform: translateY(-2px); }
.cb-btn--secondary { background: #fff; color: var(--cb-ink-2); border-color: var(--cb-border); }
.cb-btn--secondary:hover, .cb-btn--secondary:focus-visible { border-color: var(--cb-primary); color: var(--cb-primary); }
.cb-btn--white { background: #fff; color: var(--cb-primary-700); }
.cb-btn--white:hover, .cb-btn--white:focus-visible { background: var(--cb-ice); color: var(--cb-night); transform: translateY(-2px); }

/* ---------- Fascia evento ---------- */
.cb-topbar { background: var(--cb-night); color: #E0EAFF; font-size: .82rem; padding: 10px 0; text-align: center; line-height: 1.5; }
.cb-topbar p { margin: 0; color: inherit; }
.cb-topbar strong { color: #fff; }
.cb-topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.cb-head {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--cb-border);
}
.cb-head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--cb-head-h); }
.cb-logo { display: inline-flex; align-items: center; flex: none; }
.cb-logo img { display: block; width: auto; height: 38px; box-shadow: none; border-radius: 0; }
@media (min-width: 768px) { .cb-logo img { height: 44px; } }

.cb-nav { display: none; }
.cb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.cb-nav__list > li { position: relative; }
.cb-nav a, .cb-nav__toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px;
  color: var(--cb-ink); font: 500 .92rem/1.2 var(--cb-font-body); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.cb-nav a:hover, .cb-nav__toggle:hover, .cb-nav__toggle[aria-expanded="true"] { background: var(--cb-ice); color: var(--cb-primary); text-decoration: none; }
.cb-nav a[aria-current="page"] { color: var(--cb-primary); font-weight: 600; }
.cb-nav__toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.cb-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cb-nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--cb-border); border-radius: var(--cb-radius); box-shadow: var(--cb-shadow-2);
}
/* Sottomenu: con JS si aprono al clic (.is-open); senza JS al passaggio o al focus */
.cb-nav__sub { display: none; }
.cb-js .cb-nav__sub.is-open,
html:not(.cb-js) .cb-nav__list > li:hover > .cb-nav__sub,
html:not(.cb-js) .cb-nav__list > li:focus-within > .cb-nav__sub { display: block; }
.cb-nav__toggle[data-current] { color: var(--cb-primary); font-weight: 600; }
.cb-nav__sub a { display: flex; width: 100%; }
.cb-head__cta { display: none; }
.cb-burger {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--cb-border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--cb-ink-2);
}
.cb-burger svg { width: 22px; height: 22px; }
@media (min-width: 1100px) {
  .cb-nav { display: block; }
  .cb-burger { display: none; }
  .cb-head__cta { display: inline-flex; min-height: 44px; padding: 10px 20px; }
}

/* Menu mobile */
.cb-menu { border-top: 1px solid var(--cb-border); padding: 8px 0 20px; max-height: calc(100vh - var(--cb-head-h) - 40px); max-height: calc(100dvh - var(--cb-head-h) - 40px); overflow-y: auto; }
/* Con JS il menu mobile parte chiuso; senza JS resta visibile sotto l'header e il burger sparisce */
.cb-js .cb-menu:not(.is-open) { display: none; }
html:not(.cb-js) .cb-burger { display: none; }
.cb-menu ul { list-style: none; margin: 0 0 14px; padding: 0; }
.cb-menu a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--cb-border); color: var(--cb-ink-2); font-weight: 500; text-decoration: none; }
.cb-menu a[aria-current="page"] { color: var(--cb-primary); font-weight: 600; }
.cb-menu .cb-menu__sub a { padding-left: 20px; font-size: .94rem; color: var(--cb-ink); }
.cb-menu .cb-btn { width: 100%; }
@media (min-width: 1100px) { .cb-menu { display: none !important; } }

/* ---------- Hero ---------- */
.cb-hero { padding: 40px 0 var(--cb-sez); position: relative; isolation: isolate; }
.cb-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 78%; z-index: -1;
  background: radial-gradient(1000px 520px at 85% 10%, #E3EDFF 0%, rgba(239,245,255,0) 70%);
}
.cb-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .cb-hero { padding-top: 72px; } .cb-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.cb-hero__pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--cb-border); border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: .82rem; color: var(--cb-ink); box-shadow: var(--cb-shadow-1);
}
.cb-hero__pill span { background: var(--cb-primary); color: #fff; border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: .74rem; }
.cb-hero h1 em { font-style: normal; color: var(--cb-primary); }
.cb-hero__lead { font-size: 1.08rem; color: var(--cb-fg-muted); max-width: 540px; margin-bottom: 30px; }
.cb-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.cb-hero__cta .cb-btn { flex: 1 1 220px; }
@media (min-width: 560px) { .cb-hero__cta .cb-btn { flex: 0 0 auto; } }
.cb-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; max-width: 540px; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--cb-border); }
.cb-hero__facts div { margin: 0; }
.cb-hero__facts dt { color: var(--cb-ink-2); font-size: 1.35rem; letter-spacing: -.02em; font-weight: 700; }
.cb-hero__facts dd { margin: 0; font-size: .78rem; color: var(--cb-fg-muted); line-height: 1.35; }
.cb-hero__media { position: relative; }
.cb-hero__photo { border-radius: var(--cb-radius-lg); overflow: hidden; box-shadow: var(--cb-shadow-2); aspect-ratio: 1 / 1; }
.cb-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Striscia fiducia ---------- */
.cb-trust { border-top: 1px solid var(--cb-border); border-bottom: 1px solid var(--cb-border); padding: 22px 0; }
.cb-trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .cb-trust ul { grid-template-columns: repeat(4, 1fr); } }
.cb-trust li { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; color: var(--cb-ink-2); line-height: 1.35; }
.cb-trust svg { width: 22px; height: 22px; color: var(--cb-primary); flex: none; }

/* ---------- Vantaggi ---------- */
.cb-benefits { display: grid; gap: 24px; }
@media (min-width: 860px) { .cb-benefits { grid-template-columns: 1fr 1fr; gap: 32px; } }
.cb-vcard { background: #fff; border: 1px solid var(--cb-border); border-radius: var(--cb-radius-lg); overflow: hidden; box-shadow: var(--cb-shadow-1); display: flex; flex-direction: column; }
.cb-vcard__photo { position: relative; aspect-ratio: 16 / 9; }
.cb-vcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.cb-vcard__tag { position: absolute; left: 18px; bottom: 18px; background: #fff; color: var(--cb-ink-2); border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 600; box-shadow: var(--cb-shadow-1); }
.cb-vcard__body { padding: 28px 24px 30px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 768px) { .cb-vcard__body { padding: 34px 36px 38px; } }
.cb-vcard h3 { font-size: 1.45rem; }
.cb-vcard p { color: var(--cb-fg-muted); }
.cb-vcard__more { margin-top: auto; padding-top: 18px; font-weight: 600; }
.cb-ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
/* li a blocco (non flex): grassetto e testo restano sulla stessa riga e vanno a capo insieme */
.cb-ticks li { position: relative; padding-left: 34px; font-size: .95rem; }
.cb-ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cb-ice-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cb-ticks b { color: var(--cb-ink-2); font-weight: 600; }
.cb-combo {
  margin-top: 32px; display: grid; gap: 16px; align-items: center; padding: 28px 24px;
  background: linear-gradient(120deg, var(--cb-primary), var(--cb-primary-700)); color: #fff;
  border-radius: var(--cb-radius-lg); box-shadow: var(--cb-shadow-blue);
}
.cb-combo p { margin: 0; font-size: 1.08rem; font-weight: 500; color: #fff; }
.cb-combo .cb-btn { justify-self: start; }
@media (min-width: 860px) { .cb-combo { grid-template-columns: 1fr auto; padding: 30px 40px; } }

/* ---------- Gamma ---------- */
.cb-range { display: grid; gap: 24px; }
@media (min-width: 720px) { .cb-range { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cb-range { grid-template-columns: repeat(3, 1fr); } }
.cb-pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--cb-border); border-radius: var(--cb-radius-lg); box-shadow: var(--cb-shadow-1);
  transition: box-shadow .25s ease, transform .25s ease;
}
.cb-pcard:hover { box-shadow: var(--cb-shadow-2); transform: translateY(-4px); }
.cb-pcard--top { border-color: var(--cb-primary); box-shadow: 0 0 0 1px var(--cb-primary), var(--cb-shadow-2); }
.cb-pcard__flag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--cb-primary); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.cb-pcard__photo { background: linear-gradient(180deg, #F7FAFF, #EEF3FB); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 18px; }
.cb-pcard__photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cb-pcard__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cb-pcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cb-pcard h3 { margin: 0; font-size: 1.3rem; }
.cb-height { font-size: .78rem; font-weight: 600; color: var(--cb-primary); background: var(--cb-ice); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.cb-pcard__desc { color: var(--cb-fg-muted); font-size: .92rem; }
.cb-prices { list-style: none; margin: 4px 0 20px; padding: 0; border-top: 1px solid var(--cb-border); }
.cb-prices li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--cb-border); font-size: .9rem; }
.cb-prices li span { color: var(--cb-fg-muted); }
.cb-prices li strong { color: var(--cb-ink-2); font-weight: 600; white-space: nowrap; }
.cb-prices li:first-child strong { color: var(--cb-primary); font-size: 1.05rem; }
.cb-pcard .cb-btn { margin-top: auto; width: 100%; }
.cb-dots { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; font-size: .78rem; color: var(--cb-fg-muted); }
.cb-dots .cb-swatch { width: 22px; height: 22px; border-radius: 50%; box-shadow: none; }
.cb-dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--cb-border); display: inline-block; }

/* Accessori */
.cb-acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 72px 0 24px; }
.cb-acc-head h3 { font-size: 1.5rem; margin: 0; }
.cb-acc-head p { margin: 0; color: var(--cb-fg-muted); font-size: .95rem; }
.cb-acc { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cb-acc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cb-acc { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cb-acard { display: flex; flex-direction: column; padding: 16px; background: #fff; border: 1px solid var(--cb-border); border-radius: var(--cb-radius); box-shadow: var(--cb-shadow-1); transition: box-shadow .25s ease; }
.cb-acard:hover { box-shadow: var(--cb-shadow-2); }
.cb-acard__photo { background: #F6F8FC; border-radius: var(--cb-radius-sm); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 10px; margin-bottom: 14px; }
.cb-acard__photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cb-acard h4 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.cb-acard p { font-size: .84rem; color: var(--cb-fg-muted); margin: 0 0 12px; line-height: 1.5; }
.cb-acard__price { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cb-acard__price strong { color: var(--cb-ink-2); font-size: 1.08rem; }
.cb-acard__price a { font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.cb-custom {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  border: 1.5px dashed #BFD3F8; border-radius: var(--cb-radius); padding: 20px 22px; background: #FAFCFF;
}
.cb-custom p { margin: 0; }
.cb-custom b { color: var(--cb-ink-2); }

/* ---------- Come funziona ---------- */
.cb-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .cb-how { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.cb-how__step { background: #fff; border-radius: var(--cb-radius-lg); padding: 30px 26px; box-shadow: var(--cb-shadow-1); border: 1px solid var(--cb-border); }
.cb-how__n {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 22px; display: flex; align-items: center; justify-content: center;
  background: var(--cb-primary); color: #fff; font-weight: 700; font-size: 1.2rem; box-shadow: var(--cb-shadow-blue);
}
.cb-how__step h3 { font-size: 1.18rem; }
.cb-how__step p { color: var(--cb-fg-muted); font-size: .94rem; margin: 0; }
.cb-how__fact { margin-top: 18px; display: inline-flex; font-size: .8rem; font-weight: 600; color: var(--cb-night); background: var(--cb-ice); padding: 6px 12px; border-radius: 999px; }
.cb-note-center { margin-top: 28px; font-size: .84rem; color: var(--cb-fg-muted); text-align: center; }

/* ---------- Ricerca UNIPG ---------- */
.cb-research { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .cb-research { grid-template-columns: 1fr 1fr; gap: 72px; } }
.cb-research__photos { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.cb-research__photos figure { margin: 0; border-radius: var(--cb-radius); overflow: hidden; box-shadow: var(--cb-shadow-1); }
.cb-research__photos figure:first-child { grid-row: span 2; }
.cb-research__photos img { width: 100%; height: 100%; object-fit: cover; }
.cb-uni { display: flex; align-items: center; gap: 14px; background: var(--cb-ice); border-radius: var(--cb-radius); padding: 14px 16px; margin-bottom: 28px; }
.cb-uni img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.cb-uni strong { display: block; color: var(--cb-ink-2); font-size: .92rem; line-height: 1.35; }
.cb-uni span { font-size: .78rem; color: var(--cb-fg-muted); }

/* ---------- Atleti ---------- */
.cb-photos { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cb-photos { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.cb-photos figure { margin: 0; border-radius: var(--cb-radius); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--cb-shadow-1); }
.cb-photos img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s ease; }
.cb-photos figure:hover img { transform: scale(1.04); }
.cb-athletes-cta { margin-top: 32px; text-align: center; }

/* ---------- Fieracavalli (box in home) ---------- */
.cb-event { padding: 0 0 8px; margin-top: 48px; }
@media (min-width: 768px) { .cb-event { margin-top: 72px; } }
.cb-event__box {
  display: grid; overflow: hidden; border-radius: var(--cb-radius-lg); box-shadow: var(--cb-shadow-2); color: #fff;
  background: radial-gradient(800px 400px at 100% 0%, rgba(147,197,253,.35), transparent 60%), linear-gradient(130deg, var(--cb-night), var(--cb-primary) 75%);
}
@media (min-width: 900px) { .cb-event__box { grid-template-columns: 1.15fr 1fr; } }
.cb-event__text { padding: 36px 24px; }
@media (min-width: 768px) { .cb-event__text { padding: 56px 52px; } }
.cb-event h2 { color: #fff; }
.cb-event .cb-eyebrow { color: #BFDBFE; }
.cb-event p { color: #DCE7FF; }
.cb-event__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 30px; }
.cb-event__facts div { margin: 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--cb-radius-sm); padding: 12px; }
.cb-event__facts dt { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #BFDBFE; font-weight: 500; }
.cb-event__facts dd { margin: 0; font-size: 1.05rem; color: #fff; line-height: 1.3; font-weight: 700; }
.cb-event__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cb-event__photo { background: #F7E600; min-height: 220px; }
.cb-event__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 84% 50%; }

/* ---------- CTA finale ---------- */
.cb-final { text-align: center; }
.cb-final__box { background: var(--cb-ice); border-radius: var(--cb-radius-lg); padding: 56px 24px; }
@media (min-width: 768px) { .cb-final__box { padding: 80px 48px; } }
.cb-final h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cb-final p { color: var(--cb-fg-muted); max-width: 620px; margin: 0 auto 30px; }
.cb-final__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cb-pay { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cb-pay li { background: #fff; border: 1px solid var(--cb-border); border-radius: 999px; padding: 6px 14px; font-size: .8rem; color: var(--cb-ink); display: inline-flex; gap: 8px; align-items: center; }
.cb-pay svg { width: 16px; height: 16px; color: var(--cb-primary); }

/* ---------- Footer: blu Curaboots ---------- */
.cb-foot {
  margin-top: var(--cb-sez); padding: 64px 0 28px; font-size: .9rem; color: #E0EAFF;
  background: radial-gradient(900px 420px at 100% 0%, rgba(147,197,253,.28), transparent 60%), linear-gradient(130deg, var(--cb-primary-700), var(--cb-primary) 70%);
}
.cb-foot p { color: #DCE7FF; }
.cb-foot b { color: #fff; }
.cb-foot a { color: #fff; text-decoration: none; }
.cb-foot a:hover, .cb-foot a:focus-visible { color: #fff; text-decoration: underline; }
.cb-foot :focus-visible { outline-color: #fff; }
.cb-foot__grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.cb-foot__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .cb-foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .cb-foot__brand { grid-column: auto; } }
.cb-foot__logo { margin: 0 0 16px; }
.cb-foot__logo img { display: block; width: auto; height: 56px; box-shadow: none; border-radius: 0; }
.cb-foot__brand p { max-width: 340px; }
.cb-foot__social { display: flex; gap: 10px; margin-top: 18px; }
.cb-foot__social a { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); font-size: 1.1rem; }
.cb-foot__social a:hover, .cb-foot__social a:focus-visible { background: #fff; color: var(--cb-primary-700); text-decoration: none; }
.cb-foot h2 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.cb-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cb-foot ul a { display: inline-block; padding: 5px 0; }
.cb-foot__legal {
  border-top: 1px solid rgba(255,255,255,.25); margin-top: 48px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .78rem; color: #DCE7FF;
}
.cb-foot__legal p { margin: 0; color: inherit; }
.cb-foot__legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* =====================================================================
   PAGINE INTERNE (componenti in include/sezioni.php)
   ===================================================================== */

/* Bottoni Bootstrap/tema vecchio (.btn) allineati a .cb-btn */
.btn { min-height: 50px; padding: 12px 24px; border-width: 2px; font-size: .98rem; }
.btn-cornflower-blue { box-shadow: var(--cb-shadow-blue); }
.btn-athens-gray { background: #fff; border-color: var(--cb-border); color: var(--cb-ink-2) !important; }
.btn-athens-gray:hover, .btn-athens-gray:focus { background: #fff; border-color: var(--cb-primary); color: var(--cb-primary) !important; }

/* Testata di pagina */
.cb-phead { position: relative; isolation: isolate; padding: 32px 0 48px; }
.cb-phead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1000px 480px at 85% 0%, #E3EDFF 0%, rgba(239,245,255,0) 70%);
}
@media (min-width: 768px) { .cb-phead { padding: 56px 0 72px; } }
.cb-phead__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .cb-phead--img .cb-phead__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.cb-phead__text { max-width: 760px; }
.cb-phead h1 { margin-bottom: 18px; }
.cb-phead__lead p, .cb-phead__lead { font-size: 1.08rem; color: var(--cb-fg-muted); }
.cb-phead__lead p:last-child { margin-bottom: 0; }
.cb-phead__lead b { color: var(--cb-ink-2); }
.cb-phead__photo { border-radius: var(--cb-radius-lg); overflow: hidden; box-shadow: var(--cb-shadow-2); aspect-ratio: 4 / 3; }
.cb-phead__photo img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; border-radius: 0; display: block; }
.cb-phead__photo--contain, .cb-pics--contain figure, .cb-split__media--contain { background: linear-gradient(180deg, #F7FAFF, #EEF3FB); }
.cb-phead__photo--contain img, .cb-pics--contain img, .cb-split__media--contain img { object-fit: contain; mix-blend-mode: multiply; padding: 18px; }
.cb-pics--contain { max-width: 960px; margin: 0 auto; }
.cb-pics--contain figure { aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .cb-phead__photo--contain { aspect-ratio: 1 / 1; max-width: 480px; width: 100%; justify-self: end; } }
/* Niente doppio spazio: sezione con padding seguita da CTA o footer */
.cb-sez + .cb-cta-box.cb-final { padding-top: 0; }
.cb-a > .cb-sez:last-child { padding-bottom: 0; }
.cb-steps + .lead, .cb-steps + .cb-order { margin-top: 32px; }
.cb-breadcrumb { margin-bottom: 18px !important; }
.cb-breadcrumb ol { font-size: .84rem; }
.cb-breadcrumb a { color: var(--cb-fg-muted); text-decoration: none; }
.cb-breadcrumb a:hover { color: var(--cb-primary); text-decoration: underline; }
.cb-breadcrumb [aria-current] { color: var(--cb-ink-2); font-weight: 500; }

/* Testo lungo */
.cb-prose { max-width: 760px; }
.cb-prose p, .cb-prose li { font-size: 1.04rem; line-height: 1.75; }
.cb-prose p { margin-bottom: 1.2em; }
.cb-prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1.6em 0 .7em; }
.cb-prose h3 { font-size: 1.2rem; margin: 1.6em 0 .6em; }
.cb-prose .cb-ticks { margin: 0 0 1.6em; }
.cb-prose b, .cb-split b { color: var(--cb-ink-2); }

/* Due colonne testo + foto */
.cb-split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .cb-split { grid-template-columns: 1fr 1fr; gap: 72px; } .cb-split--rev .cb-split__media { order: 2; } }
.cb-split__media { border-radius: var(--cb-radius-lg); overflow: hidden; box-shadow: var(--cb-shadow-1); }
.cb-split__media img { width: 100%; height: auto; }
.cb-split h2 { margin-bottom: 20px; }
.cb-split p { color: var(--cb-ink); line-height: 1.75; }
.cb-quote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--cb-primary); }
.cb-quote p { color: var(--cb-ink-2); }

/* Griglie di foto */
.cb-pics { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .cb-pics { gap: 20px; } .cb-pics--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cb-pics figure { margin: 0; border-radius: var(--cb-radius); overflow: hidden; box-shadow: var(--cb-shadow-1); aspect-ratio: 4 / 5; }
.cb-pics img { width: 100%; height: 100%; object-fit: cover; }

/* Atleti: foto + nome */
.cb-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .cb-people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1100px) { .cb-people { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cb-people figure { margin: 0; }
.cb-people__photo { border-radius: var(--cb-radius); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--cb-shadow-1); }
.cb-people__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cb-people figure:hover img { transform: scale(1.04); }
.cb-people figcaption { margin-top: 12px; font-weight: 600; color: var(--cb-ink-2); font-size: .95rem; text-align: center; }

/* Bibliografia */
.cb-refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .cb-refs { grid-template-columns: 1fr 1fr; gap: 20px; } }
.cb-refs li { background: #fff; border: 1px solid var(--cb-border); border-radius: var(--cb-radius); padding: 22px 24px; box-shadow: var(--cb-shadow-1); }
.cb-refs h3 { font-size: 1.02rem; line-height: 1.4; margin: 0 0 10px; letter-spacing: 0; }
.cb-refs p { margin: 0; font-size: .86rem; color: var(--cb-fg-muted); }

/* Schede informative (contatti, società, IBAN) */
.cb-info-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .cb-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.cb-info { background: #fff; border: 1px solid var(--cb-border); border-radius: var(--cb-radius-lg); padding: 28px 26px; box-shadow: var(--cb-shadow-1); }
.cb-info h2 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 18px; }
.cb-info dl { margin: 0; display: grid; gap: 14px; }
.cb-info dl div { margin: 0; }
.cb-info dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-fg-muted); }
.cb-info dd { margin: 2px 0 0; color: var(--cb-ink-2); font-weight: 500; overflow-wrap: anywhere; }
.cb-info dd small { display: block; font-weight: 400; color: var(--cb-fg-muted); }
.cb-info dd a { display: inline-flex; align-items: center; min-height: 32px; }
.cb-info__social { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Mappa (contatti) */
.cb-contact-map { margin-top: 24px; }
.cb-a .cb-map { border-radius: var(--cb-radius-lg); }

/* CTA unica (include/cta.php) */
.cb-cta-box.cb-final { padding: var(--cb-sez) 0 0; }
.cb-final .cb-final__sub { margin-bottom: 12px; }

/* ---------- Negozio: card, scheda, ordine ---------- */
.cb-grid { gap: 24px; }
.cb-card {
  border: 1px solid var(--cb-border); border-radius: var(--cb-radius-lg); box-shadow: var(--cb-shadow-1); overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.cb-card:hover { box-shadow: var(--cb-shadow-2); transform: translateY(-4px); }
.cb-card__media { background: linear-gradient(180deg, #F7FAFF, #EEF3FB); padding: 18px; }
.cb-card__media img { mix-blend-mode: multiply; box-shadow: none; border-radius: 0; }
.cb-card__body { padding: 24px 24px 26px; }
.cb-card__title { font-size: 1.2rem; }
.cb-card__title a { color: var(--cb-ink-2); }
.cb-card__text { font-size: .92rem; }
.cb-card__price { font-size: 1.15rem; font-weight: 700; color: var(--cb-primary); }
.cb-badge { background: var(--cb-ice); color: var(--cb-primary-700); border-radius: 999px; font-size: .74rem; font-weight: 600; padding: 4px 10px; }
.cb-badge--muted { background: #F1F4F9; color: var(--cb-fg-muted); }
.cb-swatches .cb-swatch { border-radius: 50%; }

.cb-shop__body { padding-bottom: 8px; }
.cb-shop--scheda { padding-top: 32px; }
@media (min-width: 768px) { .cb-shop--scheda { padding-top: 48px; } }
.cb-shop__more { margin-top: 88px; }
.cb-shop__more h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cb-buy-extra { margin-top: 48px; align-items: start; }
.cb-shop__body > section + section { margin-top: 72px; }
.cb-shop__body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.cb-gallery__main { border: 1px solid var(--cb-border); border-radius: var(--cb-radius-lg); overflow: hidden; background: linear-gradient(180deg, #F7FAFF, #EEF3FB); }
.cb-gallery__main img { background: transparent; mix-blend-mode: multiply; box-shadow: none; border-radius: 0; }
.cb-gallery__thumbs button { border-radius: var(--cb-radius-sm); }
.cb-gallery__thumbs img { background: #fff; }
.cb-price { font-size: 2rem; color: var(--cb-primary); letter-spacing: -.02em; }
.cb-color img.cb-swatch { border-radius: 50%; box-shadow: none; }
.cb-features.cb-ticks { margin: 0 0 16px; }
.cb-features.cb-ticks li { margin-bottom: 0; }
.cb-product .cb-cta { background: var(--cb-ice); border-radius: var(--cb-radius-lg); padding: 24px; margin-top: 8px; }
.cb-product .cb-cta .cb-note:last-child { margin-bottom: 0; }

.cb-steps__list li { border-radius: var(--cb-radius-lg); box-shadow: var(--cb-shadow-1); padding: 26px 24px; }
.cb-steps__list li::before { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px; box-shadow: var(--cb-shadow-blue); }
.cb-order { border-radius: var(--cb-radius-lg); box-shadow: var(--cb-shadow-1); }
.cb-paybox { border-radius: var(--cb-radius-lg); background: linear-gradient(130deg, var(--cb-night), var(--cb-primary) 75%); }

@media (prefers-reduced-motion: reduce) {
  .cb-a *, .cb-a *::before, .cb-a *::after, .cb-head *, .cb-foot * { transition: none !important; animation: none !important; }
}
