From Pope Pius XI;
8. Whoever exalts race, or the people, or the State, or a particular form of State, or the depositories of power, or any other fundamental value of the human community — however necessary and honorable be their function in worldly things — whoever raises these notions above thheir standard value and divinizes them to an idolatrous level, distorts and perverts an order of the world planned and created by God; he is far from the true faith in God and from the concept of life which that faith upholds.
https://www.papalencyclicals.net/pius11/p11brenn.htm