A method for pathogen DNA targets detection directly in crude samples through Polymerase Chain Reaction and genotyping via High Resolution Melting analysis, said pathogen being human papilloma virus, said method comprising: - providing a crude sample to be subjected to detection analysis; - diluting said crude sample using a processing buffer comprising a protein-digesting enzyme, wherein the crude sample is diluted up to a protein concentration ranging from 0.1μg/μl to 10μg/μl, wherein said protein-digesting enzyme is proteinase K and is comprised between 1 mg/mL and 1 μg/mL in said processing buffer, said processing buffer comprising TrisHCl buffer solution, said TrisHCl buffer solution being comprised between 1 M and 10 mM and the pH being between 7.0 and 10.0; - treating the diluted crude sample by performing a ramp of increasing and then decreasing temperature; - providing a PCR reaction mixture comprising two or more pairs of amplification primers for amplifying in a multiplex approach two or more target nucleic acids and an amplification buffer comprising an intercalating molecule or compound incorporated into the double-stranded amplicon and emitting a detectable signal; - performing PCR amplification using said PCR reaction mixture and said treated diluted crude sample; - performing, at the end of the PCR amplification, an HRM analysis on the PCR reaction mixture and said treated diluted crude sample previously subjected to PCR amplification; wherein the method further comprises monitoring, during the HRM analysis, the change in the signal emission resulting from the temperature-induced denaturation of the double-stranded amplicons into two single-stranded DNA, due to the release of the intercalating molecule or compound, wherein the method further comprises detecting DNA targets in the crude sample, through a reader analysing the signal variation and obtaining the result of the analysis through a graphic interface connected to said reader, wherein treating the diluted crude sample by performing a ramp of increasing and then decreasing temperature comprises performing the following temperature steps: - a first incubation step ranging from 5 to 60 minutes in a temperature range between 25°C and 70°C, - a second incubation step ranging from 5 to 60 minutes in a temperature range between 90°C and 100°C, - a third incubation step ranging from 5 to 60 minutes in a temperature range between 0°C and 10°C. - providing a crude sample to be subjected to detection analysis; - diluting said crude sample using a processing buffer comprising a protein-digesting enzyme, wherein the crude sample is diluted up to a protein concentration ranging from 0.1μg/μl to 10μg/μl, wherein said protein-digesting enzyme is proteinase K and is comprised between 1 mg/mL and 1 μg/mL in said processing buffer, said processing buffer comprising TrisHCl buffer solution, said TrisHCl buffer solution being comprised between 1 M and 10 mM and the pH being between 7.0 and 10.0; - treating the diluted crude sample by performing a ramp of increasing and then decreasing temperature; - providing a PCR reaction mixture comprising two or more pairs of amplification primers for amplifying in a multiplex approach two or more target nucleic acids and an amplification buffer comprising an intercalating molecule or compound incorporated into the double-stranded amplicon and emitting a detectable signal; - performing PCR amplification using said PCR reaction mixture and said treated diluted crude sample; - performing, at the end of the PCR amplification, an HRM analysis on the PCR reaction mixture and said treated diluted crude sample previously subjected to PCR amplification; - a first incubation step ranging from 5 to 60 minutes in a temperature range between 25°C and 70°C, - a second incubation step ranging from 5 to 60 minutes in a temperature range between 90°C and 100°C, - a third incubation step ranging from 5 to 60 minutes in a temperature range between 0°C and 10°C.