/*
  CSS do site Lancer
  - Atende 12-Factor: sem valores sensíveis, apenas estilos
  - Logs via stdout não se aplicam a CSS
*/

/* Reset mínimo e acessibilidade */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background-color: #212F4D; /* Fundo solicitado */
  color: #FFFFFF;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

/* Contêiner principal da primeira seção (hero) */
.hero {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 0;
}

/* Imagem do banner responsiva */
.hero__image {
  display: block;
  width: min(1200px, 100%);
  height: auto;
}

/* Responsividade básica para telas muito pequenas */
@media (max-width: 480px) {
  .hero__image { width: 100%; }
}

/* Nova seção: Golden Ticket
   Requisito: imagem sempre completamente visível em qualquer tela.
   Estratégia: usar object-fit: contain dentro de um contêiner responsivo preservando a proporção. */
.ticket {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

/* Seção de informações com fundo e conteúdo empilhado */
.info {
  --info-aspect: 160/91; /* 1920x1092 */
  position: relative;
  width: 100%;
  aspect-ratio: var(--info-aspect);
  background-image: url("images/fundoinformacoes.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.info__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 80px 16px;
  width: 100%;
}

.info__texto,
.info__botao {
  display: block;
  width: 100%;
  height: auto;
}

/* Tamanhos máximos para manter a legibilidade */
.info__texto { max-width: 900px; }
.info__botao { max-width: 360px; }

@media (max-width: 480px) {
  .info__content { padding: 32px 12px; }
  .info__botao { max-width: 280px; }
}

.ticket__image {
  display: block;
  max-width: min(900px, 100%);
  width: 100%;
  height: auto;
  /* Para garantir visibilidade total mesmo com variações de proporção, mantemos contain pelo próprio dimensionamento. */
}

/* Seção Quem Somos */
.about {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 80px 16px;
  background-image: url("images/quemsomosfundo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: calc(100% - 32px);
  max-width: 960px;
}

.about__title,
.about__text {
  display: block;
  width: 100%;
  height: auto;
}

.about__title { max-width: 720px; }
.about__text { max-width: 900px; }

/* Seção com dois carrosseis: fundo dourado */
.gold {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 80px 16px;
  background-image: url("images/fundodourado.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gold__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: calc(100% - 32px);
  max-width: 1200px;
}

.carousel {
  display: grid;
  gap: 12px;
}

.carousel__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel__slide {
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: 8px;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  display: inline-block;
}

/* Exibe os dots apenas quando houver interação do usuário */
.carousel:hover .carousel__nav,
.carousel:focus-within .carousel__nav {
  opacity: 1;
  pointer-events: auto;
}

.carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .carousel__viewport { grid-auto-columns: 40%; }
}

@media (min-width: 1024px) {
  .carousel__viewport { grid-auto-columns: 25%; }
}

/* Seção Inscrição - altura e largura proporcionais à imagem */
.inscricao {
  --inscricao-aspect: 16/9; /* ajuste se souber a proporção exata de inscricao.png */
  position: relative;
  width: 100%;
  aspect-ratio: var(--inscricao-aspect);
  background-image: url("images/inscricao.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.inscricao__content {
  position: absolute;
  inset: 0;
}

/* Seção Forms - fundo com cover e conteúdo centralizado */
.forms {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 80px 16px;
  background-image: url("images/formsfundo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.forms__content {
  display: grid;
  place-items: center;
  width: calc(100% - 32px);
  max-width: 960px;
  min-height: 70vh;
}

