Due to wide spread of the epidemic, they stayed at home during their long vacation.
⇒ They stayed at home during their long vacation due to wide spread of the epidemic.
Or : They stayed at home during the long vacation because of the widespread epidemic.
_____________________________________________________________________________
Clause (S+V+O) +because of/due to +Noun/Pronoun/Gerund
Or : Because of/Due to + Noun/Pronoun/Gerund, Clause (S+V+O)