In my opinion, you can change to stay in Hue instead of staying Da Nang. It gives you more time to relax in Hue with beach time, the city and the Forbidden. Other points look good. It means from Hanoi, you flight to Hue than Hoi An.
Have good day.
Hanoi Tour Planner