/*Bg open site*/
.open-bg {
  background: url(../img/cover.jpg) no-repeat bottom left;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100vh;
}
.padding-bg{
	padding-top: 80px;
}
.cover-padding {
  padding-bottom: 200px;
}
.title {
  font-size: 2.5em;
  color: #2D2D2D;
  line-height: 1.2em;
}
.subtitle {
  font-size: 1.2em;
  line-height: 1.2em;
}
.header-transparent {
  background-color: transparent !important;
  padding: 0 35px;
}
.pi-row-reduced {
  background-color: rgba(108, 61, 132, 0.8) !important;
}
.header-number {
  font-size: 18px;
  color: #333;
  background-color: #fff;
  padding: 14px 0 14px 27px;
  border-radius: 40px;
}
.pi-text-base-2{
	color: #ffc50a;
}
.margin-box{
	margin: 30px;
}
/*Section*/
.bg-cta {
  background: url(../img/cta.jpg) no-repeat bottom left;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100vh;
}
.video-relative {
  position: relative;
  top: 60px;
    z-index: 2;
}

/*Footer*/
.footer-fixed {
    position: fixed;
    bottom: 0;
    width: 100%;
	z-index: 4;
}
/* === Bottone flottante === */
/* === Wrapper: gestisce solo il posizionamento === */
.pi-fab-wrap {
  position: fixed;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom)); /* margine iOS notch */
  z-index: 9999;
}
/* Mobile: centrato in basso */
@media (max-width: 768px) {
  .pi-fab-wrap {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(90%, 520px);
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* === Bottone: gestisce stile e animazioni === */
.pi-btn-floating {
  display: block;
  width: 100%;
  border-radius: 999px;
  padding: 14px 22px;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(90deg, rgba(108, 58, 140, 1) 0%, rgba(147, 86, 177, 1) 100%);
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(108, 58, 140, 0.3);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;

  /* Stato iniziale: invisibile */
  opacity: 0;
  pointer-events: none;

  /* Transizioni morbide */
  transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Stato visibile gestito via JS */
.pi-btn-floating.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: softPulse 2.5s ease-in-out infinite;
}

/* Hover desktop */
.pi-btn-floating:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(108, 58, 140, 0.4);
}

/* Hover mobile (mantiene centraggio wrapper) */
@media (max-width: 768px) {
  .pi-btn-floating:hover {
    transform: scale(1.04);
  }
}

/* === Animazione di respiro / lampeggio === */
@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(108, 58, 140, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(147, 86, 177, 0.45);
  }
}

/* Accessibilità: disabilita animazioni se preferito */
@media (prefers-reduced-motion: reduce) {
  .pi-btn-floating,
  .pi-btn-floating:hover {
    transition: none;
    animation: none;
    transform: none;
  }
}
@media screen and (min-width: 1121px) and (max-width: 1920px) {}
@media screen and (min-width: 768px) and (max-width: 1120px) {
.section-relative {
    top: 20px;
	padding-bottom: 80px !important;
}
.video-relative {
  position: relative;
  top: -10px;
}
.open-bg {
    height: 850px;
}
}
@media only screen and (max-width: 1120px) {
.open-bg {
  background: url(../img/cover-sm.jpg) no-repeat bottom;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100vh;
}
    .padding-bg{
	padding-top: 0;
}
    .title{
        font-size: 2.3em;
    }
.bg-cta {
  background: url(../img/cta-sm.jpg) no-repeat bottom;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100vh;
}
}
@media screen and (min-width: 0px) and (max-width: 767px) {
.open-bg {
  background: url(../img/cover-xs.jpg) no-repeat bottom;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100vh;
}
.padding-bg{
	padding-top: 0;
}
    .title{
        font-size: 2em;
    }
.bg-cta {
  background: url(../img/cta-xs.jpg) no-repeat bottom;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100vh;
}
}
