Sounds like Pesto just has a lot of energy built up, after all he is still a pup. Perhaps an extra long walk every day will help (or a vigorous game of fetch etc...). Some type of physically draining exercise.

A tired dog is a good dog.

Good luck!