If one abandons his faith in Catholicism and becomes an Atheist, could he still go to heaven? If one has been raised a Catholic for all their life, and have just never found meaning in it, and then plans on becoming an Atheist  after a difficult conversation with their parents.
I would like to know, if God was real, could they still go to heaven, even though they have left their faith and turned away from Christianity?
Introduction (personal opinion)
Before presenting the Catholic Church's teaching on abandoning a person's childhood Catholic faith, I would like to review the connection of all elements in your question: God, heaven, the Catholic church, Atheism, the meaning of Catholic practice, and the fear of not going to heaven if Atheism turns out to be false.
God, as understood by Christians, is a good and loving Father who wants to save us from the power of sin by sending His Son Jesus to die on the cross for us as a sacrifice of love, a tangible sign so we can believe His ultimate intention for us: to enter heaven.  That is the Gospel.
So God invites us to live in His house: heaven.  But only people with hearts that fit for heaven can enter since heaven is the place for love.  It makes sense, because to flourish in heaven we need to have the hearts that have the same character as God: loving.  Do you think entering heaven is automatic?  Are our hearts ready to enter heaven today?  Since God gives us free will, we have a choice on how to shape our hearts:

To the Christian standard, the way God created us to be
To the standard that we create for ourselves, because that's what Atheism basically is.

We also need to be aware that there is an enemy!  It's not just us and God.  This enemy is Satan and his minions, the one who tempts us to sin, the one who tirelessly tries to prevent us from entering heaven through lies such as false religions and false belief systems.  Satan is the prince of the world for now until he is completely defeated at the end of the world.  We now live in enemy occupied territory.  Satan's main mission is to prevent us from shaping our hearts to God's standard by enticing us to create our own standard, like Atheism!
Can Atheism prepare our hearts for the Christian heaven?  Remember, heaven is the Christian God's house.  But Atheism means believing that God doesn't exist. If through living our lives we shape our hearts as though God doesn't exist, it's like living in the same house with our parents but we:

never say anything to them
never ask them what we can do to please them, and
set our own rules while living in THEIR house!

A heart that habitually ignores God instead of loving God.  Does it fit?  It simply doesn't fit !!
The only fitting choice is to prepare our hearts according to Christianity, God's standard, the owner of heaven.  That is why God establishes the Catholic Church on earth, a stronghold within the enemy occupied territory.  The Catholic Church's main mission is to help us prepare our hearts for heaven in the following ways:

reconcile people to God (baptism, confession)
teach the truths about God (catechism)
nourish the faithful spiritually (mass, prayer, eucharist)
help us to be more loving (church life)

The teaching of the Catholic Church (presented below) is meant for the discernment of our true state of heart, to help us discover the sins of our hearts and to help us grow in our love for God and our neighbors.  It is not the Church who sends a person to heaven or to hell; the Church is merely a reliable guide, a &quot;truth telling thing&quot; as the great Catholic apologist G.K. Chesterton put it, to counter Satan, the Father of Lies.  The Catholic priests help administer the sacraments throughout our earthly journey to heaven: Baptism, Confirmation, Communion &amp; Confession, Marriage / Ordination (optional), and Last Rites (a combination of Confession + Anointing of the sick + final Communion) just before we die.  If our destination is the Christian heaven, what's the point of leaving the Catholic Church?
Finally, let's talk about fear.  There is a bad fear and a good fear.  Bad fear is doing things only because we don't want to be punished.  We do them simply because other people (like our parents) tell us to do them.  Or we do them without love and without understanding why we do them.  Bad fear is a fear of servitude or slavery, which God wants to turn into a good fear.  Good fear is respect and gratitude for God expressed in good actions dedicated as an offering to Him.  We are fearful for going astray because this will grieve God's heart who wants us to safely complete our earthly journey to enter His home: heaven.  It's like being fearful to hurt people who love us, like our parents, who only want good things for us. Good fear also means freely choosing and submitting to the standard that God sets for us (Christianity), because the standard will sets us more free to love Him and leads us to a more meaningful life, on earth as well as in heaven.
Teaching of the Catholic Church
From your description, since the person seems to be

a baptized Catholic who
voluntarily (without external threat) and
knowingly (after consulting parents, who I presume would guide him/her in the Catholic Faith, and therefore is no longer ignorant; whether partially / fully ignorant it's hard to determine)
leaves the Church and
joins the creed of Atheism

then from the point of view of the Catholic Church the person has committed at least a material sin of heresy which could develop into the formal variety, and even worse, to the sin of apostasy (who leaves not just the Catholic Church but abandons Christ Himself!).
If either heresy or apostasy are committed with full knowledge and full intentionality (which is hard to determine because we cannot see into the person's heart completely) then it is a grave matter and therefore a mortal sin, and thus incurs automatic latae sententiae excommunication.  Excommunication does not mean that the Catholic church sends a person to hell (see good explanation here).  One must also satisfy the general conditions for canonical culpability set out in Canon Law Code 1321-1323.  But if this person's act of becoming an atheist can with certainty be classified as a mortal sin, this person will not go to heaven.
About your subquestion &quot;if God was real, could they still go to heaven&quot;, this reminds me of Pascal's wager that &quot;humans bet with their lives that God either exists or does not&quot;.  Adapted to this context:

If the Christian God exists then the above criteria of entering heaven applies
If the Christian God does NOT exist, that means there is no Christian heaven to enter either

The bottom line (quoted from ChurchPOP website article Abandoning Christ: The Forgotten Sins of Heresy, Apostasy, and Schism):

If you are a baptized Christian, you should hold fast to the teachings of the Church, keep practicing the faith, and maintain unity with your bishop and especially the Pope.
Doing anything less is abandoning Christ and his Church!

My personal advice:

Consult the Catholics you can trust, like your priest, deacon, catechist / RCIA team, or knowledgeable members of the parish.
Bring out the specific elements of Catholicism that are objectionable to you and do additional research.  There are a LOT of excellent Catholic defense of the many varieties of atheism in quality websites, books, and journals.
The most common variety of atheism resulted from lack of meaning is because of Nietzsche's pronouncement that God is &quot;dead&quot; (irrelevant) and developed further by Albert Camus who taught that there is no objective meaning in life.  The great Catholic apologist G.K. Chesterton's response to Nietzsche can be read here while Camus's error, which in effect is the soul's destruction, has been wonderfully exposed as a logical consequence of existentialism here.
Many atheists, (such as Edward Feser), have converted into becoming Catholics so they may likely have already considered the reasons for you to become atheist and refuted them.
Therefore, please BE SAFE and remain a fully practicing Catholic while doing the research.  Asking questions is not sin.  Having doubts are not sin either, but ACTING on them (by rejecting the Faith) is.

Variations
The answer above is based on a case where all the elements identified above are present in the act.  The Catholic Church also considers a variety of cases when only some elements apply.  Examples:

A person who has never been presented with the Gospel (so has never rejected the Gospel), who therefore out of ignorance holds a false idea of God (like Atheism), may still go to heaven.  See the Catholic Answer website article on How Can Atheists Go To Heaven?.  But in the OP's case, this option is most likely no longer available.
Heresy, Apostasy, and Schism can only be be committed &quot;after the reception of baptism&quot;.  Therefore, people without valid baptism cannot commit them.  (Most Protestant churches's baptism are valid in the eyes of the Catholic Church.)
A non-Catholic Christian (like a Protestant) who has true faith in Christ is still technically classified as a material heretic but out of charity, the term heretic is now used only for those who willingly embrace what they know to be contrary to revealed truth (thus guilty in their conscience before God).  Therefore, Protestants are no longer automatically culpable heretic.
Members of the Protestants and Orthodox churches are technically only materially schismatic so they are not culpably schismatic nor are they now called schismatic out of charity.
A Catholic who out of ignorance holds beliefs contrary to the teaching of the church is a material, not formal (culpable) heretic.
A Catholic who simply abandons the practice (i.e. no longer going to church) but doesn't intentionally repudiate the faith is not an apostate.  But the moment he joins another religion (including falling into unbelief like Atheism), he becomes an apostate.

References used for the answer above

A 2001 EWTN article published in Catholic Culture website article Heresy, Schism and Apostasy - Definitions by Colin B. Donovan, STL cites the Catechism and the Canon Law during a discussion of the difference of &quot;heresy&quot;, &quot;schism&quot;, and &quot;apostasy&quot; and divides each into material or formal sin, linking it with the principle of invincible ignorance, culpability, excommunication &amp; other ecclesiastical sanctions, and other related topics.

A ChurchPOP website article Abandoning Christ: The Forgotten Sins of Heresy, Apostasy, and Schism explaining further what does it mean for those who are guilty of heresy, apostasy, and schism.

Do Catholics Excommunicate People to Hell? by apologist Dave Armstrong who covers the Biblical basis for excommunication, contrasting it with anathema.  He also explains how neither implies condemnation of people to hell but &quot;to warn the sinner of the danger he runs of incurring eternal ruin, unless he repent of his sin&quot;, again with Biblical precedent.

CCC 2087-2089 (within the article about the 1st commandment) distinguishes &quot;voluntary doubt&quot;, &quot;involuntary doubt&quot;, &quot;incredulity&quot;, &quot;heresy&quot;, &quot;apostasy&quot;, and &quot;schism&quot;:

Faith
2087 Our moral life has its source in faith in God who reveals his love to us. St. Paul speaks of the &quot;obedience of faith&quot;⁹ as our first obligation. He shows that &quot;ignorance of God&quot; is the principle and explanation of all moral deviations.¹⁰  Our duty toward God is to believe in him and to bear witness to him.
2088 The first commandment requires us to nourish and protect our faith with prudence and vigilance, and to reject everything that is opposed to it. There are various ways of sinning against faith:
Voluntary doubt about the faith disregards or refuses to hold as true what God has revealed and the Church proposes for belief.
Involuntary doubt refers to hesitation in believing, difficulty in overcoming objections connected with the faith, or also anxiety aroused by its obscurity. If deliberately cultivated doubt can lead to spiritual blindness.
2089 Incredulity is the neglect of revealed truth or the willful refusal to assent to it.
&quot;Heresy is the obstinate post-baptismal denial of some truth which must be believed with divine and catholic faith, or it is likewise an obstinate doubt concerning the same;
apostasy is the total repudiation of the Christian faith;
schism is the refusal of submission to the Roman Pontiff or of communion with the members of the Church subject to him.&quot;¹¹


Catholic Essentials website article on Apostasy quoted a definition from the 1951 Catholic Dictionary, distinguishing 3 kinds: apostasy from the Faith, abandonment of the practice of the Faith, and presumption of Apostasy:

Apostasy from the Faith is the act by which a baptized person, after possessing the true Christian faith, totally rejects it. The complete abandonment  of the practice of the Faith is NOT apostasy, or even presumption of Apostasy. A person is an apostate whether he joins a non-Christian religion, as Judaism, Buddhism, Islam, or falls into unbelief, atheism, materialism, agnosticism, rationalism, indifferentism, or &quot;free-thought&quot;. Apostates from the Faith incur excommunication ipso facto, and other penalties&quot;