The longest poem is an adjective phrase used to describe the longest poem in a group of poems. The longest song is a noun phrase, which is used to describe the longest attribute in the attributive clause.
2. The longest poem is decorated, and the longest is the attribute in the attributive clause.