/* Homepage: identità originale e proporzioni editoriali. */
@font-face {
  font-family: 'Agency FB';
  src: url('../fonts/AgencyFB-Reg.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Agency FB';
  src: url('../fonts/AgencyFB-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Px Grotesk';
  src: url('../fonts/PxGrotesk-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.home {
  --home-width: 1440px;
  --home-gutter: 48px;
  --home-blue: #005b9f;
  --home-ink: #203547;
}
.home .hero-text,
.home .text-box,
.home .box_services_title,
.home .box-statsCount,
.home .box-statsText,
.home .teams-title,
.home .prn-home-label,
.home .form_container .form-control,
.home .form_container .checkbox label {
  font-family: 'Px Grotesk', sans-serif;
}
.home a:focus-visible,
.home button:focus-visible,
.home [role='button']:focus-visible,
.home input:focus-visible,
.home textarea:focus-visible {
  outline: 3px solid #5eb8ff;
  outline-offset: 4px;
}

/* Header e hero condividono la stessa linea di allineamento. */
.home .navbar-container {
  width: calc(100% - var(--home-gutter) * 2);
  max-width: var(--home-width);
  padding: 0;
}
.home .navbar {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(9, 43, 69, .08);
}
.home .navbar .logo {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
}
.home .navbar-brand { padding: 0; }
.home #thelogo {
  width: auto;
  height: 82px;
  margin: 0;
}
.home .navbar-expand-lg .navbar-collapse { top: 0; left: 0; }
.home .navbar-expand-lg .navbar-nav .nav-link {
  padding: 16px 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .3px;
}
.home .navbar-nav .nav-item:last-child .nav-link { padding-right: 0; }
.home .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border-radius: 4px;
}
.home .slider { margin: 0; }
.home .slider > .col { padding: 0; }
.home #slider .carousel-item > img {
  width: 100%;
  height: clamp(640px, 42vw, 800px);
  max-height: none;
  object-fit: cover;
  object-position: center;
}
.home #slider .carousel-caption {
  top: 54%;
  right: auto;
  bottom: auto;
  left: max(var(--home-gutter), calc((100% - var(--home-width)) / 2));
  z-index: 300;
  width: 47%;
  max-width: 670px;
  padding: 0;
  transform: translateY(-46%);
  text-align: left;
}
.home .hero-title {
  margin: 0 !important;
  font-size: clamp(54px, 4vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .1px;
}
.home .hero-title span { display: block; }
.home .hero-text {
  max-width: 590px;
  margin: 26px 0 32px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  opacity: 1;
}
.home .hero-btn-mobile { margin: 0 !important; }
.home .btn-services {
  min-height: 52px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.3;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.home .btn-services:hover {
  background-color: #0075bd;
  box-shadow: 0 6px 16px rgba(0, 47, 82, .18);
}

/* Quattro aree: blu originale, bordi netti, icone e frecce conservate. */
.home .box_services {
  top: 0;
  width: calc(100% - var(--home-gutter) * 2);
  max-width: var(--home-width);
  margin: -84px auto 0;
  padding: 0;
  position: relative;
}
.home .box_services > .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
.home .box_services .box_padding { width: auto; min-width: 0; padding: 0; }
.home .box_services_wrapper {
  height: 100%;
  min-width: 0;
  min-height: 208px;
  margin: 0;
  padding: 28px;
  border-bottom: 3px solid #5eb8ff;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 40, 70, .1) !important;
  position: relative;
  transition: background-color .18s ease;
}
.home .box_services_wrapper:hover { background-color: #0069af; }
.home .box_services_icon { margin-bottom: 22px; }
.home .box_services_title {
  margin-top: 0 !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}
.home .box_hover { gap: 14px; }
.home .box_cta_svg { flex: 0 0 20px; }
.home .box_hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
}
.home .box_services_wrapper:focus-within {
  outline: 3px solid #5eb8ff;
  outline-offset: 4px;
}

/* La foto riempie la sua colonna: annullato il vecchio flex-basis Bootstrap. */
.home .wrap-textContainer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center !important;
  gap: clamp(40px, 5vw, 88px);
  top: 0;
  width: calc(100% - var(--home-gutter) * 2);
  max-width: var(--home-width);
  margin: 0 auto !important;
  padding: 96px 0;
}
.home .wrap-textContainer > aside,
.home .wrap-textContainer > article {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
}
.home .wrap-textContainer .pic-widget-bg {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 560px;
  border-radius: 4px !important;
  background-position: 40% center !important;
}
.home .wrap-textContainer article > header,
.home .wrap-textContainer article > div { padding: 0 !important; }
.home .wrap-textContainer h1 {
  margin: 0 0 28px;
  color: var(--home-ink);
  font-size: clamp(42px, 3.3vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .3px;
}
.home .wrap-textContainer .text-box {
  margin-bottom: 20px;
  color: #344654;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.75;
  text-align: left;
  opacity: 1;
}
.home .wrap-textContainer .text-box strong { color: var(--home-blue); }
.home .wrap-textContainer .btn-services { margin-top: 10px; }

/* Fascia gialla e sezione blu: stessi colori del sito originale. */
.home .box-stats {
  top: 0;
  width: calc(100% - var(--home-gutter) * 2);
  max-width: var(--home-width);
  min-height: 0;
  padding: 40px 28px;
  border-radius: 4px;
}
.home .box-stats > .container { max-width: none; }
.home .box-stats .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.home .box-stats .row > div { max-width: none; padding: 0 24px; }
.home .box-stats .row > div + div { border-left: 1px solid rgba(39, 54, 65, .2); }
.home .box-statsCount {
  color: var(--home-ink);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}
.home .box-statsText {
  margin: 10px 0 0;
  color: var(--home-ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}
.home .box-teams {
  margin-top: -80px;
  padding: 154px 0 88px;
}
.home .box-teams > header {
  flex-direction: column;
  gap: 22px;
  margin: 0;
}
.home .box-teams > header::after {
  width: 56px;
  height: 3px;
  background: #fdde0b;
  content: '';
}
.home .box-teams .ohana_title--default {
  margin: 0;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.15;
}
.home .box-teams .container-ohana {
  width: calc(100% - var(--home-gutter) * 2);
  max-width: var(--home-width);
  margin-top: 48px !important;
  padding: 0;
}
.home .box-teams .ohana-services-list > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}
.home .carousel-wrap { margin: 0; padding: 0; }
.home .owl-carousel .item {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  align-items: stretch;
  min-height: 300px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}
.home .owl-carousel .item > img {
  width: 100%;
  height: 276px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 5px !important;
}
.home .owl-carousel .item > .row { min-width: 0; margin: 0; }
.home .owl-carousel .item > .row > div { padding: 0; }
.home .texto-box {
  top: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  max-height: none !important;
  margin: 0;
  padding: 20px 12px 20px 24px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  text-align: left;
}
.home .teams-title {
  margin: 0 0 12px;
  color: var(--home-ink) !important;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
}
.home .teams-subtitle {
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 2px solid #0288d1;
  color: #40596a;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}
.home .owl-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.home .owl-nav.disabled { display: none; }
.home .owl-nav .owl-prev,
.home .owl-nav .owl-next {
  display: flex;
  position: static;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  border: 1px solid #5eb8ff;
  border-radius: 50%;
  color: #fff;
  font-family: 'Px Grotesk', sans-serif;
  font-size: 32px;
  line-height: 1;
}
.home .owl-nav > div:hover { background: #0075bd; }

/* Inquadratura dall'alto: i volti restano nel fotogramma anche durante lo scroll. */
.home .parallax-img {
  height: clamp(440px, 32vw, 580px);
  overflow: hidden;
  isolation: isolate;
  background-color: #003154;
  background-attachment: scroll;
  background-position: center top !important;
  background-size: 0;
}
.home .parallax-img::before {
  position: absolute;
  inset: 0 0 -20px;
  background-image: inherit;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, var(--home-parallax-y, 0px), 0);
  content: '';
}
.home .parallax-img .overlay {
  background: linear-gradient(180deg, rgba(0, 24, 45, .22), rgba(0, 24, 45, .64) 55%, rgba(0, 24, 45, .85));
}
.home .box-parallax--container {
  top: 58%;
  width: calc(100% - var(--home-gutter) * 2);
}
.home .parallax-img .parallax-h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 3.2vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: none;
}
.home .box-parallax--container br { display: none; }
.home .parallax-img .parallax-text {
  max-width: none;
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.3;
  text-transform: none;
  text-shadow: none;
}
.home .parallax-text a { color: #8ed0ff; }
.home .parallax-text a:hover { color: #fff; text-decoration: underline; }
.home .ohana-form--container { padding: 0 var(--home-gutter) 80px; }
.home .form_container {
  top: -70px;
  width: 100%;
  max-width: 1180px;
  margin-bottom: -70px;
  padding: 48px 64px;
  border-radius: 4px;
}
.home .form_container button[type='submit']:focus-visible { outline-color: #fdde0b; }

.home .cta-action {
  left: 50%;
  bottom: 16px;
  width: min(720px, calc(100% - 32px));
  padding: 0;
  background: transparent;
  transform: translateX(-50%);
}
.home .cta-action > .row { margin: 0; }
.home .cta-action .col-lg-6 { flex: 0 0 100%; max-width: 100%; padding: 0; }
.home .cta-action-button {
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 6px 24px rgba(0, 30, 53, .22);
  font-size: 15px;
  line-height: 1.4;
}
.home .help_box { top: auto; right: 18px; bottom: 90px; }
.home .help_box-btn { padding: 11px; border-radius: 50%; box-shadow: 0 4px 16px rgba(0, 38, 47, .2); }
.home .help_box-svg { height: 30px; }
.home.prn-home-actions-hidden .cta-action,
.home.prn-home-actions-hidden .help_box { display: none; }

@media (max-width: 1199px) {
  .home { --home-gutter: 32px; }
  .home #thelogo { height: 66px; }
  .home .navbar-expand-lg .navbar-nav .nav-link { padding: 14px 9px; font-size: 20px; }
  .home .box_services_wrapper { padding: 24px 20px; }
  .home .box_services_title { font-size: 18px; }
  .home .wrap-textContainer { gap: 40px; padding: 80px 0; }
  .home .wrap-textContainer .pic-widget-bg { height: 570px; }
  .home .wrap-textContainer .text-box { font-size: 18px; }
  .home .texto-box { padding-left: 18px; padding-right: 6px; }
  .home .teams-title { font-size: 21px; }
  .home .teams-subtitle { font-size: 23px; }
}
@media (max-width: 1099px) {
  .home .box-teams .ohana-services-list > .container { max-width: none; }
  .home .box_services > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .home .box_services_wrapper { min-height: 180px; }
}
@media (max-width: 991px) {
  .home #thelogo { height: 60px; }
  .home .navbar-expand-lg .navbar-nav .nav-link { padding: 12px 16px; font-size: 23px; }
  .home .navbar-nav .nav-item:last-child .nav-link { padding-right: 16px; }
  .home #slider .carousel-caption { left: var(--home-gutter) !important; width: 58%; }
  .home .hero-title { font-size: 58px; }
  .home .hero-text { font-size: 18px; }
  .home .wrap-textContainer { grid-template-columns: 1fr; max-width: 760px; gap: 40px; }
  .home .wrap-textContainer .pic-widget-bg { height: 460px; background-position: center !important; }
  .home .wrap-textContainer h1 { font-size: 48px; }
  .home .box-stats { padding: 32px 12px; }
  .home .box-statsCount { font-size: 40px; }
  .home .box-statsText { font-size: 16px; }
  .home .box-teams { padding-top: 140px; padding-bottom: 64px; }
  .home .box-teams .ohana_title--default { font-size: 48px; }
  .home .form_container { padding: 40px 32px; }
  .home .parallax-img { height: 480px; }
  .home .parallax-img::before {
    bottom: auto;
    aspect-ratio: 2048 / 1020;
    background-size: 100% auto;
    mask-image: linear-gradient(to bottom, #000 35%, transparent);
  }
  .home .box-parallax--container { top: 61%; }
}
@media (max-width: 699px) {
  .home .box-teams .ohana-services-list > .container { max-width: 500px; }
  .home .box-stats .row { grid-template-columns: 1fr; gap: 24px; }
  .home .box-stats .row > div + div { border-left: 0; }
  .home .box-statsCount { font-size: 38px; }
}
@media (max-width: 575px) {
  .home { --home-gutter: 24px; }
  .home #thelogo { height: 56px; }
  .home #slider .carousel-item > img { height: 610px; object-position: 62% center; }
  .home #slider .carousel-item > .overlay {
    background: linear-gradient(90deg, rgba(0, 17, 32, .68), rgba(0, 17, 32, .06));
  }
  .home #slider .carousel-caption {
    top: 160px;
    left: var(--home-gutter) !important;
    width: calc(100% - var(--home-gutter) * 2);
    transform: none;
  }
  .home .hero-title { font-size: 54px; }
  .home .hero-text { margin: 22px 0 28px; font-size: 17px; line-height: 1.65; }
  .home .btn-services { min-height: 48px; padding: 13px 24px; font-size: 15px; }
  .home .box_services { margin-top: -32px; }
  .home .box_services > .row { gap: 12px; }
  .home .box_services_wrapper { min-height: 184px; padding: 20px 16px; }
  .home .box_services_icon { margin-bottom: 16px; }
  .home .box_services_icon svg { width: 34px; height: 34px; }
  .home .box_services_title { font-size: 16px; line-height: 1.5; }
  .home .box_services_title br { display: none; }
  .home .box_hover { align-items: flex-start !important; gap: 6px; }
  .home .box_cta_svg { flex-basis: 16px; width: 16px; margin-top: 4px; }
  .home .wrap-textContainer { padding: 56px 0 60px; gap: 28px; }
  .home .wrap-textContainer .pic-widget-bg { height: 300px; }
  .home .wrap-textContainer h1 { font-size: 42px; margin-bottom: 24px; }
  .home .wrap-textContainer h1,
  .home .wrap-textContainer h1 > span { text-align: left; }
  .home .wrap-textContainer .text-box { font-size: 17px; line-height: 1.75; }
  .home .box-stats { padding: 32px 12px; }
  .home .box-teams { padding-top: 136px; padding-bottom: 48px; }
  .home .box-teams .ohana_title--default { font-size: 42px; }
  .home .box-teams .container-ohana { margin-top: 30px !important; padding: 0; }
  .home .owl-carousel .item { min-height: 272px; padding: 10px; }
  .home .owl-carousel .item > img { height: 252px; }
  .home .texto-box { padding: 16px 4px 16px 18px; }
  .home .teams-title { font-size: 21px; }
  .home .teams-subtitle { font-size: 23px; }
  .home .parallax-img { height: 390px; }
  .home .box-parallax--container { top: 58%; }
  .home .parallax-img .parallax-h2 { font-size: 38px !important; line-height: 1.15; }
  .home .parallax-img .parallax-text { font-size: 30px; }
  .home .ohana-form--container { padding-right: 16px; padding-left: 16px; padding-bottom: 48px; }
  .home .form_container { top: -44px; margin-bottom: -44px; padding: 32px 24px; }
  .home .help_box { right: 12px; bottom: 98px; }
  .home .cta-action-button { padding: 12px 16px; font-size: 13px; }
}
@media (max-width: 359px) {
  .home { --home-gutter: 20px; }
  .home .hero-title { font-size: 48px; }
  .home .box_services > .row { grid-template-columns: 1fr; }
  .home .box_services_wrapper { min-height: 156px; padding: 22px; }
  .home .box_services_title { font-size: 18px; }
  .home .box_services_icon { margin-bottom: 12px; }
  .home .form_container { padding-right: 18px; padding-left: 18px; }
  .home .form_container .custom-class {
    flex: 0 0 auto;
    width: 304px;
    margin-bottom: -14px;
    transform: scale(.82);
    transform-origin: 50% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .animated { opacity: 1 !important; animation: none !important; transform: none !important; }
  .home .btn-services, .home .box_services_wrapper { transition: none; }
  .home .parallax-img::before { transform: none; }
}
