Thanks to everyone.
I would like to tell you that I just did the check-in at the airport in Rome flying to Madrid and, as many suggest me, I put my backpack as cabin luggage because small enough to fit in the cabin.🍾
Regarding the trekking poles, I took it with me inside the backpack, all good...