Gas and dust in an edge-on protoplanetary disk: an in-depth multiwavelength analysis