DETROIT — The Dolphins’ revamped offense was looking for a breakthrough and found it in Detroit on a day when the team needed it most. Trailing 27-17 at halftime, the Dolphins shut out the Lions, 14-0, in the second half to defeat Detroit, 31-27, at Ford Field on Sunday. Behind quarterback Tua Tagovailoa’s three touchdown passes, including a go-ahead score to tight Mike Gesicki with 12 seconds left in the third quarter, and a defense that limited the Lions (1-6) to 67 second-half yards, the Dolphins improved to 5-3 for just the third time in the last decade. “We’re starting to learn as a team …