I can find no source for AoC being 18 in portugal. Most say 14 with court deciding whether it is a rape or not in the case of 14-16. Seem like most of the europe have same rules.
14-16 year old can have sexual relationship with anyone under 18.
Sixteen- and seventeen-year-olds can consent to sexual relations, with the exception of prostitution, porn and other sexual activities for financial gain. If there is reason to believe the minor's capacity for informed consent is lacking, or an exploitative relationship is in place, these can still be deemed illegal on a case-by-case basis.