Trovato l'errore. Dovevo scrivere così header('Content-type: text/css');