.testimonials {
  height: 12.5rem;
  margin: 2rem 0;
}

.testimonials__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.testimonials__grid {
  width: 82.14%;
  display: flex;
  align-self: stretch;
  gap: 1.25rem;
}

.testimonials__item {
  width: 49%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgba(254, 186, 212, 0.25);
  border-radius: 0.625rem;
  padding: 2.25rem 0 1rem;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.testimonials__text {
  margin: 0;
  width: 83.3%;
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: justify;
}

.testimonials__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-top: 1.4375rem;
  width: 93.3%;
}

.testimonials__author-image {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
}

.testimonials__author-info {
  text-align: left;
  width: 47.6%;
  line-height: 1.2rem;
}

.testimonials__author-name {
  font-family: var(--calistoga);
  font-size: 1rem;
  color: var(--rosa-escuro);
}

.testimonials__author-project {
  font-size: 0.75rem;
  color: var(--cinza);
}

.testimonials__project-button {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: var(--font-bold);
  color: var(--almost-white);
  padding: 0.5rem;
  border-radius: 0.3125rem;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  background: var(--rosa-escuro);
}

.testimonials__project-button::after {
  content: "\f061";
  font-family: var(--font-awesome);
  font-weight: var(--solid-weight);
  margin-left: 0.625rem;
}

.testimonials__project-button:hover {
  background: var(--rosa-claro);
}

.testimonials__project-button:focus {
  outline: 0.125rem solid var(--rosa-escuro);
  outline-offset: 0.125rem;
}

.testimonials__header {
  width: 13.4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.testimonials__title {
  font-family: var(--calistoga);
  font-size: 1.875rem;
  text-align: right;
  position: relative;
  line-height: 2.5rem;
  color: var(--rosa-escuro);
  margin-bottom: 1.5rem;
}

.testimonials__title::before {
  content: "";
  width: 1.875rem;
  height: 1.875rem;
  position: absolute;
  bottom: 0.3rem;
  left: 1rem;
  background-size: cover;
  background-image: var(--emoji-white);
}

.testimonials__button {
  background: var(--rosa-escuro);
  border: 0.0625rem solid var(--rosa-escuro);
  border-radius: 0.3125rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: var(--font-bold);
  color: var(--almost-white);
  padding: 0.3125rem 0.625rem;
}

.testimonials__button:hover {
  background-color: transparent;
  border: 0.0625rem solid var(--rosa-escuro);
  color: var(--rosa-escuro);
}

.testimonials__button:focus {
  outline: 0.125rem solid var(--rosa-escuro);
  outline-offset: 0.125rem;
}

@media (max-width: 768px) {
  .testimonials {
    height: auto;
  }

  .testimonials__container {
    flex-direction: column;
  }

  .testimonials__header {
    order: 1;
    width: 90%;
  }

  .testimonials__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .testimonials__title::before {
    position: relative;
    order: 2;
    bottom: 0;
  }

  .testimonials__button {
    width: 80%;
    max-width: 15.625rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    text-align: center;
    margin: 0 auto 2.5rem;
    background-color: var(--rosa-escuro);
    color: var(--almost-white);
  }

  .testimonials__grid {
    order: 2;
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
  }

  .testimonials__item {
    width: 100%;
  }

  .testimonials__text {
    font-size: 1.1rem;
    line-height: 1.8rem;
  }

  .testimonials__author {
    flex-wrap: wrap;
  }

  .testimonials__author-info {
    width: 80%;
  }

  .testimonials__project-button {
    flex-basis: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .testimonials__author {
    flex-wrap: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .testimonials {
    height: auto;
  }

  .testimonials__container {
    flex-direction: column;
  }

  .testimonials__header {
    order: 1;
    width: 100%;
  }

  .testimonials__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .testimonials__title::before {
    position: relative;
    order: 2;
    bottom: 0;
  }

  .testimonials__button {
    width: 80%;
    max-width: 15.625rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    text-align: center;
    margin: 0 auto 2.5rem;
    background-color: var(--rosa-escuro);
    color: var(--almost-white);
  }

  .testimonials__grid {
    order: 2;
    justify-content: space-around;
    width: 100%;
    gap: unset;
  }

  .testimonials__item {
    height: auto;
  }

  .testimonials__text {
    margin: auto;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .testimonials__author {
    flex-wrap: wrap;
  }

  .testimonials__author-info {
    width: 80%;
  }

  .testimonials__project-button {
    flex-basis: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}
