522 error with Porkbun registered domain using Cloudflare Pages with Github

That isn’t enough, you need to add each hostname under your Pages Project → Custom Domains tab. It’ll create the CNAME for you as well, if it doesn’t exist. You’ll get a 522 error for any hostname not in that list. You’ll want to add your root (eatpiatto.com) and any subdomains you want to work, as Pages Custom Domains.
Magic Link: https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/domains