Federico Bernardeschi scored deep into injury time to give Juventus an extraordinary 3-2 victory against Chievo in Cristiano Ronaldo's Serie A debut.