Is attic an adjective?

No, "attic" is a noun.

If it is used with another noun (e.g. attic fan) it is called a noun adjunct.