The Catechism in Questions & Answers

326. What does the Fourth Commandment mean for us today?

No matter their age, children have a duty to honour their parents. The way in which this commandment is concretely put into practice may vary depending on age, social environment, and societal practices.
A child’s duty to obey is, however, limited by the reference of Apostle Peter: “We ought to obey God rather than men” (Acts 5: 29).

The term “social environment” refers to a person’s living conditions, which include heritage, family and relatives, income and wealth, education, profession, religious affiliation, and other conditions of life.