@import url('https://fonts.googleapis.com/css2?family=Saira:wght@400;500;600;700&display=swap');

/* Soliomics quote questionnaire. Loaded only with this Bit Form import. */
.bf-form-wrapper:has(.solio-question) {
  --solio-teal: #24b4b4;
  --solio-teal-dark: #168d90;
  --solio-ink: #2c5464;
  --solio-muted: #66808b;
  --solio-border: #d7e8e9;
  --solio-pale: #f5fbfb;
  font-family: 'Saira', sans-serif !important;
  color: var(--solio-ink) !important;
  background: #fff !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnr {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: clamp(24px, 5vw, 58px) !important;
  box-sizing: border-box !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt.deactive {
  display: none !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt:not(.deactive) {
  display: block !important;
  animation: solio-step-in .25s ease-out;
}

@keyframes solio-step-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt::before {
  display: block;
  content: 'PASSAGGIO ' attr(data-step) ' DI 5';
  margin: 0 0 12px;
  color: var(--solio-teal-dark);
  font: 700 12px/1.4 'Saira', sans-serif;
  letter-spacing: .12em;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-progress-wrpr {
  display: block !important;
  margin: 0 0 clamp(30px, 5vw, 48px) !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-progress-bar {
  height: 6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e3f1f1 !important;
  overflow: hidden !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-progress-fill {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: var(--solio-teal) !important;
  transition: width .25s ease !important;
}

/* The imported template carried fixed grid row heights, which caused the gaps. */
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt ._frm-b {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt .btcd-fld-itm {
  display: block !important;
  position: static !important;
  grid-area: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt[data-step="1"] ._frm-b {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt[data-step="1"] ._frm-b::before {
  content: 'I tuoi recapiti';
  grid-column: 1 / -1;
  display: block;
  margin: 0 0 4px;
  color: var(--solio-ink);
  font: 600 clamp(23px, 3vw, 32px)/1.3 'Saira', sans-serif;
  letter-spacing: -.025em;
}

.bf-form-wrapper:has(.solio-question) .solio-contact {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bf-form-wrapper:has(.solio-question) .solio-contact-label {
  display: block !important;
  margin: 0 0 8px !important;
  color: var(--solio-ink) !important;
  font: 600 14px/1.4 'Saira', sans-serif !important;
}

.bf-form-wrapper:has(.solio-question) .solio-contact-input {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 12px 15px !important;
  border: 1px solid var(--solio-border) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--solio-ink) !important;
  font: 500 15px/1.4 'Saira', sans-serif !important;
  box-shadow: none !important;
}

.bf-form-wrapper:has(.solio-question) .solio-contact-input:focus {
  outline: 2px solid var(--solio-teal) !important;
  outline-offset: 1px !important;
  border-color: var(--solio-teal) !important;
}

.bf-form-wrapper:has(.solio-question) .solio-contact-input::placeholder {
  color: var(--solio-muted) !important;
  opacity: 1 !important;
}

.bf-form-wrapper:has(.solio-question) .solio-question {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bf-form-wrapper:has(.solio-question) .solio-question .bf-label-wrapper,
.bf-form-wrapper:has(.solio-question) .solio-question .bf-input-wrapper {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
}

.bf-form-wrapper:has(.solio-question) .solio-question .bf-label-wrapper {
  margin: 0 0 24px !important;
}

.bf-form-wrapper:has(.solio-question) .solio-question .bf-input-wrapper {
  margin: 0 !important;
}

.bf-form-wrapper:has(.solio-question) .solio-question-title {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  color: var(--solio-ink) !important;
  font: 600 clamp(23px, 3vw, 32px)/1.3 'Saira', sans-serif !important;
  letter-spacing: -.025em !important;
}

.bf-form-wrapper:has(.solio-question) .solio-question-title + .bf-asterisk-symbol,
.bf-form-wrapper:has(.solio-question) .bf-req-smbl {
  color: var(--solio-teal-dark) !important;
}

.bf-form-wrapper:has(.solio-question) .solio-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: minmax(0, auto) !important;
  align-content: start !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bf-form-wrapper:has(.solio-question) .solio-option {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-area: auto !important;
  grid-row: auto !important;
  grid-column: auto !important;
  align-self: stretch !important;
  justify-self: stretch !important;
}

.bf-form-wrapper:has(.solio-question) .solio-option-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  margin: 0 !important;
}

.bf-form-wrapper:has(.solio-question) .solio-option-label {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  min-height: 66px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 18px !important;
  margin: 0 !important;
  border: 1px solid var(--solio-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--solio-ink) !important;
  font: 500 14px/1.45 'Saira', sans-serif !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: border-color .18s, background .18s, box-shadow .18s !important;
}

.bf-form-wrapper:has(.solio-question) .solio-option-label:hover {
  border-color: var(--solio-teal) !important;
  background: var(--solio-pale) !important;
}

.bf-form-wrapper:has(.solio-question) .solio-option-input:checked + .solio-option-label {
  border-color: var(--solio-teal-dark) !important;
  background: #e9f8f8 !important;
  box-shadow: 0 0 0 1px var(--solio-teal-dark) inset !important;
}

.bf-form-wrapper:has(.solio-question) .solio-option-input:focus-visible + .solio-option-label {
  outline: 3px solid #8fe0df !important;
  outline-offset: 2px !important;
}

.bf-form-wrapper:has(.solio-question) .solio-option-control {
  display: none !important;
}

.bf-form-wrapper:has(.solio-question) .solio-option-label::before {
  content: '';
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid #91aeb5;
  border-radius: 50%;
  background: #fff;
}

.bf-form-wrapper:has(.solio-question) .bf-check-field .solio-option-label::before {
  border-radius: 4px;
}

.bf-form-wrapper:has(.solio-question) .solio-option-input:checked + .solio-option-label::before {
  border: 5px solid var(--solio-teal-dark);
}

.bf-form-wrapper:has(.solio-question) .bf-check-field .solio-option-input:checked + .solio-option-label::before {
  border: 2px solid var(--solio-teal-dark);
  background: var(--solio-teal-dark);
  box-shadow: inset 0 0 0 3px #fff;
}

.bf-form-wrapper:has(.solio-question) [class*="-stp-btn-wrpr"] {
  display: block !important;
  margin: 32px 0 0 !important;
}

.bf-form-wrapper:has(.solio-question) [class*="-stp-btn-cntnt"] {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;
  align-items: center !important;
}

.bf-form-wrapper:has(.solio-question) .next-step-btn,
.bf-form-wrapper:has(.solio-question) .prev-step-btn,
.bf-form-wrapper:has(.solio-question) .bf-button-field button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  padding: 10px 24px !important;
  border: 1px solid var(--solio-teal) !important;
  border-radius: 3px !important;
  background: var(--solio-teal) !important;
  color: #fff !important;
  font: 600 15px/1.3 'Saira', sans-serif !important;
  text-decoration: none !important;
  appearance: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.bf-form-wrapper:has(.solio-question) .next-step-btn {
  margin-left: auto !important;
}

.bf-form-wrapper:has(.solio-question) .next-step-btn:hover,
.bf-form-wrapper:has(.solio-question) .prev-step-btn:hover,
.bf-form-wrapper:has(.solio-question) .bf-button-field button:hover {
  background: var(--solio-teal-dark) !important;
  border-color: var(--solio-teal-dark) !important;
}

.bf-form-wrapper:has(.solio-question) .prev-step-btn {
  background: transparent !important;
  border-color: var(--solio-border) !important;
  color: var(--solio-ink) !important;
}

.bf-form-wrapper:has(.solio-question) .prev-step-btn:hover {
  background: var(--solio-pale) !important;
  border-color: var(--solio-teal) !important;
}

.bf-form-wrapper:has(.solio-question) .v-hide {
  display: none !important;
}

.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt:first-child .prev-step-btn,
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt:last-child .next-step-btn {
  display: none !important;
}

.bf-form-wrapper:has(.solio-question) .bf-button-field {
  margin-top: 28px !important;
}

.bf-form-wrapper:has(.solio-question) .bf-button-field button {
  width: 100% !important;
}

@media (max-width: 720px) {
  .bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnr {
    padding: 24px 18px !important;
  }
  .bf-form-wrapper:has(.solio-question) .solio-options {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt[data-step="1"] ._frm-b {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .bf-form-wrapper:has(.solio-question) .solio-option-label {
    min-height: 56px !important;
  }
  .bf-form-wrapper:has(.solio-question) [class*="-stp-btn-cntnt"] .next-step-btn,
  .bf-form-wrapper:has(.solio-question) [class*="-stp-btn-cntnt"] .prev-step-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}


/* Three branches in the final question. */
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt .btcd-fld-itm:has(.solio-subchoice),
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt .btcd-fld-itm:has(.bf-button-field) {
  display: none !important;
}

.bf-form-wrapper:has(.solio-category input[value="ANALISI CHIMICO-FISICHE"]:checked) ._frm-b-stp-cntnt .btcd-fld-itm:has(.solio-chem),
.bf-form-wrapper:has(.solio-category input[value="ANALISI BIOLOGICHE E BIOCHIMICHE"]:checked) ._frm-b-stp-cntnt .btcd-fld-itm:has(.solio-bio),
.bf-form-wrapper:has(.solio-category input:checked) ._frm-b-stp-cntnt .btcd-fld-itm:has(.bf-button-field) {
  display: block !important;
}

.bf-form-wrapper:has(.solio-question) .solio-subchoice {
  margin-top: 34px !important;
  padding-top: 26px !important;
  border-top: 1px solid var(--solio-border) !important;
}

.bf-form-wrapper:has(.solio-question) .solio-subchoice .solio-question-title {
  font-size: clamp(19px, 2.4vw, 25px) !important;
}

.bf-form-wrapper:has(.solio-question) .solio-category .solio-options {
  grid-template-columns: 1fr !important;
}


/* Keep Bit Form's shared checkbox icon definition out of the option grid. */
.bf-form-wrapper:has(.solio-question) .solio-options > svg.bf-cks {
  position: absolute !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Espande solo i contenitori Elementor che ospitano questo modulo. */
.elementor-section:has(.bf-form-wrapper .solio-question) > .elementor-container,
.elementor-container:has(.bf-form-wrapper .solio-question),
.elementor-column:has(.bf-form-wrapper .solio-question),
.elementor-widget-wrap:has(.bf-form-wrapper .solio-question),
.e-con:has(.bf-form-wrapper .solio-question),
.e-con-inner:has(.bf-form-wrapper .solio-question) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex-basis: 100% !important;
  box-sizing: border-box !important;
}

/* Bit Form applica bf-form-wrapper e _frm-bg-bN allo stesso elemento. */
.elementor-widget-bitform-widget:has(.solio-question),
.elementor-widget-bitform-widget:has(.solio-question) > .elementor-widget-container,
.elementor-widget-bitform-widget:has(.solio-question) .bitform-preview,
.bf-form-wrapper:has(.solio-question),
.bf-form-wrapper:has(.solio-question) > .bf-form,
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnr,
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-wrpr,
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt-wrpr,
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt:not(.deactive),
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnt ._frm-b {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.elementor-widget-bitform-widget:has(.solio-question) {
  flex: 1 1 100% !important;
  align-self: stretch !important;
}

.bf-form-wrapper:has(.solio-question),
.bf-form-wrapper:has(.solio-question) ._frm-b-stp-cntnr {
  margin-right: auto !important;
  margin-left: auto !important;
}
