What do you think of this plan?:
Fly in to Barcelona from Italy - stay 2 nights or 3 nights or skip and move straight on to Bilbao??
From Barcelona - fly to Bilbao
Spend 5 or so nights in San Sebastian
2-3 nights in Rioja wine country driving through
1 or 2 nights Madrid - fly home