/* ===================================================
   Diversão Monstruosa — Bacio di Latte
   Mobile-first, sem framework
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1C1C1C;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Variáveis ---------- */
:root {
  --cream:        #FCF2E6;
  --orange-red:   #D15434;
  --dark-red:     #BA471C;
  --promo-tag:    #CB450F;
  --yellow:       #FFEE2C;
  --text-dark:    #1C1C1C;
  --text-body:    #444;
  --branco:       #FFFFFF;
  --raio:         4px;
  --sombra:       0 4px 20px rgba(0,0,0,.12);
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.1; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: .65em 1.8em;
  border-radius: var(--raio);
  font-family: inherit;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  cursor: pointer;
  transition: filter .2s, transform .15s;
  border: none;
  line-height: 1.3;
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primario  { background: var(--orange-red); color: var(--branco); }
.btn-cadastro  { background: var(--orange-red); color: var(--branco);
                 padding: .5em 1.4em; font-family: 'Montserrat', Arial, sans-serif; font-size: .75rem; border-radius: 50px; }
.btn-amarelo   { background: var(--yellow); color: var(--text-dark); }

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav-logo img { height: 50px; width: auto; }

.nav-logo-placeholder {
  height: 50px;
  display: flex;
  align-items: center;
  font-size: .95rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: .04em;
}

/* Desktop nav */
.nav-links { display: none; gap: 1.6rem; align-items: center; }

.nav-links a {
  color: var(--text-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .7rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .2s;
}

.nav-links a:hover { color: var(--orange-red); }

/* Hamburger */
.nav-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  background: var(--cream);
  overflow: hidden;
  transition: max-height .3s ease;
  max-height: 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

.nav-mobile.aberto { max-height: 540px; }

.nav-mobile ul {
  padding: .5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.nav-mobile a {
  display: block;
  color: var(--text-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.btn-cadastro {
  text-align: center;
  padding: 10px !important;
  color: var(--branco) !important;
  font-weight: 700 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  border-radius: 10px !important;
  font-size: .87rem !important;
}

/* ---------- Hero ---------- */
.hero {
  background: #fff;
  padding-top: 82px;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Mobile: apenas imagem única */
.hero-mobile-unico { display: block; width: 100%; }
.hero-mobile-unico img { width: 100%; height: auto; display: block; }

/* Desktop: três colunas (ocultas no mobile) */
.hero-minion         { display: none; }
.hero-centro         { display: none; }
.hero-minion-direita { display: none; }

.hero-minion img { width: 100%; height: auto; display: block; }
.hero-centro img { width: 100%; height: auto; display: block; }
.hero-minion-direita img { width: 100%; display: block; padding-left: 25%; }

/* ---------- Badge de seção (título centralizado) ---------- */
.secao-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.secao-texto {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.secao-badge span {
  background: var(--orange-red);
  color: var(--branco);
  font-size: clamp(1rem, 3.1vw, 1.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .55em 2.4em;
  border-radius: var(--raio);
  display: inline-block;
}

.secao-badge--escuro span  { background: var(--dark-red); }
.secao-badge--preto span   { background: #1C1C1C; }

/* ---------- Como Funciona ---------- */
#como-funciona { background: var(--branco); overflow: visible; margin-top: 3rem; }

.cf-titulo {
  text-align: center;
  padding-bottom: 1.5rem;
}

.cf-titulo img { max-width: 40%; margin: 0 auto; }

/* Mobile: passos empilhados */
.cf-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.cf-step { width: 100%; padding: .75rem 0; }
.cf-step img { width: 56%; max-width: 56%; height: auto; display: block; margin: 0 auto; }

/* Foto full-width com margin-top negativo, atrás dos passos */
.cf-foto {
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 0;
}

.cf-foto img { width: 100%; display: block; }

/* ---------- Produtos Participantes ---------- */
#produtos { background: var(--branco); padding-bottom: 3.5rem; }

.produtos-subtitulo {
  text-align: center;
  font-weight: 800;
  font-size: clamp(.8rem, 2vw, 1rem);
  text-transform: uppercase;
  color: var(--dark-red);
  letter-spacing: .03em;
  line-height: 1.55;
  max-width: 800px;
  margin: .75rem auto 1.5rem;
  padding: 0 1rem;
}

.carrossel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 3.2rem;
  user-select: none;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.carrossel-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.carrossel-lado {
  display: none;
  flex: 0 0 22%;
  max-width: 22%;
  filter: blur(4px);
  opacity: .38;
  transform: scale(.82);
  pointer-events: none;
}

.carrossel-lado img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.carrossel-destaque {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carrossel-destaque img {
  max-height: 320px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: opacity .22s ease;
}

.carrossel-fading { opacity: 0 !important; }

.carrossel-seta {
  position: absolute;
  z-index: 5;
  background: var(--orange-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}

.carrossel-seta:hover  { opacity: .82; transform: scale(1.08); }
.carrossel-seta:active { transform: scale(.96); }
.carrossel-seta-prev   { left: .4rem; }
.carrossel-seta-next   { right: .4rem; }

@media (min-width: 900px) {
  .carrossel { padding: 1.5rem 5rem; width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
  .carrossel-lado     { display: block; }
  .carrossel-destaque { flex: 0 0 54%; max-width: 54%; }
  .carrossel-destaque img { max-height: 420px; max-width: 100%; }
  .carrossel-seta     { width: 3rem; height: 3rem; }
  .carrossel-seta-prev { left: 1.2rem; }
  .carrossel-seta-next { right: 1.2rem; }
}

/* ---------- Prêmios Semanais ---------- */
#premios { background: #faf4e7; }

.premios-titulo-img img { margin: 0 auto; }

/* Mobile: col2 em cima, col1 embaixo */
.premios-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 4rem;
  max-width: 880px;
  margin: 0 auto;
}

.premios-col1 { order: 2; }
.premios-col2 { order: 1; }

.premios-col2 img,
.premios-col1 img { width: 75%; height: auto; max-width: 300px; margin: 0 auto; }

/* ---------- Cadastro ---------- */
#cadastro {
  background: var(--orange-red);
}

.form-cadastro {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grupo {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-grupo label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.8);
}

.form-grupo input,
.form-grupo select {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: var(--raio);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12);
  color: var(--branco);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}

.form-grupo input::placeholder { color: rgba(255,255,255,.4); }

.form-grupo input:focus,
.form-grupo select:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,.18);
}

.form-grupo select option { background: var(--dark-red); color: var(--branco); }

.form-erro {
  font-size: .75rem;
  color: #ffe0d0;
  display: none;
}

.form-grupo.com-erro input,
.form-grupo.com-erro select { border-color: #ffb3a0; }

.form-grupo.com-erro .form-erro { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-checkbox {
  display: flex;
  gap: .65rem;
  padding-top: 1rem;
  align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--yellow);
}

.form-checkbox label {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.55;
}

.form-checkbox a { color: var(--yellow); text-decoration: underline; }

.form-submit-area { text-align: center; margin-top: .5rem; margin-bottom: 2rem; }
.form-submit-area .btn { width: 100%; padding: 1rem; font-size: 1rem; }

#cadastro               { padding-top: 1.75rem; padding-bottom: 1rem; }

@media (max-width: 899px) {
  #cadastro               { padding-top: 1.75rem; padding-bottom: 1rem; }
  #numeros                { padding-top: 1.75rem; }
  .form-cadastro          { gap: .55rem; padding: 0 1.25rem; }
  .form-grupo input,
  .form-grupo select      { padding: .6rem .85rem; font-size: .88rem; }
  .form-grupo label       { font-size: .68rem; }
  .form-grupo             { gap: .25rem; }
  .form-row               { gap: .55rem; }
  .form-checkbox          { gap: .5rem; }
  .form-checkbox label    { font-size: .76rem; line-height: 1.45; }
  .form-submit-area       { margin-top: 1rem; margin-bottom: 1.75rem; }
  .form-submit-area .btn  { padding: .85rem; font-size: .92rem; }
}

/* ---------- Meus Números da Sorte ---------- */
#numeros { background: var(--branco); }

.numeros-form {
  max-width: 480px;
  margin: 0 auto 2rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.numeros-form input {
  flex: 1;
  min-width: 180px;
  padding: .8rem 1rem;
  border: 2px solid #ddd;
  border-radius: var(--raio);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.numeros-form input:focus { border-color: var(--orange-red); }
.numeros-form .btn { flex-shrink: 0; }

.tabela-wrapper {
  overflow-x: auto;
  max-width: 860px;
  margin: 0 auto;
}

.tabela-sorte {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.tabela-sorte thead { background: var(--orange-red); }

.tabela-sorte th {
  padding: .9rem 1.2rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--branco);
  white-space: nowrap;
}

.tabela-sorte td {
  padding: .85rem 1.2rem;
  border-bottom: 1px solid #f0e8e0;
  color: var(--orange-red);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.tabela-sorte tbody tr:hover { background: #fdf5ef; }

.tabela-vazia {
  text-align: center !important;
  padding: 2.5rem !important;
  color: #999 !important;
  font-weight: 400 !important;
}

.numeros-btn-ganhadores {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

/* ---------- Ganhadores ---------- */
#ganhadores {
  background: var(--orange-red);
  padding: 0.5rem;
}

.tabela-ganhadores {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  max-width: 860px;
  margin: 0 auto;
}

.tabela-ganhadores thead tr {
  border-bottom: 2px solid rgba(255,255,255,.25);
}

.tabela-ganhadores th {
  padding: .9rem 1.2rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--yellow);
  white-space: nowrap;
}

.tabela-ganhadores td {
  padding: .85rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: var(--branco);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.tabela-ganhadores-vazia {
  text-align: center !important;
  padding: 2.5rem !important;
  color: rgba(255,255,255,.7) !important;
  font-weight: 400 !important;
}

.ganhadores-silhueta { width: 100%; margin-top: 2rem; line-height: 0; }
.ganhadores-silhueta img { width: 100%; display: block; }

/* ---------- FAQ ---------- */
#faq { background: var(--cream); padding: 1.0rem; }

@media (max-width: 899px) {
  #ganhadores { padding-top: 1.75rem; }
  #faq        { padding-top: 1.75rem; }
}

.faq-lista {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item { border-bottom: 1.5px solid rgba(0,0,0,.12); }

.faq-pergunta {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  text-align: left;
  font-family: inherit;
  font-size: clamp(.85rem, 2.5vw, .97rem);
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: .02em;
}

.faq-arrow {
  flex-shrink: 0;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--orange-red);
  transition: transform .25s;
}

.faq-arrow.aberto { transform: rotate(90deg); }

.faq-resposta {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.75;
  font-weight: 400;
}

.faq-resposta.aberta {
  max-height: 400px;
  padding: 0 0 1.2rem;
}

/* ---------- Fale Conosco ---------- */
#contato {
  background: var(--cream);
  padding: 2.2rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,.07);
}

.contato-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contato-titulo {
  font-size: clamp(.95rem, 3vw, 1.25rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dark);
  flex-shrink: 0;
}

.contato-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contato-item svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--orange-red);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: .9rem 1.5rem;
  font-size: .68rem;
  line-height: 1.7;
}

/* ---------- Mensagens feedback ---------- */
.mensagem-sucesso {
  background: rgba(60,200,100,.1);
  border: 1.5px solid rgba(60,200,100,.3);
  color: #1e6e3e;
  border-radius: var(--raio);
  padding: 1rem;
  font-size: .9rem;
  font-weight: 600;
  margin-top: .5rem;
}

.mensagem-erro-form {
  background: rgba(255,80,60,.07);
  border: 1.5px solid rgba(255,80,60,.2);
  color: #b83222;
  border-radius: var(--raio);
  padding: 1rem;
  font-size: .9rem;
  font-weight: 600;
  margin-top: .5rem;
}

/* ---------- Utilities ---------- */
[x-cloak] { display: none !important; }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {

  .cf-steps { flex-direction: row; align-items: flex-start; padding: 0 1.5rem 2rem; }
  .cf-step   { flex: 1; padding: 0; }
  .cf-step img { width: 100%; max-width: 100%; }
  .cf-foto   { margin-top: -100px; }

  .premios-grid {
    flex-direction: row;
    align-items: stretch;
    padding-bottom: 0;
    margin-bottom: 3rem;
  }

  .premios-col1 { order: 1; flex: 1; }
  .premios-col2 { order: 2; flex: 1; }

  .hero-minion { padding-right: 30%; }
  .hero-centro { padding: 10%; }
  .hero-minion-direita { padding-left: 30%; }  

}

@media (min-width: 900px) {
  .nav-links   { display: flex; gap: 2.4rem; }
  .nav-hamburger { display: none; }
  .nav-mobile  { display: none !important; }

  /* Navbar +20% de altura: 82px → 98px (logo 50px + padding 1.5rem×2) */
  .nav-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; padding-left: 3rem; padding-right: 3rem; }

  /* Hero compensa o header fixo maior */
  .hero { padding-top: 98px; }

  .hero-inner {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 33% 34% 33%;
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "esq centro dir"
      "copy copy copy";
    align-items: start;
  }

  .hero-mobile-unico   { display: none; }
  .hero-minion         { display: block; grid-area: esq;    align-self: start; }
  .hero-centro         { display: block; grid-area: centro; align-self: start; }
  .hero-minion-direita { display: block; grid-area: dir;    align-self: end; }

.premios-col2 img { max-width: 80%; }
.premios-col1 img { max-width: 80%; }

}


/* ---------- Modal Cadastro ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-fade-enter { transition: opacity .2s ease; }
.modal-fade-start { opacity: 0; }
.modal-fade-end   { opacity: 1; }

.modal-caixa {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  animation: modalEntrar .25s ease-out;
}

@keyframes modalEntrar {
  from { opacity: 0; transform: scale(.93) translateY(-12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.modal-fechar {
  position: absolute;
  top: .85rem;
  right: .85rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: .3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.modal-fechar:hover { color: var(--orange-red); }

.modal-icone {
  width: 3.6rem;
  height: 3.6rem;
  background: var(--orange-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal-titulo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modal-texto {
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-btn-ok {
  padding: .75em 3em;
  font-size: .9rem;
  border-radius: 999px;
}
