/* Badacare Blocchi — riquadri per gli articoli del blog, con la linea grafica dei template Badacare:
   Poppins, corallo e navy, card con angoli da 24px, pulsante corallo con ombra, etichetta con il trattino.
   Il CSS è autonomo (non dipende dalle variabili dei template), così funziona in ogni pagina.
   Alcune regole hanno !important perché il testo degli articoli (.bp-content) dà margini ai paragrafi
   e colore e sottolineatura ai link: dentro i riquadri gli spazi li decide la griglia. */

.bcb {
  --bcb-coral: #E27A5F;
  --bcb-coral-dark: #C9573C;
  --bcb-coral-light: #F4B8A6;
  --bcb-coral-soft: #FCEDE7;
  --bcb-yellow-soft: #FDF3DD;
  --bcb-navy: #223645;
  --bcb-ink: #5a6573;
  --bcb-bg: #ffffff;
  --bcb-bg-light: #FBFAF8;
  --bcb-hero: #FFF9F5;
  --bcb-border: #EBE6E2;
  --bcb-shadow-sm: 0 2px 10px rgba(31, 43, 61, 0.06);
  --bcb-shadow-md: 0 8px 28px rgba(226, 122, 95, 0.18);
  --bcb-shadow-lg: 0 18px 50px rgba(31, 43, 61, 0.14);
  position: relative;
  box-sizing: border-box;
  margin: 2.4em 0;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--bcb-ink);
  text-align: left;
  overflow-wrap: break-word;
}
.bcb *, .bcb *::before, .bcb *::after { box-sizing: border-box; }
.bcb p { margin: 0 !important; }
.bcb ul, .bcb ol { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bcb li { margin: 0 !important; padding: 0; }
.bcb li::before, .bcb li::marker { content: none; }
.bcb a { text-decoration: none !important; }
.bcb img { display: block; max-width: 100%; margin: 0; }
.bcb b { color: var(--bcb-navy); font-weight: 600; }
.bcb .bcb-ic { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bcb .bcb-ic--pieno { fill: currentColor; stroke: none; }
.bcb a:focus-visible { outline: 3px solid #F2C66B; outline-offset: 3px; }

/* Etichetta, titolo, testo */
.bcb .bcb-head, .bcb .bcb-body { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.bcb .bcb-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; line-height: 1.3; letter-spacing: .7px; text-transform: uppercase; color: var(--bcb-coral-dark); }
.bcb .bcb-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--bcb-coral); }
.bcb .bcb-title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.25; letter-spacing: -.4px; color: var(--bcb-navy); text-wrap: balance; }
.bcb .bcb-text { max-width: 36em; font-size: 1rem; line-height: 1.65; color: var(--bcb-ink); }

/* Pulsante */
.bcb .bcb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: start; margin-top: 6px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: 12px; background: var(--bcb-coral); box-shadow: 0 8px 22px rgba(226, 122, 95, .35); color: #fff !important; font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center; transition: transform .2s, background-color .2s, border-color .2s; }
.bcb .bcb-btn:hover { background: var(--bcb-coral-dark); color: #fff !important; transform: translateY(-2px); }
.bcb .bcb-btn .bcb-ic { width: 18px; height: 18px; }
.bcb .bcb-btn--ghost { background: var(--bcb-bg); border-color: var(--bcb-border); box-shadow: none; color: var(--bcb-navy) !important; }
.bcb .bcb-btn--ghost:hover { background: var(--bcb-bg); border-color: var(--bcb-coral-light); color: var(--bcb-navy) !important; }
.bcb .bcb-btn--ghost .bcb-ic { color: var(--bcb-coral); }

/* Fondo comune delle card: crema con alone corallo in alto a destra e cerchio giallo in basso a sinistra */
.bcb-box, .bcb-steps, .bcb-forme {
  isolation: isolate;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--bcb-border);
  border-radius: 24px;
  background: radial-gradient(440px 260px at 100% 0%, var(--bcb-coral-soft) 0%, rgba(252, 237, 231, 0) 70%), var(--bcb-hero);
  box-shadow: var(--bcb-shadow-sm);
}
.bcb-box::before, .bcb-steps::before, .bcb-forme::before { content: ""; position: absolute; z-index: -1; left: -110px; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; background: var(--bcb-yellow-soft); opacity: .8; }

/* 1-2-3-5. Riquadro con testo e foto o icona */
.bcb-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center; }
.bcb-box .bcb-media { display: flex; justify-content: center; min-width: 0; }
.bcb-box .bcb-badge { display: flex; align-items: center; justify-content: center; width: 128px; height: 128px; border-radius: 50%; background: var(--bcb-bg); box-shadow: 0 0 0 14px rgba(252, 237, 231, .9), var(--bcb-shadow-md); color: var(--bcb-coral); }
.bcb-box .bcb-badge .bcb-ic { width: 54px; height: 54px; stroke-width: 1.6; }
.bcb-box .bcb-photo { display: block; width: 210px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--bcb-coral-soft); box-shadow: 0 0 0 8px rgba(252, 237, 231, .9), var(--bcb-shadow-lg); }
.bcb.bcb-box .bcb-photo img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.bcb-box .bcb-nota { grid-column: 1 / -1; padding: 10px 14px; border-radius: 12px; background: var(--bcb-yellow-soft); color: var(--bcb-navy); font-size: .88rem; line-height: 1.45; }

/* BadaWell: versione scura, per distinguere il messaggio alle aziende */
.bcb-box--dark { border-color: var(--bcb-navy); background: radial-gradient(440px 260px at 100% 0%, rgba(226, 122, 95, .30) 0%, rgba(226, 122, 95, 0) 70%), var(--bcb-navy); box-shadow: var(--bcb-shadow-lg); }
.bcb-box--dark::before { background: rgba(255, 255, 255, .05); opacity: 1; }
.bcb-box--dark .bcb-eyebrow { color: var(--bcb-coral-light); }
.bcb-box--dark .bcb-title { color: #fff; }
.bcb-box--dark .bcb-text { color: rgba(255, 255, 255, .84); }
.bcb-box--dark .bcb-badge { background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 14px rgba(255, 255, 255, .04); color: var(--bcb-coral-light); }

/* 4A. Recensione */
.bcb-rec, .bcb-vid { display: grid; gap: 20px; justify-items: stretch; padding: 32px; border: 1px solid var(--bcb-border); border-radius: 24px; background: var(--bcb-bg); box-shadow: var(--bcb-shadow-sm); overflow: hidden; isolation: isolate; }
.bcb-rec::after { content: "\201D"; position: absolute; z-index: -1; top: -34px; right: 22px; font-family: Georgia, 'Times New Roman', serif; font-size: 190px; line-height: 1; color: var(--bcb-coral-soft); }
.bcb-rec .bcb-btn, .bcb-vid .bcb-btn { margin-top: 0; }
.bcb-rec .bcb-rec-card { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--bcb-border); border-radius: 20px; background: var(--bcb-hero); }
.bcb-rec .bcb-stars { display: inline-flex; gap: 3px; color: var(--bcb-coral); }
.bcb-rec .bcb-stars .bcb-ic { width: 20px; height: 20px; }
.bcb-rec .bcb-rec-quote { font-size: 1.1rem; line-height: 1.6; color: var(--bcb-navy); }
.bcb-rec .bcb-rec-by { display: flex; align-items: center; gap: 12px; font-size: .95rem; line-height: 1.35; }
.bcb-rec .bcb-rec-by > span:last-child { display: grid; }
.bcb-rec .bcb-rec-av { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--bcb-coral); color: #fff; font-weight: 700; }
.bcb-rec .bcb-rec-src { font-size: .85rem; color: var(--bcb-ink); }

/* 4B. Video testimonianza */
.bcb-vid { background: radial-gradient(440px 260px at 100% 0%, var(--bcb-coral-soft) 0%, rgba(252, 237, 231, 0) 70%), var(--bcb-hero); }
.bcb .bcb-vid-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--bcb-navy); box-shadow: var(--bcb-shadow-lg); }
.bcb.bcb-vid .bcb-vid-player img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; transform: scale(1.04); transition: transform .4s; } /* 1.04: taglia le bande nere delle copertine 4:3 di YouTube */
.bcb.bcb-vid .bcb-vid-player:hover img { transform: scale(1.07); }
.bcb .bcb-vid-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bcb .bcb-play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--bcb-coral); box-shadow: 0 0 0 10px rgba(255, 255, 255, .25), 0 12px 30px rgba(0, 0, 0, .25); color: #fff; transition: transform .2s, background-color .2s; }
.bcb .bcb-play .bcb-ic { width: 34px; height: 34px; margin-left: 4px; }
.bcb .bcb-vid-player:hover .bcb-play { background: var(--bcb-coral-dark); transform: scale(1.06); }
.bcb .bcb-vid-cap { margin-top: -8px !important; font-size: .9rem; color: var(--bcb-ink); }

/* 6. Per orientarti */
.bcb-term { display: grid; gap: 6px; margin: 2em 0; padding: 22px 24px 22px 26px; border: 1px solid var(--bcb-border); border-left: 4px solid var(--bcb-coral); border-radius: 18px; background: var(--bcb-bg-light); }
.bcb-term .bcb-term-label { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; line-height: 1.3; letter-spacing: .7px; text-transform: uppercase; color: var(--bcb-coral-dark); }
.bcb-term .bcb-term-label .bcb-ic { width: 17px; height: 17px; }
.bcb-term .bcb-term-word { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--bcb-navy); }
.bcb-term .bcb-term-word dfn { font-style: normal; }
.bcb-term .bcb-term-def { display: grid; gap: .6em; font-size: .98rem; line-height: 1.65; }
.bcb-term .bcb-term-def a { color: var(--bcb-coral-dark) !important; text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 3px; }
.bcb-term .bcb-term-def a:hover { text-decoration-thickness: 2px !important; }
.bcb-term .bcb-term-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 6px; color: var(--bcb-coral-dark) !important; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.bcb-term .bcb-term-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.bcb-term .bcb-term-link .bcb-ic { width: 17px; height: 17px; transition: transform .2s; }
.bcb-term .bcb-term-link:hover .bcb-ic { transform: translateX(3px); }

/* 7. Come funziona */
.bcb-steps { display: grid; gap: 26px; }
.bcb-steps .bcb-btn { margin-top: 0; }
.bcb-steps.bcb--a .bcb-btn { justify-self: center; }
.bcb .bcb-step-t { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: var(--bcb-navy); }
.bcb .bcb-step-d { display: block; margin-top: 4px; font-size: .93rem; line-height: 1.55; }
/* A: tre passaggi affiancati, uniti da una linea */
.bcb .bcb-steps-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 22px; }
.bcb .bcb-steps-row::before { content: ""; position: absolute; top: 32px; left: 16.6%; right: 16.6%; height: 2px; background: var(--bcb-coral-light); }
/* righe in comune tra i tre passaggi (subgrid): i titoli su due righe non spostano i testi sotto */
.bcb .bcb-step { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; justify-items: center; row-gap: 0; text-align: center; }
.bcb .bcb-step-txt { display: contents; }
.bcb .bcb-steps-row .bcb-step-t { align-self: end; margin-top: 14px; }
.bcb .bcb-step-ic { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bcb-coral); box-shadow: 0 0 0 6px var(--bcb-hero), var(--bcb-shadow-md); color: #fff; }
.bcb .bcb-step-ic .bcb-ic { width: 28px; height: 28px; stroke-width: 1.8; }
/* B: quattro passaggi numerati, uno sotto l'altro */
.bcb .bcb-tl { display: grid; }
.bcb .bcb-tl-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding-bottom: 22px !important; }
.bcb .bcb-tl-item:last-child { padding-bottom: 0 !important; }
.bcb .bcb-tl-item:not(:last-child)::after { content: ""; position: absolute; top: 52px; bottom: 4px; left: 23px; width: 2px; background: var(--bcb-coral-light); }
.bcb .bcb-tl-n { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bcb-coral); box-shadow: var(--bcb-shadow-md); color: #fff; font-size: 1.1rem; font-weight: 700; }
.bcb .bcb-tl-txt { padding-top: 10px; }

/* 8. Forme di assistenza */
.bcb-forme { display: grid; gap: 24px; }
.bcb-forme .bcb-btn { margin-top: 0; }
/* A: quattro schede */
.bcb .bcb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bcb .bcb-cards > li { display: flex; }
.bcb .bcb-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 14px; row-gap: 4px; align-content: start; width: 100%; padding: 20px; border: 1px solid var(--bcb-border); border-radius: 18px; background: var(--bcb-bg); color: var(--bcb-ink) !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.bcb a.bcb-card:hover { border-color: var(--bcb-coral-light); box-shadow: var(--bcb-shadow-md); transform: translateY(-2px); }
.bcb .bcb-card-ic { grid-row: 1 / span 3; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bcb-coral-soft); color: var(--bcb-coral-dark); }
.bcb .bcb-card-ic .bcb-ic { width: 24px; height: 24px; }
.bcb .bcb-card-t { font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: var(--bcb-navy); }
.bcb .bcb-card-d { font-size: .92rem; line-height: 1.55; }
.bcb .bcb-card-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; color: var(--bcb-coral-dark); font-size: .86rem; font-weight: 600; }
.bcb .bcb-card-more .bcb-ic { width: 16px; height: 16px; transition: transform .2s; }
.bcb a.bcb-card:hover .bcb-card-more .bcb-ic { transform: translateX(3px); }
/* B: dalla situazione al tipo di assistenza */
.bcb .bcb-rows { display: grid; gap: 10px; }
.bcb .bcb-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px 14px 14px; border: 1px solid var(--bcb-border); border-radius: 16px; background: var(--bcb-bg); color: var(--bcb-ink) !important; transition: border-color .2s, box-shadow .2s; }
.bcb a.bcb-row:hover { border-color: var(--bcb-coral-light); box-shadow: var(--bcb-shadow-md); }
.bcb .bcb-row-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bcb-coral-soft); color: var(--bcb-coral-dark); }
.bcb .bcb-row-ic .bcb-ic { width: 22px; height: 22px; }
.bcb .bcb-row-t { font-weight: 500; line-height: 1.4; color: var(--bcb-navy); }
.bcb .bcb-row-tipo { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 12px; border-radius: 999px; background: var(--bcb-coral-soft); color: var(--bcb-coral-dark); font-size: .85rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.bcb .bcb-row-tipo .bcb-ic { width: 15px; height: 15px; }
.bcb div.bcb-row .bcb-row-tipo { padding-right: 12px; }

/* Avviso per chi scrive (visibile solo a chi è collegato) */
.bcb-placeholder { padding: 14px 18px; border: 1px dashed var(--bcb-coral-light); border-radius: 12px; background: var(--bcb-coral-soft); color: var(--bcb-navy); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  .bcb *, .bcb *::before, .bcb *::after { transition: none !important; }
}

@media (max-width: 640px) {
  .bcb-box, .bcb-steps, .bcb-forme, .bcb-rec, .bcb-vid { padding: 24px 20px; border-radius: 20px; }
  .bcb-box { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bcb-box .bcb-media { order: -1; justify-content: flex-start; }
  .bcb-box .bcb-badge { width: 64px; height: 64px; box-shadow: 0 0 0 8px rgba(252, 237, 231, .9); }
  .bcb-box--dark .bcb-badge { box-shadow: 0 0 0 8px rgba(255, 255, 255, .05); }
  .bcb-box .bcb-badge .bcb-ic { width: 30px; height: 30px; }
  .bcb-box .bcb-photo { width: 100%; aspect-ratio: 16 / 10; }
  .bcb.bcb-box .bcb-photo img { object-position: 50% 25%; } /* nei ritratti resta visibile il viso */
  .bcb-box .bcb-nota { order: -2; }
  .bcb .bcb-btn, .bcb-steps.bcb--a .bcb-btn { justify-self: stretch; width: 100%; }
  .bcb-rec::after { font-size: 140px; top: -24px; right: 12px; }
  .bcb-rec .bcb-rec-card { padding: 20px; }
  .bcb-rec .bcb-rec-quote { font-size: 1.02rem; }
  .bcb .bcb-steps-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bcb .bcb-steps-row::before { content: none; }
  .bcb .bcb-step:not(:last-child)::after { content: ""; position: absolute; top: 56px; bottom: 0; left: 27px; width: 2px; background: var(--bcb-coral-light); }
  .bcb .bcb-step { grid-row: auto; grid-template-rows: none; grid-template-columns: 56px minmax(0, 1fr); justify-items: start; gap: 16px; padding-bottom: 20px !important; text-align: left; }
  .bcb .bcb-step-txt { display: block; }
  .bcb .bcb-steps-row .bcb-step-t { margin-top: 0; }
  .bcb .bcb-step:last-child { padding-bottom: 0 !important; }
  .bcb .bcb-step-ic { width: 56px; height: 56px; }
  .bcb .bcb-step-ic .bcb-ic { width: 24px; height: 24px; }
  .bcb .bcb-step-txt { padding-top: 6px; }
  .bcb .bcb-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bcb .bcb-card { padding: 16px; }
  .bcb .bcb-row { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; padding: 12px 14px 12px 12px; }
  .bcb .bcb-row-ic { grid-row: 1 / span 2; width: 40px; height: 40px; }
  .bcb .bcb-row-tipo { justify-self: start; max-width: 100%; white-space: normal; }
}
