Midfielder Andre broke the deadlock for the Euro 2016 finalists in difficult, wet conditions just after the half hour and Nani, celebrating his 29th birthday, scored direct from a free kick in the 89th minute.
Robert Lewandowski scored a brilliant free kick to give Bayern Munich a 1-0 win over Atletico Madrid in their last Champions League Group D outing on Tuesday, ending the 100 percent record of their opponents. The Poland international curled the ball over the wall and into the corner of the net in the 28th minute but the goal had no impact on the final standings with Atletico guaranteed top spot and Bayern in second place.
Barcelona battled back from a goal down and scored twice in the second half to overcome hosts Borussia Moenchengladbach 2-1 in their Champions League Group C match on Wednesday despite the absence of the injured Lionel Messi.