.inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.inputfile-custom + label {
font-family: "Montserrat", sans-serif;
  font-size: 16px;
  cursor: pointer;
  margin: 8px 8px 30px 8px;
  padding-left: 20px;
  width: 360px;
  height: 58px;
  border: 1px solid #00243f;
  background-color: #ffffff;
  color:#00243f;
  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: 10px;
  vertical-align: middle;
  font-size: 14px;
  color: #7f7f7f;
}

.inputfile-custom + label strong {
  height: 100%;
  background-color: #069df3;
  color:#00243f;
  padding: 0 30px;
  display: flex;
  align-items: center;
  border-left: 1px solid #ccc;
  font-size: 14px;
  font-weight: 700;
  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: #21f0fc;
  color:#00243f;
}

@media only screen and (min-width: 30px) and (max-width: 969px) {
  .inputfile-custom + label {
    width: 84%;
    margin-left:8%;
    font-size: 4.5vw;
    height: 50px;
    line-height: 40px;
    padding-left:5%;
  }

  .inputfile-custom + label span {
    font-size: 4.5vw;
  }

  .inputfile-custom + label strong {
    padding: 0 20px;
    font-size: 3vw;
  }

  .inputfile-custom + label strong .upload-icon {
    height: 18px;
  }
}


}