#gform_fields_4 {
  grid-row-gap: 36px !important;
}

.ht--richiedi__informazioni #field_2_5 .gfield_label.gform-field-label {
  margin-bottom: 16px !important;
}
.ht--richiedi__informazioni .w-popup-closer::before {
  font-weight: 200 !important;
  font-size: 20px !important;
}

.ht--richiedi__informazioni .w-popup-closer {
  opacity: 1;
  border: 1px solid red;
  line-height: 48px !important;
  width: 48px !important;
  border-radius: 16px !important;
  top: 48px !important;
  right: 60px !important;
}

@media (max-width: 600px) {
  .ht--richiedi__informazioni .w-popup-closer {
    transform: scale(0.8);
    right: 32px !important;
    top: 32px !important;
  }
}
.ht--richiedi__informazioni input {
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(239, 242, 246, 0.05);
}
.ht--richiedi__informazioni label,
.ht--richiedi__informazioni .gfield_label.gform-field-label {
  color: #fff;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 160% !important;
  letter-spacing: 0.4px !important;
}
.ht--richiedi__informazioni #input_4_7 {
  border-radius: 24px !important;
}
.ht--richiedi__informazioni
  .gform-field-label.gform-field-label--type-inline.gfield_consent_label {
  font-size: 16px !important;
}

.ht--richiedi__informazioni #input_4_8_1 {
  border-radius: 3px;
  top: 6px;
  position: relative;
}
.ht--richiedi__informazioni .w-popup-box-content {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
}

/* :::::::::::::::::::::::::::::: */

/* Gravity Forms - form 4, field 5 */
#field_4_5 {
  align-self: start;
}

#field_4_5 .gfield_label,
#field_4_5 legend.gfield_label {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}

#input_4_5.gfield_radio {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#input_4_5 .gchoice {
  flex: 0 0 auto;
  position: relative;
  margin: 0;
  min-width: 0;
}

#input_4_5 .gfield-choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* Annulla la regola core di Gravity Forms sui label dei radio (max-width/vertical-align) */
#input_4_5 .gfield-choice-input + label,
#input_4_5 .gform-field-label {
  max-width: none;
  vertical-align: baseline;
}

#input_4_5 .gform-field-label {
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
  min-height: auto;
  padding: 8px 24px;
  border: 1px solid #4d4d4d;
  border-radius: 80px;
  background: transparent;
  color: rgba(183, 183, 183, 0.4);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

#input_4_5 .gform-field-label::before {
  content: "";
  margin-right: 8px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

#label_4_5_0::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27%23000%27%20d=%22M18%2015h-2v2h2m0-6h-2v2h2m2%206h-8v-2h2v-2h-2v-2h2v-2h-2V9h8M10%207H8V5h2m0%206H8V9h2m0%206H8v-2h2m0%206H8v-2h2M6%207H4V5h2m0%206H4V9h2m0%206H4v-2h2m0%206H4v-2h2m6-10V3H2v18h20V7z%22/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27%23000%27%20d=%22M18%2015h-2v2h2m0-6h-2v2h2m2%206h-8v-2h2v-2h-2v-2h2v-2h-2V9h8M10%207H8V5h2m0%206H8V9h2m0%206H8v-2h2m0%206H8v-2h2M6%207H4V5h2m0%206H4V9h2m0%206H4v-2h2m0%206H4v-2h2m6-10V3H2v18h20V7z%22/%3E%3C/svg%3E");
}

#label_4_5_1::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2016%2016%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20stroke=%27%23000%27%20stroke-width=%271%27%20d=%22M8%2013.5H3a.5.5%200%200%201-.5-.5V8a.5.5%200%200%201%20.5-.5h5m0%206v-6m0%206h5a.5.5%200%200%200%20.5-.5V8a.5.5%200%200%200-.5-.5H8m2.5.5v2m-2-7v2m-3%203v2m-1-7v4.5h7V3a.5.5%200%200%200-.5-.5H5a.5.5%200%200%200-.5.5Z%22/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2016%2016%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20stroke=%27%23000%27%20stroke-width=%271%27%20d=%22M8%2013.5H3a.5.5%200%200%201-.5-.5V8a.5.5%200%200%201%20.5-.5h5m0%206v-6m0%206h5a.5.5%200%200%200%20.5-.5V8a.5.5%200%200%200-.5-.5H8m2.5.5v2m-2-7v2m-3%203v2m-1-7v4.5h7V3a.5.5%200%200%200-.5-.5H5a.5.5%200%200%200-.5.5Z%22/%3E%3C/svg%3E");
}

#label_4_5_2::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg%20fill=%27none%27%3E%3Cpath%20fill=%27%23000%27%20d=%22M4%2018a4%204%200%200%201%204-4h8a4%204%200%200%201%204%204a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2%22%20opacity=%27.16%27/%3E%3Cpath%20stroke=%27%23000%27%20stroke-linejoin=%27round%27%20stroke-width=%272%27%20d=%22M4%2018a4%204%200%200%201%204-4h8a4%204%200%200%201%204%204a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2Z%22/%3E%3Ccircle%20cx=%2712%27%20cy=%277%27%20r=%273%27%20stroke=%27%23000%27%20stroke-width=%272%27/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg%20fill=%27none%27%3E%3Cpath%20fill=%27%23000%27%20d=%22M4%2018a4%204%200%200%201%204-4h8a4%204%200%200%201%204%204a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2%22%20opacity=%27.16%27/%3E%3Cpath%20stroke=%27%23000%27%20stroke-linejoin=%27round%27%20stroke-width=%272%27%20d=%22M4%2018a4%204%200%200%201%204-4h8a4%204%200%200%201%204%204a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2Z%22/%3E%3Ccircle%20cx=%2712%27%20cy=%277%27%20r=%273%27%20stroke=%27%23000%27%20stroke-width=%272%27/%3E%3C/g%3E%3C/svg%3E");
}

#input_4_5 .gfield-choice-input:checked + .gform-field-label {
  border-color: #4d4d4d;
  background: #4d4d4d;
  color: #fff;
}

#input_4_5 .gfield-choice-input:focus-visible + .gform-field-label {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

#input_4_5 .gform-field-label:hover {
  border-color: #4d4d4d;
  background: #4d4d4d;
  color: #fff;
}

@media (max-width: 640px) {
  #field_4_5 .gfield_label,
  #field_4_5 legend.gfield_label {
    margin-bottom: 14px;
    font-size: 1.35rem;
  }

  #input_4_5.gfield_radio {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  #input_4_5 .gchoice {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
  }

  #input_4_5 .gform-field-label {
    min-height: auto;
    padding: 8px 24px;
    font-size: 1rem;
  }

  #input_4_5 .gform-field-label::before {
    width: 16px;
    height: 16px;
  }
}
