The road to the red sequence via secular and environmental processes: insights from the local Universe