County were invited by the Italian giants to commemorate the opening of Juventus' new 41,000-seat arena with an exhibition match.
Luca Toni scored the first goal in the new stadium, tapping in after Rob Burch had parried Fabio Quagliarella's 53rd-minute penalty.
But Hughes' scrappy finish ensured a special result for the League One side.
After the match County captain Neal Bishop told BBC Sport: "It was a special night to be part of. There were a few butterflies in the stomach during the opening ceremony but we're very proud of the performance and the result.
"We've been looked after first class, no player played over sixty minutes so we will be raring to go for Saturday's match against Walsall."
"It was a wonderful experience. Watching them play, how they would keep their heads up, pass forward and be willing to start again if needed was great to watch."