:root {
  --background-header: #02426b;
  --background-footer: #02426b;
  --background-main: #e9e5e6;
  --title-color: #8beef0;
  --subtitle-color: #005c99;
  --text-color: #005cad;
  --horizontal-line-color: #02426b;
  --link-color: #e9e5e6;
  --background-ingles: #307aac;
}

.quando-regular {
  font-family: "Quando", serif;
  font-weight: 400;
  font-style: normal;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: Raleway, Helvetica, sans-serif;
}

h1 {
  font-size: 2.2em;
}
h2 {
  font-size: 1.8em;
}
h3 {
  font-size: 1.4em;
}
h4 {
  font-size: 1.2em;
}
h5 {
  font-size: 1.1em;
}
h6 {
  font-size: 1em;
}

p,
label,
li,
a,
span,
input,
textarea,
button {
  font:
    120%/1.5 Roboto,
    Helvetica,
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
}

#menu-toggle {
  display: none;
}

.hamburguesa {
  display: none;
}

nav {
  margin: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

nav a {
  color: var(--link-color);
  text-decoration: none;
  margin: 0 10px;
}

nav .selected {
  font-weight: bold;
  text-decoration: underline;
}

h2 {
  margin-bottom: 20px;
  color: var(--background-header);
}

header {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 160px;
  align-items: center;
  background-color: var(--background-header);
  height: 140px;
  color: var(--title-color);
  padding: 0 40px;
}

#logo {
  grid-column: 1;
  grid-row: 1 / 3;
  justify-self: start;
  align-self: center;
  display: flex;
}

#logo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  display: block;
}

header nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
  margin: 20px 0 0 0;
}

header h1 {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  font-size: 2.2rem;
  text-align: center;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

footer {
  background-color: var(--background-footer);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

ul {
  list-style-type: none;
  padding: 0;
}

footer nav {
  width: 50%;
}

footer nav ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  align-items: center;
}

footer nav li {
  text-align: center;
}

footer img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  margin-bottom: 20px;
}

footer p {
  color: white;
  text-align: center;
}

@media (max-width: 768px) {
  header {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 20px;
  }

  #logo {
    grid-column: 1;
    grid-row: 1;
  }

  #logo img {
    width: 100px;
    height: 100px;
  }

  .hamburguesa {
    display: block;
    font-size: 35px;
    color: white;
    cursor: pointer;
    justify-self: end;
  }

  header h1 {
    grid-column: 1 / 3;
    grid-row: 2;
    margin-top: 20px;
    justify-self: center;
  }

  header nav {
    display: none;
    grid-column: 1 / 3;
    grid-row: 3;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0 0;
  }

  #menu-toggle:checked + .hamburguesa + nav {
    display: flex;
  }

  footer img {
    width: 100px;
    height: 100px;
  }

  footer nav {
    margin: 20px 0;
  }

  footer nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}
