Buonasera is usually a greeting while buona serata is used to wish someone a good evening when you take your leave.