/* ==========================================================================
   BFENTERPRISE · Brand layer per template Sandbox (Bootstrap 5)
   Fonte: BF Brand Book v1.4 (ottobre 2026)
   Caricare DOPO plugins.css e style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token di brand (palette p.9, contrasti p.11-12)
   -------------------------------------------------------------------------- */
:root {
  --bf-antracite: #293133;   /* testo e titoli su chiaro/giallo, sfondi scuri */
  --bf-panna: #F8F4EF;       /* sfondo dominante, testo su scuro, testo bottoni */
  --bf-azzurro: #00B1E3;     /* logo, grafica; grassetti SOLO su Antracite */
  --bf-azzurro-scuro: #007799; /* grassetti su chiaro */
  --bf-verde: #00802B;       /* solo azioni: bottoni e link autonomi */
  --bf-giallo: #DDA23C;      /* sezioni con form, sottolineature, numeri, icone */
  --bf-bianco: #FFFFFF;      /* card su Panna, campi form */
  --bf-bordo: #E3DCD2;       /* bordo card su Panna (derivato neutro) */

  --bf-font-title: "Barlow", Arial, sans-serif;
  --bf-font-text: "Roboto", Arial, sans-serif;

  /* Sandbox: riallineo il "primary" del template al Verde azione */
  --bs-primary: #00802B;
  --bs-primary-rgb: 0, 128, 43;
  --bs-link-color-rgb: 41, 49, 51;
  --bs-link-hover-color-rgb: 41, 49, 51;
  --bs-body-color: #293133;
  --bs-body-bg: #F8F4EF;
  --bs-heading-color: #293133;
  --bs-body-font-family: var(--bf-font-text);
  --bs-font-sans-serif: var(--bf-font-text);
  --bs-btn-font-family: var(--bf-font-title);
}

/* --------------------------------------------------------------------------
   2. Base e tipografia (p.17-20)
   Desktop >= 992px: H1 45 · H2 34 · H3 30 · H4 28 · H5 24 · H6 22 · P 22 · Btn 16
   Mobile  <  992px: H1 40 · H2 28 · H3 24 · H4 20 · H5 18 · H6 16 · P 16 · Btn 12
   -------------------------------------------------------------------------- */
html { scroll-padding-top: 96px; }

body {
  font-family: var(--bf-font-text);
  font-weight: 400;
  color: var(--bf-antracite);
  background-color: var(--bf-panna);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.content-wrapper { background-color: var(--bf-panna); }

p, li, address, dd, dt, td, th, label, .form-control, .form-select { font-size: 16px; }
p, li { color: inherit; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--bf-font-title);
  color: var(--bf-antracite);
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: .6em;
}
h1, .h1 { font-weight: 700; font-size: 40px; }
h2, .h2 { font-weight: 600; font-size: 28px; }
h3, .h3 { font-weight: 600; font-size: 24px; }
h4, .h4 { font-weight: 600; font-size: 20px; }
h5, .h5 { font-weight: 600; font-size: 18px; }
h6, .h6 { font-weight: 600; font-size: 16px; }

@media (min-width: 992px) {
  body { font-size: 22px; }
  p, li, address, dd, dt, td, th { font-size: 22px; }
  h1, .h1 { font-size: 45px; }
  h2, .h2 { font-size: 34px; }
  h3, .h3 { font-size: 30px; }
  h4, .h4 { font-size: 28px; }
  h5, .h5 { font-size: 24px; }
  h6, .h6 { font-size: 22px; }
}

/* Testo "piccolo" per card dense e note: mai sotto 16px (p.17) */
.bf-small, .bf-small p, .bf-small li { font-size: 16px !important; line-height: 1.55; }
@media (min-width: 992px) {
  .bf-small, .bf-small p, .bf-small li { font-size: 18px !important; }
}
/* Didascalie: 14px consentito solo qui (p.17) */
.bf-caption, figcaption { font-size: 14px !important; line-height: 1.45; color: inherit; }

/* Titolo di sezione: Barlow Bold maiuscolo, solo titoli brevi (p.17, p.20) */
.bf-sec-title { font-weight: 700; text-transform: uppercase; }

/* Etichetta: Roboto Bold maiuscolo (p.20) */
.bf-label {
  display: block;
  font-family: var(--bf-font-text);
  font-weight: 700;
  font-size: 14px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
  margin-bottom: .9rem;
}
/* Barra d'accento Giallo sopra al titolo (p.14-15) */
.bf-accent::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--bf-giallo);
  margin-bottom: 1rem;
}
.text-center .bf-accent::before, .bf-accent.text-center::before { margin-left: auto; margin-right: auto; }

/* Parola chiave sottolineata Giallo nei titoli (p.29) */
.bf-hl {
  text-decoration: underline;
  text-decoration-color: var(--bf-giallo);
  text-decoration-thickness: .12em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}

/* Lead */
.bf-lead { font-size: 18px; }
@media (min-width: 992px) { .bf-lead { font-size: 24px; } }

/* --------------------------------------------------------------------------
   3. Grassetti, link, CTA (p.21-22, p.30-32)
   -------------------------------------------------------------------------- */
strong, b { font-weight: 700; }

/* Su Panna / bianco */
.bf-bg-panna strong, .bf-bg-white strong, body strong { color: var(--bf-azzurro-scuro); }

/* Link nel testo: colore del testo + sottolineatura sottile */
a { color: var(--bf-antracite); transition: color .2s, background-color .2s, border-color .2s; }
.bf-text a:not(.btn):not(.bf-link),
p a:not(.btn):not(.bf-link),
li a:not(.btn):not(.bf-link):not(.nav-link):not(.dropdown-item):not(.bf-row-link) {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
label a, figcaption a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p a:not(.btn):not(.bf-link):hover { color: inherit; }

/* Link autonomo: Verde, sottolineato bold (p.21) */
.bf-link {
  display: inline-block;
  font-family: var(--bf-font-text);
  font-weight: 700;
  color: var(--bf-verde) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.bf-link:hover { color: var(--bf-verde) !important; text-decoration-thickness: 3px; }

/* Bottoni (p.21, p.30) */
.btn-bf, .btn-bf-outline {
  --bs-btn-padding-x: 1.6em;
  --bs-btn-padding-y: .95em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--bf-font-title);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 0;
  border: 2px solid transparent;
  box-shadow: none !important;
  transform: none !important;
  white-space: nowrap;
}
@media (min-width: 992px) { .btn-bf, .btn-bf-outline { font-size: 16px; } }

.btn-bf { background: var(--bf-verde); border-color: var(--bf-verde); color: var(--bf-panna) !important; }
.btn-bf:hover, .btn-bf:focus-visible {
  background: transparent; border-color: var(--bf-antracite); color: var(--bf-antracite) !important;
}
.btn-bf-outline { background: transparent; border-color: var(--bf-antracite); color: var(--bf-antracite) !important; }
.btn-bf-outline:hover, .btn-bf-outline:focus-visible {
  background: var(--bf-antracite); color: var(--bf-panna) !important;
}

/* --------------------------------------------------------------------------
   4. Sfondi di sezione e varianti di colore (p.13-15, p.21)
   -------------------------------------------------------------------------- */
.bf-bg-panna { background-color: var(--bf-panna) !important; color: var(--bf-antracite); }
.bf-bg-white { background-color: var(--bf-bianco) !important; color: var(--bf-antracite); }

/* Antracite: testo e titoli Panna, grassetti Azzurro, link Panna */
.bf-bg-dark { background-color: var(--bf-antracite) !important; color: var(--bf-panna); }
.bf-bg-dark :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,p,li,span,small,address,figcaption,label) { color: var(--bf-panna); }
.bf-bg-dark strong, .bf-bg-dark b { color: var(--bf-azzurro); }
.bf-bg-dark a:not(.btn) { color: var(--bf-panna); }
.bf-bg-dark .bf-link { color: var(--bf-panna) !important; }
.bf-bg-dark .btn-bf:hover, .bf-bg-dark .btn-bf:focus-visible { border-color: var(--bf-panna); color: var(--bf-panna) !important; }
.bf-bg-dark .btn-bf-outline { border-color: var(--bf-panna); color: var(--bf-panna) !important; }
.bf-bg-dark .btn-bf-outline:hover { background: var(--bf-panna); color: var(--bf-antracite) !important; }

/* Giallo: tutto il testo Antracite (p.23, p.32) */
.bf-bg-giallo { background-color: var(--bf-giallo) !important; color: var(--bf-antracite); }
.bf-bg-giallo :is(h1,h2,h3,h4,h5,h6,p,li,span,small,label,a,strong,b) { color: var(--bf-antracite); }
.bf-bg-giallo .bf-link { color: var(--bf-antracite) !important; }
.bf-bg-giallo .bf-accent::before { background: var(--bf-antracite); }
.bf-bg-giallo .btn-bf:hover { border-color: var(--bf-antracite); color: var(--bf-antracite) !important; }

/* Ritmo verticale sezioni */
.bf-section { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 992px) { .bf-section { padding-top: 104px; padding-bottom: 104px; } }
.bf-section-sm { padding-top: 40px; padding-bottom: 40px; }

/* Card bianca su Panna (p.14) */
.bf-card {
  background: var(--bf-bianco);
  border: 1px solid var(--bf-bordo);
  border-radius: 0;
  box-shadow: none;
  height: 100%;
}
.bf-card .bf-card-body { padding: 28px; }
@media (min-width: 992px) { .bf-card .bf-card-body { padding: 36px; } }
.bf-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bf-bordo); }
.bf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
a.bf-card { display: flex; flex-direction: column; text-decoration: none; color: var(--bf-antracite); }
a.bf-card:hover .bf-card-img img { transform: scale(1.04); }
a.bf-card:hover { border-color: var(--bf-antracite); }

/* Numerazione Giallo, bold, più grande del testo (p.28) */
.bf-num {
  font-family: var(--bf-font-title);
  font-weight: 700;
  color: var(--bf-giallo);
  font-size: 1.25em;
  line-height: 1;
}
.bf-num-lg { font-family: var(--bf-font-title); font-weight: 700; color: var(--bf-giallo); font-size: 44px; line-height: 1; }

ol.bf-ol { list-style: none; counter-reset: bf; padding-left: 0; margin: 0; }
ol.bf-ol > li { counter-increment: bf; position: relative; padding-left: 2.2em; margin-bottom: .75em; }
ol.bf-ol > li::before {
  content: counter(bf) ".";
  position: absolute; left: 0; top: -.05em;
  font-family: var(--bf-font-title); font-weight: 700; font-size: 1.2em; color: var(--bf-giallo);
}
ul.bf-ul { list-style: none; padding-left: 0; margin: 0; }
ul.bf-ul > li { position: relative; padding-left: 1.6em; margin-bottom: .6em; }
ul.bf-ul > li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .6em; height: .6em; background: var(--bf-giallo);
}

/* Immagini: niente testo sopra le foto (p.17) */
.bf-img { width: 100%; height: auto; display: block; }
.bf-img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --------------------------------------------------------------------------
   5. Header / navigazione
   -------------------------------------------------------------------------- */
.bf-header { background: var(--bf-panna); }
.navbar.bf-nav { background: var(--bf-panna) !important; border-bottom: 1px solid var(--bf-bordo); }
.bf-nav .navbar-brand img { height: 34px; width: auto; }
@media (min-width: 992px) { .bf-nav .navbar-brand img { height: 40px; } }
.bf-nav .navbar-nav .nav-link {
  font-family: var(--bf-font-text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bf-antracite) !important;
}
.bf-nav .navbar-nav .nav-link:hover,
.bf-nav .navbar-nav .nav-link.active {
  text-decoration: underline;
  text-decoration-color: var(--bf-giallo);
  text-decoration-thickness: 3px;
  text-underline-offset: .45em;
}
.navbar-clone.fixed.bf-nav { box-shadow: 0 1px 0 var(--bf-bordo); }

/* Offcanvas mobile su Antracite */
@media (max-width: 1199.98px) {
  .bf-nav .offcanvas-nav { background: var(--bf-antracite) !important; color: var(--bf-panna); }
  .bf-nav .offcanvas-nav .nav-link { color: var(--bf-panna) !important; font-size: 16px; padding: .7rem 0; }
  .bf-nav .offcanvas-nav .offcanvas-footer, .bf-nav .offcanvas-nav .offcanvas-footer a { color: var(--bf-panna); }
}
.bf-nav .hamburger span, .bf-nav .hamburger span::before, .bf-nav .hamburger span::after { background: var(--bf-antracite); }

/* Breadcrumb */
.bf-crumb { font-size: 14px !important; margin-bottom: 1.5rem; }
.bf-crumb a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }

/* --------------------------------------------------------------------------
   6. Componenti pagina
   -------------------------------------------------------------------------- */

/* Hero video home */
.bf-hero-video { position: relative; background: var(--bf-antracite); }
.bf-hero-video .bf-video-frame { position: relative; aspect-ratio: 1041 / 562; width: 100%; overflow: hidden; background: var(--bf-antracite); }
.bf-hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-video-btn {
  position: absolute; right: 20px; bottom: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--bf-panna); background: rgba(41,49,51,.75); color: var(--bf-panna);
  display: grid; place-items: center; font-size: 22px; cursor: pointer;
}
.bf-video-btn:hover { background: var(--bf-antracite); }

/* Riconoscimenti */
.bf-recog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
@media (min-width: 992px) { .bf-recog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bf-recog-item { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.35; min-width: 0; }
.bf-recog-item > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .bf-recog { grid-template-columns: 1fr; gap: 18px; } }
.bf-recog-item img { height: 52px; width: auto; flex: 0 0 auto; }
.bf-recog-big { font-family: var(--bf-font-title); font-weight: 700; font-size: 44px; line-height: 1; color: var(--bf-antracite); }
.bf-stars { color: var(--bf-giallo); letter-spacing: .1em; }

/* Portfolio: striscia scorrevole */
.bf-pf .swiper-slide { width: auto; }
.bf-tile { display: block; text-decoration: none; color: var(--bf-antracite); }
.bf-tile .bf-tile-img { height: 300px; overflow: hidden; background: var(--bf-bordo); }
@media (min-width: 992px) { .bf-tile .bf-tile-img { height: 380px; } }
.bf-tile .bf-tile-img img { height: 100%; width: auto; display: block; transition: transform .5s ease; }
.bf-tile:hover .bf-tile-img img { transform: scale(1.03); }
@media (max-width: 767.98px) { .bf-tile .bf-tile-img img { max-width: calc(100vw - 48px); object-fit: cover; } .bf-tile { max-width: calc(100vw - 48px); } }
.bf-tile .bf-tile-cap { padding-top: 12px; font-size: 16px; line-height: 1.4; }
.bf-tile .bf-tile-cap b { display: block; font-family: var(--bf-font-title); font-weight: 600; font-size: 18px; color: var(--bf-antracite); }
.bf-tile .bf-tile-cap em { font-style: normal; display: block; }

/* Swiper: frecce e pallini nei colori di brand */
.swiper-controls .swiper-button {
  background: var(--bf-antracite) !important; color: var(--bf-panna) !important;
  border-radius: 0 !important; box-shadow: none !important;
}
.swiper-controls .swiper-button:hover { background: var(--bf-verde) !important; }
.swiper-pagination-bullet { background: var(--bf-antracite) !important; opacity: .3; }
.swiper-pagination-bullet-active { background: var(--bf-giallo) !important; opacity: 1; }

/* Elenco servizi con freccia */
.bf-rowlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid currentColor; }
.bf-rowlist > li { border-bottom: 1px solid var(--bf-bordo); margin: 0; }
.bf-bg-dark .bf-rowlist > li { border-color: rgba(248,244,239,.2); }
.bf-row-link {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center;
  padding: 22px 0; text-decoration: none !important; color: inherit !important;
}
.bf-row-link .t { font-family: var(--bf-font-title); font-weight: 600; font-size: 22px; line-height: 1.2; }
@media (min-width: 992px) { .bf-row-link .t { font-size: 28px; } }
.bf-row-link .d { grid-column: 1; font-size: 16px; line-height: 1.45; }
@media (min-width: 992px) { .bf-row-link .d { font-size: 18px; } }
.bf-row-link .a { grid-row: 1 / span 2; grid-column: 2; font-size: 28px; color: var(--bf-giallo); transition: transform .25s; }
.bf-row-link:hover .a { transform: translateX(6px); }
.bf-row-link:hover .t { text-decoration: underline; text-decoration-color: var(--bf-giallo); text-decoration-thickness: 3px; text-underline-offset: .18em; }
.bf-row-link .k { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bf-row-link .tag {
  display: inline-block; margin-left: .5em; padding: 2px 8px; vertical-align: middle;
  font-family: var(--bf-font-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--bf-antracite);
}

/* Indice corsi a griglia */
.bf-course-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 0 32px; }
@media (min-width: 768px) { .bf-course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.bf-course-grid .bf-row-link { padding: 16px 0; }
.bf-course-grid .bf-row-link .t { font-size: 20px; }
@media (min-width: 992px) { .bf-course-grid .bf-row-link .t { font-size: 22px; } }

/* Libro sovrapposto alla foto */
.bf-photo-book { position: relative; padding-bottom: 40px; }
.bf-photo-book .main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bf-photo-book .book { position: absolute; right: -8px; bottom: 0; width: 34%; max-width: 200px; box-shadow: none; }

/* Video formativi */
.bf-video-card { display: block; text-decoration: none; color: var(--bf-antracite); }
.bf-video-card .th { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bf-antracite); }
.bf-video-card .th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bf-video-card:hover .th img { transform: scale(1.04); }
.bf-video-card .th .play {
  position: absolute; left: 16px; bottom: 16px; width: 48px; height: 48px;
  background: var(--bf-panna); color: var(--bf-antracite); display: grid; place-items: center; font-size: 22px;
}
.bf-video-card h4 { font-size: 20px; margin: 14px 0 8px; }
@media (min-width: 992px) { .bf-video-card h4 { font-size: 22px; } }
.bf-tag {
  display: inline-block; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid currentColor; margin-top: 14px;
}

/* Recensioni */
.bf-rev-summary .score { font-family: var(--bf-font-title); font-weight: 700; font-size: 64px; line-height: 1; color: var(--bf-antracite); }
.bf-review { background: var(--bf-bianco); border: 1px solid var(--bf-bordo); padding: 26px; height: 100%; display: flex; flex-direction: column; }
.bf-review .who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bf-review .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bf-review .who b { display: block; color: var(--bf-antracite); font-size: 16px; }
.bf-review .who small { font-size: 14px; }
.bf-review .txt { font-size: 16px !important; line-height: 1.55; margin: 8px 0 0; }
.bf-review .txt.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bf-review .bf-more { margin-top: 10px; align-self: flex-start; background: none; border: 0; padding: 0; font-size: 16px; }
.bf-review .g-ic { font-weight: 700; font-family: var(--bf-font-title); color: var(--bf-antracite); margin-left: auto; font-size: 20px; }

/* Contatti: sezione Giallo con form (p.23-24) */
.bf-form .form-label { font-size: 16px !important; margin-bottom: 4px; font-weight: 400; color: var(--bf-antracite); }
.bf-form .form-control, .bf-form .form-select {
  background: var(--bf-bianco) !important;
  border: 2px solid var(--bf-antracite) !important;
  border-radius: 0 !important;
  color: var(--bf-antracite) !important;
  box-shadow: none !important;
  font-size: 16px !important;
  padding: .7rem .85rem;
}
.bf-form .form-control:focus { outline: 3px solid var(--bf-antracite); outline-offset: 1px; }
.bf-form .form-check-input { border: 2px solid var(--bf-antracite); border-radius: 0; background-color: var(--bf-bianco); }
.bf-form .form-check-input:checked { background-color: var(--bf-antracite); border-color: var(--bf-antracite); }
.bf-form .form-check-label { font-size: 16px !important; }
.bf-form .invalid-feedback { color: var(--bf-antracite); font-weight: 700; font-size: 14px; }
.bf-form .form-control.is-invalid, .was-validated .bf-form .form-control:invalid,
.was-validated.bf-form .form-control:invalid { background-image: none !important; }
.bf-tel { font-family: var(--bf-font-title); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--bf-antracite); text-decoration: none !important; }
@media (min-width: 992px) { .bf-tel { font-size: 45px; } }

/* Accordion FAQ (p.25): bordo Giallo, titolo maiuscolo, icona Azzurro */
.bf-faq .accordion-item { background: transparent; border: 2px solid var(--bf-giallo) !important; border-radius: 0 !important; margin-bottom: 12px; box-shadow: none !important; }
.bf-faq .accordion-button {
  width: 100%; text-align: left; background: transparent !important; box-shadow: none !important;
  padding: 18px 56px 18px 20px; position: relative;
  font-family: var(--bf-font-title); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--bf-antracite) !important; border: 0;
}
@media (min-width: 992px) { .bf-faq .accordion-button { font-size: 18px; } }
.bf-faq .accordion-button::before, .bf-faq .accordion-button::after { display: none !important; }
.bf-faq .accordion-button .ic { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--bf-azzurro); font-size: 26px; line-height: 1; }
.bf-faq .accordion-button .ic::before { content: "+"; font-family: var(--bf-font-title); font-weight: 700; }
.bf-faq .accordion-button:not(.collapsed) { color: var(--bf-azzurro-scuro) !important; }
.bf-faq .accordion-button:not(.collapsed) .ic::before { content: "\2212"; }
.bf-faq .accordion-body { padding: 0 20px 20px; }
.bf-faq .accordion-body p { font-size: 16px; margin: 0; }
@media (min-width: 992px) { .bf-faq .accordion-body p { font-size: 18px; } }

/* Confronto "spesso funziona così / con BF" */
.bf-vs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--bf-bordo); background: var(--bf-bianco); }
.bf-vs > div { padding: 16px 20px; border-top: 1px solid var(--bf-bordo); font-size: 16px; }
@media (min-width: 992px) { .bf-vs > div { font-size: 18px; padding: 18px 26px; } }
.bf-vs > .hd { border-top: 0; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .08em; background: var(--bf-antracite); color: var(--bf-panna); }
.bf-vs > .yes { border-left: 4px solid var(--bf-giallo); font-weight: 700; }
.bf-vs > .no { color: var(--bf-antracite); }

/* Passi metodo */
.bf-step { border-top: 4px solid var(--bf-antracite); padding-top: 18px; height: 100%; }
.bf-step.key { border-top-color: var(--bf-giallo); }
.bf-step .k { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--bf-giallo); color: var(--bf-antracite); padding: 3px 8px; }

/* Demo Google Ads (pagina servizio) */
.bf-ads-demo { background: var(--bf-bianco); border: 1px solid var(--bf-bordo); padding: 24px; }
.bf-ads-demo .q { display: flex; align-items: center; gap: 10px; border: 2px solid var(--bf-antracite); border-radius: 40px; padding: 10px 18px; font-size: 16px; background: var(--bf-panna); }
.bf-ads-demo .q::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--bf-azzurro); border-radius: 50%; flex: 0 0 auto; }
.bf-ads-demo .stage { position: relative; margin: 18px auto 12px; max-width: 300px; aspect-ratio: 9 / 16; overflow: hidden; background: var(--bf-panna); }
.bf-ads-demo .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .4s; }
.bf-ads-demo .stage img.on { opacity: 1; }
.bf-ads-demo .who { text-align: center; font-size: 16px; line-height: 1.4; min-height: 72px; }
.bf-ads-demo .who b { display: block; font-family: var(--bf-font-title); font-size: 20px; color: var(--bf-antracite); }
.bf-ads-demo .who strong { display: block; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.bf-chips button {
  font-family: var(--bf-font-text); font-weight: 700; font-size: 14px; padding: 6px 12px; cursor: pointer;
  background: var(--bf-bianco); color: var(--bf-antracite); border: 2px solid var(--bf-antracite); border-radius: 0;
}
.bf-chips button[aria-pressed="true"] { background: var(--bf-antracite); color: var(--bf-panna); }

/* Prima/dopo (pagina servizi) */
.bf-ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bf-bordo); --pos: 50%; }
.bf-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bf-ba .new { clip-path: inset(0 0 0 var(--pos)); }
.bf-ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--bf-giallo); pointer-events: none; }
.bf-ba .handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; display: grid; place-items: center; background: var(--bf-giallo); color: var(--bf-antracite); font-weight: 700; }
.bf-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.bf-ba-lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

/* Immagine con telefono sovrapposto */
.bf-phone-vis { position: relative; padding-right: 22%; padding-bottom: 28px; }
.bf-phone-vis .bg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bf-phone-vis .bar { position: absolute; left: 0; bottom: 0; width: 46%; height: 8px; background: var(--bf-giallo); }
.bf-phone-vis .phn { position: absolute; right: 0; bottom: 0; width: 34%; border: 6px solid var(--bf-antracite); border-radius: 22px; background: var(--bf-antracite); }

/* Statement */
.bf-quote { font-family: var(--bf-font-title); font-weight: 700; font-size: 32px; line-height: 1.15; quotes: "«" "»"; }
@media (min-width: 992px) { .bf-quote { font-size: 52px; } }

/* Box "nel servizio" */
.bf-box { background: var(--bf-bianco); border: 1px solid var(--bf-bordo); border-top: 4px solid var(--bf-giallo); padding: 28px; }

/* Barra contatti mobile */
.bf-mbar { display: none; }
@media (max-width: 767.98px) {
  .bf-mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; background: var(--bf-antracite); color: var(--bf-panna);
  }
  .bf-mbar a.tel { color: var(--bf-panna); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: .18em; }
  body { padding-bottom: 64px; }
  .bf-mbar .btn-bf:hover { border-color: var(--bf-panna); color: var(--bf-panna) !important; }
}

/* Footer */
.bf-footer { background: var(--bf-antracite); color: var(--bf-panna); }
.bf-footer :is(p, li, address, span, h4) { color: var(--bf-panna); }
.bf-footer h4 { font-family: var(--bf-font-text); font-weight: 700; font-size: 14px !important; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.bf-footer p, .bf-footer li, .bf-footer address { font-size: 16px !important; line-height: 1.6; }
.bf-footer a { color: var(--bf-panna) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.bf-footer .logo { width: 220px; height: auto; }
.bf-footer .bottom { border-top: 1px solid rgba(248,244,239,.2); font-size: 14px !important; }
.bf-footer .social a { text-decoration: none; font-size: 22px; margin-right: 14px; }
.bf-footer .social a i, .offcanvas-nav .social a i { color: var(--bf-panna) !important; }
.bf-footer .social a:hover i { color: var(--bf-azzurro) !important; }

/* Accessibilità */
:focus-visible { outline: 3px solid var(--bf-azzurro-scuro); outline-offset: 2px; }
.bf-bg-dark :focus-visible { outline-color: var(--bf-azzurro); }
.bf-bg-giallo :focus-visible { outline-color: var(--bf-antracite); }
.visually-hidden-focusable:focus { background: var(--bf-antracite); color: var(--bf-panna); padding: 8px 12px; z-index: 2000; }

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

/* ==========================================================================
   7. HOME · replica del prototipo "Home C" (demo.bfenterprise.it/home-claudio)
   Tutte le regole sono limitate a body.bf-home
   ========================================================================== */
.bf-home { --bf-linea: #E2DCD3; font-size: 18px; line-height: 1.5; }
.bf-home p, .bf-home li { font-size: inherit; }
.bf-home main { overflow-x: clip; }
.bf-wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.bf-home .hsec { padding-block: clamp(56px, 8vw, 104px); }
.bf-home p { max-width: 62ch; }

/* Tipografia del prototipo */
.bf-home .sec-n, .bf-home .bf-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--bf-font-text); font-weight: 700; font-size: 13px !important;
  letter-spacing: .16em; text-transform: uppercase; margin: 0;
}
.bf-home .sec-n::before, .bf-home .bf-label::before { content: ""; width: 40px; height: 5px; background: var(--bf-giallo); flex: 0 0 auto; }
.bf-home .bf-accent::before { display: none; }
.bf-home .h2b {
  font-family: var(--bf-font-title); font-weight: 700; font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.02; letter-spacing: -.01em; text-transform: none; max-width: 20ch; margin: 0;
}
.bf-home .mega { font-family: var(--bf-font-title); font-weight: 800; text-transform: uppercase; line-height: .88; letter-spacing: -.02em; margin: 0; }
.bf-home .out { color: transparent; -webkit-text-stroke: 2px var(--bf-antracite); }
.bf-home .yl { background: linear-gradient(transparent 76%, var(--bf-giallo) 76%, var(--bf-giallo) 93%, transparent 93%); }
.bf-home .btn-bf, .bf-home .btn-bf-outline { font-size: 16px; letter-spacing: .06em; padding: 14px 26px; }
.bf-home .btn-bf-outline { padding: 12px 22px; }
.bf-home .bf-link { text-decoration-thickness: from-font; text-underline-offset: 4px; }
.bf-home .bf-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 640px) {
  .bf-home { font-size: 16px; }
  .bf-home .btn-bf, .bf-home .btn-bf-outline { font-size: 14px; }
}

/* Header: voci di menu come nel prototipo (Barlow 700 16px maiuscolo) */
.bf-nav .navbar-nav .nav-link { font-family: var(--bf-font-title) !important; font-weight: 700 !important; font-size: 16px !important; letter-spacing: 0 !important; }
.bf-nav .navbar-nav .nav-link:hover, .bf-nav .navbar-nav .nav-link.active { text-decoration: none !important; box-shadow: inset 0 -4px 0 var(--bf-giallo); }

/* Barra di avanzamento lettura */
.bf-progress { position: fixed; left: 0; top: 0; width: 100%; height: 4px; transform-origin: 0 50%; transform: scaleX(0); background: var(--bf-azzurro); z-index: 1100; pointer-events: none; }

/* Cursore con etichetta (solo puntatori precisi) */
.bf-cur {
  position: fixed; left: 0; top: 0; z-index: 1090; pointer-events: none;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--bf-azzurro); color: var(--bf-antracite);
  display: grid; place-items: center; text-align: center;
  font-family: var(--bf-font-title); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transform: scale(0); transition: transform .25s ease;
}
.bf-cur.on { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .bf-cur { display: none; } }

/* Foto che segue il mouse (elenco servizi) */
.bf-ghost {
  position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; z-index: 1080;
  opacity: 0; transform: translate(-50%, -50%) rotate(-4deg) scale(.9); transition: opacity .25s, transform .25s;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.bf-ghost.on { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
@media (hover: none), (pointer: coarse) { .bf-ghost { display: none; } }

/* Comparsa allo scroll (gli elementi restano visibili se lo script non parte) */
.rv0 { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv0.in { opacity: 1; transform: none; }

/* ---------- TESTATA ---------- */
.hx-stage {
  position: relative; height: min(calc(100svh - 96px), 980px); min-height: 560px; overflow: hidden;
  background: var(--bf-antracite); color: var(--bf-panna); margin-inline: clamp(10px, 1.4vw, 20px); cursor: pointer;
}
.hx-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.08)); transition: transform .2s linear; }
.hx-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41,49,51,.25) 0%, rgba(41,49,51,0) 30%, rgba(41,49,51,.3) 55%, rgba(41,49,51,.88) 100%); }
.hx-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(18px, 4vw, 64px) clamp(26px, 4vw, 56px); display: grid; gap: 18px; cursor: auto; }
.hx-txt .sec-n { color: var(--bf-panna); }
.bf-home .hx-h1 {
  font-family: var(--bf-font-title); font-weight: 800; text-transform: uppercase; color: var(--bf-panna);
  font-size: clamp(40px, 7.4vw, 132px); line-height: .9; letter-spacing: -.02em; margin: 0;
}
.hx-h1 .w { display: inline-block; opacity: 0; transform: translateY(40%); animation: bfWordIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hx-h1 .yl2 { background: linear-gradient(transparent 80%, var(--bf-giallo) 80%, var(--bf-giallo) 94%, transparent 94%); }
@keyframes bfWordIn { to { opacity: 1; transform: none; } }
.hx-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 40px; }
.bf-home .hx-row p { font-size: clamp(16px, 1.4vw, 20px); max-width: 44ch; color: var(--bf-panna); margin: 0; }
.hx-row .btn-bf:hover { color: var(--bf-panna) !important; border-color: var(--bf-panna); }
.hx-ctl {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--bf-panna); background: rgba(41,49,51,.7); color: var(--bf-panna);
  display: grid; place-items: center; cursor: pointer; font-size: 18px; padding: 0;
}
.hx-ctl:hover { background: var(--bf-antracite); }
.hx-scroll { position: absolute; right: clamp(18px, 4vw, 64px); top: 38%; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.hx-scroll::after { content: ""; display: inline-block; width: 1px; height: 48px; background: var(--bf-panna); margin-top: 10px; }
/* Fascia riconoscimenti: stesso fondo Panna della pagina */
.recog2 {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 3vw, 40px); border-top: 1px solid var(--bf-linea); margin-top: clamp(18px, 2.4vw, 30px);
  background: var(--bf-panna);
}
.recog2 .items { display: flex; flex-wrap: wrap; gap: 16px 44px; align-items: center; }
.recog2 .it { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3; }
.recog2 .it b { color: var(--bf-antracite); }
.recog2 .gpb { width: 58px; height: 58px; }
.recog2 .slb { height: 42px; width: auto; }
.recog2 .big { font-family: var(--bf-font-title); font-weight: 800; font-size: 44px; line-height: 1; }
.recog2 .stars { color: var(--bf-giallo); letter-spacing: 1px; }
@media (max-width: 640px) {
  .hx-stage { height: 86vh; min-height: 520px; margin-inline: 0; }
  .bf-home .hx-h1 { font-size: 11vw; }
  .hx-scroll { display: none; }
  .hx-row .btn-bf { width: 100%; }
  .recog2 .items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
  .recog2 .it { flex-direction: column; align-items: flex-start; }
}

/* ---------- PER CHI È: tre colonne editoriali ---------- */
.pc3-h { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.pc3-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--bf-antracite); }
.pc3-c {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; align-content: start;
  padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px) 6px; text-decoration: none; color: var(--bf-antracite) !important; position: relative;
}
.pc3-c + .pc3-c { border-left: 1px solid var(--bf-linea); }
.pc3-c .pic { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; }
.pc3-c .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pc3-c .n { font-family: var(--bf-font-title); font-weight: 800; font-size: 18px; color: var(--bf-giallo); }
.bf-home .pc3-c h3 { font-family: var(--bf-font-title); font-weight: 800; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.bf-home .pc3-c p { font-size: 17px; max-width: 36ch; margin: 0; }
.pc3-c .go { justify-self: start; font-weight: 700; font-size: 16px; color: var(--bf-verde); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }
.pc3-c .go::after { content: "→"; transition: transform .25s; text-decoration: none; }
.pc3-c:hover .pic img { transform: scale(1.06); }
.pc3-c:hover .go::after { transform: translateX(6px); }
.pc3-c::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 6px; background: var(--bf-giallo); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s ease; }
.pc3-c:hover::before, .pc3-c:focus-visible::before { transform: scaleX(1); }
@media (max-width: 900px) {
  .pc3-g { grid-template-columns: 1fr; }
  .pc3-c + .pc3-c { border-left: 0; border-top: 1px solid var(--bf-linea); }
  .pc3-c { grid-template-columns: 120px 1fr; grid-template-rows: auto; column-gap: 16px; padding: 20px 0; }
  .pc3-c .pic { grid-row: 1 / 5; aspect-ratio: 1; margin: 0; }
  .bf-home .pc3-c h3 { font-size: 24px; }
  .bf-home .pc3-c p { font-size: 15px; }
}
@media (max-width: 480px) { .pc3-c { grid-template-columns: 1fr; } .pc3-c .pic { grid-row: auto; aspect-ratio: 16 / 9; } }

/* ---------- PORTFOLIO e VIDEO: nastri a scorrimento continuo ---------- */
.bf-home .pf2 { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px); overflow: hidden; }
.hd2 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 40px; margin-bottom: clamp(26px, 3.6vw, 44px); }
.hd2-t { display: grid; gap: 16px; }
.bf-marquee { display: grid; gap: 14px; overflow: hidden; }
.bf-mrow { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bf-mrow.drag { cursor: grabbing; }
.bf-mrow .track { display: flex; gap: 14px; width: max-content; will-change: transform; align-items: stretch; transform: translate3d(0,0,0); }
.bf-tile2 { flex: none; display: flex; flex-direction: column; background: var(--bf-bianco); border: 1px solid var(--bf-linea); }
.bf-tile2 .im { height: clamp(220px, 22vw, 300px); min-width: 150px; overflow: hidden; background: var(--bf-linea); }
.bf-tile2 .im img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .5s; }
.bf-tile2:hover .im img { transform: scale(1.05); }
.bf-tile2 .cap { display: grid; gap: 2px; padding: 10px 12px 12px; font-size: 14px; line-height: 1.35; min-width: 0; }
.bf-tile2 .cap b { font-family: var(--bf-font-title); font-weight: 700; font-size: 17px; color: var(--bf-antracite); }
.bf-tile2 .cap em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-tile2 .cap .bf-link { font-size: 14px; margin-top: 4px; justify-self: start; }
.bf-home .mhint { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 10px 0 0; max-width: none; }
.mhint::before { content: ""; width: 28px; height: 3px; background: var(--bf-azzurro); }
.bf-vtile { flex: none; width: 300px; background: var(--bf-bianco); border: 1px solid var(--bf-linea); padding-bottom: 14px; }
.bf-vtile .bf-tag, .bf-vtile h4, .bf-vtile .bf-link { margin-left: 14px; margin-right: 14px; }
.bf-vtile .th img { pointer-events: none; }
.bf-vtile h4 { font-size: 19px !important; line-height: 1.2; }
.bf-vtile .bf-link { font-size: 14px; }
@media (max-width: 640px) { .bf-tile2 .im { height: 180px; min-width: 130px; } .bf-vtile { width: 240px; } .bf-vtile h4 { font-size: 16px !important; } }

/* ---------- SERVIZI ---------- */
.sv { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.sv .stick { position: sticky; top: 110px; display: grid; gap: 20px; }
.bf-home .sv-t { font-size: clamp(46px, 6.4vw, 112px); }
.bf-home .sv .stick p { font-size: clamp(17px, 1.4vw, 21px); max-width: 30ch; margin: 0; }
.sv .stick .bf-link { justify-self: start; }
.slist { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.slist li { counter-increment: s; border-top: 1px solid var(--bf-antracite); margin: 0; }
.slist li:last-child { border-bottom: 1px solid var(--bf-antracite); }
.slist a { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 20px; align-items: baseline; padding: clamp(20px, 2.4vw, 30px) 0; text-decoration: none !important; color: var(--bf-antracite) !important; position: relative; }
.slist a::before { content: "0" counter(s); font-family: var(--bf-font-title); font-weight: 800; font-size: 16px; color: var(--bf-azzurro-scuro); grid-row: 1 / 3; }
.slist b { font-family: var(--bf-font-title); font-weight: 800; font-size: clamp(28px, 3.4vw, 52px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; transition: color .25s; color: var(--bf-antracite); }
.bf-home .slist span { grid-column: 2; font-size: 16px; max-width: 42ch; }
.slist i { grid-column: 3; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 30px; transition: transform .3s; }
.slist a:hover b, .slist a:focus-visible b { color: transparent; -webkit-text-stroke: 1.5px var(--bf-antracite); }
.slist a:hover i { transform: translateX(8px) rotate(-30deg); }
.slist .th { display: none; }
@media (hover: none), (pointer: coarse) { .slist .th { display: block; grid-column: 1 / -1; margin-top: 10px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; } }
@media (max-width: 860px) { .sv { grid-template-columns: 1fr; } .sv .stick { position: static; } }

/* ---------- CORSI: indice tipografico ---------- */
.cs2-txt { display: grid; gap: 18px; justify-items: start; }
.bf-home .cs2 .sub { font-family: var(--bf-font-title); font-weight: 600; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; margin: 0; }
.bf-home .cs2-txt > p:not(.sub) { font-size: 17px; max-width: 46ch; margin: 0; }
.cidx { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); border-top: 2px solid var(--bf-antracite); }
.cidx li { margin: 0; }
.cidx a { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding: 18px 4px; border-bottom: 1px solid var(--bf-linea); text-decoration: none !important; color: var(--bf-antracite) !important; position: relative; overflow: hidden; }
.cidx .k { font-family: var(--bf-font-text); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-azzurro-scuro); }
.cidx b { font-family: var(--bf-font-title); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; transition: transform .3s ease; color: var(--bf-antracite); }
.cidx i { font-style: normal; font-size: 22px; transition: transform .3s ease; }
.cidx a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--bf-azzurro); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
.cidx a:hover b { transform: translateX(8px); }
.cidx a:hover i { transform: translateX(6px) rotate(-35deg); }
.cidx a:hover::after, .cidx a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 760px) { .cidx { grid-template-columns: 1fr; } .cidx b { font-size: 20px; } }

/* ---------- CHI SIAMO: foto con card sovrapposta ---------- */
.ab3-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.ab3-pic { grid-column: 5 / 13; grid-row: 1; margin: 0; overflow: hidden; }
.ab3-pic img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ab3-pic:hover img { transform: scale(1.03); }
.ab3-card { grid-column: 1 / 6; max-width: 440px; grid-row: 1; position: relative; z-index: 1; background: var(--bf-panna); padding: clamp(24px, 3vw, 44px) clamp(22px, 3vw, 40px) clamp(24px, 3vw, 40px) 0; display: grid; gap: 18px; justify-items: start; }
.bf-home .ab3-card p { font-size: clamp(16px, 1.3vw, 19px); margin: 0; }
.bf-home .ab3-card .q { font-style: italic; border-left: 4px solid var(--bf-azzurro); padding-left: 14px; font-size: 16px; }
@media (max-width: 900px) {
  .ab3-g { grid-template-columns: 1fr; }
  .ab3-pic, .ab3-card { grid-column: 1; grid-row: auto; }
  .ab3-card { margin: -40px 16px 0; padding: 24px 20px; background: var(--bf-bianco); max-width: none; }
}

/* Recensioni e contatti in home: etichetta come il prototipo */
.bf-home .bf-rev-summary .bf-label { margin-bottom: 18px; }
.bf-home #contatti .bf-label { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  .hx-h1 .w { animation: none; opacity: 1; transform: none; }
  .hx-stage video { transform: none; }
  .rv0 { opacity: 1; transform: none; transition: none; }
}
@media (min-width: 1200px) {
  .bf-nav .navbar-nav .nav-link { padding-left: .65rem !important; padding-right: .65rem !important; }
  .bf-nav .navbar-brand, .bf-nav .navbar-other { width: auto !important; flex: 0 0 auto; }
  .bf-nav .navbar-collapse { flex: 1 1 auto; }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
  .bf-nav .navbar-nav .nav-link { font-size: 14px !important; padding-left: .4rem !important; padding-right: .4rem !important; }
  .bf-nav .navbar-brand img { height: 30px; }
  .bf-nav .btn-bf { padding: .8em 1.2em; }
}
.bf-home .h2b, .bf-home .mega, .bf-home .pc3-c h3, .bf-home h2 { text-wrap: balance; }
.bf-home .bf-bg-giallo .bf-label::before, .bf-home .bf-bg-giallo .sec-n::before { background: var(--bf-antracite); }

/* ==========================================================================
   7b. HOME · allineamento a Figma "HOME CLAUDIO" (frame 1920)
   ========================================================================== */
/* Ritmo verticale più compatto tra le sezioni (Figma: ~90-110px tra un blocco e l'altro) */
.bf-home .hsec, .bf-home .pf2 { padding-block: clamp(32px, 2.6vw, 50px); }
.bf-home .bf-section { padding-block: clamp(32px, 2.6vw, 50px); }
.bf-home .recog2 { margin-top: clamp(18px, 2.6vw, 50px); }

/* Titoletti: testo sopra, barra gialla 40x5 sotto (Figma: Roboto Bold 22px, tracking 2.08px) */
.bf-home .sec-n, .bf-home .bf-label {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  font-size: clamp(15px, 1.15vw, 22px) !important; letter-spacing: .095em; line-height: 1;
}
.bf-home .sec-n::before, .bf-home .bf-label::before { content: none; }
.bf-home .sec-n::after, .bf-home .bf-label::after { content: ""; width: 40px; height: 5px; background: var(--bf-giallo); flex: 0 0 auto; }
.bf-home .bf-bg-giallo .sec-n::after, .bf-home .bf-bg-giallo .bf-label::after { background: var(--bf-antracite); }
.pc3-h, .hd2-t, .cs2-txt, .sv .stick, .ab3-card { row-gap: 10px; }
/* Testata: il titoletto resta in linea con la barretta a sinistra */
.bf-home .hx-txt .sec-n { flex-direction: row; align-items: center; gap: 12px; font-size: 13px !important; letter-spacing: .16em; }
.bf-home .hx-txt .sec-n::before { content: ""; width: 40px; height: 5px; background: var(--bf-giallo); }
.bf-home .hx-txt .sec-n::after { content: none; }
/* Testata: testo introduttivo Barlow Regular (Figma 34/40 a 1920) */
.bf-home .hx-row p { font-family: var(--bf-font-title); font-weight: 400; font-size: clamp(18px, 1.77vw, 34px); line-height: 1.18; max-width: 26em; }

/* Fascia riconoscimenti: titoletto grande, barra sopra */
.bf-home .recog2 > .sec-n { flex-direction: column-reverse; font-size: clamp(20px, 1.77vw, 34px) !important; letter-spacing: .06em; gap: 18px; }

/* Per chi è: niente filetti, titoli 34px ExtraBold */
.pc3-g { border-top: 0; }
.pc3-c + .pc3-c { border-left: 0; }
.pc3-c::before { display: none; }
.bf-home .pc3-c h3 { font-size: clamp(24px, 1.77vw, 34px); line-height: 1.235; letter-spacing: -.012em; }
.bf-home .pc3-c p { line-height: 1.5; }
.pc3-c .go { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pc3-c .go::after { color: var(--bf-verde); font-family: Arial, sans-serif; font-weight: 700; }

/* Portfolio */
.bf-tile2 { border-color: var(--bf-panna); }
.bf-tile2 .cap .bf-link { text-decoration-thickness: 1px; }
.bf-home .mhint { font-size: clamp(15px, 1.15vw, 22px); }
.bf-home .mhint::before { background: var(--bf-giallo); }

/* Servizi: titolo pieno, elenco senza numeri né filetti, frecce verdi */
.bf-home .sv-t { font-size: clamp(46px, 5.83vw, 112px); line-height: .88; }
.bf-home .sv .stick p { font-size: clamp(17px, 1.1vw, 21px); line-height: 1.5; max-width: 17em; }
.slist li, .slist li:last-child { border: 0; }
.slist a { grid-template-columns: 1fr auto; padding: clamp(18px, 2vw, 32px) 0; }
.slist a::before { content: none; }
.bf-home .slist span { grid-column: 1; line-height: 1.5; max-width: 23em; }
.slist b { grid-column: 1; }
.slist i { grid-column: 2; color: var(--bf-verde); font-family: var(--bf-font-text); font-size: clamp(36px, 3.3vw, 64px); line-height: .7; }

/* Corsi: foto verticale con libro inclinato in basso a sinistra (Figma) */
.cs2-g { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.bf-home .cs2 .sub { font-size: clamp(20px, 1.35vw, 26px); }
.bf-home .cs2 .sub-strong strong { font-family: var(--bf-font-title); font-weight: 700; color: var(--bf-azzurro-scuro); }
.cs2-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 6px; }
.cs2-pic { position: relative; max-width: 456px; justify-self: end; width: 100%; }
.cs2-pic .main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.cs2-pic .bk { position: absolute; left: -19%; bottom: -16%; width: 52%; transform: rotate(-8deg); filter: drop-shadow(0 24px 30px rgba(41,49,51,.45)); }
@media (max-width: 860px) { .cs2-g { grid-template-columns: 1fr; } .cs2-pic { justify-self: center; max-width: 380px; } .cs2-pic .bk { left: auto; right: -8%; width: 40%; } }
/* Indice corsi: senza filetti, frecce verdi */
.cidx { border-top: 0; }
.cidx a { border-bottom: 0; padding: 20px 4px; }
.cidx .k { font-size: clamp(13px, .85vw, 16px); letter-spacing: .105em; }
.cidx b { font-size: clamp(22px, 1.56vw, 30px); }
.cidx i { color: var(--bf-verde); font-size: clamp(30px, 2.5vw, 48px); line-height: .7; }

/* Chi siamo: testo a sinistra e foto a destra affiancati, citazione con barra gialla */
.ab3-g { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(24px, 3.6vw, 44px); }
.ab3-card { grid-column: 1; grid-row: 1; max-width: 400px; padding: 0; background: transparent; }
.ab3-pic { grid-column: 2; grid-row: 1; }
.bf-home .ab3-card .q { border-left-color: var(--bf-giallo); }
@media (max-width: 900px) {
  .ab3-g { grid-template-columns: 1fr; }
  .ab3-card, .ab3-pic { grid-column: 1; grid-row: auto; }
  .ab3-pic { order: -1; }
  .ab3-card { margin: 0; padding: 0; background: transparent; max-width: none; }
}

/* Contatti: fascia gialla con titolo gigante, senza form (Figma) */
.ctx { position: relative; overflow: hidden; padding-block: clamp(36px, 3.5vw, 60px) clamp(36px, 3.2vw, 56px); }
.ctx .bf-wrap { position: relative; z-index: 1; display: grid; justify-items: start; }
.ctx-big {
  font-family: var(--bf-font-title) !important; font-weight: 800 !important; text-transform: uppercase;
  font-size: clamp(64px, 12.5vw, 240px) !important; line-height: .8 !important; letter-spacing: -.02em; margin: 14px 0 22px -.04em !important;
  color: var(--bf-antracite) !important;
}
.ctx-big .q { color: var(--bf-panna) !important; }
.bf-home .ctx p { font-size: clamp(17px, 1.15vw, 22px); line-height: 1.5; max-width: 33em; margin: 0 0 22px; }
.ctx-ctas { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.ctx-btn {
  display: inline-flex; align-items: center; gap: 28px; height: 42px; padding: 0 24px;
  font-family: var(--bf-font-text); font-weight: 600; font-size: 14px; text-decoration: none !important; white-space: nowrap;
  border: 1px solid var(--bf-antracite); transition: background .2s, color .2s, border-color .2s;
}
.ctx-btn i { font-size: 20px; transition: transform .25s; }
.ctx-btn:hover i { transform: translateX(4px); }
.ctx-btn--main { background: var(--bf-verde); border-color: var(--bf-verde); color: var(--bf-panna) !important; }
.ctx-btn--main:hover { background: transparent; border-color: var(--bf-antracite); color: var(--bf-antracite) !important; }
.ctx-btn--alt { background: transparent; color: var(--bf-antracite) !important; }
.ctx-btn--alt:hover { background: var(--bf-antracite); color: var(--bf-panna) !important; }
.ctx-ring { position: absolute; right: -12%; top: -83%; width: 40vw; max-width: 772px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--bf-panna); opacity: .5; pointer-events: none; }
@media (max-width: 640px) { .ctx-ring { display: none; } .ctx-btn { white-space: normal; height: auto; padding: 12px 18px; gap: 14px; } }
.bf-home .recog2 { flex-wrap: nowrap; }
.bf-home .recog2 .items { gap: 16px clamp(16px, 2.2vw, 44px); flex-wrap: nowrap; }
.bf-home .recog2 > .sec-n { white-space: nowrap; font-size: clamp(18px, 1.77vw, 34px) !important; }
@media (max-width: 1100px) { .bf-home .recog2, .bf-home .recog2 .items { flex-wrap: wrap; } }
@media (max-width: 640px) { .bf-home .recog2 .items { display: grid; } }
.bf-home .bf-bg-white { background-color: var(--bf-panna) !important; }
.bf-home .swiper-container.nav-bottom { margin-bottom: 24px; }
