In-Medium Pion Valence Distribution Amplitude