The game is over now and in the end Villareal even won with 3-0. It is as you said, Juventus dominated the game for 80 minutes but then Villareal got the penalty which was very unlucky for Juventus and their goalie even almost managed to save the penalty which makes it even more unlucky. Then of course Juventus had to risk more as they only had 10 more minutes to score a goal and Villareal had way more space to perform counter attacks then which lead to the 2-0 for Villareal. After that goal Juventus risked everything and the last goal of Villareal did not even really matter anymore. A great success for Villareal but also a pretty lucky one in my opinion.