Jannik Sinner powered Italy to a 2-1 comeback win against the Netherlands to secure a Davis Cup semi-final place.
However, world number four Sinner pulled Italy level with a 7-6 (7-3) 6-1 win over Tallon Griekspoor before partnering Lorenzo Sonego to victory in the deciding doubles match.
Italy will next face Serbia or Great Britain, who played later on Thursday.
Sinner, who was beaten by Serbia's Djokovic in the ATP Finals title match on Sunday, edged the opening set of his singles rubber before racing through the second in just 20 minutes.