/* =====================================================
   Jolly Box ? custom overrides
   Tutte le modifiche custom vanno qui (non in style.css).
   ===================================================== */

/* --- Elza (corpo) ---
   Solo i .woff: i Trial .otf sostituiscono gli accenti (?, ?, ?) con un box. */
@font-face {
  font-family: "Elza";
  src: url("../fonts/Elza_Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Elza";
  src: url("../fonts/Elza_Medium.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Elza";
  src: url("../fonts/Elza_Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Elza";
  src: url("../fonts/Elza_Text_Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Elza";
  src: url("../fonts/Elza_Text_Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --jb-font-heading: "Anton", sans-serif;
  --jb-font-body: "Elza", sans-serif;
  --jb-blue: #00008F;
  --jb-red: #e00817;
  --jb-press-y: 1px;
  --jb-press-scale: 0.97;
}

/* Feedback pressione pulsanti / CTA */
@media (prefers-reduced-motion: no-preference) {
  :is(
    button:not(:disabled),
    .btn,
    .btn_hover,
    input[type="submit"]:not(:disabled),
    input[type="button"]:not(:disabled),
    .jb-nav__btn,
    .jb-linee__nav-btn,
    .jb-news__nav-btn,
    .jb-linee__btn,
    .jb-quote__submit,
    .jb-cta-banner__btn,
    .jb-highlights__cta,
    .jb-settori-panel__cta,
    .jb-settori2__cta,
    .jb-product-hero__cta,
    .jb-news-detail__cta,
    .jb-about-solutions__link,
    .jb-settore-detail__btn,
    .jb-about-impact__cta,
    .jb-local-sticky__call,
    .jb-local-sticky__quote
  ) {
    transition-property: transform, box-shadow, background, background-color, border-color, color, opacity;
    transition-duration: 0.18s;
    transition-timing-function: ease;
  }

  :is(
    button:not(:disabled),
    .btn,
    .btn_hover,
    input[type="submit"]:not(:disabled),
    input[type="button"]:not(:disabled),
    .jb-nav__btn,
    .jb-linee__nav-btn,
    .jb-news__nav-btn,
    .jb-linee__btn,
    .jb-quote__submit,
    .jb-cta-banner__btn,
    .jb-highlights__cta,
    .jb-settori-panel__cta,
    .jb-settori2__cta,
    .jb-product-hero__cta,
    .jb-news-detail__cta,
    .jb-about-solutions__link,
    .jb-settore-detail__btn,
    .jb-about-impact__cta,
    .jb-local-sticky__call,
    .jb-local-sticky__quote
  ):active,
  :is(
    button:not(:disabled),
    .btn,
    .btn_hover,
    input[type="submit"]:not(:disabled),
    input[type="button"]:not(:disabled),
    .jb-nav__btn,
    .jb-linee__nav-btn,
    .jb-news__nav-btn,
    .jb-linee__btn,
    .jb-quote__submit,
    .jb-cta-banner__btn,
    .jb-highlights__cta,
    .jb-settori-panel__cta,
    .jb-settori2__cta,
    .jb-product-hero__cta,
    .jb-news-detail__cta,
    .jb-about-solutions__link,
    .jb-settore-detail__btn,
    .jb-about-impact__cta,
    .jb-local-sticky__call,
    .jb-local-sticky__quote
  ):hover:active {
    transform: translateY(var(--jb-press-y)) scale(var(--jb-press-scale));
  }

  .jb-linee__card:active .jb-linee__btn {
    transform: translateY(var(--jb-press-y)) scale(var(--jb-press-scale));
  }
}

/* Corpo testo */
body {
  font-family: var(--jb-font-body) !important;
}

p,
li,
a,
span,
label,
input,
textarea,
select,
button,
.btn,
.navbar,
.menu > .nav-item > .nav-link,
.f_p,
.f_400,
.f_500,
.f_600 {
  font-family: var(--jb-font-body);
}

/* Titoli */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.sec_title h2,
.seo_sec_title h2,
.banner_top h2,
.payment_banner_content h1,
.company_banner_area .company_banner_content h2,
.app_banner_contentmt h2,
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
  font-family: var(--jb-font-heading) !important;
}

/* --- Fascia highlights (3 box) --- */
.jb-highlights {
  padding: 1rem 0 1rem;
}

.jb-highlights__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.jb-highlights__card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 400px;
  opacity: 0;
  transform: translate3d(0, 56px, 0);
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.65s ease;
  will-change: transform, opacity;
}

.jb-highlights__card.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .jb-highlights__card {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.jb-highlights__card--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0.75rem;
  background-color: var(--jb-blue);
  color: #fff;
  padding: 1.25rem 1.35rem 1.35rem;
  isolation: isolate;
}

.jb-highlights__bg {
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-color: var(--jb-blue);
  background-image: url("../img/jb/sfondo-card2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.3);
  will-change: transform;
  pointer-events: none;
}

.jb-highlights__card--feature > *:not(.jb-highlights__bg) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .jb-highlights__bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }

  .jb-highlights__layer {
    will-change: auto;
    transform: none !important;
  }
}

.jb-highlights__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}

.jb-highlights__media img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
}

.jb-highlights__body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 0;
  padding: 0.35rem 0.15rem 0.15rem 4rem;
}

.jb-highlights__layer {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  will-change: transform;
}

.jb-highlights__card--stat > .jb-highlights__layer {
  justify-content: flex-start;
}

.jb-highlights__card--feature .jb-highlights__layer[data-jb-parallax-layer="mid"] {
  flex: 1 1 auto;
  align-items: flex-start;
}

.jb-highlights__caption {
  margin: 1.25rem 0 auto;
  font-family: var(--jb-font-body);
  font-size: clamp(1.35rem, 1.75vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  width: 100%;
  max-width: 18ch;
  text-align: left;
}

.jb-highlights__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  max-width: 37ch;
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  background: #fff;
  color: #121212 !important;
  font-family: var(--jb-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-right: 25px;
}

.jb-highlights__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  color: #121212 !important;
}

.jb-highlights__cta-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 400;
}

.jb-highlights__card--stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(120, 210, 230, 0.45), transparent 60%),
    radial-gradient(ellipse 70% 55% at 20% 80%, rgba(90, 170, 255, 0.28), transparent 55%),
    linear-gradient(160deg, #eef8fb 0%, #e4f1f6 45%, #dceef5 100%);
}

.jb-highlights__stat {
  margin: 0;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(3.4rem, 5.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #121212;
}

.jb-highlights__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
}

.jb-highlights__tag {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 5px;
  background: #fff;
  color: #121212;
  font-family: var(--jb-font-body);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.jb-highlights__card--stat .jb-highlights__tag:first-child {
  border-radius: 5px 5px 5px 0;
}

.jb-highlights__card--stat .jb-highlights__tag:last-child {
  border-radius: 0 0 5px 5px;
}

.jb-highlights__card--review {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  color: #121212;
  background: #dceef5;
}

.jb-highlights__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 991px) {
  .jb-highlights__grid {
    grid-template-columns: 1fr 1fr;
  }

  .jb-highlights__card--feature {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .jb-highlights {
    padding: 1rem 0 1rem;
  }

  .jb-highlights__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .jb-highlights__card {
    min-height: 400px;
  }

  .jb-highlights__card--feature {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .jb-highlights__media img {
    max-height: 180px;
  }

  .jb-highlights__caption {
    max-width: none;
    margin-top: 1rem;
  }
}

/* --- Pannello settori (scheda + elenco 2 col) --- */
.jb-settori-panel {
  background: #f9f9fc;
  padding: 3rem;
  margin: auto 4.2rem;
  border-radius: 10px;
}

/* Homepage: niente fondo/padding sul pannello settori. Altre pagine invariate. */
body.jb-page--shutter .jb-settori-panel {
  background: none;
  padding: 0;
}

@media (max-width: 767px) {
  body.jb-page--shutter .jb-settori-panel {
    /* allinea a news: gutter container-fluid 0.75rem + padding heading 1.25rem */
    padding-left: calc(0.75rem + 1.25rem);
    padding-right: calc(0.75rem + 1.25rem);
  }
}

.jb-settori-panel__shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 2fr);
  gap: 2.5rem 3rem;
  align-items: stretch;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.jb-settori-panel__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 420px;
  padding: 1.75rem 1.5rem;
  border-radius: 5px;
  background: var(--jb-blue);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.jb-settori-panel__card-bg {
  position: absolute;
  inset: -16%;
  z-index: 0;
  background-color: var(--jb-blue);
  background-image:
    radial-gradient(ellipse 70% 55% at 20% 15%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(0, 0, 0, 0.18), transparent 50%);
  transform: translate3d(0, 0, 0) scale(1.3);
  will-change: transform;
  pointer-events: none;
}

.jb-settori-panel__layer {
  position: relative;
  z-index: 1;
  width: 100%;
  will-change: transform;
}

.jb-settori-panel__layer[data-jb-parallax-layer="front"] {
  margin-top: auto;
}

.jb-settori-panel__card-title {
  margin: 0;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff !important;
  text-transform: uppercase;
}

.jb-settori-panel__card-title em {
  font-family: var(--jb-font-body) !important;
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.jb-settori-panel__card-text {
  margin: 1rem 0 0;
  max-width: 18rem;
  font-family: var(--jb-font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.jb-settori-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  align-self: stretch;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  background: #fff;
  color: #121212 !important;
  font-family: var(--jb-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jb-settori-panel__cta:hover {
  color: #121212 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.jb-settori-panel__cta-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 400;
}

.jb-settori-panel__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-content: start;
  padding: 0.35rem 0.25rem 0.35rem 0;
  overflow: visible;
}

.jb-settori-panel__col {
  overflow: visible;
}

.jb-settori-panel__col-title {
  margin: 0 0 1.25rem;
  font-family: var(--jb-font-body) !important;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: #221E20 !important;
}

.jb-settori-panel__item {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0;
  padding-bottom: 1.3rem;
  padding-top: 1.3rem;
  border-bottom: 1px solid rgba(34, 30, 32, 0.1);
  text-decoration: none !important;
  color: inherit;
  overflow: visible;
  opacity: 0;
  transform: translate3d(0, 110%, 0);
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s ease;
  will-change: transform, opacity;
}

.jb-settori-panel__item.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.jb-settori-panel__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.jb-settori-panel__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 5px;
  background: #eef2fb;
  padding: 0.45rem;
}

.jb-settori-panel__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .jb-settori-panel__item {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.jb-settori-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.jb-settori-panel__copy strong {
  font-family: var(--jb-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #121212;
  margin-bottom: 5px;
}

.jb-settori-panel__copy span {
  display: block;
  max-width: 30ch;
  font-family: var(--jb-font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  color: #6b7280;
}

@media (max-width: 991px) {
  .jb-settori-panel__shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .jb-settori-panel__card {
    min-height: 280px;
  }
}

/* Variante invertita (pagina prodotto): foto larga a SX, box blu a DX */
.jb-settori-panel__shell--invert {
  grid-template-columns: minmax(0, 2fr) minmax(240px, 0.7fr);
}

.jb-settori-panel__photo {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  min-height: 546px;
}

.jb-settori-panel__photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gallery fisarmonica (solo intro prodotto) */
.jb-accordion {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.jb-accordion__panel {
  position: relative;
  flex: 0.22 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 5px;
  transition: flex 1.05s ease-in-out;
}

.jb-accordion__panel:first-child {
  flex: 1.35 1 0;
}

.jb-accordion:hover .jb-accordion__panel {
  flex: 0.22 1 0;
}

.jb-accordion:hover .jb-accordion__panel:hover {
  flex: 1.35 1 0;
}

.jb-accordion__panel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1.05s ease-in-out;
}

.jb-accordion:hover .jb-accordion__panel:hover img,
.jb-accordion:not(:hover) .jb-accordion__panel:first-child img {
  transform: scale(1);
}

@media (max-width: 991px) {
  .jb-settori-panel__shell--invert {
    grid-template-columns: 1fr;
  }

  .jb-settori-panel__photo {
    min-height: 364px;
    order: -1;
  }
}

@media (max-width: 767px) {
  .jb-settori-panel__lists {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Fisarmonica verticale: 1 aperta, chiuse stessa altezza */
  .jb-settori-panel__photo.jb-accordion {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: min(calc(62vh + 6.75rem), calc(460px + 6.75rem));
  }

  .jb-accordion {
    gap: 8px;
  }

  .jb-accordion__panel,
  .jb-accordion__panel:first-child,
  .jb-accordion:hover .jb-accordion__panel,
  .jb-accordion:hover .jb-accordion__panel:first-child,
  .jb-accordion:hover .jb-accordion__panel:hover {
    flex: 0 0 7rem;
    min-height: 0;
    max-height: none;
    cursor: pointer;
  }

  .jb-accordion__panel.is-active,
  .jb-accordion__panel.is-active:first-child,
  .jb-accordion:hover .jb-accordion__panel.is-active,
  .jb-accordion:hover .jb-accordion__panel.is-active:first-child {
    flex: 1 1 0%;
  }

  .jb-accordion__panel img,
  .jb-accordion:not(:hover) .jb-accordion__panel:first-child img {
    transform: scale(1.04);
  }

  .jb-accordion__panel.is-active img {
    transform: scale(1);
  }

  /* Hint tap: gradiente + icona, fade out quando aperta */
  .jb-accordion__panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.35) 15%,
      rgba(0, 0, 0, 0) 25%
    );
    opacity: 1;
    pointer-events: none;
    transition: opacity 1.05s ease-in-out;
  }

  .jb-accordion__panel::before {
    content: "\f002";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #fff;
    font-family: "Font Awesome 5 Free";
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    opacity: 1;
    pointer-events: none;
    transition: opacity 1.05s ease-in-out;
  }

  .jb-accordion__panel.is-active::before,
  .jb-accordion__panel.is-active::after {
    opacity: 0;
  }

  .jb-accordion__panel,
  .jb-accordion__panel img,
  .jb-accordion__panel::before,
  .jb-accordion__panel::after {
    transition-duration: 0.4s;
  }
}

/* Touch tablet (≥768): fasce uguali, niente hover */
@media (hover: none) and (min-width: 768px) {
  .jb-accordion__panel {
    flex: 1 1 0 !important;
  }

  .jb-accordion__panel img {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jb-accordion__panel,
  .jb-accordion__panel img {
    transition: none !important;
  }
}

/* --- Intestazioni sezioni (linee / news) --- */
.jb-linee__head,
.jb-news__head {
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  margin: 0 0 3rem;
  padding-left: 4rem;
  padding-right: 4rem;
  margin-bottom: 60px;
}

.jb-linee__lead,
.jb-news__lead {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.45;
  color: #221E20;
  text-align: left;
}

.jb-linee__lead strong,
.jb-news__lead strong {
  font-weight: 600;
}

.jb-linee__heading,
.jb-news__heading {
  text-align: left;
}

.jb-linee__head .jb-linee__title,
.jb-news__head .jb-news__title {
  font-size: clamp(1.55rem, 2.8vw, 6rem);
  line-height: 1.12;
  text-align: left;
  margin: 0;
  text-transform: uppercase;
}

.jb-linee__head .jb-linee__accent,
.jb-news__head .jb-news__accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--jb-blue);
  paint-order: stroke fill;
}

.jb-linee__nav,
.jb-news__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-height: 1px;
}

.jb-linee__nav-btn,
.jb-news__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #d7d7de;
  background: #fff;
  color: #221E20;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jb-linee__nav-btn:hover,
.jb-news__nav-btn:hover {
  background: var(--jb-blue);
  border-color: var(--jb-blue);
  color: #fff;
}

@media (max-width: 767px) {
  .jb-linee__head,
  .jb-news__head {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-linee__head .jb-linee__title,
  .jb-news__head .jb-news__title {
    font-size: clamp(2.15rem, 8.5vw, 3rem);
  }

  .jb-linee__title br,
  .jb-news__title br {
    display: none;
  }

  .jb-settori-panel {
    margin-left: 0;
    margin-right: 0;
  }

  .jb-news__carousel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-news__card--down {
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .jb-linee__head,
  .jb-news__head {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "lead nav"
      "title title";
    gap: 1.25rem;
  }

  .jb-linee__lead,
  .jb-news__lead {
    grid-area: lead;
  }

  .jb-linee__heading,
  .jb-news__heading {
    grid-area: title;
    text-align: left;
  }

  .jb-linee__head .jb-linee__title,
  .jb-news__head .jb-news__title {
    text-align: left;
  }

  .jb-linee__nav,
  .jb-news__nav {
    grid-area: nav;
  }
}

@media (max-width: 575px) {
  .jb-linee__head,
  .jb-news__head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "title"
      "nav";
  }

  .jb-linee__nav,
  .jb-news__nav {
    justify-content: flex-start;
  }
}

.app_service_item {
  padding: 25px;
  border-radius: 10px;
  transform: scale(1);
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease,
    opacity 0.45s ease;
}

/* Hover spotlight sulle card destinazioni d'uso */
.app_service_area_two {
  overflow: visible;
}

.app_service_area_two .container-fluid {
  overflow: visible;
}

.app_service_area_two .app_service_carousel .owl-stage-outer {
  overflow: visible !important;
  padding: 12px 4px 24px;
  margin: -12px -4px -24px;
}

.app_service_area_two .app_service_carousel .owl-item {
  transition: opacity 0.45s ease;
  opacity: 1;
}

.app_service_area_two .app_service_carousel .owl-stage:hover .owl-item {
  opacity: 0.45;
}

.app_service_area_two .app_service_carousel .owl-stage:hover .owl-item:hover {
  opacity: 1;
  z-index: 4;
}

.app_service_area_two .app_service_carousel .owl-stage:hover .owl-item:hover .app_service_item {
  transform: scale(1.06);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .app_service_item {
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
  }

  .app_service_area_two .app_service_carousel .owl-stage:hover .owl-item:hover .app_service_item {
    transform: none;
  }
}

.app_service_area_two .app_service_item h5.mb-10 {
  margin-bottom: 10px !important;
}

.app_service_area_two .app_service_item h5,
.app_service_area_two .app_service_item h5.f_p {
  font-family: var(--jb-font-body) !important;
}

.app_service_area_two .app_service_item p {
  font-weight: 300;
}

.app_service_area_two .app_service_item .learn_btn_two {
  color: #222d39;
}

.app_service_area_two .app_service_item .learn_btn_two:before {
  background: #4069eb;
}

.app_service_area_two .app_service_item .learn_btn_two:hover,
.app_service_area_two .app_service_item .learn_btn_two.c_violet:hover {
  color: #222d39 !important;
}

.app_service_area_two .app_service_item .learn_btn_two:hover:before,
.app_service_area_two .app_service_item .learn_btn_two.c_violet:hover:before {
  background: #4069eb !important;
}

.learn_btn_two:hover {
  color: #051441 !important;
}

.blog_content .learn_btn_two:hover {
  color: #282835 !important;
}

/* --- About page styles: vedi blocco jb-about in fondo a custom.css --- */

/* Nav carosello destinazioni */
.app_service_area_two > .container {
  overflow: visible;
}

.app_service_area_two .app_service_carousel {
  position: relative;
  padding: 0;
  overflow: visible;
}

.app_service_area_two .app_service_carousel .owl-nav {
  margin: 0;
}

.app_service_area_two .app_service_carousel .owl-prev,
.app_service_area_two .app_service_carousel .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff !important;
  border: 1px solid var(--jb-blue);
  box-shadow: none !important;
  font-size: 14px;
  color: var(--jb-blue) !important;
  line-height: 34px;
  text-align: center;
  margin: 0;
  padding: 0;
  transition: background 0.2s linear, color 0.2s linear;
  z-index: 5;
}

.app_service_area_two .app_service_carousel .owl-prev {
  left: -48px !important;
  right: auto !important;
}

.app_service_area_two .app_service_carousel .owl-next {
  right: -48px !important;
  left: auto !important;
}

.app_service_area_two .app_service_carousel .owl-prev:hover,
.app_service_area_two .app_service_carousel .owl-next:hover {
  background: var(--jb-blue) !important;
  color: #fff !important;
  border-color: var(--jb-blue);
}

/* --- Linee di noleggio (catalogo) --- */
.jb-linee {
  background: #fff;
}

.jb-linee__title {
  font-family: var(--jb-font-heading) !important;
  color: var(--jb-blue);
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: left;
  margin: 0 0 2.5rem;
}

.jb-linee__title span {
  font-family: var(--jb-font-heading) !important;
}

.jb-linee__accent {
  color: var(--jb-red);
}

.jb-linee__head .jb-linee__title {
  margin: 0;
}

.jb-linee__carousel {
  position: relative;
  overflow: visible;
}

.jb-linee__carousel .owl-stage-outer {
  overflow: visible !important;
  padding: 12px 4px 24px;
  margin: -12px -4px -24px;
}

.jb-linee__carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.jb-linee__carousel .owl-item {
  display: flex;
  height: auto;
  transition: opacity 0.45s ease;
  opacity: 1;
}

.jb-linee__carousel .owl-stage:hover .owl-item {
  opacity: 0.85;
}

.jb-linee__carousel .owl-stage:hover .owl-item:hover {
  opacity: 1;
  z-index: 4;
}

.jb-linee__carousel .owl-stage:hover .owl-item .jb-linee__card {
  transform: scale(0.9);
}

.jb-linee__carousel .owl-stage:hover .owl-item:hover .jb-linee__card {
  transform: scale(1);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.22);
}

.jb-linee__carousel .jb-linee__card {
  width: 100%;
  height: 100%;
}

.jb-linee {
  overflow: visible;
}

.jb-linee .container-fluid {
  overflow: visible;
}

.jb-linee__card {
  --jb-linee-bg: #f9f9fc;
  --jb-linee-fg: #221E20;
  --jb-linee-btn-bg: transparent;
  --jb-linee-btn-fg: #221E20;
  --jb-linee-media-h: 180px;
  --jb-linee-text-lines: 4;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 1.4rem 1.35rem 1.3rem;
  border: none;
  border-radius: 5px;
  background: var(--jb-linee-bg);
  color: var(--jb-linee-fg);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease;
}

.jb-linee__card:hover,
.jb-linee__card:focus-visible {
  text-decoration: none;
  color: var(--jb-linee-fg);
}

@media (prefers-reduced-motion: reduce) {
  .jb-linee__card {
    transition: box-shadow 0.2s ease;
  }

  .jb-linee__carousel .owl-stage:hover .owl-item .jb-linee__card,
  .jb-linee__carousel .owl-stage:hover .owl-item:hover .jb-linee__card {
    transform: none;
  }
}

.jb-linee__card--dark {
  --jb-linee-bg: #f9f9fc;
  --jb-linee-fg: #221E20;
  --jb-linee-btn-fg: #221E20;
}

.jb-linee__top {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-bottom: 0.75rem;
  min-height: calc(0.82rem * 1.2 + 0.2rem + 1.35rem * 1.15 * 2);
}

.jb-linee__cat {
  display: block;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
  font-family: var(--jb-font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.2;
  color: #221E20;
}

.jb-linee__name {
  margin: 0;
  font-family: var(--jb-font-body) !important;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: #221E20 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35rem * 1.15 * 2);
}

.jb-linee__media {
  flex: 0 0 var(--jb-linee-media-h);
  height: var(--jb-linee-media-h);
  min-height: var(--jb-linee-media-h);
  max-height: var(--jb-linee-media-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.35rem;
  margin-bottom: 1rem;
  background: transparent;
}

.jb-linee__media img {
  max-width: 100%;
  width: auto;
  height: 150px;
  max-height: 150px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.22));
}

.jb-linee__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: auto;
}

.jb-linee__text {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  color: #221E20;
  text-align: left;
  height: calc(1rem * 1.4 * var(--jb-linee-text-lines));
  min-height: calc(1rem * 1.4 * var(--jb-linee-text-lines));
}

.jb-linee__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.55rem 1rem;
  border-radius: 5px;
  border: 1px solid #221E20;
  background: transparent;
  color: #221E20 !important;
  font-family: var(--jb-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  pointer-events: none;
}

/* --- Slogan "Dove vuoi, quando vuoi" --- */
.jb-slogan {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 0;
}

.jb-slogan__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 28vw, 380px);
  width: 100%;
  margin: 0;
  max-width: none;
}

.jb-slogan__marquee {
  width: 100%;
  overflow: hidden;
  padding-block: 0.1em;
  margin-top: 60px;
}

.jb-slogan__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0.85em;
  animation: jb-slogan-marquee 24s linear infinite;
  will-change: transform;
}

.jb-slogan__text {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--jb-font-heading) !important;
  font-size: calc(100vw / 6.5);
  line-height: 1.2;
  letter-spacing: -0.045em;
  text-align: left;
  text-transform: uppercase;
  color: var(--jb-red);
  white-space: nowrap;
  user-select: none;
  padding-bottom: 0.06em;
  transform-origin: center center;
}

.jb-slogan__outline {
  font-family: inherit !important;
  color: transparent;
  -webkit-text-stroke: 0.01em var(--jb-red);
  paint-order: stroke fill;
}

@keyframes jb-slogan-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - 0.425em), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jb-slogan__track {
    animation: none;
    transform: none;
  }
}

.jb-slogan__photos {
  position: absolute;
  left: 50%;
  top: 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: auto;
}

.jb-slogan__shot {
  --jb-shot-size: clamp(135px, 21.7vw, 261px);
  position: relative;
  margin: 0;
  width: var(--jb-shot-size);
  height: var(--jb-shot-size);
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  background: #eee;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
  isolation: isolate;
  transition:
    width 0.575s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.575s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.575s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.575s cubic-bezier(0.22, 1, 0.36, 1);
}

.jb-slogan__shot-bg {
  position: absolute;
  inset: -16%;
  z-index: 0;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.2);
  will-change: transform;
  pointer-events: none;
}

.jb-slogan__shot-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

.jb-slogan__shot--left {
  transform: translate(22%, 4%) rotate(-3deg);
}

.jb-slogan__shot--right {
  transform: translate(-22%, 4%) rotate(3deg);
}

.jb-slogan__shot--center {
  transform: translateY(2%);
}

/* Highlight di default: centrale (nessun hover sul mazzo) */
.jb-slogan__photos:not(:has(.jb-slogan__shot:hover)) .jb-slogan__shot--center,
.jb-slogan__shot:hover {
  --jb-shot-size: clamp(202px, 31.6vw, 384px);
  z-index: 10;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
}

.jb-slogan__photos:not(:has(.jb-slogan__shot:hover)) .jb-slogan__shot--center {
  transform: translateY(-6%);
}

/* Layering subito in sync con l?ingrandimento (niente delay sullo z-index) */
.jb-slogan__photos:has(.jb-slogan__shot--left:hover) .jb-slogan__shot--center {
  z-index: 3;
}

.jb-slogan__photos:has(.jb-slogan__shot--left:hover) .jb-slogan__shot--right {
  z-index: 1;
}

.jb-slogan__photos:has(.jb-slogan__shot--right:hover) .jb-slogan__shot--center {
  z-index: 3;
}

.jb-slogan__photos:has(.jb-slogan__shot--right:hover) .jb-slogan__shot--left {
  z-index: 1;
}

.jb-slogan__shot--left:hover {
  transform: translate(8%, -10%) rotate(-7deg);
}

.jb-slogan__shot--right:hover {
  transform: translate(-8%, -10%) rotate(7deg);
}

.jb-slogan__shot--center:hover {
  transform: translateY(-10%);
}

/* Solo mobile: marquee più piccolo e più veloce; foto nascoste */
@media (max-width: 767px) {
  .jb-slogan__text {
    font-size: calc(100vw / 3.4);
  }

  .jb-slogan__track {
    animation-duration: 16s;
  }

  .jb-slogan__photos {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jb-slogan__shot {
    transition: none;
  }

  .jb-slogan__shot-bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 575px) {
  .jb-slogan__shot {
    border-width: 3px;
    border-radius: 5px;
  }
}

/* --- News --- */
.jb-news {
  background: #fff;
  overflow: visible;
  padding-top: 60px;
}

.jb-news__title {
  font-family: var(--jb-font-heading) !important;
  color: var(--jb-blue);
  letter-spacing: 0.02em;
}

.jb-news__title span {
  font-family: var(--jb-font-heading) !important;
}

.jb-news__carousel {
  position: relative;
  overflow: visible;
  padding-left: 4rem;
  padding-right: 4rem;
}

.jb-news__carousel .owl-stage-outer {
  overflow: visible !important;
  padding-bottom: 0.5rem;
}

/* Laptop: evita che lo stage Owl gonfi scrollWidth e blocchi lo scroll verticale.
   Large (≥1600) resta overflow:visible come ora. */
@media (max-width: 1599.98px) {
  .jb-linee,
  .jb-linee .container-fluid,
  .jb-linee__carousel,
  .jb-news,
  .jb-news .container-fluid,
  .jb-news__carousel {
    overflow-x: clip;
    max-width: 100%;
  }

  .jb-linee__carousel,
  .jb-news__carousel {
    touch-action: manipulation;
  }

  .jb-linee__carousel .owl-stage-outer,
  .jb-news__carousel .owl-stage-outer {
    overflow: hidden !important;
    touch-action: manipulation;
  }
}

/* Mobile: contain caroselli (niente scroll pagina laterale) + padding anti-taglio */
@media (max-width: 767px) {
  .jb-linee__carousel .owl-stage-outer {
    padding: 12px 0 24px;
    margin: -12px 0 -24px;
  }

  .jb-news__carousel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-news__carousel .owl-item {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
  }

  .jb-news__carousel .jb-news__card {
    max-width: 100%;
    overflow: hidden;
  }

  .jb-linee__carousel,
  .jb-news__carousel,
  .jb-linee__carousel .owl-stage-outer,
  .jb-news__carousel .owl-stage-outer {
    touch-action: manipulation;
  }

  .jb-linee__carousel .owl-stage:hover .owl-item .jb-linee__card,
  .jb-linee__carousel .owl-stage:hover .owl-item:hover .jb-linee__card {
    transform: none;
  }
}

.jb-news__carousel .owl-stage {
  display: flex;
  align-items: flex-start;
}

.jb-news__carousel .owl-item {
  float: none;
  display: flex;
}

.jb-news__carousel .jb-news__card {
  width: 100%;
}

.jb-news__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jb-news__card--down {
  margin-top: 4.5rem;
}

.jb-news__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 2.6;
  background: #eef2fb;
  margin-bottom: 1rem;
  isolation: isolate;
}

.jb-news__media-bg {
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-color: #eef2fb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.15);
  will-change: transform;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .jb-news__media-bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }
}

.jb-news__date {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--jb-font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  color: #9a9aa3;
}

.jb-news__card-title {
  margin: 0 0 0.55rem;
  font-family: var(--jb-font-body) !important;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
  color: #121212;
}

.jb-news__card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.jb-news__card-title a:hover {
  color: var(--jb-blue) !important;
}

.jb-news__excerpt {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.45;
  color: #6b7280;
}

@media (max-width: 991px) {
  .jb-news__card--down {
    margin-top: 2.5rem;
  }
}

@media (max-width: 767px) {
  .jb-news__carousel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-news__card--down {
    margin-top: 0;
  }
}

/* --- CTA banner preventivo --- */
.jb-cta-banner {
  --jb-cta-banner-h: clamp(320px, 42vw, 460px);
  position: relative;
  z-index: 2;
  padding: 2rem 0 0;
  margin-bottom: calc(var(--jb-cta-banner-h) * -0.5);
  background: transparent;
}

.jb-cta-banner .container-fluid {
  padding-left: 4rem;
  padding-right: 4rem;
}

.jb-cta-banner__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--jb-cta-banner-h);
  border-radius: 15px;
  isolation: isolate;
}

.jb-cta-banner__bg {
  position: absolute;
  inset: -16%;
  z-index: 0;
  background-color: #1a3a2a;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.45) 100%),
    url("../img/jb/cta.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.3);
  will-change: transform;
  pointer-events: none;
}

.jb-cta-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  padding: 3rem 1.5rem;
  gap: 0;
}

.jb-cta-banner__layer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.jb-cta-banner__layer[data-jb-parallax-layer="front"] {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .jb-cta-banner__bg,
  .jb-settori-panel__card-bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }

  .jb-cta-banner__layer,
  .jb-settori-panel__layer {
    will-change: auto;
    transform: none !important;
  }
}

.jb-cta-banner__title {
  margin: 0 0 0.85rem;
  font-family: var(--jb-font-body) !important;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.jb-cta-banner__text {
  margin: 0 0 1.75rem;
  font-family: var(--jb-font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
}

.jb-cta-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 2rem;
  border-radius: 5px;
  background: #fff;
  color: #121212 !important;
  font-family: var(--jb-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.jb-cta-banner__btn:hover {
  background: #f4f4f4;
  color: #121212 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

@media (max-width: 767px) {
  .jb-cta-banner {
    --jb-cta-banner-h: 300px;
  }

  .jb-cta-banner .container-fluid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-cta-banner__panel {
    border-radius: 18px;
  }

  .jb-cta-banner__content {
    padding: 2.25rem 1.15rem;
  }

  body.jb-page--shutter .payment_footer_area,
  .payment_footer_area.jb_footer_light {
    padding-top: calc(300px * 0.5 + 2rem);
  }

  body.jb-page--contatti .payment_footer_area.jb_footer_light,
  body.jb-page--settore .payment_footer_area.jb_footer_light,
  body.jb-page--seo-local .payment_footer_area.jb_footer_light {
    padding-top: 3rem;
  }
}
/* Pulsanti CTA */
.btn_hover.btn_four {
  font-family: var(--jb-font-body) !important;
  border-radius: 5px !important;
}

.payment_footer_area.jb_footer_light .f_widget.company_widget p {
  font-weight: 300;
}

.payment_footer_area.jb_footer_light .f_widget.company_widget .jb-footer__tagline {
  margin: 1.75rem 0 1.35rem;
  max-width: 22rem;
  font-family: var(--jb-font-body);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.payment_footer_area.jb_footer_light .f_widget.company_widget .jb-footer__social {
  margin: 0 0 1.5rem;
}

.payment_footer_area.jb_footer_light .f_widget.company_widget .jb-footer__social a {
  color: #fff;
}

.payment_footer_area.jb_footer_light .jb-footer__contacts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment_footer_area.jb_footer_light .jb-footer__contacts li {
  margin: 0 0 0.7rem;
  font-family: var(--jb-font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.payment_footer_area.jb_footer_light .jb-footer__contacts a {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
}

.payment_footer_area.jb_footer_light .jb-footer__contacts a:hover {
  color: #fff !important;
}

.payment_footer_area.jb_footer_light .f_widget.company_widget .jb-footer__legal {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.payment_footer_area.jb_footer_light .f_widget .f-title {
  font-family: var(--jb-font-body) !important;
  font-size: 20px !important;
  letter-spacing: 0.5px;
  color: #fff !important;
}

.payment_footer_area.jb_footer_light .f_widget .f-title .jb-footer__accent {
  color: #fff;
  font-family: inherit;
}

.payment_footer_area.jb_footer_light .f_widget.about-widget .f_list li,
.payment_footer_area.jb_footer_light .f_widget.about-widget .f_list li a {
  font-family: var(--jb-font-body) !important;
  margin-bottom: 5px;
}

.payment_footer_area {
  padding: 220px 0px 0;
}

.payment_footer_area.gadget_footer_area.jb_footer_light {
  position: relative;
  overflow: hidden;
  background: #221E20;
}

.payment_footer_area.jb_footer_light .container-fluid {
  padding-left: 4rem;
  padding-right: 4rem;
}

.payment_footer_area.jb_footer_light .w_color {
  color: #fff;
}

.payment_footer_area.jb_footer_light .f_widget.company_widget p {
  color: rgba(255, 255, 255, 0.65);
}

.payment_footer_area.gadget_footer_area.jb_footer_light .f_widget.company_widget a {
  color: #fff;
}

.payment_footer_area.gadget_footer_area.jb_footer_light .f_widget.company_widget a:hover {
  color: var(--jb-red);
}

.payment_footer_area.jb_footer_light .f_widget.about-widget .f_list li a {
  color: rgba(255, 255, 255, 0.7);
}

.payment_footer_area.jb_footer_light .footer_top_six .f_widget.about-widget .f_list li a:before {
  background: #fff;
}

.payment_footer_area.jb_footer_light .footer_top_six .f_widget.about-widget .f_list li a:hover,
.payment_footer_area.gadget_footer_area.jb_footer_light .f_widget.about-widget .f_list li a:hover {
  color: #fff;
}

.payment_footer_area.jb_footer_light .footer_top_six .social-widget .f_social_icon a,
.payment_footer_area.jb_footer_light .jb-footer__social a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: center;
}

.payment_footer_area.jb_footer_light .jb-footer__social a.fab {
  font-family: "Font Awesome 5 Brands" !important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.payment_footer_area.jb_footer_light .footer_top_six .social-widget .f_social_icon a:hover,
.payment_footer_area.gadget_footer_area.jb_footer_light .f_widget.social-widget .f_social_icon a:hover,
.payment_footer_area.jb_footer_light .jb-footer__social a:hover {
  background: var(--jb-red);
  color: #fff;
}

body.jb-page--shutter .payment_footer_area,
.payment_footer_area.jb_footer_light {
  padding-top: calc(clamp(320px, 42vw, 550px) * 0.5 + 2.5rem);
}

body.jb-page--contatti .payment_footer_area.jb_footer_light,
body.jb-page--settore .payment_footer_area.jb_footer_light,
body.jb-page--seo-local .payment_footer_area.jb_footer_light {
  padding-top: 4rem;
}

.jb-footer__mark {
  display: block;
  width: 100%;
  margin: -9rem 0 0;
  padding: 0 1rem;
  font-family: var(--jb-font-heading) !important;
  font-size: 20rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
  paint-order: stroke fill;
  transform: translateY(19.8%);
}

/* Laptop: mark footer. Large (≥1600) invariato. */
@media (max-width: 1599.98px) and (min-width: 992px) {
  .jb-footer__mark {
    font-size: 16rem;
  }
}

@media (max-width: 767px) {
  .payment_footer_area.jb_footer_light .container-fluid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-footer__mark {
    margin-top: -3rem;
    font-size: 4rem;
    transform: translateY(16%);
  }

  .jb_footer_light .footer_top_six .row {
    flex-direction: column;
  }

  .jb_footer_light .footer_top_six .jb-footer__col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .jb_footer_light .footer_top_six .jb-footer__col--brand {
    order: 1;
  }

  .jb_footer_light .footer_top_six .jb-footer__col--contacts {
    order: 2;
  }

  .jb_footer_light .footer_top_six .jb-footer__col--nav {
    order: 3;
  }

  .jb_footer_light .footer_top_six .jb-footer__col--products {
    order: 4;
  }
}
/* --- Hero tapparella (index-animation) --- */
body.jb-page--shutter .body_wrapper {
  overflow: visible;
}

html.jb-smooth-scroll,
html.jb-scroll-native {
  scroll-behavior: auto !important;
}

body.jb-page--shutter {
  overscroll-behavior-y: none;
}

body.jb-page--product {
  overscroll-behavior-y: none;
}

/* --- Header navigazione --- */
.jb-header .jb-nav.navbar {
  display: block;
  padding: 0;
  flex-wrap: nowrap;
}

.jb-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0.85rem 4rem !important;
  box-sizing: border-box;
}

.jb-nav__brand.navbar-brand {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0;
}

.jb-nav__toggler {
  position: relative;
  z-index: 2;
  margin-left: auto;
}

.jb-nav__kicker,
.jb-nav__close,
.jb-nav__badge {
  display: none;
}

.jb-nav__collapse.navbar-collapse {
  flex-grow: 0;
}

.jb-nav__bar {
  display: flex;
  align-items: center;
  width: 100%;
}

.jb-nav__menu.navbar-nav,
.jb-nav__contact.navbar-nav {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0 !important;
  padding: 0;
}

.jb-nav__menu .nav-item,
.jb-nav__contact .nav-item {
  margin: 0;
  white-space: nowrap;
}

.jb-nav__menu .nav-link,
.jb-nav__contact .nav-link {
  white-space: nowrap;
}

.jb-header .jb-nav__menu > .nav-item > .nav-link {
  text-transform: uppercase;
}

.jb-header .menu > .nav-item + .nav-item {
  margin-left: 25px;
}

.jb-nav__contact .jb-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 1.2rem !important;
  border-radius: 5px;
  background: var(--jb-blue);
  color: #fff !important;
  font-family: var(--jb-font-body);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jb-nav__contact .jb-nav__btn::before,
.jb-nav__contact .jb-nav__btn::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
}

.jb-nav__contact .jb-nav__btn:hover,
.jb-nav__contact .jb-nav__btn:focus {
  background: #000070;
  color: #fff !important;
  text-decoration: none !important;
}

.jb-nav__contact .nav-item.active .jb-nav__btn {
  background: #000070;
}

/* Dropdown: Elza + testo scuro su bianco */
.jb-header .dropdown-menu > .nav-item > .nav-link {
  font-family: var(--jb-font-body) !important;
  font-weight: 400;
  color: #221E20 !important;
}

.jb-header .dropdown-menu > .nav-item:hover > .nav-link,
.jb-header .dropdown-menu > .nav-item:focus > .nav-link,
.jb-header .dropdown-menu > .nav-item.active > .nav-link {
  color: var(--jb-blue) !important;
}

body.jb-page--shutter.jb-over-shutter .jb-nav__contact .jb-nav__btn {
  background: #fff !important;
  color: var(--jb-blue) !important;
}

body.jb-page--shutter.jb-over-shutter .jb-nav__contact .jb-nav__btn:hover,
body.jb-page--shutter.jb-over-shutter .jb-nav__contact .jb-nav__btn:focus {
  background: #f0f0f0 !important;
  color: var(--jb-blue) !important;
}

@media (min-width: 992px) {
  .jb-nav__scroll {
    display: contents;
  }

  .jb-header .navbar-expand-lg .jb-nav__collapse.navbar-collapse {
    display: block !important;
    position: static;
    flex-basis: auto;
    flex-grow: 1;
    width: auto;
    height: auto !important;
    overflow: visible !important;
  }

  .jb-nav__toggler {
    display: none !important;
  }

  .jb-nav__bar {
    position: static;
    display: block;
    width: 100%;
    min-height: 0;
  }

  /* Menu centrato sulla viewport della barra (rispetto a jb-nav__inner) */
  .jb-nav__menu.navbar-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    gap: 0.2rem;
  }

  /* Contatti a destra della barra */
  .jb-nav__contact.navbar-nav {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    justify-content: flex-end;
  }

  /* Link → bottone all’hover (solo header non sticky); con dropdown resta attaccato */
  .jb-header .jb-nav__menu > .nav-item {
    padding-top: 0;
    padding-bottom: 0;
  }

  .jb-header .jb-nav__menu > .nav-item:hover,
  .jb-header .jb-nav__menu > .nav-item:focus-within,
  .jb-header .jb-nav__menu > .nav-item.show {
    z-index: 20;
  }

  .jb-header .jb-nav__menu > .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem !important;
    border-radius: 5px;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease;
  }

  .jb-header .jb-nav__menu > .nav-item > .nav-link::before,
  .jb-header .jb-nav__menu > .nav-item > .nav-link::after,
  .jb-header .jb-nav__menu > .nav-item > .dropdown-toggle::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
  }

  /* Pulsante bianco + testo blu: solo header non sticky (esclusi settori/prodotti/contatti) */
  body.jb-page:not(.jb-page--settori2):not(.jb-page--prodotti):not(.jb-page--contatti) .jb-header:not(.navbar_fixed) .jb-nav__menu > .nav-item:hover > .nav-link,
  body.jb-page:not(.jb-page--settori2):not(.jb-page--prodotti):not(.jb-page--contatti) .jb-header:not(.navbar_fixed) .jb-nav__menu > .nav-item:focus-within > .nav-link,
  body.jb-page:not(.jb-page--settori2):not(.jb-page--prodotti):not(.jb-page--contatti) .jb-header:not(.navbar_fixed) .jb-nav__menu > .nav-item.show > .nav-link {
    background: #fff !important;
    color: var(--jb-blue) !important;
    box-shadow: 0 6px 18px rgba(14, 0, 40, 0.08);
  }

  body.jb-page:not(.jb-page--settori2):not(.jb-page--prodotti):not(.jb-page--contatti) .jb-header:not(.navbar_fixed) .jb-nav__menu > .nav-item.submenu:hover > .nav-link,
  body.jb-page:not(.jb-page--settori2):not(.jb-page--prodotti):not(.jb-page--contatti) .jb-header:not(.navbar_fixed) .jb-nav__menu > .nav-item.submenu:focus-within > .nav-link,
  body.jb-page:not(.jb-page--settori2):not(.jb-page--prodotti):not(.jb-page--contatti) .jb-header:not(.navbar_fixed) .jb-nav__menu > .nav-item.submenu.show > .nav-link {
    border-radius: 5px 5px 0 0;
    box-shadow: none;
    position: relative;
    z-index: 2;
  }

  .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu {
    left: 0;
    right: auto;
    top: calc(100% - 1px);
    margin: 0;
    padding: 0.55rem 0 0.75rem;
    min-width: 12.5rem;
    border: 0;
    border-top: 0;
    border-radius: 0 5px 5px 5px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(14, 0, 40, 0.1);
    /* niente ombra sopra: resta solo laterale + inferiore */
    clip-path: inset(0 -36px -36px -36px);
    transform: translateY(8px);
  }

  .jb-header .jb-nav__menu > .nav-item.submenu:hover > .dropdown-menu,
  .jb-header .jb-nav__menu > .nav-item.submenu:focus-within > .dropdown-menu,
  .jb-header .jb-nav__menu > .nav-item.submenu.show > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Sticky (o settori/prodotti always-white): niente effetto pulsante; dropdown più in basso */
  body.jb-page .jb-header.navbar_fixed .jb-nav__menu > .nav-item:hover > .nav-link,
  body.jb-page .jb-header.navbar_fixed .jb-nav__menu > .nav-item:focus-within > .nav-link,
  body.jb-page .jb-header.navbar_fixed .jb-nav__menu > .nav-item.show > .nav-link,
  body.jb-page--settori2 .jb-header .jb-nav__menu > .nav-item:hover > .nav-link,
  body.jb-page--settori2 .jb-header .jb-nav__menu > .nav-item:focus-within > .nav-link,
  body.jb-page--settori2 .jb-header .jb-nav__menu > .nav-item.show > .nav-link,
  body.jb-page--prodotti .jb-header .jb-nav__menu > .nav-item:hover > .nav-link,
  body.jb-page--prodotti .jb-header .jb-nav__menu > .nav-item:focus-within > .nav-link,
  body.jb-page--prodotti .jb-header .jb-nav__menu > .nav-item.show > .nav-link,
  body.jb-page--contatti .jb-header .jb-nav__menu > .nav-item:hover > .nav-link,
  body.jb-page--contatti .jb-header .jb-nav__menu > .nav-item:focus-within > .nav-link,
  body.jb-page--contatti .jb-header .jb-nav__menu > .nav-item.show > .nav-link {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 5px;
  }

  .jb-header.navbar_fixed .jb-nav__menu > .nav-item.submenu .dropdown-menu,
  body.jb-page--settori2 .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu,
  body.jb-page--prodotti .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu,
  body.jb-page--contatti .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu {
    top: calc(100% + 0.85rem);
    border-radius: 5px;
    box-shadow: 0 10px 28px rgba(14, 0, 40, 0.1);
    clip-path: none;
  }

  /* Ponte invisibile per raggiungere il dropdown staccato */
  .jb-header.navbar_fixed .jb-nav__menu > .nav-item.submenu::after,
  body.jb-page--settori2 .jb-header .jb-nav__menu > .nav-item.submenu::after,
  body.jb-page--prodotti .jb-header .jb-nav__menu > .nav-item.submenu::after,
  body.jb-page--contatti .jb-header .jb-nav__menu > .nav-item.submenu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.85rem;
  }

  .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu > .nav-item {
    padding: 0;
    margin: 0;
  }

  .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu > .nav-item:first-child,
  .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu > .nav-item:last-child {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu > .nav-item > .nav-link {
    display: block;
    padding: 0.45rem 1.1rem !important;
    font-family: var(--jb-font-body) !important;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    color: #221E20 !important;
    white-space: nowrap;
  }

  .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu > .nav-item:hover > .nav-link,
  .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu > .nav-item:focus > .nav-link,
  .jb-header .jb-nav__menu > .nav-item.submenu .dropdown-menu > .nav-item.active > .nav-link {
    color: var(--jb-blue) !important;
  }
}

/* Laptop: spazio laterale tra le voci del menù principale. Large (≥1600) invariato. */
@media (max-width: 1599.98px) and (min-width: 992px) {
  .jb-header .menu > .nav-item + .nav-item {
    margin-left: 10px;
  }

  .jb-nav__menu.navbar-nav {
    gap: 0;
  }
}

@media (max-width: 991px) {
  body.is-nav-open {
    overflow: hidden;
  }

  .jb-header.header_area,
  body.is-nav-open .jb-header.header_area,
  body.is-nav-open .jb-header.header_area.navbar_fixed {
    z-index: 40;
    overflow: visible;
  }

  body.is-nav-open .jb-header.header_area,
  body.is-nav-open .jb-header.header_area.navbar_fixed {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    box-shadow: none !important;
  }

  body.is-nav-open .jb-header .sticky_logo img:first-child {
    display: none !important;
  }

  body.is-nav-open .jb-header .sticky_logo img + img {
    display: block !important;
  }

  .jb-nav__inner {
    flex-wrap: nowrap;
    padding: 0.85rem 1.25rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .jb-nav__brand,
  .jb-nav__toggler {
    z-index: 3;
  }

  .jb-nav__toggler:not(.collapsed) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin-left: auto;
    padding: 0.42rem 0.8rem 0.42rem 0.95rem;
    border: 0;
    border-radius: 6px;
    background: #111;
  }

  .jb-nav__toggler:not(.collapsed) .menu_toggle {
    display: none;
  }

  .jb-nav__toggler:not(.collapsed) .jb-nav__close {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-family: var(--jb-font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
  }

  .jb-nav__close-x {
    position: relative;
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    flex: 0 0 auto;
  }

  .jb-nav__close-x::before,
  .jb-nav__close-x::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1.5px;
    height: 100%;
    background: #fff;
    transform-origin: center;
  }

  .jb-nav__close-x::before {
    transform: translateX(-50%) rotate(45deg);
  }

  .jb-nav__close-x::after {
    transform: translateX(-50%) rotate(-45deg);
  }

  .jb-header .navbar-collapse,
  .jb-header .menu_four .navbar-collapse,
  .jb-nav__collapse.navbar-collapse,
  .jb-nav__collapse.navbar-collapse.collapsing,
  .jb-nav__collapse.navbar-collapse.collapse:not(.show) {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    flex-basis: auto;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    background: #f0f0f0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  }

  .jb-nav__collapse.navbar-collapse.show,
  .jb-nav__collapse.navbar-collapse.collapsing {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .jb-nav__scroll {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 5.75rem 0 max(1.15rem, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .jb-nav__collapse.navbar-collapse.is-dropdown-open .jb-nav__scroll {
    justify-content: flex-start;
  }

  .jb-nav__bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 0;
    width: 100%;
    margin-top: auto;
    padding: 0;
    counter-reset: jb-nav -1;
  }

  .jb-header .jb-nav__menu.menu,
  .jb-header .jb-nav__contact.menu,
  .jb-nav__menu.navbar-nav,
  .jb-nav__contact.navbar-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    background: transparent;
  }

  .jb-nav__menu > .nav-item,
  .jb-nav__contact > .nav-item {
    counter-increment: jb-nav;
  }

  .jb-header .menu > .nav-item,
  .jb-header .menu > .nav-item + .nav-item,
  .jb-header .jb-nav__contact .nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    border-top: 1px solid #d5d5d5;
  }

  .jb-header .jb-nav__contact .nav-item {
    border-bottom: 1px solid #d5d5d5;
  }

  .jb-header .menu > .nav-item::before,
  .jb-header .jb-nav__contact .nav-item::before {
    content: counter(jb-nav, decimal-leading-zero);
    flex: 0 0 auto;
    align-self: start;
    min-width: 1.55rem;
    margin: 20px 0.7rem 0 1.25rem;
    color: #111;
    font-family: var(--jb-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
  }

  .jb-header .menu > .nav-item > .nav-link,
  .jb-header .jb-nav__contact .nav-item > .nav-link,
  .jb-header .jb-nav__contact .jb-nav__btn,
  body.jb-page .jb-header .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page .jb-header.navbar_fixed .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page .jb-header.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn,
  .jb-header .menu > .nav-item:hover > .nav-link,
  .jb-header .menu > .nav-item:focus-within > .nav-link,
  .jb-header .jb-nav__contact .nav-item:hover > .nav-link,
  .jb-header .jb-nav__contact .nav-item:hover .jb-nav__btn,
  body.jb-page .jb-header .jb-nav__menu > .nav-item:hover > .nav-link,
  body.jb-page .jb-header .jb-nav__contact .nav-item:hover .jb-nav__btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0.92rem 1.25rem 0.92rem 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #111 !important;
    font-family: var(--jb-font-body) !important;
    font-size: clamp(1.35rem, 6.5vw, 1.85rem) !important;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
    text-transform: none;
    text-decoration: none !important;
    white-space: normal;
    transform: none !important;
  }

  .jb-header .menu > .nav-item > .nav-link::before,
  .jb-header .menu > .nav-item > .nav-link::after,
  .jb-header .menu > .nav-item.active > .nav-link::before,
  .jb-header .menu > .nav-item.active > .nav-link::after,
  .jb-header .menu > .nav-item:hover > .nav-link::before,
  .jb-header .menu > .nav-item:hover > .nav-link::after,
  .jb-header .menu > .nav-item > .dropdown-toggle::after,
  .jb-header .jb-nav__contact .jb-nav__btn::before,
  .jb-header .jb-nav__contact .jb-nav__btn::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: 0 !important;
  }

  .jb-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    margin-left: 0.55rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    transform: none;
  }

  .jb-header .menu > .nav-item.active > .nav-link {
    color: var(--jb-red) !important;
  }

  .jb-header .w_menu .nav-item:hover > .nav-link,
  .jb-header.menu_four .menu > .nav-item:hover > .nav-link,
  .jb-header .menu_four .menu > .nav-item:hover > .nav-link {
    color: #111 !important;
  }

  .jb-header .menu > .nav-item.active:hover > .nav-link {
    color: var(--jb-red) !important;
  }

  .jb-header .menu > .nav-item.submenu {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .jb-header .menu > .nav-item.submenu .dropdown-menu {
    display: none !important;
  }

  .jb-header .menu > .nav-item.submenu.is-open > .dropdown-menu {
    display: block !important;
    position: static !important;
    float: none !important;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 1.25rem 0.7rem calc(1.25rem + 1.55rem + 0.7rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    clip-path: none;
  }

  .jb-header .menu > .nav-item.submenu.is-open > .dropdown-menu > .nav-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .jb-header .menu > .nav-item.submenu.is-open > .dropdown-menu > .nav-item > .nav-link,
  body.jb-page .jb-header .menu > .nav-item.submenu.is-open > .dropdown-menu > .nav-item > .nav-link {
    display: block !important;
    width: 100%;
    padding: 0.45rem 0 !important;
    color: #111 !important;
    font-family: var(--jb-font-body) !important;
    font-size: 1rem !important;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .jb-header .navbar-collapse,
  .jb-nav__collapse.navbar-collapse {
    transition: none;
  }
}

@media (max-height: 420px) {
  .jb-header .navbar-collapse,
  .jb-header .menu_four .navbar-collapse,
  .jb-nav__collapse.navbar-collapse {
    max-height: none !important;
    overflow: hidden !important;
  }

  .jb-nav__scroll {
    overflow-y: auto;
  }
}

/* Header trasparente sopra l?animazione (mai stile navbar_fixed bianco) */
body.jb-page--shutter.jb-over-shutter .header_area.navbar_fixed {
  background-color: transparent !important;
  box-shadow: none !important;
}

body.jb-page--shutter.jb-over-shutter .header_area.navbar_fixed .sticky_logo img {
  display: block;
}

body.jb-page--shutter.jb-over-shutter .header_area.navbar_fixed .sticky_logo img + img {
  display: none;
}

body.jb-page--shutter.jb-over-shutter .header_area.navbar_fixed .jb-nav__menu > .nav-item > .nav-link {
  color: #fff;
}

body.jb-page--shutter.jb-over-shutter .header_area.navbar_fixed .menu_four .menu_toggle .hamburger span,
body.jb-page--shutter.jb-over-shutter .header_area.navbar_fixed .menu_four .menu_toggle .hamburger-cross span {
  background: #fff;
}

.jb-shutter {
  position: relative;
  /* altezza impostata da JS in base alle sole discese tapparella */
  height: 440vh;
  margin: 0;
  padding: 0;
}

.jb-shutter__track {
  height: 100%;
}

.jb-shutter__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--jb-blue);
}

.jb-shutter__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, -100%, 0);
  will-change: transform;
  z-index: 1;
}

.jb-shutter__panel.is-base {
  transform: translate3d(0, 0, 0);
  z-index: 1;
}

.jb-shutter__panel--blue {
  background: var(--jb-blue);
  z-index: 1;
}

.jb-shutter__panel--red {
  background: var(--jb-red);
  z-index: 3;
}

.jb-shutter__panel--anthracite {
  background: #221E20;
  z-index: 5;
}

/* display:contents ? ogni foto compete nello stacking del sticky */
.jb-shutter__photos {
  display: contents;
}

.jb-shutter__photo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(520px, 70vw);
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

/* Sopra la tapparella corrente, sotto quella successiva */
.jb-shutter__photo[data-photo="0"] {
  z-index: 2;
  max-width: min(680px, 82vw);
  max-height: 82vh;
}

.jb-shutter__photo[data-photo="1"] {
  z-index: 4;
}

.jb-shutter__photo[data-photo="2"] {
  z-index: 6;
  max-width: min(680px, 82vw);
  max-height: 82vh;
}

.jb-shutter__line {
  display: none;
}

/* Caption testo ? basso a sinistra */
.jb-shutter__caption {
  --jb-shutter-edge: 4rem;
  position: absolute;
  left: var(--jb-shutter-edge);
  bottom: var(--jb-shutter-edge);
  z-index: 30;
  width: min(32vw, 380px);
  pointer-events: none;
  color: #fff;
}

.jb-shutter__caption-set {
  display: none;
}

.jb-shutter__caption-set.is-active {
  display: block;
}

.jb-shutter__caption .jb-shutter__bar-item {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.45;
  color: #fff;
}

.jb-shutter__caption .jb-shutter__bar-mask {
  overflow: hidden;
  min-height: 5em;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Box icone ? basso a destra, larghezza fissa tra le slide */
.jb-shutter__bar {
  --jb-shutter-edge: 4rem;
  --jb-shutter-bar-w: 560px;
  position: absolute;
  right: var(--jb-shutter-edge);
  bottom: var(--jb-shutter-edge);
  left: auto;
  transform: none;
  width: min(30vw, var(--jb-shutter-bar-w));
  max-width: min(30vw, var(--jb-shutter-bar-w));
  box-sizing: border-box;
  z-index: 30;
  background: #fff;
  color: #221E20;
  border-radius: 5px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  padding: 0.75rem 1.15rem 0.7rem;
}

.jb-shutter__bar-set {
  display: none;
  width: 100%;
}

.jb-shutter__bar-set.is-active {
  display: block;
}

.jb-shutter__bar-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
  width: 100%;
}

.jb-shutter__bar-icon {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.jb-shutter__bar-mask {
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.15em;
  box-sizing: border-box;
}

.jb-shutter__bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  transform: translate3d(0, 110%, 0);
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.jb-shutter__bar-item.is-in {
  transform: translate3d(0, 0, 0);
}

.jb-shutter__bar-item img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.jb-shutter__bar-label {
  display: block;
  width: max-content;
  font-family: var(--jb-font-body);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  color: #221E20;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .jb-shutter__sticky {
    /* Stage sopra caption/barra: meno vuoto sotto, blocco comunque rialzato */
    --jb-shutter-stage-top: 4.5rem;
    --jb-shutter-stage-bottom: 11.5rem;
  }

  .jb-shutter__caption,
  .jb-shutter__bar {
    --jb-shutter-edge: 1.25rem;
  }

  .jb-shutter__caption {
    width: min(66vw, 300px);
    bottom: 14%;
  }

  .jb-shutter__caption .jb-shutter__bar-item {
    font-size: 0.95rem;
  }

  .jb-shutter__bar {
    --jb-shutter-bar-w: 390px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(94vw, var(--jb-shutter-bar-w));
    max-width: min(94vw, var(--jb-shutter-bar-w));
    padding: 0.55rem 0.65rem 0.45rem;
  }

  .jb-shutter__bar-icons {
    gap: 0.45rem;
  }

  .jb-shutter__bar-item img {
    height: 32px;
  }

  .jb-shutter__bar-label {
    font-size: 0.575rem;
  }
}

/* Layer parole sopra le slide, cos? restano visibili in rientro */
.jb-shutter__words {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.jb-shutter__words-set {
  position: absolute;
  inset: 0;
}

.jb-shutter__words-set:not(.is-active) {
  visibility: hidden;
}

/* Mobile: foto+parole centrate nello stage sopra caption/barra (dopo inset:0) */
@media (max-width: 767px) {
  .jb-shutter__words {
    inset: auto;
    top: var(--jb-shutter-stage-top, 4.5rem);
    right: 0;
    bottom: var(--jb-shutter-stage-bottom, 11.5rem);
    left: 0;
  }

  .jb-shutter__photo {
    top: calc(
      var(--jb-shutter-stage-top, 4.5rem) +
        (
          100% - var(--jb-shutter-stage-top, 4.5rem) -
            var(--jb-shutter-stage-bottom, 11.5rem)
        ) / 2
    );
    max-width: min(520px, 78vw);
    max-height: calc(
      100% - var(--jb-shutter-stage-top, 4.5rem) -
        var(--jb-shutter-stage-bottom, 11.5rem) - 1.25rem
    );
  }

  .jb-shutter__photo[data-photo="0"],
  .jb-shutter__photo[data-photo="2"] {
    max-width: min(560px, 84vw);
    max-height: calc(
      100% - var(--jb-shutter-stage-top, 4.5rem) -
        var(--jb-shutter-stage-bottom, 11.5rem) - 1.25rem
    );
  }
}

.jb-shutter__mask {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.jb-shutter__mask--left {
  left: 0;
  width: 50%;
}

.jb-shutter__mask--right {
  right: 0;
  width: 50%;
}

.jb-shutter__label {
  position: absolute;
  top: 50%;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: var(--jb-font-heading);
  font-size: 90px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: left 3s cubic-bezier(0.16, 1, 0.3, 1), transform 3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: left, transform;
}

/* Parte ?dietro? la linea (fuori dalla maschera) ? invisibile */
.jb-shutter__label--left {
  left: 100%;
  transform: translate(0, -50%);
}

.jb-shutter__label--right {
  left: 0;
  transform: translate(-100%, -50%);
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
}

.jb-highlights__stat {
  margin: 0;
  font-family: var(--jb-font-body) !important;
  font-size: clamp(8rem, 5.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
}
.jb-highlights__card--stat, .jb-highlights__card--review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  background: var(--jb-blue);
}
.jb-highlights__tags {
  gap: 0px;
}

/* Posizioni finali: --jb-in-left / --jb-in-right da data-left/data-right (JS) */
.jb-shutter__label--left.is-in {
  left: var(--jb-in-left, 18%);
  transform: translate(0, -50%);
}

.jb-shutter__label--right.is-in {
  left: var(--jb-in-right, 82%);
  transform: translate(-100%, -50%);
}

@media (max-width: 991px) {
  .jb-shutter__label {
    font-size: clamp(2rem, 8vw, 4rem);
  }
}

@media (max-width: 767px) {
  /* Parole lunghe: fasce full-width sfalsate; entrano dai lati, non dal centro */
  .jb-shutter__mask--left {
    left: 0;
    right: 0;
    width: 100%;
    top: 10%;
    bottom: auto;
    height: 34%;
  }

  .jb-shutter__mask--right {
    left: 0;
    right: 0;
    width: 100%;
    top: auto;
    bottom: 0%;
    height: 34%;
  }

  .jb-shutter__label {
    font-size: clamp(3.25rem, 13.75vw, 4.25rem);
    transition:
      left 2.4s cubic-bezier(0.16, 1, 0.3, 1),
      transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .jb-shutter__label--left {
    left: 0;
    top: 50%;
    transform: translate(-160%, -50%);
  }

  .jb-shutter__label--right {
    left: 100%;
    top: 50%;
    transform: translate(60%, -50%);
  }

  .jb-shutter__label--left.is-in {
    left: var(--jb-in-left, 4%);
    transform: translate(0, -50%);
  }

  .jb-shutter__label--right.is-in {
    left: var(--jb-in-right, 96%);
    transform: translate(-100%, -50%);
  }
}
.gadget_menu .menu > .nav-item.submenu .dropdown-menu > .nav-item:hover > .nav-link {
  color: #00008F;
}

/* =====================================================
   Pagina prodotto ? hero (layout tipografico + prodotto)
   ===================================================== */
body.jb-page--product .body_wrapper {
  overflow: visible;
}

body.jb-page--product .jb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
}

/* navbar_fixed deve vincere sull?absolute trasparente dell?hero */
body.jb-page--product .jb-header.navbar_fixed {
  position: fixed;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 6px rgba(12, 0, 46, 0.06);
}

body.jb-page--product .jb-header .sticky_logo img {
  display: none;
}

body.jb-page--product .jb-header .sticky_logo img + img {
  display: none;
}

body.jb-page--product .jb-header .sticky_logo img:first-child {
  display: inline-block;
}

body.jb-page--product .jb-header .jb-nav__menu > .nav-item > .nav-link {
  color: #fff !important;
}

body.jb-page--product .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--product .jb-header .menu_four .menu_toggle .hamburger-cross span {
  background: #fff;
}

body.jb-page--product .jb-header .jb-nav__contact .nav-item .jb-nav__btn {
  background: #fff !important;
  color: var(--jb-blue) !important;
}

body.jb-page--product .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--product .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus {
  background: #f2f2f8 !important;
  color: var(--jb-blue) !important;
}

/* Quando lo scroll attiva navbar_fixed, torna allo stile chiaro del tema */
body.jb-page--product .header_area.navbar_fixed .sticky_logo img:first-child {
  display: none;
}

body.jb-page--product .header_area.navbar_fixed .sticky_logo img + img {
  display: inline-block;
}

body.jb-page--product .header_area.navbar_fixed .jb-nav__menu > .nav-item > .nav-link {
  color: #221E20 !important;
}

body.jb-page--product .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn {
  background: var(--jb-blue) !important;
  color: #fff !important;
}

body.jb-page--product .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--product .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn:focus {
  background: #000070 !important;
  color: #fff !important;
}

body.jb-page--product .header_area.navbar_fixed .menu_four .menu_toggle .hamburger span,
body.jb-page--product .header_area.navbar_fixed .menu_four .menu_toggle .hamburger-cross span {
  background: #221E20;
}

.jb-product-hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(165deg, #0000a8 0%, var(--jb-blue) 48%, #000068 100%);
  color: #fff;
  overflow: visible;
}

.jb-product-hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(5.5rem, 10vh, 7rem) 4rem 2.75rem;
  box-sizing: border-box;
  overflow: visible;
}

.jb-product-hero__word {
  position: absolute;
  left: 50%;
  top: 41%;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-width: none;
  padding: 0 0.2em;
  transform: translate(-50%, -50%);
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(7.5rem, 16.5vw, 14rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.jb-product-hero__word-outline {
  font-family: inherit !important;
  color: transparent;
  -webkit-text-stroke: 0.01em #fff;
  paint-order: stroke fill;
}

.jb-product-hero.is-ready .jb-product-hero__word {
  opacity: 1;
}

.jb-product-hero__visual {
  --jb-hero-parallax-y: 0px;
  position: absolute;
  left: 50%;
  bottom: -160px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transform: translate3d(-50%, var(--jb-hero-parallax-y), 0);
  will-change: transform;
}

.jb-product-hero__photo {
  display: block;
  width: min(52vw, 750px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.28));
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.96);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.jb-product-hero.is-ready .jb-product-hero__photo {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.jb-product-hero__copy {
  position: relative;
  z-index: 5;
  grid-column: 1;
  grid-row: 2;
  max-width: 22rem;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.jb-product-hero.is-ready .jb-product-hero__copy {
  opacity: 1;
  transform: none;
}

.jb-product-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 5px;
  background: #fff;
  color: var(--jb-blue) !important;
  font-family: var(--jb-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.jb-product-hero__cta:hover,
.jb-product-hero__cta:focus {
  background: #f4f4fa;
  color: var(--jb-blue) !important;
  transform: translateY(-2px);
}

.jb-product-hero__cta-arrow {
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.25s ease;
}

.jb-product-hero__cta:hover .jb-product-hero__cta-arrow {
  transform: translateX(3px);
}

.jb-product-hero__text {
  margin: 1rem 0 0;
  font-family: var(--jb-font-body);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.jb-product-hero__rail {
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  opacity: 0;
  transform: translate3d(18px, 0, 0);
  transition: opacity 0.75s ease 0.28s, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s;
}

.jb-product-hero.is-ready .jb-product-hero__rail {
  opacity: 1;
  transform: none;
}

.jb-product-hero__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jb-product-hero__thumb {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  cursor: pointer;
  text-decoration: none !important;
}

.jb-product-hero__thumb:hover,
.jb-product-hero__thumb:focus-visible {
  outline: none;
}

.jb-product-hero__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  pointer-events: none;
}

/* Fascia sotto: distanza dalla foto hero via margin (padding uguale al basso) */
body.jb-page--product .jb-settori-panel--product-intro {
  position: relative;
  z-index: 1;
  margin-top: 15rem;
}

body.jb-page--product .jb-about-copy {
  margin: auto 4.2rem;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 767px) {
  body.jb-page--product .jb-about-copy {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

body.jb-page--product #jb-finalita {
  padding: 0;
  background: transparent;
}

/* Laptop: titolo hero prodotto −30%, foto max 600px. Large (≥1600) invariato. */
@media (max-width: 1599.98px) and (min-width: 992px) {
  .jb-product-hero__word {
    font-size: clamp(5.25rem, 11.55vw, 9.8rem);
  }

  .jb-product-hero__photo {
    width: min(52vw, 600px);
  }
}

@media (max-width: 991px) {
  .jb-product-hero__stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    padding: clamp(5rem, 12vh, 6.5rem) 1.25rem 1.75rem;
    gap: 1.25rem;
  }

  .jb-product-hero__word {
    font-size: clamp(3.2rem, 14vw, 7rem);
    top: 38%;
    white-space: normal;
  }

  .jb-product-hero__visual {
    bottom: -110px;
  }

  .jb-product-hero__photo {
    width: min(78vw, 420px);
  }

  .jb-product-hero__copy {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }

  .jb-product-hero__rail {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start;
    align-self: end;
    transform: translate3d(0, 14px, 0);
  }

  .jb-product-hero.is-ready .jb-product-hero__rail {
    transform: none;
  }

  .jb-product-hero__thumbs {
    flex-direction: row;
  }

  .jb-product-hero__thumb {
    width: 4.6rem;
    height: 5.4rem;
  }

  body.jb-page--product .jb-settori-panel--product-intro {
    margin-top: 5.5rem;
  }
}

@media (max-width: 575px) {
  .jb-product-hero__text {
    font-size: 0.9rem;
  }

  .jb-product-hero__thumb {
    width: 4rem;
    height: 4.75rem;
  }

  .jb-product-hero__thumb img {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jb-product-hero__word,
  .jb-product-hero__photo,
  .jb-product-hero__copy,
  .jb-product-hero__rail,
  .jb-product-hero__cta,
  .jb-product-hero__cta-arrow,
  .jb-product-hero__visual {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .jb-product-hero__visual {
    transform: translate3d(-50%, 0, 0) !important;
  }
}

/* Prodotto mobile: titolo → foto → CTA/excerpt/thumbs */
@media (max-width: 767px) {
  .jb-product-hero,
  .jb-product-hero__stage {
    min-height: 0;
  }

  .jb-product-hero__stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 6.5rem 1.25rem 1.5rem;
    gap: 1.1rem;
  }

  .jb-product-hero__word {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0;
    padding: 0;
    font-size: clamp(2.35rem, 14.5vw, 5.35rem);
    line-height: 0.92;
    white-space: normal;
    order: 1;
    z-index: 1;
  }

  .jb-product-hero__visual {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 2;
    order: 2;
    width: 100%;
    margin-top: -1.85rem;
    transform: none !important;
    will-change: auto;
  }

  .jb-product-hero__photo {
    width: min(92vw, 360px);
    margin-inline: auto;
  }

  .jb-product-hero.is-ready .jb-product-hero__photo {
    transform: none;
  }

  .jb-product-hero__copy {
    order: 3;
    max-width: none;
  }

  .jb-product-hero__rail {
    order: 4;
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
    align-self: stretch;
    transform: translate3d(0, 14px, 0);
  }

  .jb-product-hero.is-ready .jb-product-hero__rail {
    transform: none;
  }

  .jb-product-hero__thumbs {
    flex-direction: row;
  }

  body.jb-page--product .jb-settori-panel--product-intro {
    margin-top: 2.5rem;
    background: #fff;
    padding: 1.25rem;
  }
}

/* Eccezioni hero per id prodotto */
body.jb-product--22 .jb-product-hero__word {
  font-size: clamp(6rem, 13.2vw, 11.2rem);
}

body.jb-product--25 .jb-product-hero__photo {
  width: min(45vw, 350px);
}

body.jb-product--26 .jb-product-hero__photo {
  width: min(45vw, 450px);
}

body.jb-product--27 .jb-product-hero__photo {
  width: min(55vw, 1000px);
}

body.jb-product--27 .jb-product-hero__visual {
  bottom: -120px;
}

body.jb-product--37 .jb-product-hero__visual {
  bottom: -120px;
}

body.jb-product--27 .jb-product-hero,
body.jb-product--37 .jb-product-hero {
  background: #221E20;
}

@media (max-width: 1599.98px) and (min-width: 992px) {
  body.jb-product--22 .jb-product-hero__word {
    font-size: clamp(4.2rem, 9.24vw, 7.84rem);
  }

  body.jb-product--27 .jb-product-hero__photo {
    width: min(45vw, 600px);
  }

  body.jb-product--27 .jb-product-hero__visual {
    bottom: -20px;
  }

  body.jb-product--37 .jb-product-hero__photo {
    width: min(50vw, 580px);
  }

  body.jb-product--37 .jb-product-hero__visual {
    bottom: -60px;
  }
}

@media (max-width: 991px) {
  body.jb-product--22 .jb-product-hero__word {
    font-size: clamp(2.56rem, 11.2vw, 5.6rem);
  }
}

@media (max-width: 767px) {
  body.jb-product--22 .jb-product-hero__word {
    font-size: clamp(1.88rem, 11.6vw, 4.28rem);
  }

  body.jb-product--25 .jb-product-hero__photo,
  body.jb-product--26 .jb-product-hero__photo {
    width: min(92vw, 360px);
  }

  body.jb-product--27 .jb-product-hero__visual,
  body.jb-product--37 .jb-product-hero__visual {
    bottom: auto;
  }
}

/* =====================================================
   Pagina prodotto ? scheda tecnica (tabs)
   ===================================================== */
.jb-product-dossier {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  margin-bottom: 60px;
  padding: 5.5rem 0;
  background: #f4f4f6;
}

.jb-product-dossier__inner {
  padding-left: 4rem;
  padding-right: 4rem;
}

.jb-product-dossier__title {
  margin: 0 0 1.75rem;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(2.4rem, 4.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0em;
  text-align: center;
  text-transform: uppercase;
  color: #00008F;
}

.jb-product-dossier__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 2.5rem;
}

.jb-product-dossier__tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(34, 30, 32, 0.18);
  border-radius: 5px;
  background: #fff;
  color: #221E20;
  font-family: var(--jb-font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.jb-product-dossier__tab:hover,
.jb-product-dossier__tab:focus {
  border-color: rgba(34, 30, 32, 0.4);
  outline: none;
}

.jb-product-dossier__tab.is-active {
  background: #00008F;
  border-color: #00008F;
  color: #fff;
}

.jb-product-dossier__panels {
  display: grid;
  min-width: 0;
}

.jb-product-dossier__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.jb-product-dossier__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.jb-product-dossier__panel.is-enter,
.jb-product-dossier__panel.is-leaving {
  opacity: 0;
}

.jb-product-dossier__feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}

.jb-product-dossier__subtitle {
  margin: 2.5rem 0 1.15rem;
  font-family: var(--jb-font-body) !important;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
  color: #221E20;
}

.jb-product-dossier__feat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(34, 30, 32, 0.04);
}

.jb-product-dossier__feat-title {
  margin: 0;
  font-family: var(--jb-font-body) !important;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: #221E20;
}

.jb-product-dossier__feat-text {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
  color: #5c585a;
}

.jb-product-dossier__feat--note {
  border: 1px solid var(--jb-blue);
  box-shadow: none;
}

.jb-product-dossier__feat--note .jb-product-dossier__feat-title {
  color: #00008F;
}

.jb-product-dossier__sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem 1.25rem;
}

.jb-product-dossier__size {
  display: grid;
  flex: 0 1 calc((100% - 2.5rem) / 3);
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 0.85rem;
  align-items: stretch;
  margin: 0;
  padding: 0.75rem;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(34, 30, 32, 0.04);
}

.jb-product-dossier__size-media {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  min-height: 180px;
  background: #f0f0f3;
}

.jb-product-dossier__size-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
}

.jb-product-dossier__size-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.25rem 0.15rem 0.25rem 0;
}

.jb-product-dossier__metric {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.jb-product-dossier__metric-label {
  flex: 0 1 auto;
  font-family: var(--jb-font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  color: #221E20;
}

.jb-product-dossier__metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 4.5rem;
  min-height: 1.85rem;
  padding: 0.25rem 0.95rem;
  border: 1px solid #221E20;
  border-radius: 999px;
  background: #fff;
  font-family: var(--jb-font-body);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
  color: #221E20;
}

@media (max-width: 991px) {
  .jb-product-dossier {
    padding: 3.5rem 0 4rem;
  }

  .jb-product-dossier__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-product-dossier__feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jb-product-dossier__size {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 575px) {
  .jb-product-dossier__tabs {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .jb-product-dossier__tab {
    flex: 0 1 auto;
    font-size: 0.86rem;
    padding: 0.7rem 1.25rem;
  }

  .jb-product-dossier__feats {
    grid-template-columns: 1fr;
  }

  .jb-product-dossier__size {
    flex-basis: 100%;
  }

  .jb-product-dossier__size {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jb-product-dossier__panel {
    transition: none !important;
  }

  .jb-product-dossier__panel.is-enter,
  .jb-product-dossier__panel.is-leaving {
    opacity: 1 !important;
  }
}

/* =====================================================
   Pagina prodotto ? form richiedi preventivo
   ===================================================== */
.jb-quote {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 6rem;
  background: #fff;
}

.jb-quote__inner {
  max-width: none;
  margin: 0;
  padding-left: 4rem;
  padding-right: 4rem;
}

.jb-quote__head {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  margin: 0 0 3rem;
}

.jb-quote__lead {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.45;
  color: #221E20;
  text-align: left;
}

.jb-quote__lead strong {
  font-weight: 600;
}

.jb-quote__heading {
  text-align: left;
}

.jb-quote__title {
  margin: 0;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.55rem, 2.8vw, 6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: uppercase;
  color: #221E20;
}

.jb-quote__accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--jb-blue);
  paint-order: stroke fill;
}

.jb-quote__head-spacer {
  min-height: 1px;
}

.jb-quote__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 1.5rem;
  align-items: stretch;
}

.jb-quote__panel {
  padding: 2rem 2.1rem 1.85rem;
  border-radius: 5px;
  background: #f9f9fc;
}

.jb-quote__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.jb-quote__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.1rem;
}

.jb-quote__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
}

.jb-quote__field--full {
  width: 100%;
  grid-column: 1 / -1;
}

.jb-quote__label {
  font-family: var(--jb-font-body);
  font-size: 0.90rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #4a4648;
}

.jb-quote__input {
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 5px;
  background: #F2F2F2;
  color: #121212;
  font-family: var(--jb-font-body);
  font-size: 0.90rem;
  font-weight: 300;
  line-height: 1.35;
  outline: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  appearance: none;
}

.jb-quote__input::placeholder {
  color: #9a9698;
  font-weight: 300;
}

.jb-quote__input:focus {
  background: #fff;
  box-shadow: 0 2px 4px rgba(18, 18, 18, 0.04);
}

.jb-quote__field--date .jb-quote__input {
  color-scheme: light;
}

.jb-quote__textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.5;
}

.jb-quote__result {
  margin: 1rem 0 0;
}

.jb-quote__result:empty {
  display: none;
}

.jb-quote__result .alert {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-family: var(--jb-font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
}

.jb-quote__result .alert-info {
  background: #eef2ff;
  color: var(--jb-blue);
}

.jb-quote__result .alert-success {
  background: #e8f7ef;
  color: #0f6b3c;
}

.jb-quote__result .alert-danger {
  background: #fdecee;
  color: var(--jb-red);
}

.jb-quote__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.jb-quote__privacy {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  max-width: 26rem;
  font-family: var(--jb-font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.45;
  color: #5c585a;
  cursor: pointer;
}

.jb-quote__privacy input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--jb-blue);
  cursor: pointer;
}

.jb-quote__privacy a {
  color: var(--jb-blue) !important;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.jb-quote__privacy a:hover {
  color: #000070 !important;
}

.jb-quote__submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 5px;
  background: var(--jb-blue);
  color: #fff;
  font-family: var(--jb-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jb-quote__submit-arrow {
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.jb-quote__submit:hover,
.jb-quote__submit:focus {
  background: #000070;
  transform: translateY(-1px);
  outline: none;
}

.jb-quote__submit:hover .jb-quote__submit-arrow {
  transform: translateX(3px);
}

.jb-quote__visual {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  min-height: 420px;
  background: #ddd;
  isolation: isolate;
}

.jb-quote__visual-bg {
  position: absolute;
  inset: -16%;
  z-index: 0;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.15);
  will-change: transform;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .jb-quote__visual-bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }
}

.jb-quote__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-family: var(--jb-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

@media (max-width: 991px) {
  .jb-quote {
    padding: 4rem 0 4.5rem;
  }

  .jb-quote__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-quote__head {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "lead spacer"
      "title title";
  }

  .jb-quote__lead {
    grid-area: lead;
  }

  .jb-quote__heading {
    grid-area: title;
  }

  .jb-quote__head-spacer {
    grid-area: spacer;
  }

  .jb-quote__layout {
    grid-template-columns: 1fr;
  }

  .jb-quote__visual {
    min-height: 280px;
    order: -1;
  }

  .jb-quote__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .jb-quote__head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "title";
  }

  .jb-quote__head-spacer {
    display: none;
  }

  .jb-quote__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .jb-quote__panel {
    padding: 1.35rem 1.2rem 1.4rem;
  }

  .jb-quote__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .jb-quote__submit {
    width: 100%;
  }
}

/* =====================================================
   Pagina settori2 ? split 50/50
   ===================================================== */
body.jb-page--settori2,
body.jb-page--prodotti {
  background: #fff;
}

body.jb-page--settori2 .jb-header,
body.jb-page--prodotti .jb-header,
body.jb-page--contatti .jb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 4px 6px rgba(12, 0, 46, 0.06);
}

body.jb-page--settori2 .jb-header .sticky_logo img,
body.jb-page--prodotti .jb-header .sticky_logo img,
body.jb-page--contatti .jb-header .sticky_logo img {
  display: none;
}

body.jb-page--settori2 .jb-header .sticky_logo img + img,
body.jb-page--prodotti .jb-header .sticky_logo img + img,
body.jb-page--contatti .jb-header .sticky_logo img + img {
  display: inline-block;
}

body.jb-page--settori2 .jb-header .jb-nav__menu > .nav-item > .nav-link,
body.jb-page--prodotti .jb-header .jb-nav__menu > .nav-item > .nav-link,
body.jb-page--contatti .jb-header .jb-nav__menu > .nav-item > .nav-link {
  color: #221E20 !important;
}

body.jb-page--settori2 .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--settori2 .jb-header .menu_four .menu_toggle .hamburger-cross span,
body.jb-page--prodotti .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--prodotti .jb-header .menu_four .menu_toggle .hamburger-cross span,
body.jb-page--contatti .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--contatti .jb-header .menu_four .menu_toggle .hamburger-cross span {
  background: #221E20;
}

body.jb-page--settori2 .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
body.jb-page--prodotti .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
body.jb-page--contatti .jb-header .jb-nav__contact .nav-item .jb-nav__btn {
  background: var(--jb-blue) !important;
  color: #fff !important;
}

body.jb-page--settori2 .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--settori2 .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus,
body.jb-page--prodotti .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--prodotti .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus,
body.jb-page--contatti .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--contatti .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus {
  background: #000070 !important;
  color: #fff !important;
}

.jb-settori2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 992px) {
  body.jb-page--settori2 .jb-settori2__visual {
    order: 1;
  }

  body.jb-page--settori2 .jb-settori2__panel {
    order: 2;
  }
}

.jb-settori2__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: 7.5rem 3.5rem 3rem;
  background: var(--jb-blue);
  color: #fff;
  transition: background 0.35s ease;
}

.jb-settori2__panel--anthracite {
  background: #221E20;
}

.jb-settori2__panel--anthracite .jb-settori2__more {
  color: #221E20 !important;
}

.jb-settori2__panel--anthracite .jb-settori2__more:hover,
.jb-settori2__panel--anthracite .jb-settori2__more:focus-visible {
  background: transparent;
  color: #fff !important;
}

.jb-settori2__intro {
  margin: 0;
  max-width: 28rem;
  font-family: var(--jb-font-body);
  font-size: clamp(1.05rem, 1.35vw, 2.25rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.jb-settori2__intro-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  transition: opacity 0.25s ease;
}

.jb-settori2__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 5px;
  background: #eef2fb;
}

.jb-settori2__icon img {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.jb-settori2__intro-block.is-fading {
  opacity: 0;
}

.jb-settori2__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid #fff;
  border-radius: 5px;
  background: #fff;
  color: var(--jb-blue) !important;
  font-family: var(--jb-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jb-settori2__more:hover,
.jb-settori2__more:focus-visible {
  background: transparent;
  color: #fff !important;
  outline: none;
}

.jb-settori2__nav-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.jb-settori2__copy {
  margin: 0;
  max-width: 28rem;
  font-family: var(--jb-font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  min-height: 4.2em;
  transition: opacity 0.2s ease;
}

.jb-settori2__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.jb-settori2__item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--jb-font-body);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.jb-settori2__num {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.jb-settori2__label {
  font-size: clamp(1rem, 1.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  transition: font-size 0.3s ease, font-weight 0.3s ease;
}

.jb-settori2__item:hover,
.jb-settori2__item:focus-visible {
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.jb-settori2__item.is-active {
  color: #fff;
}

.jb-settori2__item.is-active .jb-settori2__label {
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  font-weight: 600;
}

.jb-settori2__visual {
  position: relative;
  overflow: hidden;
  background: #1a1a1e;
  min-height: 100%;
}

.jb-settori2__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.18s ease;
}

.jb-settori2__img.is-fading {
  opacity: 0;
}

.jb-settori2__img--next {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.jb-settori2__img--next.is-in {
  opacity: 1;
}

.jb-settori2--prodotti .jb-settori2__visual {
  background: #f9f9fc;
  transition: background 0.35s ease;
}

.jb-settori2--prodotti[data-theme="anthracite"] .jb-settori2__visual {
  background: #ececef;
}

.jb-settori2--prodotti .jb-settori2__img {
  object-fit: none;
  padding: 0px;
  box-sizing: border-box;
}

.jb-settori2 .jb-settori2__item {
  --jb-grow: 0;
  --jb-label-min: clamp(1rem, 1.4vw, 2.2rem);
  --jb-label-max: clamp(1.7rem, 2.6vw, 3rem);
  color: rgba(255, 255, 255, calc(0.5 + 0.5 * var(--jb-grow)));
}

.jb-settori2 .jb-settori2__item.is-active {
  --jb-grow: 1;
  color: rgba(255, 255, 255, calc(0.5 + 0.5 * var(--jb-grow)));
}

.jb-settori2 .jb-settori2__label,
.jb-settori2 .jb-settori2__item.is-active .jb-settori2__label {
  font-size: calc(var(--jb-label-min) + (var(--jb-label-max) - var(--jb-label-min)) * var(--jb-grow, 0));
  font-weight: calc(400 + 200 * var(--jb-grow, 0));
  transition: none;
}

.jb-settori2__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 6rem;
  padding: 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.42);
  color: #fff !important;
  font-family: var(--jb-font-body);
  text-decoration: none !important;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.jb-settori2__cta:hover,
.jb-settori2__cta:focus-visible {
  background: rgba(0, 0, 0, 0.55);
  color: #fff !important;
  outline: none;
}

.jb-settori2__cta-label {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.jb-settori2__cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
  line-height: 1;
}

@media (max-width: 991px) {
  .jb-settori2 {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .jb-settori2__panel {
    min-height: auto;
    padding: 6.5rem 1.5rem 2.5rem;
    gap: 2.5rem;
  }

  .jb-settori2__visual {
    min-height: 55vh;
  }

  body.jb-page--prodotti .jb-settori2__img,
  body.jb-page--settori2 .jb-settori2__img {
    padding: 0;
    object-fit: cover;
  }

  .jb-settori2__item.is-active .jb-settori2__label {
    font-size: clamp(1.7rem, 7vw, 3rem);
  }
}

/* Prodotti + Settori mobile: elenco poi intro, foto sotto, meno spazi */
@media (max-width: 767px) {
  body.jb-page--prodotti .jb-settori2 .jb-settori2__panel,
  body.jb-page--settori2 .jb-settori2 .jb-settori2__panel {
    display: flex;
    flex-direction: column;
    padding: 7.5rem 1.25rem 1.5rem;
    gap: 1.35rem;
  }

  body.jb-page--prodotti .jb-settori2 .jb-settori2__nav,
  body.jb-page--settori2 .jb-settori2 .jb-settori2__nav {
    order: 1;
  }

  body.jb-page--prodotti .jb-settori2 .jb-settori2__intro-block,
  body.jb-page--settori2 .jb-settori2 .jb-settori2__intro-block {
    order: 2;
  }

  body.jb-page--prodotti .jb-settori2 .jb-settori2__visual,
  body.jb-page--settori2 .jb-settori2 .jb-settori2__visual {
    min-height: 42vh;
  }

  body.jb-page--settori2 .jb-settori2__icon {
    display: none;
  }

  body.jb-page--prodotti .jb-settori2 .jb-settori2__cta,
  body.jb-page--settori2 .jb-settori2 .jb-settori2__cta {
    height: 4.5rem;
    padding: 0 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jb-settori2__item,
  .jb-settori2__label,
  .jb-settori2__img,
  .jb-settori2__intro-block {
    transition: none !important;
  }
}

/* =====================================================
   Pagina dettaglio settore (es. Cantieri)
   ===================================================== */
body.jb-page--settore-detail {
  background: #fff;
}

body.jb-page--settore-detail .jb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
}

body.jb-page--settore-detail .jb-header.navbar_fixed {
  position: fixed;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 6px rgba(12, 0, 46, 0.06);
}

body.jb-page--settore-detail .jb-header .sticky_logo img {
  display: none;
}

body.jb-page--settore-detail .jb-header .sticky_logo img + img {
  display: none;
}

body.jb-page--settore-detail .jb-header .sticky_logo img:first-child {
  display: inline-block;
}

body.jb-page--settore-detail .jb-header .jb-nav__menu > .nav-item > .nav-link {
  color: #fff !important;
}

body.jb-page--settore-detail .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--settore-detail .jb-header .menu_four .menu_toggle .hamburger-cross span {
  background: #fff;
}

body.jb-page--settore-detail .jb-header .jb-nav__contact .nav-item .jb-nav__btn {
  background: #fff !important;
  color: var(--jb-blue) !important;
}

body.jb-page--settore-detail .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--settore-detail .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus {
  background: #f2f2f8 !important;
  color: var(--jb-blue) !important;
}

body.jb-page--settore-detail .header_area.navbar_fixed .sticky_logo img:first-child {
  display: none;
}

body.jb-page--settore-detail .header_area.navbar_fixed .sticky_logo img + img {
  display: inline-block;
}

body.jb-page--settore-detail .header_area.navbar_fixed .jb-nav__menu > .nav-item > .nav-link {
  color: #221E20 !important;
}

body.jb-page--settore-detail .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn {
  background: var(--jb-blue) !important;
  color: #fff !important;
}

body.jb-page--settore-detail .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--settore-detail .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn:focus {
  background: #000070 !important;
  color: #fff !important;
}

body.jb-page--settore-detail .header_area.navbar_fixed .menu_four .menu_toggle .hamburger span,
body.jb-page--settore-detail .header_area.navbar_fixed .menu_four .menu_toggle .hamburger-cross span {
  background: #221E20;
}

/* Lista news + dettaglio news + dettaglio settore: hero chiaro + header “sticky” già in partenza */
body.jb-page--settore-detail.jb-page--news .jb-header .sticky_logo img:first-child,
body.jb-page--settore-detail.jb-page--news-detail .jb-header .sticky_logo img:first-child,
body.jb-page--settore-detail.jb-page--settore .jb-header .sticky_logo img:first-child,
body.jb-page--settore-detail.jb-page--faq .jb-header .sticky_logo img:first-child,
body.jb-page--settore-detail.jb-page--installazioni .jb-header .sticky_logo img:first-child {
  display: none;
}

body.jb-page--settore-detail.jb-page--news .jb-header .sticky_logo img + img,
body.jb-page--settore-detail.jb-page--news-detail .jb-header .sticky_logo img + img,
body.jb-page--settore-detail.jb-page--settore .jb-header .sticky_logo img + img,
body.jb-page--settore-detail.jb-page--faq .jb-header .sticky_logo img + img,
body.jb-page--settore-detail.jb-page--installazioni .jb-header .sticky_logo img + img {
  display: inline-block;
}

body.jb-page--settore-detail.jb-page--news .jb-header .jb-nav__menu > .nav-item > .nav-link,
body.jb-page--settore-detail.jb-page--news-detail .jb-header .jb-nav__menu > .nav-item > .nav-link,
body.jb-page--settore-detail.jb-page--settore .jb-header .jb-nav__menu > .nav-item > .nav-link,
body.jb-page--settore-detail.jb-page--faq .jb-header .jb-nav__menu > .nav-item > .nav-link,
body.jb-page--settore-detail.jb-page--installazioni .jb-header .jb-nav__menu > .nav-item > .nav-link {
  color: #221E20 !important;
}

body.jb-page--settore-detail.jb-page--news .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--settore-detail.jb-page--news .jb-header .menu_four .menu_toggle .hamburger-cross span,
body.jb-page--settore-detail.jb-page--news-detail .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--settore-detail.jb-page--news-detail .jb-header .menu_four .menu_toggle .hamburger-cross span,
body.jb-page--settore-detail.jb-page--settore .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--settore-detail.jb-page--settore .jb-header .menu_four .menu_toggle .hamburger-cross span,
body.jb-page--settore-detail.jb-page--faq .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--settore-detail.jb-page--faq .jb-header .menu_four .menu_toggle .hamburger-cross span,
body.jb-page--settore-detail.jb-page--installazioni .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--settore-detail.jb-page--installazioni .jb-header .menu_four .menu_toggle .hamburger-cross span {
  background: #221E20;
}

body.jb-page--settore-detail.jb-page--news .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
body.jb-page--settore-detail.jb-page--news-detail .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
body.jb-page--settore-detail.jb-page--settore .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
body.jb-page--settore-detail.jb-page--faq .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
body.jb-page--settore-detail.jb-page--installazioni .jb-header .jb-nav__contact .nav-item .jb-nav__btn {
  background: var(--jb-blue) !important;
  color: #fff !important;
}

body.jb-page--settore-detail.jb-page--news .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--settore-detail.jb-page--news .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus,
body.jb-page--settore-detail.jb-page--news-detail .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--settore-detail.jb-page--news-detail .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus,
body.jb-page--settore-detail.jb-page--settore .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--settore-detail.jb-page--settore .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus,
body.jb-page--settore-detail.jb-page--faq .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--settore-detail.jb-page--faq .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus,
body.jb-page--settore-detail.jb-page--installazioni .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--settore-detail.jb-page--installazioni .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus {
  background: #000070 !important;
  color: #fff !important;
}

body.jb-page--news .jb-settore-detail__hero,
body.jb-page--settore .jb-settore-detail__hero,
body.jb-page--faq .jb-settore-detail__hero,
body.jb-page--installazioni .jb-settore-detail__hero {
  background: #f9f9fc;
  color: #121212;
}

body.jb-page--news .body_wrapper,
body.jb-page--news-detail .body_wrapper,
body.jb-page--settore .body_wrapper,
body.jb-page--faq .body_wrapper,
body.jb-page--installazioni .body_wrapper {
  overflow: visible;
}

body.jb-page--news .jb-settore-detail__hero-inner,
body.jb-page--settore .jb-settore-detail__hero-inner,
body.jb-page--faq .jb-settore-detail__hero-inner,
body.jb-page--installazioni .jb-settore-detail__hero-inner {
  gap: 0.45rem;
}

body.jb-page--news .jb-settore-detail__title,
body.jb-page--settore .jb-settore-detail__title,
body.jb-page--faq .jb-settore-detail__title,
body.jb-page--installazioni .jb-settore-detail__title {
  font-family: var(--jb-font-body) !important;
  font-size: clamp(3rem, 2vw, 6rem);
  color: #121212;
  text-transform: none;
  -webkit-text-stroke: 0;
}

body.jb-page--news .jb-settore-detail__lead,
body.jb-page--settore .jb-settore-detail__lead,
body.jb-page--faq .jb-settore-detail__lead,
body.jb-page--installazioni .jb-settore-detail__lead {
  color: #121212;
}

body.jb-page--settore .jb-settore-detail__badge {
  border-color: rgba(18, 18, 18, 0.28);
  color: #121212;
}

body.jb-page--settore .jb-settore-detail__hero-bg {
  display: none;
}

body.jb-page--faq .jb-settore-detail__hero-bg {
  display: none;
}

body.jb-page--installazioni .jb-settore-detail__hero-bg {
  display: none;
}

.jb-settore-detail__inner {
  max-width: none;
  margin: 0;
  padding-left: 4rem;
  padding-right: 4rem;
}

.jb-settore-detail__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 38vh, 420px);
  padding: 11rem 1.5rem 8rem;
  color: #fff;
  overflow: hidden;
  background: var(--jb-blue);
  text-align: center;
}

.jb-settore-detail__hero-bg {
  display: none;
}

.jb-settore-detail__hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.jb-settore-detail__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-family: var(--jb-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jb-settore-detail__title {
  margin: 0;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  color: #fff;
}

.jb-settore-detail__lead {
  margin: 0;
  max-width: 34rem;
  font-family: var(--jb-font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.jb-settore-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.7rem;
  padding: 0.55rem 1.35rem;
  border-radius: 5px;
  background: var(--jb-blue);
  color: #fff !important;
  font-family: var(--jb-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.jb-settore-detail__btn:hover,
.jb-settore-detail__btn:focus-visible {
  background: #000070;
  color: #fff !important;
  outline: none;
}

/* Fascia 60 / 20 / 20 — dettaglio settore */
.jb-settore-band {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  min-height: min(72vh, 700px);
  background: #fff;
  padding: 60px 4rem;
}

/* Copy sotto fascia: allinea ai 4rem laterali della band */
.jb-page--settore-detail .jb-about-copy {
  padding-left: 4rem;
  padding-right: 4rem;
}

.jb-settore-band__media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  border-radius: 10px;
  background: #e8e8ee;
}

.jb-settore-band__media-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.jb-settore-band__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 280px;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: 10px;
  overflow: hidden;
}

.jb-settore-band__panel--grey {
  background: #f9f9fc;
  color: #121212;
}

.jb-settore-band__panel--blue {
  background: var(--jb-blue);
  color: #fff;
}

.jb-settore-band__panel-icon {
  position: absolute;
  right: -18%;
  bottom: -6%;
  width: min(137%, 22.62rem);
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.18;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

.jb-settore-band__panel-layer {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.jb-settore-band__panel-layer[data-jb-parallax-layer="front"] {
  margin-top: auto;
}

.jb-settore-band__stat-label {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: clamp(1.65rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.10;
  color: inherit;
}

.jb-settore-band__panel-text {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 300;
  line-height: 1.5;
  color: inherit;
  opacity: 0.88;
}

.jb-settore-band__panel--grey .jb-settore-band__stat-label,
.jb-settore-band__panel--grey .jb-settore-band__panel-text {
  color: #121212;
}

.jb-settore-band__panel--blue .jb-settore-band__stat-label,
.jb-settore-band__panel--blue .jb-settore-band__panel-text {
  color: #fff;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .jb-settore-band__panel-layer {
    will-change: auto;
  }
}

@media (max-width: 1199px) {
  .jb-settore-band {
    padding: 60px 2rem;
    gap: 1rem;
  }

  .jb-page--settore-detail .jb-about-copy {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 991px) {
  .jb-settore-band {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 0;
    padding: 60px 1.5rem;
  }

  .jb-page--settore-detail .jb-about-copy {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .jb-settore-band__media {
    min-height: 42vh;
  }

  .jb-settore-band__panel {
    min-height: 0;
    gap: 1.5rem;
    padding: 1.5rem 1.35rem;
  }
}

.jb-settore-detail__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(70vh, 620px);
}

.jb-settore-detail__split--reverse .jb-settore-detail__split-media {
  order: 2;
}

.jb-settore-detail__split--reverse .jb-settore-detail__split-body {
  order: 1;
}

.jb-settore-detail__split-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  background: #e8e8ee;
}

.jb-settore-detail__split-bg {
  position: absolute;
  inset: -16%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.2);
  will-change: transform;
  pointer-events: none;
}

.jb-settore-detail__split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 3.5rem 4rem;
  background: #f9f9fc;
}

.jb-settore-detail__split-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 5px;
  background: #eef2fb;
}

.jb-settore-detail__split-icon img {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.jb-settore-detail__split-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
  color: #221E20;
}

.jb-settore-detail__split-text {
  margin: 0;
  max-width: 36rem;
  font-family: var(--jb-font-body);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.55;
  color: #4a4648;
}

.jb-settore-detail__products,
.jb-settore-detail__installazioni {
  overflow: visible;
}

.jb-settore-detail__products {
  padding: 9rem 0;
  scroll-margin-top: 6rem;
}

.jb-settore-detail__installazioni {
  padding: 0 0 9rem;
}

.jb-settore-detail__products .jb-settore-detail__inner,
.jb-settore-detail__products .jb-linee__carousel {
  overflow: visible;
}

.jb-settore-detail__section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.2fr);
  gap: 1rem 2rem;
  margin: 0 0 2.5rem;
}

.jb-settore-detail__section-lead {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #221E20;
}

.jb-settore-detail__section-title {
  margin: 0;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.55rem, 2.8vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: #221E20;
}

.jb-settore-detail__accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--jb-blue);
  paint-order: stroke fill;
}

.jb-settore-detail__install-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.jb-install-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(12, 0, 46, 0.08);
}

.jb-install-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
  cursor: zoom-in;
}

.jb-install-card__link:hover .jb-install-card__media img,
.jb-install-card__link:focus-visible .jb-install-card__media img {
  transform: scale(1.04);
}

.jb-install-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.15rem;
}

.jb-install-card__num {
  flex: 0 0 auto;
  font-family: var(--jb-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  color: #221E20;
}

.jb-install-card__title {
  margin: 0;
  font-family: var(--jb-font-body) !important;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  color: #221E20 !important;
}

.jb-install-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8e8ee;
}

.jb-install-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.jb-settore-detail__carousel .owl-nav {
  position: absolute;
  top: -4.5rem;
  right: 0;
  display: flex;
  gap: 0.65rem;
}

.jb-settore-detail__carousel .owl-nav button {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  border-radius: 50%;
  border: 1px solid #d7d7de !important;
  background: #fff !important;
  color: #221E20 !important;
  font-size: 1.1rem;
}

.jb-settore-detail__carousel .owl-nav button:hover {
  background: var(--jb-blue) !important;
  border-color: var(--jb-blue) !important;
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  .jb-settore-detail__split-bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 991px) {
  .jb-settore-detail__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-settore-detail__section-head {
    grid-template-columns: 1fr;
  }

  .jb-settore-detail__install-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jb-settore-detail__split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .jb-settore-detail__split--reverse .jb-settore-detail__split-media,
  .jb-settore-detail__split--reverse .jb-settore-detail__split-body {
    order: initial;
  }

  .jb-settore-detail__split-body {
    padding: 2.25rem 1.5rem;
  }

  .jb-settore-detail__carousel .owl-nav {
    position: static;
    margin: 0 0 1rem;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .jb-settore-detail__hero {
    min-height: 260px;
    padding: 6.5rem 1.25rem 3.25rem;
  }

  .jb-settore-detail__install-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Contatti
   ===================================================== */
body.jb-page--contatti {
  background: #fff;
}

.jb-contatti {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.jb-contatti__info {
  background: var(--jb-blue);
  color: #fff;
}

.jb-contatti__info-inner,
.jb-contatti__form-inner {
  padding: 8rem 3rem 4rem;
}

.jb-contatti__badge {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--jb-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.jb-contatti__title {
  margin: 0 0 1rem;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}

.jb-contatti__lead {
  margin: 2.75rem 0 2.75rem;
  max-width: 32rem;
  font-family: var(--jb-font-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.jb-filiali__list {
  margin: 4.2rem 0 0;
  padding: 0;
  list-style: none;
}

.jb-filiali__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.jb-filiali__item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.jb-filiali__city {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}

.jb-filiali__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  text-align: right;
  max-width: min(26rem, 70%);
}

.jb-filiali__address,
.jb-filiali__phone {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: clamp(0.88rem, 1vw, 1.02rem);
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

.jb-filiali__phone {
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.jb-filiali__phone:hover,
.jb-filiali__phone:focus-visible {
  opacity: 0.75;
  outline: none;
}

.jb-contatti__form {
  background: #fff;
}

.jb-contatti__form-head {
  margin: 0 0 2rem;
}

.jb-contatti__form-lead {
  margin: 0 0 0.85rem;
  font-family: var(--jb-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}

.jb-contatti__form-lead strong {
  font-weight: 600;
}

.jb-contatti__form-title {
  margin: 0;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.45rem, 2.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
}

.jb-contatti__form-accent {
  color: transparent;
  paint-order: stroke fill;
}

.jb-contatti__info .jb-contatti__form-lead,
.jb-contatti__info .jb-contatti__form-title {
  color: #fff;
}

.jb-contatti__info .jb-contatti__form-accent {
  -webkit-text-stroke: 1.5px #fff;
}

.jb-contatti__form .jb-contatti__form-lead,
.jb-contatti__form .jb-contatti__form-title {
  color: var(--jb-blue);
}

.jb-contatti__form .jb-contatti__form-accent {
  -webkit-text-stroke: 1.5px var(--jb-blue);
}

.jb-contatti__form .jb-quote__grid {
  grid-template-columns: 1fr 1fr;
}

.jb-contatti__form .jb-quote__footer {
  flex-wrap: wrap;
  gap: 1rem;
}

.jb-contatti-map {
  position: relative;
  width: 100%;
  height: 650px;
  background: #e8e8ee;
  overflow: hidden;
}

.jb-contatti-map__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991px) {
  .jb-contatti {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .jb-contatti__info-inner,
  .jb-contatti__form-inner {
    padding: 7rem 1.5rem 3rem;
  }

  .jb-contatti__form-inner {
    padding-top: 3rem;
  }

  .jb-filiali__item {
    flex-direction: column;
    gap: 0.65rem;
  }

  .jb-filiali__meta {
    align-items: flex-start;
    text-align: left;
    max-width: none;
  }

  .jb-contatti__form .jb-quote__grid {
    grid-template-columns: 1fr;
  }

  .jb-contatti-map {
    height: 650px;
  }
}

/* =====================================================
   Lista news
   ===================================================== */
.jb-news-list {
  padding: 5.5rem 0 7rem;
  background: #fff;
  overflow: visible;
}

.jb-news-list__inner {
  width: 100%;
  max-width: none;
  padding-left: 4rem;
  padding-right: 4rem;
  overflow: visible;
}

.jb-news-list__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 19.25rem);
  column-gap: 4rem;
  align-items: start;
  overflow: visible;
}

.jb-news-list__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 3.5rem;
  align-items: start;
}

.jb-news-list .jb-news__card--down {
  margin-top: 3.5rem;
}

.jb-news-list .jb-news__date {
  font-size: 0.95rem;
}

.jb-news-list .jb-news__card-title {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
}

.jb-news-sidebar {
  position: sticky;
  top: var(--jb-news-sidebar-top, 6.5rem);
  align-self: start;
  z-index: 2;
}

.jb-news-sidebar__widget {
  padding: 1.35rem 1.35rem 1.45rem;
  background: #f9f9fc;
  border-radius: 5px;
}

.jb-news-sidebar__widget + .jb-news-sidebar__widget {
  margin-top: 1.25rem;
}

.jb-news-sidebar__title {
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e2e2e8;
  font-family: var(--jb-font-body) !important;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: #121212;
  text-transform: none;
  letter-spacing: 0;
}

.jb-news-sidebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jb-news-sidebar__list li + li {
  margin-top: 0.35rem;
}

.jb-news-sidebar__list a {
  font-family: var(--jb-font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.4;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
  color: rgba(34, 30, 32, 0.68);
}

.jb-news-sidebar__list a:hover,
.jb-news-sidebar__list a:focus-visible {
  opacity: 0.65;
  outline: none;
}

.jb-news-sidebar__list--icons a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.jb-news-sidebar__list--icons li + li {
  margin-top: 0.18rem;
}

.jb-news-sidebar__icon {
  display: block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.jb-news-sidebar__list--news li + li {
  margin-top: 0.85rem;
}

.jb-news-sidebar__list--news a:hover,
.jb-news-sidebar__list--news a:focus-visible {
  opacity: 1;
}

.jb-news-sidebar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.jb-news-sidebar__thumb {
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 4px;
  background-color: #e8e8ee;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.jb-news-sidebar__item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 0.05rem;
}

.jb-news-sidebar__date {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--jb-font-body);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
  color: #9a9aa3;
}

.jb-news-sidebar__item-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--jb-font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.35;
  color: rgba(34, 30, 32, 0.85);
}

@media (max-width: 1199px) {
  .jb-news-list__layout {
    column-gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(15.4rem, 17.05rem);
  }
}

@media (max-width: 991px) {
  .jb-news-list {
    padding: 4rem 0 5rem;
  }

  .jb-news-list__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .jb-news-list__layout {
    grid-template-columns: 1fr;
    row-gap: 3.25rem;
  }

  .jb-news-sidebar {
    position: static;
  }

  .jb-news-list__grid {
    row-gap: 2.5rem;
  }

  .jb-news-list .jb-news__card--down {
    margin-top: 2.5rem;
  }
}

@media (max-width: 575px) {
  .jb-news-list__grid {
    grid-template-columns: 1fr;
  }

  .jb-news-list .jb-news__card--down {
    margin-top: 0;
  }
}

/* =====================================================
   Dettaglio news
   ===================================================== */
.jb-news-detail {
  background: #fff;
}

.jb-news-detail__hero {
  position: relative;
  background: #f9f9fc;
  color: #121212;
  padding: 8.5rem 0 8rem;
  overflow: visible;
}

.jb-news-detail__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-left: 4rem;
  padding-right: 4rem;
}

.jb-news-detail__hero-copy {
  max-width: min(44rem, 42%);
}

.jb-news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  font-family: var(--jb-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.55);
}

.jb-news-detail__category {
  color: #121212;
  font-weight: 600;
}

.jb-news-detail__meta-sep {
  opacity: 0.55;
}

.jb-news-detail__title {
  margin: 0 0 1.15rem;
  font-family: var(--jb-font-body) !important;
  font-size: clamp(2rem, 2.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  text-transform: none;
  color: #121212;
}

.jb-news-detail__lead {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.55;
  color: #121212;
}

.jb-news-detail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--jb-blue);
  border-radius: 5px;
  background: var(--jb-blue);
  color: #fff !important;
  font-family: var(--jb-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.jb-news-detail__cta:hover,
.jb-news-detail__cta:focus-visible {
  background: transparent;
  color: var(--jb-blue) !important;
  outline: none;
}

body.jb-page--news-detail .jb-quote {
  scroll-margin-top: 6rem;
}

.jb-news-detail__media {
  position: absolute;
  right: 4rem;
  bottom: -40%;
  z-index: 3;
  width: min(50%, 1100px);
  margin: 0;
  aspect-ratio: 4 / 2.3;
  overflow: hidden;
  border-radius: 5px;
  background: #e8e8ee;
  box-shadow: 0 18px 48px rgba(12, 0, 46, 0.18);
  isolation: isolate;
}

.jb-news-detail__media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #e8e8ee;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.jb-news-detail__body {
  position: relative;
  z-index: 1;
  padding: 4em 0 6rem;
  background: #fff;
}

.jb-news-detail__body-inner {
  width: 100%;
  max-width: none;
  padding-left: 4rem;
  padding-right: 4rem;
  overflow: visible;
}

.jb-news-detail__main {
  min-width: 0;
}

.jb-news-detail__index {
  margin: 0 0 2.75rem;
  max-width: min(42rem, 100%);
}

.jb-news-detail__spacer {
  display: block;
  width: 100%;
  height: clamp(10rem, 20vw, 15rem);
  pointer-events: none;
}

.jb-news-detail__index-label {
  margin: 0 0 1rem;
  font-family: var(--jb-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9aa3;
}

.jb-news-detail__toc {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.jb-news-detail__toc li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid #e4e4e8;
  font-family: var(--jb-font-body);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  font-weight: 300;
  line-height: 1.4;
  color: #221E20;
}

.jb-news-detail__toc li:last-child {
  border-bottom: none;
}

.jb-news-detail__toc-num {
  flex: 0 0 auto;
  font-weight: 400;
  color: #221E20;
}

.jb-news-detail__toc a {
  display: block;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: #221E20 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.jb-news-detail__toc a:hover,
.jb-news-detail__toc a:focus-visible {
  color: var(--jb-blue) !important;
  outline: none;
}

.jb-news-detail__content {
  width: 100%;
  font-family: var(--jb-font-body);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(34, 30, 32, 0.68);
}

.jb-news-detail__content h2 {
  scroll-margin-top: 7rem;
}

.jb-news-detail__section {
  scroll-margin-top: 7rem;
}

.jb-news-detail__section + .jb-news-detail__section {
  margin-top: 2.75rem;
}

.jb-news-detail__content h2,
.jb-news-detail__content h3,
.jb-news-detail__content h4,
.jb-news-detail__content h5,
.jb-news-detail__content h6,
.jb-news-detail__section h2,
.jb-news-detail__section h3,
.jb-news-detail__section h4,
.jb-news-detail__section h5,
.jb-news-detail__section h6 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--jb-font-body) !important;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
  color: #221E20;
}

.jb-news-detail__content h2,
.jb-news-detail__section h2 {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
}

.jb-news-detail__content h3,
.jb-news-detail__section h3 {
  font-size: clamp(1.35rem, 1.7vw, 1.55rem);
}

.jb-news-detail__content h4,
.jb-news-detail__section h4 {
  font-size: clamp(1.25rem, 1.5vw, 1.4rem);
}

.jb-news-detail__content h5,
.jb-news-detail__section h5 {
  font-size: clamp(1.15rem, 1.35vw, 1.3rem);
}

.jb-news-detail__content h6,
.jb-news-detail__section h6 {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
}

.jb-news-detail__content h2:first-child,
.jb-news-detail__content h3:first-child,
.jb-news-detail__content h4:first-child,
.jb-news-detail__content h5:first-child,
.jb-news-detail__content h6:first-child,
.jb-news-detail__section:first-child h2 {
  margin-top: 0;
}

.jb-news-detail__content p,
.jb-news-detail__section p {
  margin: 0 0 1rem;
  font-family: var(--jb-font-body);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(34, 30, 32, 0.68);
}

.jb-news-detail__content p:last-child,
.jb-news-detail__section p:last-child {
  margin-bottom: 0;
}

.jb-news-detail__content strong,
.jb-news-detail__content b,
.jb-news-detail__section strong,
.jb-news-detail__section b {
  color: #222;
  font-weight: 400;
}

.jb-news-detail__content a,
.jb-news-detail__section a {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(34, 30, 32, 0.35);
}

.jb-news-detail__content a:hover,
.jb-news-detail__content a:focus-visible,
.jb-news-detail__section a:hover,
.jb-news-detail__section a:focus-visible {
  color: inherit;
  text-decoration-color: rgba(34, 30, 32, 0.65);
  outline: none;
}

/* Laptop: media news detail. Large (≥1600) invariato. */
@media (max-width: 1599.98px) and (min-width: 992px) {
  .jb-news-detail__media {
    right: 4rem;
    bottom: -18%;
    width: min(45%, 700px);
  }

  .jb-news-detail__lead {
    padding-right: 60px;
  }

  .jb-news-detail__hero-copy {
    max-width: min(48rem, 52%);
  }
}

@media (max-width: 1199px) {
  .jb-news-detail__hero-inner,
  .jb-news-detail__body-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .jb-news-detail__media {
    right: 2rem;
  }
}

@media (max-width: 991px) {
  .jb-news-detail__hero {
    padding: 7.5rem 0 0;
  }

  .jb-news-detail__hero-inner,
  .jb-news-detail__body-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .jb-news-detail__hero-copy {
    max-width: none;
    padding-bottom: 1.5rem;
  }

  .jb-news-detail__media {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 3rem);
    margin: 0.75rem auto -18%;
    z-index: 3;
  }

  .jb-news-detail__body {
    padding-top: calc(18% + 2.5rem);
  }

  .jb-news-detail__spacer {
    display: none;
  }

  .jb-news-detail__index {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575px) {
  .jb-news-detail__media {
    width: calc(100% - 2.5rem);
    margin: 0.5rem auto -20%;
  }

  .jb-news-detail__body {
    padding-top: calc(20% + 2rem);
  }
}



/* =====================================================
   Pagina About
   ===================================================== */
body.jb-page--about {
  background: #fff;
}

body.jb-page--about .body_wrapper {
  position: relative;
  overflow: visible;
}

body.jb-page--about.jb-about-video-active {
  background: #000;
}

body.jb-page--about .jb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent !important;
  box-shadow: none !important;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

body.jb-page--about.jb-about-video-active .jb-header,
body.jb-page--about.jb-about-video-active .jb-header.navbar_fixed {
  position: fixed;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Sticky bianco: solo quando il video non è più in vista */
body.jb-page--about:not(.jb-about-video-active) .jb-header.navbar_fixed {
  position: fixed;
  width: 100%;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 4px 6px rgba(12, 0, 46, 0.06) !important;
}

/* Durante video: ignora lo stile sticky (logo/link bianchi) */
body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header .sticky_logo img:first-child,
body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header.navbar_fixed .sticky_logo img:first-child {
  display: inline-block !important;
}

body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header .sticky_logo img + img,
body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header.navbar_fixed .sticky_logo img + img {
  display: none !important;
}

body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header .jb-nav__menu > .nav-item > .nav-link,
body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header.navbar_fixed .jb-nav__menu > .nav-item > .nav-link {
  color: #fff !important;
}

body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn {
  background: #fff !important;
  color: var(--jb-blue) !important;
}

/* Durante il fade su bianco: header ancora trasparente, testo/logo scuri */
body.jb-page--about.jb-about-video-fading .jb-header .sticky_logo img:first-child {
  display: none;
}

body.jb-page--about.jb-about-video-fading .jb-header .sticky_logo img + img {
  display: inline-block;
}

body.jb-page--about.jb-about-video-fading .jb-header .jb-nav__menu > .nav-item > .nav-link {
  color: #221E20 !important;
}

body.jb-page--about.jb-about-video-fading .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--about.jb-about-video-fading .jb-header .menu_four .menu_toggle .hamburger-cross span {
  background: #221E20;
}

body.jb-page--about.jb-about-video-fading .jb-header .jb-nav__contact .nav-item .jb-nav__btn {
  background: var(--jb-blue) !important;
  color: #fff !important;
}

body.jb-page--about .jb-header.navbar_fixed {
  position: fixed;
  width: 100%;
}

body.jb-page--about .jb-header .sticky_logo img {
  display: none;
}

body.jb-page--about .jb-header .sticky_logo img + img {
  display: none;
}

body.jb-page--about .jb-header .sticky_logo img:first-child {
  display: inline-block;
}

body.jb-page--about .jb-header .jb-nav__menu > .nav-item > .nav-link {
  color: #fff !important;
}

body.jb-page--about .jb-header .menu_four .menu_toggle .hamburger span,
body.jb-page--about .jb-header .menu_four .menu_toggle .hamburger-cross span {
  background: #fff;
}

body.jb-page--about .jb-header .jb-nav__contact .nav-item .jb-nav__btn {
  background: #fff !important;
  color: var(--jb-blue) !important;
}

body.jb-page--about .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--about .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus {
  background: #f2f2f8 !important;
  color: var(--jb-blue) !important;
}

body.jb-page--about .header_area.navbar_fixed .sticky_logo img:first-child {
  display: none;
}

body.jb-page--about .header_area.navbar_fixed .sticky_logo img + img {
  display: inline-block;
}

body.jb-page--about .header_area.navbar_fixed .jb-nav__menu > .nav-item > .nav-link {
  color: #221E20 !important;
}

body.jb-page--about .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn {
  background: var(--jb-blue) !important;
  color: #fff !important;
}

body.jb-page--about .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn:hover,
body.jb-page--about .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn:focus {
  background: #000070 !important;
  color: #fff !important;
}

body.jb-page--about .header_area.navbar_fixed .menu_four .menu_toggle .hamburger span,
body.jb-page--about .header_area.navbar_fixed .menu_four .menu_toggle .hamburger-cross span {
  background: #221E20;
}

/* Hero video scrub (scroll-driven, stage fixed) */
.jb-about-video {
  position: relative;
  /* niente z-index: lo stage fixed deve competere con il manifesto pinned */
  background: #000;
}

body.jb-page--about:not(.jb-about-video-active) .jb-about-video {
  background: #fff;
}

.jb-about-video__track {
  height: 280vh;
  pointer-events: none;
}

.jb-about-video__stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.jb-about-video__stage.is-done {
  display: none;
}

.jb-about-video__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  will-change: opacity;
  user-select: none;
}

canvas.jb-about-video__media {
  object-fit: unset;
}

.jb-about-video__intros {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

.jb-about-video__intros-gap {
  display: none;
}

.jb-about-video__intro {
  position: absolute;
  z-index: 2;
  display: block;
  width: 30%;
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: var(--jb-font-body);
  font-size: clamp(1.65rem, 2.75vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  pointer-events: none;
  will-change: opacity;
  box-sizing: border-box;
}

.jb-about-video__intro--left {
  top: 25%;
  left: clamp(1.25rem, 3vw, 3rem);
  text-align: left;
  padding-right: 0.75rem;
}

.jb-about-video__intro--right {
  bottom: 15%;
  right: clamp(1.25rem, 3vw, 3rem);
  text-align: right;
  padding-left: 0.75rem;
}

.jb-about-video__claim {
  position: absolute;
  top: 50%;
  z-index: 2;
  margin: 0;
  font-family: var(--jb-font-heading);
  font-size: clamp(3.75rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
}

.jb-about-video__claim--right {
  right: clamp(2rem, 5vw, 4.5rem);
  text-align: right;
}

.jb-about-video__claim--left {
  left: clamp(2rem, 5vw, 4.5rem);
  text-align: left;
}

.jb-about-video__claim--fill {
  color: #fff;
}

.jb-about-video__claim--outline {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
}

/* Manifesto: fixed al centro; si sblocca quando .jb-about-rest arriva al 20% dal bottom */
.jb-about-manifesto {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  margin: 0;
  height: 100vh;
  min-height: 0;
  padding: clamp(5rem, 12vh, 8rem) 4rem;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.jb-about-manifesto.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Scorre con la pagina, distanza bloccata al momento del release */
.jb-about-manifesto.is-released {
  position: absolute;
  inset: auto;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.jb-about-manifesto__inner {
  max-width: 51rem;
}

.jb-about-manifesto__text {
  position: relative;
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.45;
  color: #221E20;
}

.jb-about-manifesto__text span {
  color: var(--jb-red);
  padding: 0;
  margin: 0;
}

.jb-about-manifesto-slot {
  position: relative;
  z-index: 0;
  height: 20vh;
  pointer-events: none;
  background: transparent;
}

.jb-about-rest {
  position: relative;
  z-index: 3;
  background: #fff;
}

/* Split — foto sx / lista valori dx */
.jb-about-split {
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  min-height: 0;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem) clamp(1.25rem, 3vw, 2.5rem);
  background: #fff;
}

.jb-about-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: clamp(0.5rem, 2vw, 1.5rem);
}

.jb-about-split__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.jb-about-split__item {
  padding: 0;
  border-bottom: 1px solid rgba(34, 30, 32, 0.12);
}

.jb-about-split__item:last-child {
  border-bottom: 0;
}

.jb-about-split__item.is-cascade {
  opacity: 0;
  transform: translate3d(0, 110%, 0);
  transition:
    transform 0.96s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.75s ease;
  will-change: transform, opacity;
}

.jb-about-split__item.is-cascade.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.jb-about-split__trigger {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 2rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.jb-about-split__item:first-child .jb-about-split__trigger {
  padding-top: 0;
}

.jb-about-split__item.is-active .jb-about-split__trigger {
  padding-bottom: 0.35rem;
}

.jb-about-split__num {
  flex: 0 0 auto;
  min-width: 2.35rem;
  font-family: var(--jb-font-body);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--jb-red);
  line-height: 1;
}

.jb-about-split__item-title {
  margin: 0;
  font-family: var(--jb-font-body) !important;
  font-size: clamp(1.1rem, 1.6vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: #221E20;
}

.jb-about-split__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.jb-about-split__item.is-active .jb-about-split__panel {
  grid-template-rows: 1fr;
}

.jb-about-split__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.jb-about-split__item-text {
  margin: 0;
  padding: 0.35rem 0 2rem 2.85rem;
  max-width: 50rem;
  font-family: var(--jb-font-body);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(34, 30, 32, 0.68);
}

.jb-about-split__item:last-child.is-active .jb-about-split__item-text {
  padding-bottom: 0;
}

/* Copy — titolo manifesto + testo accordion, max 50% sx */
.jb-about-copy {
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
  background: #fff;
}

.jb-about-copy__inner {
  max-width: 100%;
  text-align: justify;
}

.jb-about-copy__title {
  margin: 0 0 1.25rem;
}

.jb-about-copy__text {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(34, 30, 32, 0.68);
}

.jb-about-copy__text p {
  margin: 0 0 0.85em;
}

.jb-about-copy__text p:last-child {
  margin-bottom: 0;
}

.jb-about-copy__text h2 {
  color: #221E20;
  font-family: var(--jb-font-body) !important;
}

.jb-about-split__media {
  min-width: 0;
  justify-self: start;
  width: 100%;
  display: flex;
}

.jb-about-split__frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  height: 700px;
  min-height: 700px;
  max-height: 700px;
  background: #1a1a1e;
}

.jb-about-split__bg {
  position: absolute;
  inset: -16%;
  z-index: 0;
  background-color: #1a1a1e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.22);
  will-change: transform;
  pointer-events: none;
}

.jb-about-split__parallax-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: transform;
  pointer-events: none;
}

.jb-about-split__tags {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 2rem);
}

.jb-about-split__tags--tl {
  top: 2rem;
  left: 2rem;
}

.jb-about-split__tags--br {
  right: 2rem;
  bottom: 2rem;
}

.jb-about-split__tags--br .jb-highlights__tags {
  align-items: flex-end;
}

.jb-about-split__frame .jb-highlights__tag {
  font-size: 1.5rem;
  line-height: 1.25;
  box-shadow: none;
}

/* TL: primo tag stondato tranne basso-sx; secondo solo angoli inferiori */
.jb-about-split__tags--tl .jb-highlights__tag:first-child {
  border-radius: 5px 5px 5px 0;
}

.jb-about-split__tags--tl .jb-highlights__tag:last-child {
  border-radius: 0 0 5px 5px;
}

/* BR: primo solo angoli superiori; secondo tutto tranne alto-dx */
.jb-about-split__tags--br .jb-highlights__tag:first-child {
  border-radius: 5px 5px 0 0;
}

.jb-about-split__tags--br .jb-highlights__tag:last-child {
  border-radius: 5px 0 5px 5px;
}

@media (prefers-reduced-motion: reduce) {
  .jb-about-split__bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }

  .jb-about-split__parallax-front {
    will-change: auto;
    transform: none !important;
  }
}

/* Share + partners */
.jb-about-share {
  background: #221E20;
  padding: 1.35rem 1.5rem;
  text-align: center;
}

.jb-about-share__text {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
}

.jb-about-share__text strong {
  font-weight: 700;
}

.jb-about-partners {
  position: relative;
  z-index: 1;
  background: #fff;
  overflow: visible;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.jb-about-partners::after {
  content: "";
  position: absolute;
  left: -12%;
  width: 124%;
  top: 35%;
  bottom: -8rem;
  z-index: 0;
  background: var(--jb-blue);
  pointer-events: none;
  transform: rotate(-3deg);
  transform-origin: center center;
}

.jb-about-partners__marquee {
  position: relative;
  z-index: 2;
  width: 160%;
  margin-left: -30%;
  overflow: hidden;
  background: var(--jb-red);
  transform: rotate(-3deg);
  transform-origin: center center;
  will-change: transform;
}

.jb-about-partners__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  gap: 2.75em;
  padding: 2.5rem 0;
  color: #fff;
  animation: jb-about-partners-marquee 16s linear infinite;
  will-change: transform;
}

.jb-about-partners__text {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  color: #fff;
}

@keyframes jb-about-partners-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - 1.375em), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jb-about-partners__track {
    animation: none;
    transform: none;
  }
}

/* Solutions */
.jb-about-solutions {
  position: relative;
  z-index: 2;
  padding: 14rem 4rem 14rem;
  background-color: var(--jb-blue);
  color: #fff;
  overflow: hidden;
}

.jb-about-solutions__bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 82% auto;
  transform: translate3d(-48%, 0, 0) scale(1.08);
  will-change: transform;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .jb-about-solutions__bg {
    transform: translate3d(0, 0, 0) scale(1.08);
  }
}

.jb-about-solutions__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.25rem);
}

.jb-about-solutions__layer {
  will-change: transform;
}

.jb-about-solutions__title {
  margin: 0;
  max-width: min(55rem, 72%);
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  color: #fff;
}

.jb-about-solutions__title-accent {
  color: var(--jb-red);
}

.jb-about-solutions__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}

.jb-about-solutions__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  max-width: 35rem;
  padding-bottom: 0.25rem;
  margin-left: 5rem;
  align-self: center;
  margin-top: 10.5rem;
}

.jb-about-solutions__lead {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: clamp(1rem, 1.35vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.jb-about-solutions__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid #fff;
  border-radius: 5px;
  background: #fff;
  color: var(--jb-blue) !important;
  font-family: var(--jb-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.jb-about-solutions__link:hover,
.jb-about-solutions__link:focus-visible {
  background: transparent;
  color: #fff !important;
  outline: none;
}

.jb-about-solutions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
  max-width: 42rem;
  justify-self: end;
  overflow: hidden;
}

.jb-about-solutions__card {
  background: #fff;
  border-radius: 5px;
  padding: 1.25rem 1.1rem 1.2rem;
  color: #221E20;
}

.jb-about-solutions__card.is-cascade {
  opacity: 0;
  transform: translate3d(0, 110%, 0);
  transition:
    transform 0.96s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.75s ease;
  will-change: transform, opacity;
}

.jb-about-solutions__card.is-cascade.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.jb-about-solutions__icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.95rem;
  border-radius: 5px;
  background: var(--jb-blue);
}

.jb-about-solutions__card-title {
  margin-bottom: 40px;
  color: #221E20;
  font-family: var(--jb-font-body) !important;
  font-size: 1.40rem;
  font-weight: 600;
}

.jb-about-solutions__card-text {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(34, 30, 32, 0.72);
}

/* Impact */
.jb-about-impact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: clamp(38rem, 78vh, 52rem);
  padding: clamp(4.5rem, 8vw, 7rem) 1.5rem clamp(6rem, 10vw, 8.5rem);
  text-align: center;
  background: #fff;
  overflow: hidden;
}

.jb-about-impact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: min(42%, 18rem);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    #fff 100%
  );
  pointer-events: none;
}

.jb-about-impact__rings {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 0;
  width: min(92vw, 75rem);
  height: min(92vw, 75rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.jb-about-impact__rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(34, 30, 32, 0.1);
  border-radius: 50%;
}

.jb-about-impact__rings span:nth-child(1) { inset: 0%; }
.jb-about-impact__rings span:nth-child(2) { inset: 12%; }
.jb-about-impact__rings span:nth-child(3) { inset: 24%; }
.jb-about-impact__rings span:nth-child(4) { inset: 36%; }
.jb-about-impact__rings span:nth-child(5) { inset: 48%; }

.jb-about-impact__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

.jb-about-impact__title {
  margin: 0 0 1rem;
  max-width: 28rem;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  color: #221E20;
}

.jb-about-impact__caption {
  margin: 0 0 1.5rem;
  max-width: 26rem;
  font-family: var(--jb-font-body);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(34, 30, 32, 0.68);
}

.jb-about-impact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0.7rem 1.55rem;
  border-radius: 5px;
  background: var(--jb-blue);
  color: #fff !important;
  font-family: var(--jb-font-body);
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jb-about-impact__cta:hover {
  background: #000070;
  color: #fff !important;
  transform: translateY(-1px);
}

.jb-about-impact__number {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #221E20;
}

.jb-about-impact__number span {
  color: var(--jb-red);
}

.jb-about-impact__cards {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.jb-about-impact__card {
  position: absolute;
  width: min(16.5rem, 28vw);
  padding: 0.65rem 0.65rem 0.85rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(14, 0, 40, 0.12);
  text-align: left;
  pointer-events: auto;
  --jb-impact-rot: 0deg;
  transform: translate3d(0, 0, 0) rotate(var(--jb-impact-rot));
}

.jb-about-impact__card.is-cascade {
  opacity: 0;
  transform: translate3d(0, 110%, 0) rotate(var(--jb-impact-rot));
  transition:
    transform 0.96s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.75s ease;
  will-change: transform, opacity;
}

.jb-about-impact__card.is-cascade.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--jb-impact-rot));
}

.jb-about-impact__card-img {
  display: block;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 0.7rem;
  background: #ececf1;
}

.jb-about-impact__card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  border-radius: 7px;
  margin-bottom: 0.7rem;
  background: #ececf1;
}

.jb-about-impact__card-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background-color: #ececf1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.1);
  will-change: transform;
  pointer-events: none;
}

.jb-about-impact__card-name {
  margin: 0 0 0.2rem;
  font-family: var(--jb-font-body) !important;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #221E20;
}

.jb-about-impact__card-role {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.35;
  color: rgba(34, 30, 32, 0.62);
}

/* 4 card attorno al numero */
.jb-about-impact__card--1 {
  top: 16%;
  left: max(1.25rem, 12vw);
  --jb-impact-rot: 5deg;
}

.jb-about-impact__card--2 {
  top: 18%;
  right: max(1.25rem, 9vw);
  --jb-impact-rot: -9deg;
  z-index: 10;
}

.jb-about-impact__card--3 {
  bottom: 16%;
  left: max(2rem, 25vw);
  --jb-impact-rot: -3deg;
}

.jb-about-impact__card--4 {
  bottom: 21%;
  right: max(2rem, 22vw);
  --jb-impact-rot: 7deg;
}

/* Gallery */
.jb-about-gallery {
  padding: 0;
  background: #fff;
}

.jb-about-gallery__grid {
  display: grid;
  grid-template-columns: 35% 20% 45%;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: min(78vh, 46rem);
  background: #1a1a1e;
}

.jb-about-gallery__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  min-height: 0;
  min-width: 0;
}

.jb-about-gallery__item {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  min-height: 0;
  min-width: 0;
  height: 100%;
  background: #1a1a1e;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
}

.jb-about-gallery__bg {
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-color: #1a1a1e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.1);
  will-change: transform;
  pointer-events: none;
  transition: none;
}

.jb-about-gallery__item:hover .jb-about-gallery__bg {
  /* parallasse gestisce il transform; leggero boost solo via filter */
  filter: brightness(1.03);
}

/* Contact block */
.jb-about-contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2rem 4rem 6rem;
  background: #fff;
  align-items: stretch;
}

.jb-about-contact__form {
  padding: 0.5rem 1rem 0 0;
}

.jb-about-contact__title {
  margin: 0 0 2rem;
  font-family: var(--jb-font-heading) !important;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.12;
  color: #221E20;
  text-transform: uppercase;
}

.jb-about-contact__media {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  min-height: 520px;
}

.jb-about-contact__shot {
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #1a1a1e;
}

.jb-about-contact__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment_footer_area.jb_footer_light .footer_top_six .f_widget.about-widget .f_list li a::before {
  background: none;
}

.jb-quote__panel {
  background: #f9f9fc;
}

@media (max-width: 1199px) {
  .jb-about-video__intro--left {
    left: 1.5rem;
  }

  .jb-about-video__intro--right {
    right: 1.5rem;
  }

  .jb-about-manifesto {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .jb-about-solutions,
  .jb-about-impact,
  .jb-about-contact {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .jb-about-gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: min(70vh, 36rem);
  }

  .jb-about-gallery__item--main {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .jb-about-gallery__stack {
    grid-column: 2;
    grid-row: 1;
  }

  .jb-about-gallery__item--wide {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 991px) {
  html:has(body.jb-page--about) {
    scroll-behavior: auto;
    overflow-x: clip;
  }

  body.jb-page--about {
    overflow-x: clip;
    overscroll-behavior-y: none;
  }

  body.jb-page--about .body_wrapper {
    transform: none;
    filter: none;
    perspective: none;
    contain: none;
    overflow: visible;
  }

  body.jb-page--about .jb-header .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page--about .jb-header.navbar_fixed .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page--about .header_area.navbar_fixed .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page--about.jb-about-video-active .jb-header .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page--about.jb-about-video-active .jb-header.navbar_fixed .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header.navbar_fixed .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page--about.jb-about-video-fading .jb-header .jb-nav__menu > .nav-item > .nav-link,
  body.jb-page--about .jb-header .menu > .nav-item.submenu .dropdown-menu > .nav-item > .nav-link,
  body.jb-page--about .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page--about .jb-header.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page--about .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page--about.jb-about-video-active .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page--about.jb-about-video-active .jb-header.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page--about.jb-about-video-active:not(.jb-about-video-fading) .jb-header.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page--about.jb-about-video-fading .jb-header .jb-nav__contact .nav-item .jb-nav__btn,
  body.jb-page--about .jb-header .jb-nav__contact .nav-item .jb-nav__btn:hover,
  body.jb-page--about .jb-header .jb-nav__contact .nav-item .jb-nav__btn:focus,
  body.jb-page--about .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn:hover,
  body.jb-page--about .header_area.navbar_fixed .jb-nav__contact .nav-item .jb-nav__btn:focus {
    background: transparent !important;
    color: #221E20 !important;
    box-shadow: none !important;
  }

  .jb-about-video {
    position: relative;
  }

  .jb-about-video__track {
    height: 0 !important;
    min-height: 0;
    overflow: hidden;
  }

  .jb-about-video__stage {
    position: sticky;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    overflow: hidden;
  }

  .jb-about-video__media,
  canvas.jb-about-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
  }

  .jb-about-video__intros {
    display: block;
    padding: 0 1.25rem;
  }

  .jb-about-video__intro {
    width: auto;
    max-width: none;
    left: 1.25rem;
    right: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .jb-about-video__intro--left {
    top: 5.75rem;
    left: 1.25rem;
    right: 1.25rem;
    text-align: left;
    padding-right: 0;
  }

  .jb-about-video__intro--right {
    bottom: 1.5rem;
    left: 1.25rem;
    right: 1.25rem;
    text-align: right;
    padding-left: 30px;
  }

  .jb-about-video__claim {
    font-size: clamp(2rem, 10.5vw, 2.75rem);
    left: 1.25rem;
    right: 1.25rem;
    width: auto;
    max-width: calc(100% - 2.5rem);
    text-align: center;
    white-space: nowrap;
  }

  .jb-about-video__claim--outline {
    -webkit-text-stroke-width: 1.5px;
  }

  .jb-about-video__claim--right,
  .jb-about-video__claim--left {
    left: 1.25rem;
    right: 1.25rem;
    text-align: center;
  }

  .jb-about-split {
    grid-template-columns: 1fr;
    padding: 3rem 1.35rem 3.5rem;
    gap: 2.25rem;
  }

  .jb-about-split__content {
    padding-left: 0;
  }

  .jb-about-split__media {
    justify-self: stretch;
  }

  .jb-about-split__frame {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }

  .jb-about-split__item-text {
    padding-left: 0;
  }

  .jb-about-split__trigger {
    gap: 0.75rem;
  }

  .jb-about-solutions__inner {
    gap: 2rem;
  }

  .jb-about-solutions__title {
    max-width: none;
  }

  .jb-about-solutions__body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .jb-about-solutions__grid {
    max-width: none;
    justify-self: stretch;
  }

  .jb-about-impact__cards {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    max-width: 28rem;
    margin: 2rem auto 0;
    pointer-events: auto;
  }

  .jb-about-impact__card {
    position: static;
    width: auto;
  }

  .jb-about-impact__rings {
    top: 50%;
    width: min(110vw, 36rem);
    height: min(110vw, 36rem);
  }

  .jb-about-contact {
    grid-template-columns: 1fr;
    padding: 1rem 1.5rem 4rem;
  }

  .jb-about-contact__media {
    min-height: 420px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 767px) {
  .jb-about-manifesto {
    padding: 4rem 1.25rem;
  }

  .jb-about-manifesto__text {
    font-size: 1.2rem;
  }

  .jb-about-copy {
    padding: 1.5rem 1.35rem 1.75rem;
  }

  .jb-about-copy__inner {
    max-width: 100%;
  }

  .jb-about-solutions {
    padding: 0.5rem 1.25rem 4rem;
  }

  .jb-about-solutions__copy {
    margin-top: 1.5rem;
  }

  .jb-about-solutions__bg {
    background-size: 92% auto;
  }

  .jb-about-solutions__grid {
    grid-template-columns: 1fr;
  }

  .jb-about-partners {
    padding: 3.5rem 0;
  }

  .jb-about-partners__marquee {
    width: 170%;
    margin-left: -35%;
  }

  .jb-about-partners__track {
    gap: 2.25em;
    padding: 1.35rem 0;
  }

  .jb-about-gallery {
    padding-bottom: 0;
  }

  .jb-about-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .jb-about-gallery__item--main,
  .jb-about-gallery__item--wide,
  .jb-about-gallery__stack {
    grid-column: auto;
    grid-row: auto;
  }

  .jb-about-gallery__item,
  .jb-about-gallery__stack .jb-about-gallery__item {
    height: 42vw;
    min-height: 180px;
  }

  .jb-about-gallery__stack {
    grid-template-rows: 1fr 1fr;
  }

  .jb-about-contact__media {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .jb-about-contact__shot {
    min-height: 220px;
  }

  .jb-about-impact {
    min-height: 0;
    padding: 4.5rem 1.25rem 5rem;
  }
}

/* =====================================================
   FAQ (list_faq)
   ===================================================== */
.jb-faq {
  padding: 8rem 0 6rem;
  background: #fff;
}

.jb-faq__inner {
  width: 100%;
  max-width: 52rem;
  margin: 0;
  padding-left: 4rem;
  padding-right: 4rem;
}

.jb-faq__intro {
  margin: 0 0 2.5rem;
  max-width: 38rem;
  font-family: var(--jb-font-body);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(34, 30, 32, 0.72);
}

.jb-faq__intro p {
  margin: 0 0 0.85em;
}

.jb-faq__intro p:last-child {
  margin-bottom: 0;
}

.jb-faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(18, 18, 18, 0.12);
}

.jb-faq__item {
  border-bottom: 1px solid rgba(18, 18, 18, 0.12);
}

.jb-faq__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
  margin: 0;
  padding: 1.35rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  user-select: none;
  appearance: none;
}

.jb-faq__num {
  font-family: var(--jb-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--jb-blue);
  line-height: 1;
}

.jb-faq__question {
  font-family: var(--jb-font-body);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  color: #121212;
  transition: color 0.2s ease;
}

.jb-faq__icon {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.jb-faq__icon::before,
.jb-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #121212;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.jb-faq__icon::before {
  width: 100%;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.jb-faq__icon::after {
  width: 1.5px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.jb-faq__item.is-open .jb-faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.jb-faq__item.is-open .jb-faq__question {
  color: var(--jb-blue);
}

.jb-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.jb-faq__item.is-open .jb-faq__answer {
  grid-template-rows: 1fr;
}

.jb-faq__answer-inner {
  overflow: hidden;
  min-height: 0;
  max-width: 40rem;
  padding: 0 0 0 calc(0.85rem * 2 + 1.15rem);
  font-family: var(--jb-font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(34, 30, 32, 0.72);
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 0.28s ease, transform 0.35s ease, padding-bottom 0.35s ease;
}

.jb-faq__item.is-open .jb-faq__answer-inner {
  padding-bottom: 1.5rem;
  opacity: 1;
  transform: translateY(0);
}

.jb-faq__answer-inner p {
  margin: 0 0 0.75em;
}

.jb-faq__answer-inner p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .jb-faq__answer,
  .jb-faq__answer-inner,
  .jb-faq__icon::before,
  .jb-faq__icon::after,
  .jb-faq__question {
    transition: none;
  }

  .jb-faq__answer-inner {
    transform: none;
  }
}

.jb-faq__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.jb-faq__cta-text {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: #121212;
}

.jb-faq__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 5px;
  background: var(--jb-blue);
  color: #fff !important;
  font-family: var(--jb-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.18s ease;
}

.jb-faq__cta-btn:hover,
.jb-faq__cta-btn:focus-visible {
  background: #000070;
  color: #fff !important;
  outline: none;
}

@media (max-width: 991px) {
  .jb-faq__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .jb-faq__summary {
    gap: 0.85rem;
    padding: 1.15rem 0;
  }

  .jb-faq__answer-inner {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .jb-faq {
    padding: 2.5rem 0;
  }

  .jb-faq__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .jb-faq__num {
    display: none;
  }

  .jb-faq__summary {
    grid-template-columns: 1fr auto;
  }
}

/* =====================================================
   Installazioni (list_installazioni)
   ===================================================== */
body.jb-page--installazioni,
body.jb-page--installazioni .jb-settore-detail__title,
body.jb-page--installazioni .jb-settore-detail__lead,
body.jb-page--installazioni .jb-install {
  font-family: var(--jb-font-body) !important;
}

.jb-install {
  background: #fff;
  padding: 2rem 0 4rem;
}

.jb-install__band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas: "media grid";
  gap: 1.75rem;
  align-items: stretch;
  padding: 2.5rem 4rem;
}

.jb-install__band--flip {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas: "grid media";
}

.jb-install__media {
  grid-area: media;
  position: relative;
  min-height: 34rem;
  aspect-ratio: 3.5 / 4;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #e8e8ee;
  border-radius: 10px;
}

.jb-install__grid {
  grid-area: grid;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  align-content: stretch;
}

/* Laptop: padding griglia installazioni. */
@media (max-width: 1599.98px) and (min-width: 992px) {
  .jb-install__grid {
    padding: 2.5rem 6rem;
  }
}

/* Large: inset originale delle 4 schede accanto alla foto. */
@media (min-width: 1600px) {
  .jb-install__grid {
    padding: 6rem 10rem;
  }
}

.jb-install__media-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.12);
  will-change: transform;
  pointer-events: none;
}

.jb-install__label {
  z-index: 2;
  pointer-events: none;
  max-width: none;
}

.jb-install__media .jb-highlights__tag,
.jb-install__media .jb-about-split__tags--br .jb-highlights__tag:first-child,
.jb-install__media .jb-about-split__tags--br .jb-highlights__tag:last-child,
.jb-install__media .jb-about-split__tags--br .jb-highlights__tag:only-child {
  font-size: 1.5rem;
  line-height: 1.25;
  box-shadow: none;
  white-space: nowrap;
  border-radius: 5px;
}

.jb-install__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
  padding: 0.85rem 0.85rem 0.95rem;
  border: 1px solid rgba(18, 18, 18, 0.1);
  background: #fff;
  box-shadow: 0 2px 4px rgba(18, 18, 18, 0.04);
  font-family: var(--jb-font-body);
  border-radius: 5px;
}

.jb-install__card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.35rem;
}

.jb-install__card-num {
  flex: 0 0 auto;
  font-family: var(--jb-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #121212;
  line-height: 1.2;
  text-align: left;
}

.jb-install__card-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--jb-font-body) !important;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  color: #121212;
  text-align: right;
  overflow-wrap: break-word;
}

.jb-install__card-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 10.5rem;
  overflow: hidden;
  isolation: isolate;
  background: #f2f2f6;
  border-radius: 5px;
}

.jb-install__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .jb-install__media-bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 1199px) {
  .jb-install__band,
  .jb-install__band--flip {
    gap: 1.35rem;
    padding: 2rem 2rem;
  }

  .jb-install__media {
    min-height: 30rem;
  }
}

@media (max-width: 991px) {
  .jb-install__band,
  .jb-install__band--flip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "grid";
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }

  .jb-install__media {
    min-height: 0;
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .jb-install__grid {
    padding: 0;
    gap: 1rem;
  }

  .jb-install__label.jb-about-split__tags--br {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .jb-install__media .jb-highlights__tag {
    font-size: 1.15rem;
    padding: 0.4rem 0.65rem;
  }
}

@media (max-width: 767px) {
  .jb-install__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .jb-install__card {
    padding: 0.6rem 0.6rem 0.7rem;
    gap: 0.55rem;
  }

  .jb-install__card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-height: 0;
  }

  .jb-install__card-title {
    text-align: left;
    font-size: 0.78rem;
  }

  .jb-install__card-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575px) {
  .jb-install {
    padding: 1rem 0 2.5rem;
  }

  .jb-install__band,
  .jb-install__band--flip {
    padding: 1.5rem 1.25rem;
  }

  .jb-install__grid {
    gap: 0.65rem;
  }

  .jb-install__card {
    padding: 0.5rem;
  }

  .jb-install__card-title {
    font-size: 0.72rem;
  }
}

/* =====================================================
   SEO local
   ===================================================== */
.jb-seo-local {
  background: #fff;
}

.jb-seo-local__hero-shell {
  position: relative;
}

.jb-seo-local__hero.jb-news-detail__hero {
  padding-left: 0;
  padding-right: 0;
}

.jb-seo-local .jb-news-detail__hero-inner {
  padding-left: 0;
  padding-right: 0;
}

.jb-seo-local__hero {
  padding-bottom: 6rem;
}

.jb-seo-local__form {
  position: absolute;
  right: 15px;
  bottom: -60%;
  z-index: 3;
  width: min(45%, 45rem);
}

/* Laptop: form SEO local. Large (≥1600) invariato. */
@media (max-width: 1599.98px) and (min-width: 992px) {
  .jb-seo-local__form {
    bottom: -110%;
  }
}

.jb-seo-local__form-panel {
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(12, 0, 46, 0.14);
}

.jb-seo-local__form-head {
  margin: 0 0 1.1rem;
}

.jb-seo-local__form-title {
  margin: 0 0 0.25rem;
  font-family: var(--jb-font-body) !important;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  color: #121212;
  text-transform: none;
}

.jb-seo-local__form-lead {
  margin: 0;
  font-family: var(--jb-font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(34, 30, 32, 0.62);
}

.jb-seo-local__form .jb-quote__grid {
  gap: 0.75rem;
}

.jb-seo-local__form .jb-quote__input {
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
}

.jb-seo-local__form .jb-quote__label {
  font-size: 0.8rem;
}

.jb-seo-local__form .jb-quote__textarea {
  min-height: 4.5rem;
}

.jb-seo-local__form .jb-quote__footer {
  margin-top: 0.35rem;
  gap: 0.85rem;
}

.jb-seo-local__form .jb-quote__privacy {
  max-width: 100%;
  font-size: 0.82rem;
}

.jb-seo-local__form .jb-quote__submit {
  min-height: 2.7rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

.jb-seo-local__body {
  position: relative;
  z-index: 1;
  padding: 3rem 0 5rem;
  background: #fff;
}

.jb-seo-local__body-inner {
  width: 100%;
  max-width: min(50rem, 50%);
  padding-left: 0;
  padding-right: 0;
}

.jb-seo-local__body .jb-news-detail__content {
  max-width: none;
}

.jb-seo-local__splits {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 0 5rem;
  background: #fff;
}

.jb-seo-local__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.jb-seo-local__split--reverse .jb-seo-local__split-media {
  order: 2;
}

.jb-seo-local__split--reverse .jb-seo-local__split-copy {
  order: 1;
}

.jb-seo-local__split-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  border-radius: 5px;
  background: #e8e8ee;
}

.jb-seo-local__split-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.15);
  will-change: transform;
  pointer-events: none;
}

.jb-seo-local__split-copy {
  min-width: 0;
}

.jb-seo-local__split-text {
  font-family: var(--jb-font-body);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(34, 30, 32, 0.68);
}

.jb-seo-local__split-text p {
  margin: 0 0 0.9em;
}

.jb-seo-local__split-text p:last-child {
  margin-bottom: 0;
}

.jb-seo-local__split-text h2,
.jb-seo-local__split-text h3 {
  margin: 0 0 0.75rem;
  font-family: var(--jb-font-body) !important;
  font-weight: 500;
  line-height: 1.3;
  color: #121212;
  text-transform: none;
}

.jb-seo-local__map {
  width: 100%;
  padding: 0;
  line-height: 0;
  background: #fff;
}

.jb-seo-local__map iframe,
.jb-seo-local__map img,
.jb-seo-local__map > * {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.jb-seo-local__map iframe {
  min-height: 28rem;
  height: clamp(22rem, 42vw, 32rem);
}

.jb-seo-local__text-full {
  width: 100%;
  padding: 4rem 0 5rem;
  background: #fff;
}

.jb-seo-local__text-full-inner {
  width: 100%;
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  .jb-seo-local__split-bg {
    inset: 0;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 1199px) {
  .jb-seo-local__form {
    width: min(50%, 30rem);
  }

  .jb-seo-local__splits {
    gap: 2rem;
    padding: 0 0 4rem;
  }

  .jb-seo-local__split {
    gap: 2rem;
  }

  .jb-seo-local__text-full {
    padding: 3rem 0 4rem;
  }
}

@media (max-width: 991px) {
  .jb-seo-local__hero {
    padding-bottom: 3rem;
  }

  .jb-seo-local__form {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 1.5rem 0 0;
  }

  .jb-seo-local__body {
    padding: 2.5rem 0 3rem;
  }

  .jb-seo-local__body-inner {
    max-width: none;
  }

  .jb-seo-local__splits {
    gap: 2rem;
    padding: 0 0 3.5rem;
  }

  .jb-seo-local__split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .jb-seo-local__split--reverse .jb-seo-local__split-media,
  .jb-seo-local__split--reverse .jb-seo-local__split-copy {
    order: initial;
  }

  .jb-seo-local__map iframe {
    min-height: 20rem;
    height: 55vw;
  }

  .jb-seo-local__text-full {
    padding: 2.5rem 0 3.5rem;
  }
}

@media (max-width: 767px) {
  .jb-seo-local__form {
    margin: 1.25rem 0 0;
  }

  .jb-seo-local__form-panel {
    padding: 1.25rem 1.1rem 1.15rem;
  }

  .jb-seo-local__splits {
    padding: 0 0 3rem;
  }

  .jb-seo-local__text-full {
    padding: 2rem 0 3rem;
  }
}

/* =====================================================
   SEO local — sticky Chiama / Preventivo
   ===================================================== */
.jb-local-sticky {
  display: none;
}

@media (max-width: 991px) {
  body.jb-page--seo-local {
    --jb-sticky-bar-h: calc(4.15rem + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--jb-sticky-bar-h);
  }

  body.jb-page--seo-local #jb-quote {
    scroll-margin-bottom: var(--jb-sticky-bar-h);
  }

  .jb-local-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(18, 18, 18, 0.08);
  }

  .jb-local-sticky__call,
  .jb-local-sticky__quote {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-height: 3.05rem;
    padding: 0.4rem 0.7rem;
    border-radius: 5px;
    font-family: var(--jb-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none !important;
  }

  .jb-local-sticky__call {
    border: 1px solid var(--jb-blue);
    background: #fff;
    color: var(--jb-blue) !important;
  }

  .jb-local-sticky__quote {
    background: var(--jb-blue);
    color: #fff !important;
  }
}

/* Hamburger mobile: voci scure su pannello bianco, CTA senza bottone.
   Vince sugli stili pagina (hero trasparente / sticky) solo sotto 991px. */
@media (max-width: 991px) {
  body.jb-page .jb-header .navbar-collapse .jb-nav__bar .jb-nav__menu.navbar-nav > .nav-item > .nav-link,
  body.jb-page .jb-header.navbar_fixed .navbar-collapse .jb-nav__bar .jb-nav__menu.navbar-nav > .nav-item > .nav-link,
  body.jb-page .header_area.navbar_fixed .navbar-collapse .jb-nav__bar .jb-nav__menu.navbar-nav > .nav-item > .nav-link,
  body.jb-page .jb-header .navbar-collapse .jb-nav__bar .jb-nav__menu .dropdown-menu > .nav-item > .nav-link,
  body.jb-page .jb-header .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn,
  body.jb-page .jb-header.navbar_fixed .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn,
  body.jb-page .header_area.navbar_fixed .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn,
  body.jb-page .jb-header .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn:hover,
  body.jb-page .jb-header .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn:focus,
  body.jb-page .jb-header.navbar_fixed .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn:hover,
  body.jb-page .jb-header.navbar_fixed .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn:focus,
  body.jb-page .header_area.navbar_fixed .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn:hover,
  body.jb-page .header_area.navbar_fixed .navbar-collapse .jb-nav__bar .jb-nav__contact.navbar-nav .nav-item .jb-nav__btn:focus {
    background: transparent !important;
    color: #221E20 !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
}

@media print {
  .jb-local-sticky {
    display: none !important;
  }
}
