When going to Italy departing from Switzerland, I used to take the route between Bern and Domodossola (in the Italian side). This route takes about 1h40min and 2 hours. On the SBB (Swiss railway company), you can check the timetables. From Domodossola, I used to go to Milan.
This route takes about 2 hours or 1h40min. At the local railway station in Domodossola, you can buy the train tickets heading to Milan and other Italian cities. You can check timetables on Trenitalia's website for trains in Italian territory. Domodossola is interesting city if you look for landscapes such as mountains, lakes and small villages.
And much cheaper than what you would spend in Switzerland! And also a place to consider for crossing the Swiss-Italian border if you don't plan doing it via Lugano.
