You do not say whether you are going from Rome to Naples to Panni or Roma to Panni to Naples and whether you plan on driving by automobile or by train. Rome to naples is a direct north to South and from Naples direct west to east for Panni (provincia Foggia ) in a triangle... Please advise how you are going to travel and in what directions do you wish to travel.
Personally I would travel by Intercity super express from Rome to Foggia and/or Bari and rent a car and drive to Panni so that you will be seeing the countryside that you grew up hearing about. Then return to Foggia or bari for either an intercity super express or other swift train to Naples.
Go to
www.mappy.com and starting out from Roma (Ciampino) 00043 zip code destined to Panni (FOGGIA) 71020 for driving direction on a direct Rome Panni highway route. This is for automobile travel.
The website for Panni is in Italian but there is a page of fotos at
www.comunedipanni.it/ImgPanni.php which is what I think you may want to view. =Peter=