:root {
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  background-color: #f7f8fb;
  color: #111;
  --primary: #7a000e;
  --primary-dark: #560007;
  --primary-light: #a30023;
  --muted: #4a4a4a;
  --border-radius: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f8fb;
  color: #111;
  line-height: 1.6;
}

body a {
  color: var(--primary);
  font-weight: 600;
}

body a:hover,
body a:focus-visible {
  color: var(--primary-light);
}

.top-bar {
  width: 100%;
  background: #ffffff;
  color: #111111;
  border-bottom: 1px solid rgba(122, 0, 14, 0.12);
  box-shadow: 0 8px 25px rgba(122, 0, 14, 0.15);
}

.top-bar__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
}

.logo {
  width: auto;
  max-width: calc(320px * 1.452);
  max-height: calc(90px * 1.452);
  height: auto;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-left: auto;
  min-width: 0;
}

.site-nav__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.site-nav__social {
  width: min(100%, 13rem);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.site-nav__social-box {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  background: #f9ebdc;
  border: 1px solid rgba(122, 0, 14, 0.1);
  overflow-wrap: anywhere;
}

.site-nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.4;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  color: var(--primary-light);
  outline: none;
}

.site-nav a:focus-visible {
  outline: 2px dashed var(--primary-light);
  outline-offset: 4px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 1.5rem 4rem;
}

section {
  margin: 0 auto;
  width: min(1100px, 100%);
}

h1,
h2,
h3 {
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

/* Ajuste de espaçamento da seção da equipe para aproximar o título e o CTA. */
.team-heading {
  font-size: clamp(1.125rem, 1.6vw + 1rem, 1.375rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  margin-block-start: 1.5rem;
  margin-block-end: 0;
}

.team-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
}

@media (min-width: 768px) {
  .team-cta {
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .team-cta {
    gap: 0.5rem;
  }
}

.team-cta__action {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

.hero {
  background: linear-gradient(135deg, var(--primary), #a30023 65%);
  color: #fff;
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.hero__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.hero__media {
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  min-height: 1px;
  position: relative;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.hero__content {
  width: 100%;
  max-inline-size: min(640px, 100%);
  padding: 24px 0;
}

.top-hero-img {
  width: min(160px, 100%);
  max-width: 160px;
  display: block;
  padding-left: 20px;
  margin: 1.5rem 0 0;
  height: auto;
  object-fit: contain;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  /* Reduzido o espaçamento entre linhas do título do herói vermelho. */
  line-height: 1.2;
}

.hero__description {
  font-size: 1.15rem;
  width: 100%;
}

.hero__content h1,
.hero__content .hero__description {
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.hero__tag {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(122, 0, 14, 0.35);
}

.btn--primary:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(122, 0, 14, 0.45);
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.link-window {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 1rem;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.link-window:hover,
.link-window:focus-visible {
  background: #333;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.link-window:focus-visible {
  outline: 3px solid #ffd34e;
  outline-offset: 3px;
}

.player {
  background: #f9ebdc;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(15, 52, 86, 0.15);
}

.player__content h2 {
  font-size: 1.75rem;
}

.player audio {
  width: 100%;
  margin-top: 1rem;
}

.player__grid {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.player__media {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 52, 86, 0.18);
}

.player__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.player__content {
  width: 100%;
}

.section-header {
  margin-bottom: 1rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: calc(0.85rem * 1.15);
  color: var(--muted);
}

.section-intro {
  margin-top: 0.25rem;
  color: rgba(15, 52, 86, 0.85);
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.team-members {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.team-member {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.75rem;
  border: 1px solid rgba(15, 52, 86, 0.12);
  box-shadow: 0 12px 30px rgba(15, 52, 86, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-member__media {
  width: 100%;
  flex: 0 0 auto;
}

.team-member__media img {
  width: 100%;
  height: 260px;
  border-radius: 1rem;
  object-fit: cover;
  display: block;
}

.team-member__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-member__name {
  margin: 0;
  font-size: clamp(1.4rem, 1.6vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
}

.team-member__role {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .team-member {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .team-member--reverse {
    flex-direction: row-reverse;
  }

  .team-member__media {
    flex: 0 0 320px;
  }

  .team-member__media img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .team-member {
    padding: 1.25rem;
  }
}

.episodes__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.episodes__grid article {
  background: #f9ebdc;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid rgba(15, 52, 86, 0.1);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
}

.person-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.person-card__media {
  width: 100%;
  flex: 0 0 auto;
}

.person-card__photo {
  width: 100%;
  height: 260px;
  border-radius: 1rem;
  object-fit: cover;
  display: block;
}

.person-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.eloiza-card {
  width: 100%;
}

.eloiza-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  object-fit: cover;
  display: block;
  height: auto;
}

@media (min-width: 768px) {
  .eloiza-card {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }

  .eloiza-card__body {
    order: 1;
    flex: 1;
  }

  .eloiza-card__media {
    order: 2;
    flex: 0 0 240px;
    display: flex;
    justify-content: center;
  }

  .eloiza-card__photo {
    height: auto;
  }
}

.person-card__name {
  margin: 0;
  font-size: clamp(1.35rem, 1.6vw, 1.7rem);
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
}

.person-card__name span {
  display: block;
}

.person-card__text {
  margin: 0;
  color: rgba(15, 52, 86, 0.85);
  font-size: 1rem;
  line-height: 1.5;
}

.person-card__text--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.person-card__text--inline span {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 768px) {
  .person-card {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .person-card__media {
    flex: 0 0 190px;
  }

  .person-card__photo {
    height: 190px;
  }

  .person-card__body {
    flex: 1;
  }
}

.team-card__photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  flex-shrink: 0;
}

.team-card--profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-card__media {
  width: 100%;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-card--profile .team-card__media {
  width: 100%;
}

.team-card--profile .team-card__photo {
  height: auto;
}

.team-card__name {
  font-size: clamp(1.35rem, 1.6vw, 1.7rem);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card__name--split {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.team-card__text {
  margin: 0;
  color: rgba(15, 52, 86, 0.85);
  font-size: 1rem;
  line-height: 1.4;
}

.team-card__text--cta {
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 600;
}

.team-card--cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 0.75rem;
}

.team-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 52, 86, 0.25);
  text-decoration: none;
  color: #111;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 52, 86, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card__cta:hover,
.team-card__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(15, 52, 86, 0.3);
}

.about {
  background: #f9ebdc;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(13, 38, 67, 0.12);
}

.footer {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer a {
  color: #ffd34e;
}

.footer__small {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 900px) {
  .team-card--profile {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .team-card--profile .team-card__body {
    flex: 1;
  }

  .team-card--profile .team-card__media {
    flex: 0 0 230px;
  }

  .team-card--profile .team-card__photo {
    height: 220px;
  }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 1.5rem;
  }

  .hero__media {
    justify-self: end;
    max-width: 360px;
  }
}

@media (min-width: 768px) {
  .hero {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .hero {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .player__grid {
    flex-wrap: nowrap;
    align-items: center;
  }

  .player__media {
    width: 45%;
    aspect-ratio: auto;
    max-height: 420px;
  }

  .player__content {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
  }

  .player__content h2 {
    font-size: clamp(1.75rem, 2vw, 2rem);
  }

  .player__content p {
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .hero__content {
    padding-block: 14px;
  }
}

@media (max-width: 720px) {
  .top-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-left: 0;
  }

  .logo {
    max-height: calc(72px * 1.452);
  }
}

@media (max-width: 720px) {
  .person-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .person-photo {
    width: min(260px, 100%);
    align-self: center;
  }

  .person-text {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .player__grid {
    flex-direction: column;
  }

  .player__media {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .top-bar__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
    width: 100%;
    gap: 1rem;
  }

  .hero {
    padding-inline: 1rem;
    text-align: left;
  }

  .hero__inner {
    gap: 1.5rem;
  }

  .player,
  .about,
  .episodes__grid article {
    padding: 1.5rem;
  }

}

@media (max-width: 480px) {
  .top-hero-img {
    max-width: 120px;
  }
}

/* Reduz apenas o botão "Saiba mais" do cartão do Flávio em 50% */
.team-card__small {
  display: inline-block;
  transform: scale(0.5);
  transform-origin: center;
}

.team-card__small:hover,
.team-card__small:focus-visible {
  transform: scale(0.5);
  box-shadow: 0 10px 20px rgba(15, 52, 86, 0.2);
}
