* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #111;
  background: #f2f3f5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffcc;
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e5e7eb;
}
.site-header h1 {
  margin: 0;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 600;
}

.container {
  max-width: 1000px;
  margin: 16px auto 64px auto;
  padding: 0 12px;
}

.menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Card estilo A4 visual em desktop */
.page {
  position: relative; /* Adicionado para ser referência para posicionamento absoluto dos filhos */
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: block;
  width: 100%;
}

.page > img {
  display: block;
  width: 100%;
  height: auto;
  position: relative; /* Garante que a logo fique sobre a imagem */
  z-index: 1;
}

/* Desktop: limita largura próxima à A4 (aprox 794px @ 96dpi) */
@media (min-width: 900px) {
  .container { max-width: 860px; }
}

/* Estilo para a logo sobreposta */
.page-logo-container {
  position: absolute;
  bottom: 20px;
  right: 180px;
  z-index: 10;
  width: auto;
  height: auto;
  /* Removido pointer-events: none para permitir cliques */
}

/* Garante que o link ocupe todo o container */
.page-logo-container a {
  display: block;
  width: 100%;
  height: 100%;
}

.page-logo {
  display: block;
  width: 34px;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
  border: none;
  background: none;
  padding: 0;
  box-shadow: none;
  margin: 0;
}

.page-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Mobile: ocupa largura total com respiro */
@media (max-width: 480px) {
  body { background: #fff; }
  .container { padding: 0; margin: 0; max-width: none; }
  .menu { gap: 0; }
  .site-header h1 { font-size: 16px; padding: 10px 12px; }
  
  .page-logo {
    width: 26px;
  }
  
  .page-logo-container {
    bottom: 12px;
    right: 100px;
    width: auto;
  }
  
  /* Estilo para a barra sobreposta */
  .bar-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
  }
  
  .bar-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 5px;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  
  .bar-svg {
    height: 35px;
    width: auto;
    display: block;
  }
  
  /* Garante que o container da página 10 tenha posição relativa */
  .page:nth-child(10) {
    position: relative;
  }
  
  /* Reserva espaço para a barra no rodapé da página 10 (evita sobrepor a imagem) */
  .page:nth-child(10) {
    padding-bottom: 0;
  }
  
  @media (max-width: 480px) {
    .bar-svg {
      height: 25px;
    }
    
    .bar-content {
      padding: 3px 10px;
    }
    
    .bar-overlay {
      padding-bottom: 0;
    }
  }
}

/* Estilo para o container da barra */
.bar-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  top: auto;
  transform: none;
  padding: 0 12px;
  z-index: 10;
 }

 /* Conteúdo da barra */
 .bar-content {
   background-color: #AC8E75;
   border-radius: 10px;
   padding: 8px 20px;
   display: flex;
   flex-direction: column;
   position: relative;
   min-height: 68px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
   font-family: "Garamond", "Times New Roman", serif;
   color: #4D2C19;
   max-width: 100%;
   margin: 0 auto;
 }

/* Texto principal */
.bar-text {
  font-size: 14px;
  text-align: center;
  margin-bottom: 10px;
  color: #4D2C19;
  line-height: 1.3;
  padding: 0;
}

/* Estilo para o texto "Saiba mais" */
.bar-cta {
  font-size: 15px;
  font-weight: 600;
  margin-left: 10px;
  white-space: nowrap;
  color: #4D2C19;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-style: italic;
  transition: opacity 0.2s ease;
}

/* Efeito de hover no CTA */
.bar-cta:hover {
  opacity: 0.9;
  text-decoration: underline;
}

/* Estilo para o link do Instagram */
.bar-instagram {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #4D2C19;
  font-weight: 500;
  padding: 4px 10px; /* Padding reduzido */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px; /* Bordas menos arredondadas */
  transition: all 0.3s ease;
  margin-bottom: 0;
  font-size: 13px; /* Fonte menor */
}

.bar-instagram:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.instagram-icon {
  margin-right: 6px;
  flex-shrink: 0;
}

/* Estilo para o texto "Saiba mais" com efeito de brilho */
.bar-cta {
  position: relative;
  overflow: hidden;
  padding: 5px 15px;
  border-radius: 20px;
  background: linear-gradient(45deg, #4D2C19, #6d4a32);
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shimmer-text {
  position: relative;
  display: inline-block;
  padding-right: 5px;
}

/* Efeito de brilho (shimmer) */
.shimmer-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.arrow-icon {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.bar-cta:hover .arrow-icon {
  transform: translateX(3px);
}

 /* Ajustes para telas menores */
 @media (max-width: 768px) {
  .bar-content {
    padding: 7px 14px;
    min-height: 62px;
  }
  
  .bar-text {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .bar-instagram {
    font-size: 12px;
    padding: 3px 8px;
  }
  
  .bar-cta {
    margin: 10px 0 0 0;
  }
 }

 /* Ajustes para telas muito pequenas */
 @media (max-width: 480px) {
  .bar-content {
    padding: 6px 12px;
    border-radius: 10px;
    min-height: 58px;
  }

  /* No mobile, reserva menos espaço para não "encolher" demais a imagem */
  .page:nth-child(10) {
    padding-bottom: 0;
  }
  
  .bar-text {
    font-size: 12.5px;
  }
  
  .bar-cta {
    font-size: 13px;
  }

  .bar-logo {
    width: 24px;
  }
 }

/* Estilo para o link da logo */
.bar-logo-link {
  display: inline-block;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

/* Shimmer para indicar clique na logo */
.bar-logo-link::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-20deg);
  animation: logoShimmer 1.8s infinite;
  pointer-events: none;
}

@keyframes logoShimmer {
  0% { left: -60%; }
  100% { left: 140%; }
}

/* Estilo para a imagem da logo */
.bar-logo {
  width: 32px;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Container para os elementos inferiores */
.bar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

/* Container para o texto e a logo */
.bar-cta-container {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  width: auto;
}

 /* Estilo para o texto "Saiba mais:" */
 .bar-cta-text {
   color: #4D2C19;
   font-weight: 500;
   margin-right: 8px;
   font-size: 14px;
   white-space: nowrap;
 }
