Context. The detailed chemical composition of stars is important in many astrophysical fields, among which is the characterisation of exoplanetary systems. Previous studies seem to indicate an anomalous chemical pattern of the youngest stellar population in the solar vicinity that has sub-solar metal content. This can influence various observational relations linking the properties of exoplanets to the characteristics of the host stars, for example the giant planet-metallicity relation.
Aims. In this framework, we aim to expand our knowledge of the chemical composition of intermediate-age stars and understand whether these peculiarities are real or related to spectroscopic analysis techniques.
Methods. We analysed high-resolution optical and near-infrared spectra of intermediate-age stars (<700 Myr) that have been observed simultaneously with HARPS-N and GIANO-B spectrographs in GIARPS mode. To overcome issues related to the young ages of the stars, we applied a new spectroscopic method that uses titanium lines to derive the atmospheric parameters, in particular surface gravities and microturbulence velocity parameter. We derived abundances of C I, Na I, Mg I, Al I, Si I, Ca I, Ti I, Ti II, Cr I, Cr II, Fe I, Fe II, Ni I, and Zn I.
Results. The lack of systematic trends between elemental abundances and effective temperatures validates our methods. However, we observed that the coolest stars in the sample, where Teff < 5400 K, display higher abundances for the ionised species, in particular Cr II, and for high-excitation potential C I lines.
Conclusions. We found a positive correlation between the higher abundances measured of C I and Cr II and the activity index log RHK′. Instead, we found no correlations between the C abundances obtained from CH molecular band at 4300 Å and both effective temperatures and activity. Thus, we suggest that these are better estimates for C abundances in young and cool stars. Finally, we found an indication of an increasing abundance ratio [X/H] with the condensation temperature for HD 167389, indicating possible episodes of planet engulfment.