/* B8 Condominio — foglio unico del tema.
   Colori dello stile da campi ACF: --c1 (accento), --c2 (fondo tinta), --bg (fondo), --tx (testo). */

@font-face { font-family: "Archivo"; src: url(../fonts/archivo-var-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hind"; src: url(../fonts/hind-400-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hind"; src: url(../fonts/hind-600-latin.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --c1: #207291; --c2: #e8eef2; --bg: #fff; --tx: #0a0000;
  --tint: var(--c2); --feat-bg: #fff; --feat-tx: #0a0000; --stroke: var(--c1); --icon: var(--c1); --c-icon: var(--c1); --tab-line: var(--tx); --tab-on: var(--c1);
  --on-c1: #fff; --hl: var(--c1); --foot: #f3f3f3;
  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Hind", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px; --gut: 20px;
  --shadow-card: 0 0 50px rgba(202, 196, 217, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--f-body); font-size: 17px; line-height: 29px; letter-spacing: .5px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 20px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; }
.b8-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--bg); color: var(--tx); padding: 10px 16px; }
.b8-skip:focus { left: 10px; }

.b8-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; }
.b8-sec { padding: 100px 0; position: relative; }
.b8-sec--tint { background: var(--tint); }
.b8-center { text-align: center; }
.b8-justify { text-align: justify; }

/* Tipografia */
.b8-h { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; color: var(--tx); margin: 0 0 20px; }
.b8-h--xl { font-size: 70px; line-height: 80px; letter-spacing: -1.5px; }
.b8-h--xl2 { font-size: 50px; line-height: 60px; letter-spacing: -.5px; }
.b8-h--l { font-size: 40px; line-height: 50px; letter-spacing: -1.5px; }
.b8-h--tight { line-height: 40px; }
.b8-h--s { font-size: 16px; line-height: 23px; letter-spacing: .15px; margin-bottom: 10px; }
.b8-lead { max-width: 500px; }

/* Pulsanti */
.b8-btn { display: inline-flex; align-items: center; gap: 15px; padding: 20px 40px; background: var(--c1); color: var(--on-c1); font-family: var(--f-head); font-size: 16px; line-height: 23px; font-weight: 500; letter-spacing: .15px; text-transform: uppercase; border: 0; cursor: pointer; transition: filter .2s ease; }
.b8-btn:hover { filter: brightness(1.12); }
.b8-btn .b8-ic { width: 20px; height: 20px; }
.b8-btn--block { display: flex; width: 100%; justify-content: center; }
.b8-ic { display: inline-flex; flex: none; }
.b8-ic svg { width: 100%; height: 100%; display: block; }

/* Header */
.b8-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.b8-header__in { display: flex; align-items: center; min-height: 80px; gap: 20px; }
.b8-brand { margin-right: auto; display: flex; align-items: center; }
.b8-brand__name { font-family: var(--f-head); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: .1px; text-transform: uppercase; color: var(--tx); }
.b8-brand__logo { max-height: 56px; width: auto; }
.b8-nav__list { display: flex; gap: 30px; }
.b8-nav__list a { font-family: var(--f-head); font-size: 14px; line-height: 28px; font-weight: 500; letter-spacing: .25px; text-transform: uppercase; color: var(--tx); transition: color .2s; }
.b8-nav__list a:hover, .b8-nav__list .current-menu-item > a { color: var(--hl); }
.b8-nav__close, .b8-burger { display: none; background: none; border: 0; padding: 6px; color: var(--hl); cursor: pointer; }
.b8-burger .b8-ic, .b8-nav__close .b8-ic { width: 26px; height: 26px; }
.b8-btn--header { margin-left: 20px; }
.b8-nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 60; }
/* l'header sticky crea un proprio livello: con il menu aperto va sopra al velo, altrimenti il pannello resta coperto e non si tocca */
body.b8-nav-open .b8-header { z-index: 65; }
.b8-nav:focus { outline: none; }

/* Hero */
.b8-hero { background: var(--bg); overflow: hidden; }
.b8-hero__grid { display: grid; grid-template-columns: 534px 1fr; gap: 0; align-items: center; position: relative; z-index: 1; }
.b8-hero__text .b8-h--xl { margin-bottom: 20px; }
.b8-hero__media { position: relative; justify-self: end; width: 456px; }
.b8-hero__img { width: 456px; height: 684px; object-fit: cover; }
.b8-feature { position: absolute; display: flex; align-items: center; gap: 20px; background: var(--feat-bg); border-radius: 8px; box-shadow: var(--shadow-card); padding: 18px 20px; font-family: var(--f-head); font-size: 16px; line-height: 23px; font-weight: 500; letter-spacing: .15px; text-transform: uppercase; color: var(--feat-tx); }
.b8-feature .b8-ic { width: 32px; height: 32px; color: var(--c1); }
body.b8-dark .b8-feature .b8-ic { color: var(--feat-tx); }
.b8-feature--a { top: 284px; right: -50px; width: 256px; }
.b8-feature--b { bottom: 27px; left: -50px; width: 280px; }
.b8-hero__badge { position: absolute; right: 0; top: 119px; z-index: 2; width: 58px; }
.b8-decor { position: absolute; pointer-events: none; z-index: 0; color: rgba(168, 168, 168, .05); }
.b8-decor--hero { width: 600px; height: 600px; left: calc(50% - 334px); top: 640px; }
.b8-decor--bulb { width: 412px; height: 600px; left: -4px; top: 383px; color: rgba(121, 121, 121, .11); }

/* Chi sono */
.b8-about__sub { margin: 0 auto 20px; }
.b8-about__grid { display: grid; grid-template-columns: 570px 1fr; gap: 50px; align-items: center; }
.b8-about__media img { width: 570px; height: 379px; object-fit: cover; }
.b8-tabs__list { display: flex; border-bottom: 2px solid var(--tab-line); margin-bottom: 30px; }
.b8-tabs__tab { white-space: nowrap; background: none; border: 0; margin-bottom: -2px; padding: 12px 18px; font-family: var(--f-head); font-size: 16px; line-height: 23px; font-weight: 500; letter-spacing: .15px; text-transform: uppercase; color: var(--tx); cursor: pointer; border-bottom: 2px solid transparent; }
.b8-tabs__tab[aria-selected="true"] { border-bottom-color: var(--tab-on); }
.b8-tabs__panel p { margin: 0; line-height: 25.5px; }

/* Obiettivi */
.b8-goals { background: var(--bg); overflow: hidden; }
.b8-goals__grid { display: grid; grid-template-columns: 280px 380px 1fr; gap: 100px 50px; align-items: center; }
.b8-goals__intro .b8-h { margin-bottom: 20px; }
.b8-goals__media { position: relative; }
.b8-goals__media img { width: 380px; height: 570px; object-fit: cover; position: relative; z-index: 1; }
.b8-goals__list { display: grid; gap: 0; }
.b8-goal { display: grid; grid-template-columns: 66px 1fr; align-items: start; min-height: 149px; }
.b8-goal__num { font-family: var(--f-head); font-size: 70px; line-height: 80px; font-weight: 500; color: transparent; -webkit-text-stroke: 1px var(--stroke); }
.b8-goal .b8-h--s, .b8-goal p { text-align: center; }
.b8-goal p { margin: 0; }

/* Call to action */
.b8-cta { padding: 150px 0; overflow: hidden; color: #fff; background: #222; }
.b8-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b8-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, .35) 100%); }
.b8-cta__in { position: relative; z-index: 1; }
.b8-cta__in > * { max-width: 513px; }
.b8-cta .b8-h { color: #fff; }
.b8-cta .b8-h--l { font-size: 40px; line-height: 50px; }
.b8-cta p { color: #fff; }

/* Servizi */
.b8-services { background: var(--bg); padding-bottom: 200px; }
.b8-services__grid { display: grid; grid-template-columns: 570px 1fr; gap: 100px; align-items: stretch; }
.b8-services__media img { width: 100%; height: 100%; min-height: 593px; object-fit: cover; }
.b8-services__text { padding: 50px 0 0; max-width: 370px; }
.b8-services__sub { margin-bottom: 20px; }
.b8-checklist li { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0 13px; border-bottom: 1px solid var(--icon); font-size: 17px; line-height: 23.8px; }
.b8-checklist li:last-child { border-bottom: 0; }
.b8-checklist .b8-ic { width: 25px; height: 25px; color: var(--icon); margin-top: -1px; }

/* Argomento */
.b8-topic { position: relative; display: grid; grid-template-columns: 60% 1fr; min-height: 730px; background: var(--bg); }
.b8-topic__media { grid-column: 1; grid-row: 1; position: relative; z-index: 1; height: 630px; }
.b8-topic__media img { width: 100%; height: 630px; object-fit: cover; }
.b8-topic__box { position: absolute; left: calc(60% - 100px); right: 0; top: 100px; bottom: 0; background: var(--tint); display: flex; align-items: center; }
.b8-topic__text { margin-left: 200px; width: 376px; }
.b8-topic__text p { margin: 0; }

/* News */
.b8-news { background: var(--bg); padding-bottom: 70px; }
.b8-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 20px 0 20px; }
.b8-card { background: var(--bg); box-shadow: 0 10px 60px rgba(98, 101, 128, .08); }
.b8-card__media { position: relative; display: block; }
.b8-card__media img { width: 100%; height: 240px; object-fit: cover; }
.b8-card__img { display: block; overflow: hidden; }
.b8-card__date { position: absolute; z-index: 1; left: 30px; bottom: -25px; width: 55px; height: 55px; border-radius: 50%; background: var(--c1); color: var(--on-c1); box-shadow: 0 0 0 3px var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; line-height: 12px; letter-spacing: 0; }
.b8-card__date strong { font-family: var(--f-head); font-size: 19px; line-height: 20px; font-weight: 700; }
.b8-card__title { margin: 0; padding: 35px 40px 55px; font-family: var(--f-head); font-size: 19px; line-height: 28px; font-weight: 500; letter-spacing: .15px; text-transform: uppercase; }
.b8-card__title a { color: var(--tx); transition: color .2s; }
.b8-card__title a:hover { color: var(--hl); }
.b8-news .b8-btn { margin-top: 0; }

/* Contatti */
.b8-contact { background: var(--bg); overflow: hidden; }
.b8-contact__grid { display: grid; grid-template-columns: 280px 380px 1fr; gap: 100px 50px; align-items: center; margin-top: 50px; }
.b8-contact__intro .b8-h { margin-bottom: 20px; }
.b8-contact__media { position: relative; }
.b8-contact__media img { width: 380px; height: 570px; object-fit: cover; position: relative; z-index: 1; }
.b8-contact__media .b8-decor--bulb { color: rgba(122, 122, 122, .15); }
.b8-contact__list { display: grid; gap: 78px; }
.b8-contact__list a { display: flex; align-items: center; gap: 20px; font-family: var(--f-head); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -1.5px; text-transform: uppercase; color: var(--tx); }
.b8-contact__list .b8-ic { width: 32px; height: 32px; color: var(--c-icon); }

/* Form */
.b8-form-sec { padding: 0 0 100px; background: var(--bg); }
.b8-form { display: grid; gap: 10px; }
.b8-form__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.b8-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.b8-field { display: grid; gap: 0; }
.b8-field > span { font-family: var(--f-head); font-size: 16px; line-height: 23px; font-weight: 500; text-transform: uppercase; color: var(--tx); }
.b8-field input, .b8-field textarea { width: 100%; font: inherit; font-size: 17px; color: var(--tx); background: var(--bg); border: 1px solid var(--tx); border-radius: 0; padding: 14px 20px; }
.b8-field input { height: 59px; }
.b8-field textarea { min-height: 132px; resize: vertical; }
.b8-field input::placeholder, .b8-field textarea::placeholder { color: color-mix(in srgb, var(--tx) 55%, transparent); }
.b8-field input:focus, .b8-field textarea:focus { outline: 2px solid var(--c1); outline-offset: -1px; }
.b8-form__privacy { margin: 6px 0 12px; font-size: 14px; line-height: 22px; letter-spacing: .2px; color: color-mix(in srgb, var(--tx) 80%, transparent); }
.b8-form__privacy a { text-decoration: underline; text-underline-offset: 2px; }
.b8-check { display: flex; gap: 6px; align-items: flex-start; text-transform: uppercase; font-size: 17px; line-height: 29px; margin: 0 0 30px; cursor: pointer; }
.b8-check input { margin: 8px 0 0; accent-color: var(--c1); }
.b8-check a { color: inherit; }
.b8-form__msg { margin: 10px 0 0; padding: 14px 18px; border-left: 4px solid var(--c1); background: color-mix(in srgb, var(--c1) 10%, var(--bg)); }
.b8-form__msg.is-err { border-left-color: #b3261e; }
.b8-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* Mappa */
.b8-map { height: 350px; background: #e5e3df; }
.b8-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.b8-footer { background: var(--c1); color: var(--foot); }
.b8-footer__grid { display: grid; grid-template-columns: 319px 185px 185px 1fr; gap: 80px; padding-top: 100px; padding-bottom: 100px; }
.b8-footer__brand { font-family: var(--f-head); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -1.5px; text-transform: uppercase; margin: 0 0 20px; }
.b8-footer__title { font-family: var(--f-head); font-size: 14px; line-height: 22px; font-weight: 500; letter-spacing: .15px; text-transform: uppercase; margin: 0 0 20px; }
.b8-footer__text { font-size: 16px; line-height: 28px; margin: 0; }
.b8-footer__social { display: flex; gap: 24px; }
.b8-footer__social .b8-ic { width: 16px; height: 16px; }
.b8-footer__contacts li a { display: flex; align-items: center; gap: 19px; font-size: 16px; line-height: 33px; }
.b8-footer__contacts .b8-ic { width: 16px; height: 16px; }
.b8-footer__col--menu { text-align: right; }
.b8-footer__menu li { font-size: 16px; line-height: 32px; }
.b8-footer a:hover { text-decoration: underline; }
.b8-footer__rule { height: 3px; background: #171717; }
.b8-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; padding-bottom: 40px; font-size: 16px; line-height: 28px; }
.b8-footer__bottom p { margin: 0; }
.b8-footer__bottom strong { font-weight: 600; color: var(--foot); }
.b8-footer__legal { display: flex; }
.b8-footer__legal li + li { border-left: 1px solid var(--foot); margin-left: 13px; padding-left: 13px; }

/* Flottanti */
.b8-whatsapp { position: fixed; right: 50px; bottom: 50px; z-index: 46; width: 50px; height: 50px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .15)); }
.b8-whatsapp .b8-ic { width: 50px; height: 50px; }
.b8-whatsapp--demo { bottom: 50px; }
.b8-styles { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--bg); height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 10px; box-shadow: 0 -6px 30px rgba(0, 0, 0, .06); }
.b8-styles__title { font-family: var(--f-head); font-size: 14px; line-height: 15px; font-weight: 500; letter-spacing: .25px; text-transform: uppercase; color: var(--tx); margin: 0 0 30px; }
.b8-styles__list { display: flex; gap: 20px; }
.b8-styles__list a { display: block; width: 29px; height: 29px; border-radius: 50%; background: linear-gradient(90deg, var(--sa) 50%, var(--sb) 50%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tx) 22%, transparent); }
.b8-styles__list a.is-on { outline: 2px solid var(--tx); outline-offset: 3px; }
.b8-styles__list li { position: relative; }
.b8-new { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 0 4px; border-radius: 6px; background: #d93a2b; color: #fff; font-family: var(--f-head); font-size: 8px; line-height: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; pointer-events: none; box-shadow: 0 0 0 1.5px var(--bg); }
.b8-selector .b8-new { top: -10px; font-size: 10px; line-height: 15px; padding: 0 6px; box-shadow: 0 0 0 2px #fff; }
body.b8-demo-stili .b8-footer { padding-bottom: 104px; }

/* Testi (privacy, cookie) */
.b8-prose { max-width: 860px; }
.b8-prose h2, .b8-prose h3 { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; }
.b8-prose a { text-decoration: underline; }

/* ------------------------------------------------------------ Tablet */
@media (max-width: 1024px) {
  .b8-wrap { padding: 0 var(--gut); }
  .b8-h--xl { font-size: 54px; line-height: 62px; }
  .b8-hero__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .b8-hero__media, .b8-hero__img { width: 100%; }
  .b8-hero__img { height: auto; aspect-ratio: 2 / 3; }
  .b8-feature--a { right: -10px; }
  .b8-feature--b { left: -10px; }
  .b8-about__grid, .b8-services__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .b8-about__media img { width: 100%; height: auto; }
  .b8-goals__grid, .b8-contact__grid { grid-template-columns: 1fr 1fr; }
  .b8-goals__media img, .b8-contact__media img { width: 100%; height: auto; }
  .b8-goals__list, .b8-contact__list { grid-column: 1 / -1; }
  .b8-topic { grid-template-columns: 1fr; min-height: 0; }
  .b8-topic__media, .b8-topic__media img { height: 420px; }
  .b8-topic__box { position: static; padding: 60px var(--gut); }
  .b8-topic__text { margin: 0 auto; width: 100%; max-width: 700px; }
  .b8-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .b8-footer__col--menu { text-align: left; }
  .b8-decor--bulb { width: 206px; height: 300px; left: calc(50% - 103px); top: auto; bottom: -150px; }
  .b8-nav__list { gap: 18px; }
}

/* ------------------------------------------------------------ Mobile */
@media (max-width: 1024px) {
  .b8-burger, .b8-nav__close { display: inline-flex; }
  .b8-nav { position: fixed; top: 0; bottom: 0; left: 0; width: min(350px, 85vw); background: var(--bg); z-index: 70; padding: 20px 24px; transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; }
  .b8-nav.is-open { transform: none; }
  .b8-nav__close { position: absolute; right: 14px; top: 14px; color: var(--tx); }
  .b8-nav__close .b8-ic { width: 20px; height: 20px; }
  .b8-nav__list { flex-direction: column; gap: 0; margin-top: 50px; }
  .b8-nav__list a { display: block; padding: 6px 0; color: var(--tx); }
}

@media (max-width: 767px) {
  body { font-size: 17px; }
  html { scroll-padding-top: 70px; }
  .b8-sec { padding: 40px 0; }
  .b8-header__in { min-height: 63px; gap: 8px; }
  .b8-header .b8-wrap { padding: 0 10px; }
  .b8-brand__name { font-size: 17px; }
  .b8-btn--header { margin-left: 0; padding: 10px 15px; font-size: 12px; gap: 10px; }
  .b8-btn--header .b8-ic { width: 16px; height: 16px; }
  .b8-h--xl { font-size: 40px; line-height: 50px; letter-spacing: -1px; }
  .b8-h--xl2 { font-size: 30px; line-height: 30px; }
  .b8-h--l { font-size: 30px; line-height: 30px; letter-spacing: -1px; }
  .b8-h--tight { font-size: 25px; line-height: 30px; letter-spacing: 0; }

  .b8-hero__grid { grid-template-columns: 1fr; gap: 0; }
  .b8-hero__media { order: -1; width: 100%; margin-bottom: 40px; }
  .b8-hero__img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .b8-feature { flex-direction: column; justify-content: center; gap: 10px; width: auto; left: 10px; right: 10px; top: auto; padding: 20px 20px 10px; text-align: center; }
  .b8-feature--a { bottom: 149px; }
  .b8-feature--b { bottom: 29px; }
  .b8-hero__badge { top: 136px; width: 47px; }
  .b8-decor--hero { width: 300px; height: 300px; left: 97px; top: auto; bottom: 20px; }

  .b8-about .b8-h--l { font-size: 30px; line-height: 30px; }
  .b8-about__grid { grid-template-columns: 1fr; gap: 30px; }
  .b8-about__media { padding: 0 20px 0 20px; }
  .b8-tabs__list { flex-wrap: wrap; }
  .b8-tabs__tab { flex: 1 1 50%; padding: 14px 8px; }
  .b8-tabs__tab:last-child { flex-basis: 100%; }

  .b8-goals__grid { grid-template-columns: 1fr; gap: 40px; }
  .b8-goals__intro { text-align: center; }
  .b8-goals__media img { width: 100%; height: auto; }
  .b8-decor--bulb { width: 206px; height: 300px; left: calc(50% - 103px); top: auto; bottom: -150px; }
  .b8-goal { grid-template-columns: 70px 1fr; min-height: 124px; }
  .b8-goal__num { font-size: 40px; line-height: 50px; }
  .b8-goal .b8-h--s, .b8-goal p { text-align: left; }

  .b8-cta { padding: 40px 0; }
  .b8-cta .b8-h--l { font-size: 30px; line-height: 30px; }

  .b8-services { padding-bottom: 40px; }
  .b8-services__grid { grid-template-columns: 1fr; gap: 20px; }
  .b8-services__media img { min-height: 0; height: auto; aspect-ratio: 350 / 170; }
  .b8-services__text { padding: 0 20px; max-width: none; }

  .b8-topic { background: var(--tint); padding: 40px var(--gut); }
  .b8-topic__media, .b8-topic__media img { height: auto; }
  .b8-topic__media img { aspect-ratio: 350 / 295; }
  .b8-topic__box { padding: 26px 0 0; background: transparent; }
  .b8-topic .b8-h--l { text-align: center; }

  .b8-cards { grid-template-columns: 1fr; gap: 20px; }
  .b8-card__media img { height: auto; aspect-ratio: 3 / 2; }
  .b8-card__title { padding: 35px 15px 30px; font-size: 17px; line-height: 21px; }

  .b8-contact__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  .b8-contact__list { order: -2; gap: 20px; justify-items: center; }
  .b8-contact__list a { font-size: 16px; letter-spacing: -1px; }
  .b8-contact__media { order: -1; }
  .b8-contact__media img { width: 100%; height: auto; }
  .b8-contact__intro { text-align: center; }
  .b8-contact__intro .b8-h--tight { line-height: 50px; }

  .b8-form-sec { padding: 0 10px 40px; }
  .b8-form__row { grid-template-columns: 1fr; }
  .b8-check { font-size: 16px; line-height: 22px; }
  .b8-map { height: 400px; }

  .b8-footer__grid { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
  .b8-footer__brand { font-size: 16px; letter-spacing: -1px; }
  .b8-footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px var(--gut) 30px; }

  .b8-whatsapp { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .b8-whatsapp .b8-ic { width: 46px; height: 46px; }
  .b8-whatsapp--demo { bottom: 92px; }
  .b8-styles { height: 81px; padding-top: 10px; }
  .b8-styles__title { margin-bottom: 10px; }
  .b8-styles__list { gap: 9px; }
  .b8-styles__list a { width: 29px; height: 29px; }
  body.b8-demo-stili .b8-footer { padding-bottom: 81px; }
}

/* ------------------------------------------------------------ Fase 2: canvas, policy, selettore, articolo, archivio */
.b8-btn--dark { background: #000; color: #fff; }
.b8-ic--flip { width: 20px; height: 20px; transform: scaleX(-1); }
.b8-policy { padding: 100px 0; background: #fff; color: #0a0000; }
.b8-policy .b8-h { color: #0a0000; margin: 20px 0 30px; }
.b8-policy__body { overflow-wrap: anywhere; text-align: justify; font-size: 17px; line-height: 29px; margin-bottom: 40px; }
.b8-policy__body p { margin: 0 0 16px; }
.b8-policy__body h2 { font-family: var(--f-head); font-size: 32px; line-height: 40px; font-weight: 500; text-transform: uppercase; margin: 50px 0 10px; text-align: left; }
.b8-policy__body h3 { font-family: var(--f-head); font-size: 24px; line-height: 30px; font-weight: 500; text-transform: uppercase; margin: 30px 0 10px; text-align: left; }
.b8-policy__body .b8-policy__field { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; }
.b8-policy__body ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.b8-policy__body li[style*="list-style-type: none"] { list-style: none; }
.b8-policy__body a { text-decoration: underline; }
.b8-policy__body table { width: 100%; border-collapse: collapse; margin: 20px 0 30px; font-size: 13px; line-height: 20px; text-align: left; }
.b8-policy__body td, .b8-policy__body th { border: 1px solid #ddd; padding: 14px 10px; }
.b8-policy__body tr:nth-child(odd) td { background: #f7f7f7; }

.b8-selector { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px; background: #fff; }
.b8-selector .b8-h { color: #171717; margin: 0; text-align: center; }

.b8-article__head { position: relative; padding: 100px 0 0; text-align: center; background: var(--bg); }
.b8-article__head .b8-hero__badge { top: 119px; }
.b8-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: var(--f-head); font-size: 12px; line-height: 22px; font-weight: 500; letter-spacing: .15px; text-transform: uppercase; color: var(--tx); margin: 0 0 20px; }
.b8-crumbs a:hover { color: var(--hl); }
.b8-crumbs--left { justify-content: flex-start; }
.b8-article__head .b8-h { max-width: 1000px; margin: 0 auto 20px; }
.b8-article__date { font-size: 15px; margin: 0 0 20px; }
.b8-article__img { max-width: 700px; margin: 0 auto; }
.b8-article__img img { width: 100%; height: 466px; object-fit: cover; }
.b8-article__body { padding: 50px 0 100px; background: var(--bg); border-bottom: 1px solid #171717; }
.b8-article__body .b8-prose { max-width: 700px; margin: 0 auto; padding: 0 8px; }
.b8-article__body .b8-prose p { margin: 0 0 20px; }
.b8-related { background: var(--bg); }
.b8-related .b8-cards { display: flex; flex-wrap: wrap; justify-content: center; }
.b8-related .b8-card { width: calc((100% - 60px) / 3); }
@media (max-width: 767px) { .b8-related .b8-card { width: 100%; } }
.b8-related__title { font-family: var(--f-head); font-size: 20px; line-height: 28px; font-weight: 500; text-transform: uppercase; letter-spacing: -.5px; text-align: center; color: color-mix(in srgb, var(--tx) 62%, var(--bg)); margin: 0 0 20px; }
.b8-archive .b8-h { margin-bottom: 30px; }
.b8-archive .nav-links { display: flex; justify-content: center; gap: 10px; margin-top: 30px; font-family: var(--f-head); text-transform: uppercase; font-size: 14px; }
.b8-archive .nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--tx); }
.b8-archive .nav-links .current { background: var(--c1); border-color: var(--c1); color: var(--on-c1); }
.b8-archive .screen-reader-text, .b8-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 767px) {
  .b8-policy { padding: 40px 0; }
  .b8-policy__body h2 { font-size: 24px; line-height: 30px; }
  .b8-policy__body h3 { font-size: 20px; line-height: 26px; }
  .b8-policy__body table { display: block; overflow-x: auto; }
  .b8-policy .b8-btn { width: 100%; justify-content: center; }
  .b8-selector__list { gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 260px; } /* 9 stili: due righe da 5 e 4 */
  .b8-selector__list a { width: 40px; height: 40px; }
  .b8-article__head { padding: 30px 0 0; }
  .b8-article__head .b8-hero__badge { top: 130px; width: 47px; }
  .b8-article__head .b8-h { font-size: 30px; line-height: 34px; padding: 0 44px; }
  .b8-article__img { padding: 0 20px; }
  .b8-article__img img { height: auto; aspect-ratio: 3 / 2; }
  .b8-article__body { padding: 40px 20px 60px; }
}

/* ------------------------------------------------------------ 1.1: banner cookie, contenuti bloccati, policy, animazioni */

/* Banner consenso */
.b8-cc { position: fixed; left: 24px; bottom: 24px; z-index: 80; width: 440px; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--bg); color: var(--tx); border-radius: 6px; box-shadow: 0 18px 60px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .06); padding: 26px 26px 22px; font-size: 15px; line-height: 23px; letter-spacing: .2px; }
body.b8-dark .b8-cc { box-shadow: 0 18px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14); }
.b8-cc:focus { outline: none; }
.b8-cc:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
body.b8-demo-stili .b8-cc { bottom: 120px; max-height: calc(100vh - 144px); }
.b8-cc__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--tx); cursor: pointer; }
.b8-cc__x:hover { background: color-mix(in srgb, var(--tx) 8%, transparent); }
.b8-cc__x .b8-ic { width: 20px; height: 20px; }
.b8-cc__title { font-family: var(--f-head); font-size: 18px; line-height: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: .2px; margin: 0 40px 8px 0; }
.b8-cc__text { margin: 0 0 16px; }
.b8-cc__text a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.b8-cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.b8-cc__btn { padding: 13px 14px; background: var(--c1); color: var(--on-c1); border: 0; border-radius: 3px; font-family: var(--f-head); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; cursor: pointer; transition: filter .2s ease; }
.b8-cc__btn:hover { filter: brightness(1.12); }
.b8-cc__btn--save { grid-column: 1 / -1; }
.b8-cc__more { grid-column: 1 / -1; justify-self: center; background: none; border: 0; padding: 6px 8px; color: var(--tx); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.b8-cc__prefs { display: grid; gap: 12px; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid color-mix(in srgb, var(--tx) 14%, transparent); }
.b8-cc__cat p { margin: 4px 0 0 56px; font-size: 14px; line-height: 21px; color: color-mix(in srgb, var(--tx) 78%, transparent); }
.b8-cc__switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-family: var(--f-head); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .2px; }
.b8-cc__switch small { font-family: var(--f-body); font-weight: 400; text-transform: none; font-size: 13px; opacity: .75; margin-left: 4px; }
.b8-cc__switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; }
.b8-cc__track { position: relative; flex: none; width: 44px; height: 24px; border-radius: 12px; background: color-mix(in srgb, var(--tx) 28%, var(--bg)); transition: background .2s; }
.b8-cc__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.b8-cc__switch input:checked + .b8-cc__track { background: var(--c1); }
.b8-cc__switch input:checked + .b8-cc__track::after { transform: translateX(20px); }
.b8-cc__switch input:disabled + .b8-cc__track { opacity: .55; }
.b8-cc__switch input:focus-visible + .b8-cc__track { outline: 2px solid var(--c1); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .b8-cc { transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .3, 1); }
  .b8-cc:not(.is-in) { opacity: 0; transform: translate3d(0, 24px, 0); }
}
.b8-cc-open:not(.b8-btn) { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.b8-cc-open:not(.b8-btn):hover { text-decoration: underline; }
.b8-cc-open.b8-btn { padding: 14px 26px; font-size: 14px; }
.b8-policy__inline-btn { text-decoration: underline; font-weight: 600; }

/* Contenuto bloccato (mappa) */
.b8-embed { position: relative; width: 100%; height: 100%; }
.b8-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.b8-embed__ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; color: #1b1b1b;
  background-color: #e9e6df; background-image: linear-gradient(rgba(255, 255, 255, .55) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .55) 2px, transparent 2px), linear-gradient(35deg, transparent 46%, rgba(255, 255, 255, .8) 46%, rgba(255, 255, 255, .8) 54%, transparent 54%); background-size: 64px 64px, 64px 64px, 260px 260px; }
.b8-embed__title { font-family: var(--f-head); font-size: 20px; line-height: 26px; font-weight: 600; text-transform: uppercase; margin: 0 0 6px; }
.b8-embed__text { max-width: 520px; margin: 0 0 18px; font-size: 15px; line-height: 23px; }
.b8-embed__actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: center; }
.b8-embed__actions .b8-btn { padding: 14px 26px; font-size: 14px; }
.b8-embed__link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Policy */
.b8-policy__lead { font-size: 19px; line-height: 31px; }
.b8-legal-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin: 10px 0 24px; background: #e4e4e4; border: 1px solid #e4e4e4; text-align: left; }
.b8-legal-card div { background: #fafafa; padding: 12px 16px; }
.b8-legal-card dt { font-family: var(--f-head); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #666; }
.b8-legal-card dd { margin: 2px 0 0; font-size: 17px; line-height: 25px; }
.b8-policy__table { overflow-x: auto; margin: 16px 0 26px; overflow-wrap: normal; text-align: left; }
.b8-policy__body .b8-policy__table table { margin: 0; min-width: 640px; }
.b8-policy__body th { background: #f1f1f1; font-weight: 600; vertical-align: top; }
.b8-policy__body tbody th { background: #fafafa; }
.b8-policy__body td { vertical-align: top; }
.b8-policy__body tr:nth-child(odd) td { background: transparent; }
.b8-policy__body code { font-size: 13px; background: #f1f1f1; padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.b8-policy__tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 9px; border-radius: 20px; background: #f1f1f1; font-family: var(--f-body); font-size: 12px; line-height: 20px; font-weight: 600; letter-spacing: .3px; }
.b8-policy__service { margin: 18px 0 4px !important; text-align: left; }
.b8-policy__owner { font-weight: 600; }
.b8-consent-status { margin: 10px 0 34px; padding: 20px 24px; border-left: 4px solid var(--c1); background: color-mix(in srgb, var(--c1) 8%, #fff); text-align: left; }
.b8-consent-status__title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; margin: 0 0 4px !important; }
.b8-consent-status .b8-btn { margin-top: 4px; }

/* Header allo scroll */
.b8-header { transition: box-shadow .3s ease; }
.b8-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
body.b8-dark .b8-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }

/* Le entrate laterali non devono allargare il viewport sui telefoni */
.b8-main { overflow-x: hidden; overflow-x: clip; }

/* Parallasse */
.b8-cta__bg[data-parallax] { top: -20%; height: 140%; }

/* Entrata elementi (solo se il JS è attivo e l'utente non ha chiesto meno movimento) */
@media (prefers-reduced-motion: no-preference) {
  .b8-anim [data-r] { transition: opacity .8s cubic-bezier(.2, .65, .3, 1), transform 1s cubic-bezier(.2, .65, .3, 1); }
  .b8-anim [data-r]:not(.is-in) { opacity: 0; transform: translate3d(0, 36px, 0); }
  .b8-anim [data-r="left"]:not(.is-in) { transform: translate3d(-48px, 0, 0); }
  .b8-anim [data-r="right"]:not(.is-in) { transform: translate3d(48px, 0, 0); }
  .b8-anim [data-r="zoom"]:not(.is-in) { transform: scale(.93); }

  /* Spunte dei servizi disegnate all'entrata */
  .b8-anim .b8-checklist [data-r] .b8-ic path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .6s .35s ease; }
  .b8-anim .b8-checklist [data-r].is-in .b8-ic path { stroke-dashoffset: 0; }
  /* Numeri degli obiettivi che si riempiono */
  .b8-anim .b8-goal[data-r] .b8-goal__num { transition: color .9s .4s ease; }
  .b8-anim .b8-goal[data-r].is-in .b8-goal__num { color: color-mix(in srgb, var(--stroke) 12%, transparent); }
  /* Immagini: leggero zoom all'interno della cornice */
  .b8-anim .b8-about__media, .b8-anim .b8-services__media, .b8-anim .b8-topic__media { overflow: hidden; }
  .b8-anim .b8-about__media img, .b8-anim .b8-services__media img, .b8-anim .b8-topic__media img { transition: transform 1.6s cubic-bezier(.2, .65, .3, 1); }
  .b8-anim .b8-about__media:not(.is-in) img, .b8-anim .b8-services__media:not(.is-in) img, .b8-anim .b8-topic__media:not(.is-in) img { transform: scale(1.08); }
  .b8-card { transition: box-shadow .3s ease, transform .3s ease; }
  .b8-card:hover { box-shadow: 0 16px 60px rgba(98, 101, 128, .16); }
  .b8-card__media img { transition: transform .6s cubic-bezier(.2, .65, .3, 1); }
  .b8-card:hover .b8-card__media img { transform: scale(1.04); }

  /* Hero al caricamento: solo spostamento (niente opacità sul titolo e sull'immagine, per non ritardare l'LCP) */
  .b8-hero__text > * { animation: b8-rise .9s cubic-bezier(.2, .65, .3, 1) both; }
  .b8-hero__text > :nth-child(2) { animation-delay: .06s; }
  .b8-hero__text > :nth-child(3) { animation-delay: .12s; }
  .b8-feature { animation: b8-pop .7s cubic-bezier(.2, .7, .3, 1.2) both; }
  .b8-feature--a { animation-delay: .45s; }
  .b8-feature--b { animation-delay: .6s; }
  .b8-hero__badge { animation: b8-pop .7s .75s cubic-bezier(.2, .7, .3, 1.2) both; }
  .b8-btn .b8-ic { transition: transform .25s ease; }
  .b8-btn:hover .b8-ic:not(.b8-ic--flip) { transform: translateX(4px); }
}
@keyframes b8-rise { from { transform: translate3d(0, 28px, 0); } }
@keyframes b8-pop { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.94); } }
@media print { [data-r] { opacity: 1 !important; transform: none !important; } .b8-cc { display: none !important; } }

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .b8-anim [data-r="left"]:not(.is-in), .b8-anim [data-r="right"]:not(.is-in) { transform: translate3d(0, 36px, 0); }
}
@media (max-width: 767px) {
  .b8-cc { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; max-height: calc(100vh - 20px); padding: 20px 18px 16px; }
  body.b8-demo-stili .b8-cc { bottom: 91px; max-height: calc(100vh - 101px); }
  .b8-cc__text { font-size: 14px; line-height: 21px; }
  .b8-cc__cat p { margin-left: 0; }
  .b8-embed__title { font-size: 17px; }
  .b8-legal-card { grid-template-columns: 1fr; }
  .b8-policy__lead { font-size: 17px; line-height: 28px; text-align: left; }
  /* Tabelle policy: una scheda per riga, con l'intestazione della colonna davanti a ogni valore */
  .b8-policy__body .b8-policy__table table { display: block; min-width: 0; border: 0; font-size: 15px; line-height: 22px; }
  .b8-policy__table thead { display: none; }
  .b8-policy__table tbody, .b8-policy__table tr { display: block; }
  .b8-policy__table tr { border: 1px solid #ddd; margin: 0 0 12px; }
  .b8-policy__body .b8-policy__table th, .b8-policy__body .b8-policy__table td { display: block; border: 0; padding: 8px 14px; }
  .b8-policy__body .b8-policy__table tbody th { background: #f1f1f1; font-family: var(--f-head); text-transform: uppercase; font-size: 14px; }
  .b8-policy__table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--f-head); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #777; }
}

/* ------------------------------------------------------------ Demo: colori su misura (barra stili) */
.b8-styles.is-picking { z-index: 95; } /* il pannello vive nella barra: sopra WhatsApp e banner */
.b8-styles__list { align-items: center; }
.b8-styles__sep { width: 1px; height: 24px; background: color-mix(in srgb, var(--tx) 25%, transparent); }
.b8-pick-open { display: block; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: conic-gradient(#ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #5856d6, #af52de, #ff2d55, #ff3b30); box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 1px color-mix(in srgb, var(--tx) 20%, transparent); transition: transform .2s ease; }
.b8-pick-open:hover { transform: scale(1.1); }
.b8-pick-open.is-on, .b8-pick-open[aria-expanded="true"] { outline: 2px solid var(--tx); outline-offset: 3px; }
.b8-styles__list a.b8-pick-open { background: conic-gradient(#ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #5856d6, #af52de, #ff2d55, #ff3b30); }
.b8-selector .b8-pick-open { box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px rgba(0, 0, 0, .15); }
/* Home selettore: la novità "colori su misura" in evidenza (badge New + anello che pulsa) */
.b8-selector__custom .b8-new { z-index: 1; }
.b8-selector__custom::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #d93a2b; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .b8-selector__custom::after { animation: b8-pulse 2s ease-out infinite; }
  @keyframes b8-pulse { 0% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }
}
.b8-selector__sep { width: 1px; height: 24px; background: rgba(0, 0, 0, .2); }

.b8-colori-live *, .b8-colori-live *::before, .b8-colori-live *::after { transition: none !important; animation-play-state: paused !important; }
.b8-pick { contain: layout style paint; will-change: transform; isolation: isolate;
  position: fixed; z-index: 90; left: 50%; bottom: 116px; transform: translateX(-50%); width: 320px; max-width: calc(100vw - 20px); max-height: calc(100vh - 136px); overflow-y: auto; padding: 16px 16px 12px; background: #fff; color: #1a1a1a; border-radius: 12px; box-shadow: 0 18px 60px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .06); font-family: var(--f-body); font-size: 14px; line-height: 20px; letter-spacing: .2px; text-align: left; }
.b8-pick__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.b8-pick__title { margin: 0; font-family: var(--f-head); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.b8-pick__x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #1a1a1a; cursor: pointer; }
.b8-pick__x:hover { background: #f1f1f1; }
.b8-pick__x .b8-ic { width: 18px; height: 18px; }
.b8-pick__targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.b8-pick__target { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #1a1a1a; cursor: pointer; text-align: center; font: inherit; min-width: 0; }
.b8-pick__target.is-on { border-color: #1a1a1a; box-shadow: inset 0 0 0 1px #1a1a1a; }
.b8-pick__target strong { display: block; font-size: 13px; line-height: 16px; }
.b8-pick__target small { display: block; font-size: 11px; line-height: 14px; color: #666; font-family: ui-monospace, Menlo, monospace; }
.b8-pick__chip { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.b8-pick__sv { position: relative; height: 160px; border-radius: 8px; cursor: crosshair; touch-action: none; background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, var(--hue, #f00)); }
.b8-pick__sv:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.b8-pick__cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; will-change: transform; }
.b8-pick__hue { display: block; margin: 12px 0 10px; }
.b8-pick__hue input { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 0; border-radius: 7px; background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); cursor: pointer; }
.b8-pick__hue input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); }
.b8-pick__hue input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); }
.b8-pick__hue input:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; }
.b8-pick__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b8-pick__hexfield { display: flex; align-items: center; gap: 6px; }
.b8-pick__hexfield span { font-size: 11px; font-weight: 600; color: #666; }
.b8-pick__hexfield input { width: 92px; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font: 13px ui-monospace, Menlo, monospace; color: #1a1a1a; background: #fff; text-transform: uppercase; }
.b8-pick__hexfield input.is-invalid { border-color: #d93a2b; }
.b8-pick__reset { border: 0; background: none; padding: 4px 0; color: #1a1a1a; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.b8-pick__order { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.b8-pick__codefield { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.b8-pick__codefield span { font-size: 11px; font-weight: 600; color: #666; }
.b8-pick__codefield input { width: 100%; padding: 7px 6px; border: 1px solid #ccc; border-radius: 6px; background: #f7f7f7; color: #1a1a1a; font: 11px ui-monospace, Menlo, monospace; letter-spacing: 0; }
.b8-pick__copy { flex: none; min-width: 88px; padding: 8px 12px; border: 0; border-radius: 6px; background: #1a1a1a; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.b8-pick__copy.is-done { background: #1e7d3a; }
.b8-pick__note { margin: 8px 0 0; font-size: 11px; line-height: 15px; color: #777; }
@media (max-width: 767px) {
  .b8-styles__list { gap: 7px; }
  .b8-styles__list a, .b8-pick-open { width: 27px; height: 27px; }
  .b8-styles__sep { height: 20px; }
  .b8-pick { left: 10px; right: 10px; bottom: 91px; width: auto; max-width: none; transform: none; max-height: calc(100vh - 101px); }
}
@media (prefers-reduced-motion: reduce) { .b8-pick-open { transition: none; } }
@media print { .b8-pick { display: none !important; } }
@media (max-width: 767px) {
  /* Home selettore: pallini grandi (regola dopo quelle della barra, che su mobile li rimpicciolisce) */
  .b8-selector .b8-selector__list a { width: 40px; height: 40px; }
  .b8-selector__sep { display: none; }
}
