You can take a bus from Bari Airport (BRI) to Mattinata via Foggia in around 3 h 50 min.
How to get from Bari Airport (BRI) to Mattinata
From Bari bus to Foggia then bus to Mattinata. 3 h 50 min 17€. From Bari Aeroporto Karol Wojtyla train to Bari Centrale, train to Foggia, then bus to Mattinata. 4 h 29 min 32€. From Bari Airport (BRI) drive to Mattinata. 1 h 48 min 21€.