Cinque Terre is probably better placed after Florence, before Amalfi.
Since your time is limited and you are already including the Amalfi Coast in your itinerary, you might want to consider eliminating the Cinque Terre from this trip.
You could allocate those two nights to the rest. Venice for example deserves 3 nights, and the Naples area (Amalfi) could certainly benefit from a fourth night.
Alternatively you could eliminate Amalfi and stick to the Cinque Terre instead.
Frankly if someone gave me a choice between Cinque Terre and Amalfi Coast, I would go for the latter, unless I had only a couple of nights. The Cinque Terre can be seen in one day, but the Naples area has so much to offer (Amalfi, Positano, Ravello, Sorrento, Capri, Pompeii, Herculaneum, Ischia, Procida, Naples, etc.). You could spend over a week there and not cover half of what you could see.