#staff {
  height: fit-content;
  text-align: center;
  width: 80%;
  margin-left: 10%;
}

.title {
  color: var(--titoli);
}

#staff .caption {
  position: relative;
}

.container {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.wrapper {
  width: 80%;
  display: flex;
  flex-direction: column;
}

.album {
  display: flex;
  flex-direction: column;
  position: relative;
  height: fit-content;
  justify-content: center;
  padding-bottom: 50px;
}

.curriculum {
  list-style-type: none;
  top: 0px;
  bottom: 0px;
  height: fit-content;
  margin: 0;
  padding: 0;
  display: block;
  position: static;
  font-weight: 700;
}

.foto {
  height: 300px;
  width: 200px;
  background-size: cover;
  background-repeat: no-repeat;
  border: 5px solid #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3), 0 2px 3px rgba(0,0,0,0.1);
  margin-right: 10px;
  margin-bottom: 10px;
  margin-top: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.name {
  color: var(--hover);
  font-weight: bold;
}

.yudansha-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.yudansha-item {
  background-color: #f9f9f9;
  border-left: 5px solid var(--hover);
  padding: 20px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.yudansha-item .curriculum {
  position: static;
  text-align: left;
}

.yudansha-item .name {
  margin: 0;
}

/* RESPONSIVE */

/* smartphone */
@media screen and (min-width: 320px) {
  .album {
    display: flex;
    flex-direction: column;
    position: relative;
    height: fit-content;
    justify-content: center;
    padding-bottom: 50px;
  }

  .curriculum {
    list-style-type: none;
    top: 0px;
    bottom: 0px;
    height: fit-content;
    margin: 0;
    padding: 0;
    display: block;
    position: static;
    font-weight: 700;
  }

  .foto {
    height: 300px;
    width: 200px;
    margin-top: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
  }

  h1 { font-size: 34px; }
  h2, .curriculum .name { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  p { font-size: 18px; }
  .curriculum li { font-size: 22px; }
}

/* tablet */
@media screen and (min-width: 500px) {
  .album {
    display: block;
    position: relative;
    height: fit-content;
  }

  .curriculum {
    list-style-type: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    height: fit-content;
    margin: auto;
    display: block;
  }

  .foto {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
  }

  .album:nth-child(odd) .foto {
    float: left;
  }

  .album:nth-child(even) .curriculum {
    left: 0px;
    margin-left: 40%;
    transform: translateX(-100%);
  }

  .album:nth-child(even) .foto {
    float: right;
  }

  .album:nth-child(odd) .curriculum {
    right: 0px;
    margin-right: 40%;
    transform: translateX(100%);
  }

  h1 { font-size: 38px; }
  h2, .curriculum .name { font-size: 32px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  p { font-size: 20px; }
  .curriculum li { font-size: 24px; }
}

/* netbook */
@media screen and (min-width: 1024px) {
  .album {
    display: block;
    position: relative;
    height: fit-content;
  }

  .curriculum {
    list-style-type: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    height: fit-content;
    margin: auto;
    display: block;
  }

  .foto {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
  }

  .album:nth-child(odd) .foto {
    float: left;
  }

  .album:nth-child(even) .curriculum {
    left: 0px;
    margin-left: 30%;
    transform: translateX(-100%);
  }

  .album:nth-child(even) .foto {
    float: right;
  }

  .album:nth-child(odd) .curriculum {
    right: 0px;
    margin-right: 30%;
    transform: translateX(100%);
  }

  h1 { font-size: 42px; }
  h2, .curriculum .name { font-size: 36px; }
  h3 { font-size: 30px; }
  h4 { font-size: 24px; }
  p { font-size: 24px; }
  .curriculum li { font-size: 28px; }
}

/* desktop */
@media screen and (min-width: 1397px) {
  .album {
    display: block;
    position: relative;
    height: fit-content;
    margin-bottom: 30px;
  }

  .curriculum {
    list-style-type: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    height: fit-content;
    margin: auto;
    display: block;
  }

  .foto {
    height: 400px;
    width: 267px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
  }

  .album:nth-child(odd) .foto {
    float: left;
    margin-left: 15%;
  }

  .album:nth-child(even) .curriculum {
    left: 0px;
    margin-left: 30%;
    transform: translateX(-100%);
  }

  .album:nth-child(even) .foto {
    float: right;
    margin-right: 15%;
  }

  .album:nth-child(odd) .curriculum {
    right: 0px;
    margin-right: 30%;
    transform: translateX(100%);
  }

  h1 { font-size: 48px; }
  h2, .curriculum .name { font-size: 40px; }
  h3 { font-size: 30px; }
  h4 { font-size: 24px; }
  p { font-size: 24px; }
  .curriculum li { font-size: 28px; }
}
