Alessandro Tonelli had time to sit up and celebrate before the line after racing to victory on Stage 4 at the Tour of Croatia.