Elmas
The train is EUR 1.30 and under ten minutes to Cagliari station, EUR 5 more if bought on board; after 23:07, one bus at 00:15 and a fixed-fare taxi from EUR 17.
Every option priced for your party, with where each one leaves you. Going the other way? Cagliari to Elmas airport.
