@charset "UTF-8";
.section-padding {
  padding: 120px 0;
}

.aspect-ratio-16-8 {
  aspect-ratio: 16/6;
}

.page-header.no-over::before {
  display: none;
}

.parrallax-home {
  padding: 0;
  height: 600px;
}

.text-secondary {
  color: #78B1B7 !important;
}

.btn-link {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 45px;
  font-weight: normal;
  text-transform: none !important;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--secondary-color) !important;
}

.btn-link:before {
  background-color: transparent !important;
  background-image: url("../images/arrow-primary.svg");
  transition: all 0.4s ease-in-out;
}

.btn-link:hover:before {
  background-color: transparent !important;
  filter: brightness(0);
}

.btn-link::after {
  background-color: transparent !important;
}

.btn-link-white {
  background-color: transparent !important;
  color: var(--white-color) !important;
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 45px;
  font-weight: normal;
  text-transform: none !important;
  text-decoration: none;
}

.btn-link-white:hover {
  color: var(--secondary-color) !important;
}

.btn-link-white:before {
  background-color: transparent !important;
  background-image: url("../images/arrow-white.svg");
  transition: all 0.4s ease-in-out;
}

.btn-link-white:hover:before {
  background-color: transparent !important;
  filter: invert(1);
}

.btn-link-white::after {
  background-color: transparent !important;
}

/* ==========================================================================
   VIDEO
   ========================================================================== */
/* 1. Forza la sezione Hero a non stringersi */
.hero {
  position: relative !important;
  overflow: hidden !important;
}

/* 2. Forza il video a ignorare qualsiasi blocco del template */
.hero video.hero-video-bg {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  /* Forza le dimensioni ad andare OLTRE i 16/9 del file originale */
  width: 120% !important;
  height: 120% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  /* Forza il ritaglio effettivo */
  object-fit: cover !important;
  object-position: center center !important;
  /* Centra il video e spinge le bande nere fuori dallo schermo */
  transform: translate(-50%, -50%) !important;
  /* Resetta eventuali blocchi del template */
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 0 !important;
}

/* 3. Overlay scuro sopra il video */
.hero::before {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

/* 4. Contenuto testuale sopra a tutto */
.hero-content-overlay {
  position: relative !important;
  z-index: 2 !important;
}

.aspect-ratio-4-5 {
  aspect-ratio: 4/5 !important;
  object-fit: cover !important;
  width: 100% !important;
}

/* Menu sticky */
/* Transizione fluida su sfondo e padding */
.main-header {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  background-color: transparent; /* Inizialmente trasparente o del colore originale */
}
.main-header .navbar-brand img {
  filter: brightness(20);
}

/* Stato attivo quando si effettua lo scroll */
.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important; /* Nero */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombra opzionale per dare profondità */
  left: 0;
  top: 0;
  right: 0;
  padding-left: 15px;
  padding-right: 15px;
}
.main-header.scrolled .navbar-brand img {
  filter: brightness(1);
}

.main-header:not(.scrolled) {
  /*.navbar-brand{
      display: none;
  }*/
  left: 0;
  top: 0;
  right: 0;
  padding-left: 15px;
  padding-right: 15px;
}

/* Opzionale: Se i link devono diventare chiarissimi/bianchi sul nero */
.main-header.scrolled .nav-link {
  color: var(--text-color);
}
.main-header.scrolled .nav-link:hover {
  color: #39676c;
}

.service-item {
  background: #355e62 !important;
  backdrop-filter: blur(0px) !important;
}

.parallaxie {
  /* background-color: rgba(119, 176, 182, 0.3); */
  /* background-blend-mode: overlay; */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(57, 103, 108, 0.5) 10%, rgba(57, 103, 108, 0.2) 50%, rgba(57, 103, 108, 0.7) 90%);
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero video.hero-video-bg {
  filter: brightness(0.9);
}

/* ==========================================================================
   Overlay verde su immagini e copertine
   ========================================================================== */
/* 1. Copertina pagine interne: verde sopra il gradiente scuro esistente */
.page-header.page-header::before { /* doppia classe: vince su custom.css caricato dopo */
  background: linear-gradient(rgba(22, 88, 96, 0.2), rgba(22, 88, 96, 0.2)), linear-gradient(180deg, rgba(22, 88, 96, 0) 10%, rgba(0, 38, 42, 0.2) 45%, rgba(0, 38, 42, 0.6) 90%);
}

/* 2. Sezioni con immagine di sfondo (parallaxie)
   Le sezioni parallax hanno anche .page-header.no-over, che nasconde il ::before:
   la tripla classe lo riattiva e sostituisce il gradiente scuro con il solo verde. */
.parallaxie {
  position: relative;
}

.parallaxie::before,
.page-header.parallaxie.no-over::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(22, 88, 96, 0.2);
  pointer-events: none;
  z-index: 1; /* sopra al livello immagine del parallax */
}

.parallaxie > *:not(.parallax-soft-img) {
  position: relative;
  z-index: 2;
}

/* Parallax leggero (vedi assets/js/orangepix.js) */
.parallaxie.parallax-soft-ready {
  background-image: none !important; /* l'immagine passa al livello interno */
  overflow: hidden;
}

.parallax-soft-img {
  position: absolute;
  left: 0;
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

/*# sourceMappingURL=orangepix.css.map */
