The minimum impact factor required to be classified as a Q1 journal can vary widely depending on the field and specific journal. In general, Q1 journals tend to have higher impact factors than those in lower quartiles, and the minimum impact factor for a Q1 journal can range from around 2-3 in some fields to well over 10 in others. So it's always best to check the specific journal's website or databases such as Clarivate Analytics' Journal Citation Reports to find the impact factor cutoff for a particular journal's category and quartile.
The comment by Ajit Singh is 100% correct as far as I know. It varies a lot from one field to another.
Regardless of which quartile (or IF) you are aiming for, the way I think of it is to concentrate on the journals that I normally read. That gives a good guide to me as to what to aim for.