Get custom field values of taxonomy terms

Are you using Advanced Custom Fields plugin? If you are, try this if it works:

foreach ($terms as $term) {
     // $cognome_nome will be "P Elena" or "P Andrea" in your case
     $cognome_nome = get_field('cognome_nome', $term->taxonomy.'_'.$term->term_id);
}

tech