*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #202020;
  background: #f0f2f2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

.limite-imagem-fundo {
  position: absolute;
  top: 0;
  left: 0;
  max-height: 900px;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  z-index: -1;
}

.hero-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.imagem-capa-wrapper {
  position: relative;
  margin: 24px auto 48px;
}

.imagem-capa-wrapper::before {
  display: block;
  content: "";
  width: 100%;
  padding-top: 40%;
}

.imagem-capa {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.box {
  margin-bottom: 16px;
  background: #fff;
  padding: 48px 8%;
  border: 1px solid #d5d9d9;
  box-shadow: none;
  border-radius: 8px;
  word-wrap: break-word;
}

.box h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  margin-bottom: 38px;
  color: #333;
}

.logos-realizacao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}

.logos-realizacao img {
  width: 25%;
  min-width: 140px;
  max-width: 240px;
  object-fit: contain;
}

.patrocinio-imagem {
  width: 100%;
  max-width: 803px;
  margin: 0 auto;
  object-fit: contain;
}

/* Programação */
.programacao-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tabs--salas {
  overflow-x: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.tabs--salas::-webkit-scrollbar {
  height: 4px;
}

.tab {
  appearance: none;
  border: 1px solid #d6d6d6;
  background: #fff;
  color: #333;
  border-radius: 40px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.tab:hover {
  border-color: #33d40c;
}

.tab.is-active {
  background: #33d40c;
  border-color: #33d40c;
  color: #fff;
}

.tab:focus-visible {
  outline: 2px solid #33d40c;
  outline-offset: 2px;
}

.dia-painel {
  display: none;
}

.dia-painel.is-active {
  display: block;
}

.dia-subtitulo {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #69737a;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.salas-grid {
  display: grid;
  gap: 24px;
}

.sala-coluna {
  min-width: 0;
}

.sala-coluna.is-hidden {
  display: none;
}

.sala-titulo {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: #2d3436;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.atividade {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px 16px;
  padding: 16px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fff;
}

.atividade--intervalo {
  background: #f7f8f8;
  border-style: dashed;
}

.atividade--destaque {
  border-left: 4px solid #33d40c;
}

.atividade-horario {
  font-size: 1.3rem;
  font-weight: 700;
  color: #40688b;
  line-height: 1.35;
}

.atividade-titulo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.atividade-detalhes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.35rem;
  color: #444;
}

.detalhe-papel {
  color: #555;
}

.detalhe-talk {
  margin-top: 6px;
  font-weight: 600;
  color: #222;
}

.detalhe-palestrante {
  padding-left: 12px;
  color: #40688b;
}

.detalhe-texto {
  color: #444;
}

@media (min-width: 768px) {
  .tabs--salas {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
}

@media (min-width: 992px) {
  .salas-grid.is-todas {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .salas-grid.is-todas .atividade {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .box {
    padding: 50px 6%;
  }
}

@media (max-width: 767px) {
  .imagem-capa-wrapper {
    margin: 12px auto 24px;
  }

  .imagem-capa-wrapper::before {
    padding-top: 48%;
  }

  .box {
    padding: 28px 16px;
    margin-bottom: 12px;
  }

  .box h2 {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .logos-realizacao {
    gap: 20px;
  }

  .logos-realizacao img {
    width: 42%;
    min-width: 120px;
  }

  .atividade {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .atividade-horario {
    font-size: 1.2rem;
  }

  .tab {
    padding: 8px 14px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .logos-realizacao img {
    width: 70%;
  }
}

@media print {
  .hero-background,
  .limite-imagem-fundo {
    display: none;
  }

  .tab {
    border: 1px solid #ccc;
  }

  .dia-painel,
  .sala-coluna {
    display: block !important;
  }

  .atividade {
    break-inside: avoid;
  }
}
