.header {
  background-image: radial-gradient(rgba(0,0,0,.7), rgba(0,0,0,.6)), url(../images/StaffCover2.jpg);
  background-position: 50% 0%;
  background-attachment: scroll;
}
.header span {
  display: block;
}
.card-item-staff .main-link,
.template-text-2 {
  color: var(--offwhite);
}
.template-angle {
  grid-row: 2 / 3;
}
.template-angle picture {
  max-width: 500px;
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  margin-bottom: -2em;
  justify-self: center;
}
.template-body {
  background-image: 
	linear-gradient(
		174deg, 
		rgba(235,235,235,.8) 0%, 
		rgba(235,235,235,.8) 80%, 
		var(--arthurMurrayBlue) 80.08%, 
		var(--arthurMurrayBlue) 100%
	), 
	url(../images/FootprintsBackground.svg);
}
.doorways {
  margin: 0;
  background-color: var(--white);
  z-index: 1;
  position: relative;
  padding: 5em 0 0;
  display: grid;
  grid-template-columns: minmax(1fr, 1200px);
  justify-content: center;
}
#insegnanti {
	padding-bottom: 5em;
}
.doorways h2 {
  text-align: center;
}
.cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
  padding: 0 1em;
  max-width: 1200px;
  justify-content: center;
}
.card-item-staff {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 330px 50px auto;
  width: 100%;
  flex: 2 1 330px;
  max-width: 330px;
  background-color: var(--offwhite);
  border: 2px solid var(--lightgray);
  text-align: center;
  overflow: hidden;
}
.card-item-staff picture {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  width: 300px;
  height: 300px;
  justify-self: center;
  align-self: center;
}
.card-item-staff h3 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  align-self: end;
  padding: .5rem 0;
  margin: 0;
  text-shadow: 0 0 5px #fff;
  color: var(--arthurMurrayBlue);
  z-index: 1000;
  font-size: var(--h3);
}
.card-text {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  display: flex;
  grid-template-columns: auto;
  grid-template-rows: auto;
  gap: .5em;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 1em 1em;
}
.card-text p {
  margin: 0;
}
.card-text a {
  color: #000;
}
.card-text a:hover {
  color: #777;
  color: var(--arthurMurrayBlue);
  transition: .3s ease-out;
}
.classes {
  font-weight: 500;
  font-size: .7em;
  line-height: 2;
  letter-spacing: 1.1px;
  font-family: "Montserrat", sans-serif;
}
@media screen and (min-width: 615px) {
  .header {
    background-size: cover;
    background-position-y: 50%;
  }
  .header span {
    display: inline-block;
  }
  .template-body {
    background-image: 
		linear-gradient(
			174deg, 
			rgba(235,235,235,.8) 0%, 
			rgba(235,235,235,.8) 80%, 
			var(--arthurMurrayBlue) 80.08%, 
			var(--arthurMurrayBlue) 100%
		), 
		url(../images/FootprintsBackground.svg);
  }
}
@media screen and (min-width: 1000px) {
  .header {
    background-position: 50% 0;
    background-attachment: fixed;
  }
  .template-body {
    background-image: 
		linear-gradient(
			174deg, 
			rgba(235,235,235,.8) 0%, 
			rgba(235,235,235,.8) 70%, 
			var(--arthurMurrayBlue) 70.08%, 
			var(--arthurMurrayBlue) 87%
		), 
		url(../images/FootprintsBackground.svg);
  }
  .template-angle {
    grid-row: 1 / 2;
  }
  .template-angle picture {
    margin-bottom: -3em;
    justify-self: center;
    grid-column: 3 / 5;
  }
}
@media not all and (-webkit-min-device-pixel-ratio:0), not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) {
    .cards {
      margin: .5em;
    }
  }
}