Grandfather selector (parent from parent)

Wihtin an Element Selector I can acces it´s father using _parent_ selector.
But how can I access the grandfather (parent of the parent)? Somthing like _grandfather_ or _parent_._parent_

I have an Element at the top, then as chiled another Element and finally inside that second Element is where I scrape the text. But at that level I need to scrape content from the grandfather Element because I need all the scraped data to appear at the same row.

Thanks in advance

Hard to figure out what you're looking for if you don't post website or example HTML.

The :has selector might be the solution.