.inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.inputfile-custom + label {
font-family: 'Comprami-Regular';
  font-size: 20px;
  cursor: pointer;
  margin: 12px 8px 8px 40px;
  padding-left: 40px;
  width: 480px;
  height: 50px;
  border: 0px solid #ffffff;
  background-color: #ffffff;
  color:#7f82d1;
  border-radius: 50px;
  box-sizing: border-box;
  position: relative;

  /* ?? AGGIUNTO: Flex per allineamento orizzontale */
  display: flex;
  justify-content: space-between;
  align-items: center;
}


@media only screen and (min-width: 970px) and (max-width: 1169px) {

.inputfile-custom + label {
font-family: 'Comprami-Regular';
  font-size: 20px;
  cursor: pointer;
  margin: 12px 8px 8px 40px;
  padding-left: 40px;
  width: 360px;
  height: 50px;
  border: 0px solid #ffffff;
  background-color: #ffffff;
  color:#7f82d1;
  border-radius: 50px;
  box-sizing: border-box;
  position: relative;

  /* ?? AGGIUNTO: Flex per allineamento orizzontale */
  display: flex;
  justify-content: space-between;
  align-items: center;
}


}



.inputfile-custom + label span {
  /* ?? AGGIUNTO: Gestione overflow */
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 40px;
  vertical-align: middle;
  font-size: 20px;
  color:#7f82d1;
}

.inputfile-custom + label strong {
   font-family: 'Comprami-Bold';
  height: 100%;
  background-color: #060e9f;
  color:#ffed00;
  padding: 0 30px;
  display: flex;
  align-items: center;
  border: 0px solid #ffec00;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50px;
  flex-shrink: 0; /* ?? evita che venga compresso */
}

.inputfile-custom + label strong .upload-icon {
  margin-left: 8px;
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.inputfile-custom:focus + label strong,
.inputfile-custom.has-focus + label strong,
.inputfile-custom + label:hover strong {
  background-color: #ffed00;
  color:#060e9f;
}

@media only screen and (min-width: 30px) and (max-width: 969px) {
  .inputfile-custom + label {
    width: 80%;
    margin-left:10%;
    font-size: 4.5vw;
    height: 50px;
    line-height: 40px;
    padding-left:5%;
  }

  .inputfile-custom + label span {
    font-size: 4vw;
  }

  .inputfile-custom + label strong {
    padding: 0 20px;
    font-size: 3vw;
  }

  .inputfile-custom + label strong .upload-icon {
    height: 18px;
  }
}


}