Lima's late goal strengthened Benfica's bid for UEFA Europa League redemption as they edged Juventus 2-1 in the semi-final first leg.
The striker picked the ideal time to strike in Thursday's encounter in Lisbon, with his powerful 84th-minute finish giving Benfica the upper hand heading into next week's second leg.
Benfica – who lost last season's final to Chelsea – took the lead in the second minute thanks to Ezequiel Garay's header.
Juventus had no shortage of motivation either, with this year's final to be held in Turin, and after a good second half, levelled proceedings when Carlos Tevez netted a well-taken finish with 17 minutes left.
The goal – Tevez's first in European competition since scoring for Manchester United in April 2009 – looked like it would give the Serie A outfit a crucial draw, but Lima had other ideas.
Benfica goalkeeper Artur Moraes then superbly kept out Claudio Marchisio as the hosts held on for a win that continues their push for a quadruple.
Having already sewn up the Primeira Liga title, Benfica have booked a spot in the Taca de Portugal final and will contest a Taca da Liga semi-final against Porto on Sunday.
It took less than two minutes for Benfica to take the lead as Garay powerfully headed in Miralem Sulejmani's corner from the left.
Slack marking from Leonardo Bonucci allowed Garay a free header, with the defender's decision to push his opponent, instead of challenge him in the air, sure to be questioned by coach Antonio Conte.
Goalkeeper Gianluigi Buffon could not keep the effort out, despite getting two hands to it, and he will have been pleased to see Sulejmani slice an effort wide after a quick Benfica counter-attack in the 11th minute.
Juventus – missing star midfielder Arturo Vidal to a knee injury – struggled to make inroads despite a good spell of possession, with Tevez not troubling Artur with a tame 20-yard effort.
An excellent slaloming run from Tevez on the half-hour mark was indicative of Juve's first-half struggles, as the sharp build-up play amounted to nothing, and when they did create another chance, defender Stephan Lichtsteiner was in an offside position when he wasted a free header.
Juve came close to levelling proceedings 10 minutes into the second half, with Artur doing well to tip Paul Pogba's header wide after Marchisio's clever centre.
The Serie A leaders kept pressing, as Lichtsteiner's teasing ball across the face of goal had to be well cleared by Maximiliano Pereira before they were eventually rewarded by Tevez.
Marchisio's ball sent Kwadwo Asamoah free down the left and his cut-back to Tevez allowed the forward time before shooting.
And he read the situation superbly, taking a touch to evade the sliding Luisao, before slotting through the legs of Artur to break his European drought.
Lima responded in style for Benfica, though, with the forward hammering a first-time strike home from just inside the penalty area into the top-right corner after Ivan Cavaleiro's clever dummy.
Lazar Markovic then shot wide for Benfica and there was still time for Juve to draw level again, only for Marchisio to fire against Artur when played through before defender Giorgio Chiellini also wasted a late chance.
The result will lift Benfica ahead of Sunday's crucial cup clash, while Juventus are likely to rest players in Monday's Serie A visit to Sassuolo.
|Fernandinho can play in 10 positions - Guardiola|
|Reading´s kit launch is out of this world|
|Ben Arfa: I do not want to be PSG´s star player|
|FA Cup to trial fourth substitute|
|We want Balotelli and he wants us, says Besiktas chief|
|Crowd welcomes Higuain as he arrives for Juventus medical|
|Guardiola warns Man City stars: If you´re not fit, danger is coming|
|Mkhitaryan prepares to prove himself at United|
|Cavani: No pressure replacing Ibrahimovic|
|Wenger vows to keep transfer plans ´secret´ after Lacazette snub|
|Brannagan open to Championship loan move|
|Wenger wants to sign Mertesacker replacement|
|Ancelotti: Bayern´s transfer business done|
|Brisbane Roar sign former Danish international Kristensen|
|Verratti, Luiz missing for PSG|
|Sounders part ways with foundation coach Schmid|
|Mane turned down Manchester United for Liverpool|
|Zidane on Pogba: Until August 31, anything can happen|
|Mkhitaryan driven by father´s death|
|Inter rejected Napoli offer for Icardi, says president|
|Clichy: City fighting fit after Guardiola pizza ban|
|Everton and Burnley win as Hull are held|
|Ajax held by PAOK after Cillessen howler|
|Conte left frustrated by ´crazy´ money in transfer market|
|Neymar makes Barcelona case to Gabriel Jesus|
|Rostov comeback twice for Champions League draw with Anderlecht.|
|Arsenal defender Mertesacker set for lengthy lay-off|
|Conte not selling ´fantastic´ Matic|
|Ibrahimovic keen on MLS and Beckham´s Miami project|
|Neymar: I play for Messi, he´s the man|
|Barcelona reveal details of Andre Gomes deal|
|Suarez bullish over Barcelona prospects|
|Ajax claim Napoli keen on Milik to replace Higuain|
|Totti labels Higuain´s Juventus move ´a disaster´|
|Juventus confirm Higuain deal|
|Pato to Villarreal ´in the final stage´|
|PSG sign Lo Celso|
|Muller: Beating Dortmund will be more fun this season|
|Juventus sign Higuain from Napoli for €90m|
|Pastore: I´m like God in Paris|
|Injured Lanzini out of Olympics|
|Allegri unperturbed by Higuain fee|
|Menezes replaces Bento at Cruzeiro|
|Sporting rejected major bids from Inter and Liverpool for Joao Mario, claims father|
|Pochettino pleased by Tottenham despite Juventus defeat|
|Eriksson: Allardyce the right man for England|
|Mourinho makes United train after stepping off plane from China|
|Hazard can still match Messi, says Pedro|
|Pjanic shows there is life at Juve, with or without Pogba|
|Juventus 2 Tottenham 1: Benatia bags win for Serie A champions|
|Dembele: I am not the Bundesliga´s next superstar|
|Lyon claim €35m Arsenal offer for Lacazette rejected|
|Donnarumma dreaming of Milan captaincy as he eyes long-term stay|
|Robson: Ibrahimovic can match Van Persie´s first year at United|
|Rooney should remain England captain - Eriksson|
|Emery wants new striker at PSG|
|Santos accept Juventus bid for Gabriel|
|Eriksson expects Sweden to try and tempt Ibrahimovic out of retirement|
|Spurs signing Janssen almost quit|
|Leicester stay best for Mahrez - Ranieri|
|Allardyce to take Mourinho cue on Rooney|
|Ings ready to outdo big-money signings|
|Henderson optimistic over Liverpool campaign|
|Allardyce hardened to the challenge of England post|
|Barcelona announce record revenues for 2015-16|
|Moyes enjoys Sunderland win as Palace beat Colchester|
|Stoke complete Allen signing|
|Roma coach Spalletti warns suitors off Manolas|
|Cresswell out for up to four months with knee injury|
|Burnley fan banned by club for racist abuse|
|Dad won´t let me play at the Olympics - Larsson Sr pulls rank|
|Kostic joins Hamburg on five-year deal|
|Tevez: I´d turn down Chelsea and Napoli to stay at Boca|
|Mayoral inspired by Benzema for Wolfsburg stint|
|Allardyce straight into competitive action with England|
|Liverpool, Sevilla fined for Europa League final incidents|
|Barcelona seal Guillemenot signing as part of new Servette deal|
|Niersbach handed one-year ban over World Cup corruption|
|Chelsea and Everton ´still interested´ as Koulibaly eyes Napoli exit|
|´Still working hard´ - Balotelli trains with Liverpool kids|
|Winter breaks, long-ball football and the World Cup: Allardyce in his own words|
|Inter warn Napoli Icardi is not for sale|
|Zanetti wants Simeone back at Inter|
|Stoke snap up Sobhi|
|PSG tougher under Emery - Lucas Moura|
|Totti not ready for retirement - Pallotta|
|Confident Allardyce reveals plan for England success|
|Pochettino to discard three Tottenham players|
|Allardyce: Rooney must wait for captaincy decision|
|Aubameyang: I will only leave Dortmund for Real Madrid|
|Allegri silences questions on Pogba|
|Bruce stands by decision to quit Hull City|
|Pochettino: Not the right time for Argentina job|
|Inter yet to approach De Boer with Mancini exit rumoured|
|Ancelotti trusts me more than Guardiola - Ribery|
|Wijnaldum rejected Everton for Klopp|
|Pre-season Manchester derby cancelled|
|Coutinho excited by ´fast´ Liverpool recruits|
|Cristiano Ronaldo and Conor McGregor step into the ring together|
|Mancini coy on reports linking Icardi to Napoli|
|Nolito reveals why he chose Man City over Barcelona|
|Inter 1 Paris Saint-Germain 3: Icardi absence in defeat fuels Napoli talk|