Functional train station. This serves as both a central train and bus station--buses stop 1) in a depot-like parking area directly to the left of the station as you're walking out (or to the right of you walking up to the front of the station, and 2) along the main street in both directions in front of the station. If you're not familiar with the bus lines you should probably do a bit of research on the bus number to take to reach your destination and where the stops are located.
The train station is larger than most small town stations that have a dual platform--this place has 6. Inside is clean and there are a few diff ticket offices and a help desk in the building. I found it a little confusing to locate these inside as the building is very long--from the front it extends more than an entire length of a train. To access the platforms further in from the entrance, you may need to take a stairway underpass. Bathrooms are available I believe these are pay-to-use.
Regional trains along the Adriatic coast will make stops here, as well as trains from Bologna, Milan, Venice.
If you're looking to take a bus to San Marino, there is a separate ticket office in a smoke shop / tabacherria directly across the street from the main station entrance (see pic). Tickets can be purchased there or online in advance with though I've heard of stories of online QR codes not scanning properly. Key point is that seats are first come first serve so even if you buy tickets in advance and there are too many people in line then you may not get on the bus and have to wait about 40-45 minutes for the next one. So get there early! The bus stop is about 600 feet directly to the right of the smoke shop (if you're facing it) on the same side of the street. BUT sometimes it stops even further away. When I was there it stops about 2 blocks over at the corner of Via Alessandro Gambalunga. You have to walk past the other local bus stops and look for a small crowd of people waiting. read more