html, body {
  height: 100%;
}
body {
	font-family: 'Cairo', sans-serif;
	font-size: 16px;
	margin: 0;
	padding: 0;
  background-color: #fefefe;
  background: linear-gradient(180deg, #fefaf4 0%, rgba(255,255,255,1) 20%);
  color: #404040;
  display: flex;
  flex-direction: column;
}
h1, h2 {
	margin: 0;
	padding: 0;
}
h1 {
  font-weight: 100;
  text-transform: uppercase;
  font-size: 3em;
  color: #808080;
}
h2 {
	font-size: 1.5em;
  font-weight: 400;
}
h3 {
  font-size: 1.2em;
  font-weight: 300;
}
header p {
  margin-top: 0;
  padding-top: 0;
}
header h2, header p {
  line-height: 1em;
}

a {
  color: #404040;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: border-color 0.5s;
  padding: 10px;
}
a:hover, a:focus {
  border-color: #f37121;
}

ul {
  padding-left: 23px;
  margin-top: 0;
}

li {
  list-style-type: square;
}

nav ul, nav li {
  list-style: none;
  padding: 0;
  margin: 0;
}
nav ul {
  display: block;
}
nav li {
  display: inline-block;
}

nav li svg {
  margin-right: 5px;
}

header, footer {
	text-align: center;
}
header {
  padding: 40px 20px 40px 20px;
}
footer {
  padding: 20px 20px 40px 20px;
}
main {
  flex: 1;
}

cite {
  text-align: right;
}

.hero {
  display: flex;
  background-color: #eae2d6;
  color: #404040;
}

.hero > div {
  flex: 0.5;
}

.solucions-humanes {
  min-height: 250px;
}

.solucions-humanes h2 {
  color: #f37121;
}

.solucions-humanes > div:first-of-type {
  background-image: url(./planols_i_casa.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right 0 top 0;
}

.solucions-humanes > div {
  padding: 40px;
}

.solucions-humanes blockquote {
  margin: 0;
  padding: 0;
  margin-bottom: 10px;
}

blockquote + cite {
  display: block;
  text-align: right;
}

.hero + .hero {
  margin-top: 20px;
}

.hero h3 {
  font-weight: bold;
}

.serveis {
  justify-content: center;
}

.serveis > div {
  flex: none;
  padding: 20px;
}

@media only screen and (max-width: 1023px) {
  .solucions-humanes {
    flex-direction: column;
  }
  .solucions-humanes > div {
    flex: none;
  }
  .solucions-humanes > div:first-of-type {
    min-height: 400px;
    background-position: center;
  }
}

@media only screen and (max-width: 550px) {
  .serveis {
    flex-direction: column;
  }
  .serveis > div {
    flex: none;
  }
}