Eurail is a pass, not a train system. The trains in most of Italy are Trenitalia, but there is also Italo (not to be confused with a reseller called Italia) and quite a few private local lines such as the Circumvesviana which operates between Naples and Sorrento. There are no trains along the Amalfi coast.