First of all Thank you for the answer! I have already created the BWA index of my FASTA file which are the same as you listed above (i think you were ment to write amb instead of amp). I've tried to run the code also with those files but still getting the same error.
bwa mem /home/arturo/Documenti/hg38.amb /home/arturo/Documenti/PATIENT/PATIENT_TRIMMED/PATIENT-BM_S7_L001_R1_001_trimmed.fastq.gz /home/arturo/Documenti/PATIENT/PATIENT_TRIMMED/PATIENT-BM_S7_L001_R2_001_trimmed.fastq.gz | samtools view -bS - > /home/arturo/Documenti/PATIENT/PATIENT_BAM/PATIENT_BM_unsorted.bam
[E::bwa_idx_load_from_disk] fail to locate the index files
[main_samview] fail to read the header from "-"
Could also be a problem of where my BWA index files are? I have it in the same directory of the hg38 FASTA file