GIGLIO ISLAND, Italy — The extraordinary righting of the Costa Concordia from its watery Tuscan graveyard has given Italy a boost of sorely needed pride, helping erase some of the shame many felt after an Italian captain took the cruise ship off course in an apparent stunt, crashed it, and then abandoned ship before everyone was evacuated.
It didn’t seem to matter that the chief salvage master was from South Africa or that his 500-member crew hailed from 26 different nations. Italy, beset by two years of recession and such political instability that each day brings relief that the government hasn’t fallen, had pulled off an unprecedented engineering feat as the world watched live on television.
‘‘Well done!’’ retiree Aldo Mattera said Tuesday morning as he surveyed the Concordia, upright for the first time since the Jan. 13, 2012, shipwreck that killed 32 people near Giglio Island.
Premier Enrico Letta also weighed in, emphasizing the importance of restoring the nation’s civic pride.
As he personally thanked Franco Gabrielli, the head of Italy’s civil protection agency who oversaw the project, Letta said the operation had demonstrated what it means to take responsibility for something, no matter how risky or how high the stakes.
‘‘In this case, the public image of our country was one of fleeing responsibility,’’ Letta said, referring to the captain’s early evacuation from the ship and his subsequent refusal to reboard even after being ordered to do so by the coast guard.
‘‘Instead today, thanks to all your work and thanks to this concept of assuming responsibility,’’ Italy’s reputation has been restored, Letta told Gabrielli at a ceremony at the government palace in Rome.
A few hours earlier, a fog horn had mourned off Giglio at 4 a.m. and Gabrielli declared that the Concordia had been successfully righted and had settled onto its new perch on a false seabed.
The development now allows for a renewed search for the two bodies that were never recovered and for the ship to eventually be towed away and broken up for scrap. It will also enable recovery crews to go from cabin to cabin opening safes so they can to return the valuables that passengers left behind in their frantic nighttime escape.
Nick Sloane, the South African chief salvage master, received a hero’s welcome when he came ashore from the floating barge that served as the operation’s command center. At one point, a phalanx of Carabineri police served as bodyguards to keep television crews from mobbing him.
‘‘She was heavier than I expected,’’ Sloane told reporters after a few hours of sleep. ‘‘But you have to be patient. You can’t do it with a stopwatch.’’
Many disasters have their heroes, but some also have their villains. Francesco Schettino, the captain, has insisted that he has been made a scapegoat and that a series of errors by others and his employer itself contributed to the disaster.
He has said that he saved lives by maneuvering the stricken ship toward Giglio’s port rather than letting it sink in the open sea, and that the reef he rammed into wasn’t on his nautical charts.
Schettino’s trial resumes Monday on the mainland, where he is accused of manslaughter, causing a shipwreck, and abandoning the ship before all its 4,200 passengers and crew had been evacuated. Five other Costa employees were convicted of manslaughter in a plea bargain and were sentenced to less than three years apiece — sentences that enraged some survivors as being far too lenient.
Sloane, who choked up at times during a Tuesday afternoon briefing, was asked what he would say to Schettino if he ever had a chance to meet him.
‘‘I wouldn’t like to be in his shoes,’’ Sloane replied.
Sloane said the most critical moment of the operation that began early Monday came at the beginning, when the Concordia failed to dislodge itself from the reef embedded in its starboard side even after some 6,000 tons of force was applied.
‘‘That would tend to the higher side of assumptions,’’ he said. ‘‘At 6,200 tons she moved, then at 6,800 she got off the rock. That was the crucial moment.’’
The Concordia’s submerged side suffered significant damage during the 20 months it bore the weight of the 1,000-foot-long ship on the reef. The daylong operation to right it had stressed that flank as well. Exterior balconies were mangled and entire sections looked warped, although officials said the damage probably looked worse than it was.
The damage must be repaired to stabilize the ship so it can withstand the coming winter, when seas and winds will whip the luxury liner. The starboard side must also be stabilized so crews can affix tanks that will help float the ship off the seabed when it comes time to tow it sometime next year.
The operation had been expected to take no more than 12 hours but expanded to 19 after an initial weather delay and emergency maintenance issues involving the vast system of steel cables, pulleys, and counterweights that were used to roll the half-submerged carcass of steel upright.
Sloane said there were no errors, just tense moments — ‘‘alarms started to ring’’ — when the ship didn’t immediately settle onto its artificial seabed platform. Once it did, the control room issued to all the vessels involved the happy announcement that the operation was successful.