:root {
  --navy: #071f4e;
  --paper: #fbfaf7;
  --pale: #eef2f6;
  --line: #cbd4df;
  --gold: #9c6e38;
  --text: #29364d;
  --serif: Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

.page-hero {
  background:
    linear-gradient(rgba(7, 31, 78, 0.88), rgba(7, 31, 78, 0.94)),
    url("/auditorio-piano.png") center 55% / cover no-repeat;
}

.nav nav a[aria-current="page"] {
  color: var(--gold);
}

.program-jump-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.program-jump-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.program-jump-grid a {
  position: relative;
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 27px;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.program-jump-grid a:last-child {
  border-right: 1px solid var(--line);
}

.program-jump-grid a::after {
  position: absolute;
  right: 27px;
  bottom: 23px;
  width: 28px;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: width 0.22s ease;
}

.program-jump-grid a:hover::after,
.program-jump-grid a:focus-visible::after {
  width: 48px;
}

.program-jump-grid a:focus-visible {
  outline: 3px solid rgba(156, 110, 56, 0.3);
  outline-offset: -3px;
}

.program-jump-grid span {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-jump-grid strong {
  margin-top: 7px;
  padding-right: 36px;
  color: var(--navy);
  font: 400 1.15rem/1.25 var(--serif);
}

#oficinas,
#apresentacoes,
#mesas-tematicas,
#oficineiros {
  scroll-margin-top: 125px;
}

.schedule-heading {
  margin-bottom: -18px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.split-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 48px;
}

.split-heading > p {
  max-width: 620px;
  margin: 0;
  font: 1.05rem/1.7 var(--serif);
}

.event time {
  padding-top: 3px;
}

.event h3 {
  line-height: 1.35;
}

.event-speaker {
  margin: 5px 0 0;
  color: #6f5b46;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.info-banner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 105px;
  padding: 35px 38px;
  background: var(--navy);
  color: #fff;
}

.info-banner span,
.card-kicker {
  display: block;
  color: #c8a97e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.info-banner h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1.25;
}

.info-banner p {
  margin: 0;
  color: #d4dce8;
}

.program-details {
  padding-top: 100px;
  padding-bottom: 100px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.workshop-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  min-height: 360px;
  padding: 31px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-number {
  color: var(--gold);
  font: 400 1.1rem var(--serif);
}

.workshop-card h3,
.presentation-card h3,
.thematic-card h3,
.bio-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font: 400 1.55rem/1.25 var(--serif);
}

.workshop-subtitle {
  margin: 0 0 13px;
  color: #56627a;
  font: italic 1rem/1.45 var(--serif);
}

.card-credit {
  margin: 0 0 19px !important;
  color: var(--gold);
  font-size: 0.76rem !important;
  font-weight: 700;
  line-height: 1.5 !important;
  letter-spacing: 0.03em;
}

.workshop-card > div > p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.workshop-meta {
  margin: 23px 0 0;
  border-top: 1px solid #dde3ea;
}

.workshop-meta div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 8px 0;
  border-bottom: 1px solid #dde3ea;
}

.workshop-meta dt {
  color: #69758a;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.workshop-meta dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.78rem;
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.presentation-card {
  padding: 35px;
  background: #fff;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.presentation-card .card-kicker {
  margin: 0 0 24px;
}

.presentation-card > p:last-child {
  margin-bottom: 0;
  font: 1rem/1.7 var(--serif);
}

.thematic-section {
  background: var(--navy);
  color: #d4dce8;
}

.thematic-section h2 {
  color: #fff;
}

.thematic-section .split-heading > p {
  color: #d4dce8;
}

.thematic-list {
  display: grid;
  gap: 28px;
}

.thematic-card {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 65px;
  padding: 42px;
  background: #0a275c;
  border: 1px solid #526889;
}

.thematic-card h3 {
  color: #fff;
  font-size: 2rem;
}

.thematic-intro > p:last-child {
  font: 1rem/1.65 var(--serif);
}

.researcher {
  margin-bottom: 19px;
  padding: 0 0 19px;
  border-bottom: 1px solid #526889;
}

.researcher:last-child {
  margin: 0;
  padding: 0;
  border: 0;
}

.researcher h4 {
  margin: 0 0 7px;
  color: #fff;
  font: 400 1.13rem var(--serif);
}

.researcher p {
  margin: 0;
  color: #cbd5e2;
  font-size: 0.86rem;
  line-height: 1.65;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.bio-card {
  padding: 34px;
  background: #fff;
}

.bio-card p {
  margin-bottom: 0;
  font: 1rem/1.7 var(--serif);
}

@media (max-width: 800px) {
  .program-jump-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-jump-grid a:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .program-jump-grid a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .split-heading,
  .info-banner,
  .thematic-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .workshop-grid,
  .presentation-grid,
  .bio-grid {
    grid-template-columns: 1fr;
  }

  .schedule {
    gap: 58px;
  }

  .schedule-heading {
    margin-bottom: -5px;
  }

  .info-banner {
    gap: 18px;
    margin-bottom: 70px;
  }

  .thematic-card {
    padding: 30px;
  }
}

@media (max-width: 500px) {
  .program-jump-grid {
    grid-template-columns: 1fr;
  }

  .program-jump-grid a {
    min-height: 96px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .program-jump-grid a:last-child {
    border-bottom: 0;
  }

  .event {
    grid-template-columns: 78px 1fr;
  }

  .event-speaker {
    font-size: 0.7rem;
  }

  .workshop-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px;
  }

  .info-banner {
    padding: 28px 24px;
  }

  .info-banner h2 {
    font-size: 1.5rem;
  }

  .thematic-card {
    padding: 25px 22px;
  }

  .bio-card {
    padding: 27px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .program-jump-grid a::after {
    transition: none;
  }
}
