Probing phase transitions under extreme conditions by ultrafast techniques: Advances at the Fermi@Elettra free-electron-laser facility