Frosinone looked set for a famous win after going 4-1 up by half-time against the champions, but Esposito's second-half introduction proved pivotal.