/* =========================================
   Descrição de Produto – Categoria: Automação
   Fundo: Preto (descrição) > Laranja (para quem) > Branco (benefícios) > Preto (características) > FAQ
   ========================================= */

.produto-automacao #product-overview{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  max-width:1100px;
  margin:0 auto;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(15,23,42,.06);
}

/* Reset e bases - APENAS para listas das SEÇÕES 1 e 2 */
.produto-automacao #product-overview > ul,
.produto-automacao #product-overview > div > ul,
.produto-automacao #product-overview h2:nth-of-type(1) + ul,
.produto-automacao #product-overview h2:nth-of-type(2) + ul{
  list-style:none;
  margin:0;
  padding:0;
}

.produto-automacao #product-overview h2{
  margin:0;
  font-size:1.35rem;
  font-weight:800;
  line-height:1.25;
}

/* ---------- DESCRIÇÃO DO PRODUTO (parágrafo inicial) ---------- */
.produto-automacao #product-overview > p:first-of-type,
.produto-automacao #product-overview > div > p:first-of-type{
  background:#000;
  color:#fff;
  padding:26px 24px;
  font-size:1.06rem;
  line-height:1.8;
  text-align:justify;
}

/* ---------- SEÇÃO 1: PARA QUEM É INDICADA (H2 #1 + UL #1) ---------- */
.produto-automacao #product-overview h2:nth-of-type(1),
.produto-automacao #product-overview h2:nth-of-type(1) + ul{
  background:#f97316; /* laranja */
  color:#111;
}
.produto-automacao #product-overview h2:nth-of-type(1){
  padding:22px 24px 10px 24px;
}
.produto-automacao #product-overview h2:nth-of-type(1)+ul{
  padding:0 24px 24px 24px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
/* cards da seção 1 */
.produto-automacao #product-overview h2:nth-of-type(1)+ul li{
  background:#fff;
  color:#111;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  padding:14px 16px 14px 42px;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  position:relative;
}
/* bullet limpo e alinhado */
.produto-automacao #product-overview h2:nth-of-type(1)+ul li::before{
  content:"";
  position:absolute;
  left:14px; top:16px;
  width:10px; height:10px; border-radius:999px;
  background:#000;
  opacity:.9;
}

/* ---------- SEÇÃO 2: RECURSOS E BENEFÍCIOS (H2 #2 + UL #2) ---------- */
.produto-automacao #product-overview h2:nth-of-type(2),
.produto-automacao #product-overview h2:nth-of-type(2) + ul{
  background:#fff;     /* branco */
  color:#111;
}
.produto-automacao #product-overview h2:nth-of-type(2){
  padding:22px 24px 10px 24px;
}
.produto-automacao #product-overview h2:nth-of-type(2)+ul{
  padding:0 24px 24px 24px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
/* cards da seção 2 (um pouco mais suaves) */
.produto-automacao #product-overview h2:nth-of-type(2)+ul li{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:14px 16px 14px 42px;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  position:relative;
}
.produto-automacao #product-overview h2:nth-of-type(2)+ul li::before{
  content:"";
  position:absolute;
  left:14px; top:16px;
  width:10px; height:10px; border-radius:999px;
  background:#f97316;           /* ponto laranja */
}

/* ===== SEÇÃO 3: CARACTERÍSTICAS – versão com força total ===== */

/* Título (topo preto com raio) */
.produto-automacao #product-overview h2:nth-of-type(3){
  background:#1a1a1a !important;
  color:#fff !important;
  padding:24px 24px 16px;
  margin:0;
  border-radius:12px 12px 0 0;
  font-size:1.5rem;
  font-weight:600;
}

/* Container principal - fundo preto */
.produto-automacao #product-overview h2:nth-of-type(3) + ul{
  background:#1a1a1a !important;
  color:#fff !important;
  margin:0 !important;
  padding:20px 24px 32px !important;
  border-radius:0 0 12px 12px !important;
  position:relative !important;
  list-style:none !important;
  column-count:2 !important;
  column-gap:24px !important;
  overflow:visible !important;
  border:none !important;
  box-shadow:none !important;
}

/* FORÇA os dois cartões brancos com especificidade máxima */
.produto-automacao #product-overview h2:nth-of-type(3) + ul::before,
.produto-automacao #product-overview h2:nth-of-type(3) + ul::after{
  content:"" !important;
  position:absolute !important;
  top:16px !important; 
  bottom:16px !important;
  width:calc(50% - 12px) !important;
  background:#ffffff !important;
  background-color:#ffffff !important;
  border-radius:12px !important;
  box-shadow:0 4px 16px rgba(0,0,0,.15) !important;
  z-index:0 !important;
  pointer-events:none !important;
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

.produto-automacao #product-overview h2:nth-of-type(3) + ul::before{ 
  left:12px !important; 
  right:auto !important;
}

.produto-automacao #product-overview h2:nth-of-type(3) + ul::after { 
  right:12px !important; 
  left:auto !important;
}

/* Força todos os itens por cima dos cartões */
.produto-automacao #product-overview h2:nth-of-type(3) + ul li{
  position:relative !important;
  z-index:1 !important;
  break-inside:avoid !important; 
  -webkit-column-break-inside:avoid !important;
  background:transparent !important;
  background-color:transparent !important;
  color:#374151 !important;
  padding:10px 14px !important;
  margin:0 8px 8px !important;
  border-bottom:1px solid #e5e7eb !important;
  border-left:none !important;
  border-right:none !important;
  border-top:none !important;
  line-height:1.4 !important; 
  font-size:.95rem !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

/* Remove borda do último item */
.produto-automacao #product-overview h2:nth-of-type(3) + ul li:last-child{ 
  border-bottom:none !important; 
}

/* Labels destacadas */
.produto-automacao #product-overview h2:nth-of-type(3) + ul li strong{
  display:inline-block !important;
  min-width:220px !important;
  color:#1f2937 !important;
  font-weight:700 !important;
  margin-right:8px !important;
  background:transparent !important;
  background-color:transparent !important;
}

/* Reset de qualquer interferência */
.produto-automacao #product-overview h2:nth-of-type(3) + ul li *{
  color:#374151 !important;
  background:transparent !important;
  background-color:transparent !important;
}

.produto-automacao #product-overview h2:nth-of-type(3) + ul li strong{
  color:#1f2937 !important;
}

/* Mobile: 1 cartão branco só */
@media (max-width:900px){
  .produto-automacao #product-overview h2:nth-of-type(3) + ul{
    column-count:1 !important;
  }
  .produto-automacao #product-overview h2:nth-of-type(3) + ul::after{ 
    display:none !important; 
  }
  .produto-automacao #product-overview h2:nth-of-type(3) + ul::before{
    left:12px !important; 
    right:12px !important; 
    width:auto !important;
  }
}

/* HACK ADICIONAL: Se ainda não funcionar, usar div fictício */
.produto-automacao #product-overview h2:nth-of-type(3) + ul {
  background-image: 
    linear-gradient(to right, 
      transparent 0%, 
      transparent 12px, 
      #ffffff 12px, 
      #ffffff calc(50% - 12px), 
      transparent calc(50% - 12px), 
      transparent calc(50% + 12px), 
      #ffffff calc(50% + 12px), 
      #ffffff calc(100% - 12px), 
      transparent calc(100% - 12px), 
      transparent 100%
    ) !important;
  background-repeat: no-repeat !important;
  background-position: 0 16px !important;
  background-size: 100% calc(100% - 32px) !important;
}

/* =========================================
   SEÇÃO FAQ - PERGUNTAS FREQUENTES
   Fundo gradiente suave com cards destacados
   ========================================= */

/* Container geral do FAQ (fora do #product-overview) */
.produto-automacao .faq-produto {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 1100px;
  margin: 32px auto;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* Título principal do FAQ */
.produto-automacao .faq-produto > h2 {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  margin: 0;
  padding: 28px 24px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  position: relative;
  border-radius: 14px 14px 0 0;
}

/* Detalhe decorativo laranja no título */
.produto-automacao .faq-produto > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #f97316;
  border-radius: 4px 4px 0 0;
}

/* Cada item de pergunta/resposta */
.produto-automacao .faq-produto .faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0;
  margin: 16px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Primeiro item com margem top maior */
.produto-automacao .faq-produto .faq-item:first-of-type {
  margin-top: 24px;
}

/* Último item com margem bottom maior */
.produto-automacao .faq-produto .faq-item:last-of-type {
  margin-bottom: 24px;
}

/* Hover effect nos cards */
.produto-automacao .faq-produto .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.2);
}

/* Pergunta (H3) */
.produto-automacao .faq-produto .faq-item h3 {
  background: linear-gradient(135deg, #fef3e2 0%, #fff 100%);
  color: #1a1a1a;
  margin: 0;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 2px solid #f97316;
}

/* Resposta (P) */
.produto-automacao .faq-produto .faq-item p {
  background: #fff;
  color: #374151;
  margin: 0;
  padding: 20px;
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: justify;
}

/* ========== ESTILOS PARA LISTAS DENTRO DO FAQ ========== */

/* UL não ordenadas dentro das respostas do FAQ */
.produto-automacao .faq-produto .faq-item ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
  margin: 16px 0 16px 20px !important;
  padding-left: 20px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* OL ordenadas dentro das respostas do FAQ */
.produto-automacao .faq-produto .faq-item ol {
  list-style-type: decimal !important;
  list-style-position: outside !important;
  margin: 16px 0 16px 20px !important;
  padding-left: 20px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Itens das listas (LI) dentro do FAQ */
.produto-automacao .faq-produto .faq-item ul li,
.produto-automacao .faq-produto .faq-item ol li {
  color: #374151 !important;
  margin-bottom: 12px !important;
  padding-left: 8px !important;
  line-height: 1.7 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: static !important;
}

/* Remove margin do último item da lista */
.produto-automacao .faq-produto .faq-item ul li:last-child,
.produto-automacao .faq-produto .faq-item ol li:last-child {
  margin-bottom: 0 !important;
}

/* Remove qualquer pseudo-elemento dos LI do FAQ */
.produto-automacao .faq-produto .faq-item ul li::before,
.produto-automacao .faq-produto .faq-item ul li::after,
.produto-automacao .faq-produto .faq-item ol li::before,
.produto-automacao .faq-produto .faq-item ol li::after {
  display: none !important;
  content: none !important;
}

/* Destaque em negrito nas respostas e listas */
.produto-automacao .faq-produto .faq-item strong {
  color: #1a1a1a;
  font-weight: 700;
  background: linear-gradient(120deg, #fef3e2 0%, #fef3e2 100%);
  background-repeat: no-repeat;
  background-size: 100% 30%;
  background-position: 0 85%;
  padding: 0 2px;
}

/* Links nas respostas */
.produto-automacao .faq-produto .faq-item a {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.produto-automacao .faq-produto .faq-item a:hover {
  border-bottom-color: #f97316;
}

/* ========== RESPONSIVO ========== */

/* Tablet */
@media (max-width: 900px) {
  .produto-automacao #product-overview h2:nth-of-type(1)+ul,
  .produto-automacao #product-overview h2:nth-of-type(2)+ul {
    grid-template-columns: 1fr;
  }

  .produto-automacao .faq-produto {
    margin: 24px 16px;
    border-radius: 12px;
  }

  .produto-automacao .faq-produto > h2 {
    font-size: 1.3rem;
    padding: 24px 20px;
  }

  .produto-automacao .faq-produto .faq-item {
    margin: 14px 20px;
  }

  .produto-automacao .faq-produto .faq-item h3 {
    font-size: 1rem;
    padding: 16px 18px;
  }

  .produto-automacao .faq-produto .faq-item p {
    font-size: 0.95rem;
    padding: 18px;
  }

  .produto-automacao .faq-produto .faq-item ul,
  .produto-automacao .faq-produto .faq-item ol {
    margin: 14px 0 14px 16px !important;
    padding-left: 16px !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .produto-automacao .faq-produto {
    margin: 20px 12px;
    border-radius: 10px;
  }

  .produto-automacao .faq-produto > h2 {
    font-size: 1.2rem;
    padding: 20px 16px;
  }

  .produto-automacao .faq-produto > h2::after {
    width: 60px;
    height: 3px;
  }

  .produto-automacao .faq-produto .faq-item {
    margin: 12px 16px;
    border-radius: 10px;
  }

  .produto-automacao .faq-produto .faq-item h3 {
    font-size: 0.95rem;
    padding: 14px 16px;
  }

  .produto-automacao .faq-produto .faq-item p {
    font-size: 0.9rem;
    padding: 16px;
    line-height: 1.65;
  }

  .produto-automacao .faq-produto .faq-item ul,
  .produto-automacao .faq-produto .faq-item ol {
    margin: 12px 0 12px 12px !important;
    padding-left: 12px !important;
  }

  .produto-automacao .faq-produto .faq-item ul li,
  .produto-automacao .faq-produto .faq-item ol li {
    font-size: 0.9rem !important;
    margin-bottom: 10px !important;
  }
}

/* ========== MODO ESCURO (OPCIONAL) ========== */
@media (prefers-color-scheme: dark) {
  .produto-automacao .faq-produto {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  }

  .produto-automacao .faq-produto .faq-item {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .produto-automacao .faq-produto .faq-item:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
  }

  .produto-automacao .faq-produto .faq-item h3 {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e293b 100%);
    color: #fff;
  }

  .produto-automacao .faq-produto .faq-item p {
    background: #1e293b;
    color: #cbd5e1;
  }

  .produto-automacao .faq-produto .faq-item ul li,
  .produto-automacao .faq-produto .faq-item ol li {
    color: #cbd5e1 !important;
  }

  .produto-automacao .faq-produto .faq-item strong {
    color: #fff;
    background: linear-gradient(120deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
  }
}

/* ========== ANIMAÇÕES ========== */

/* Animação de entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.produto-automacao .faq-produto .faq-item {
  animation: fadeInUp 0.4s ease-out backwards;
}

/* Delay progressivo para cada item */
.produto-automacao .faq-produto .faq-item:nth-of-type(1) { animation-delay: 0.05s; }
.produto-automacao .faq-produto .faq-item:nth-of-type(2) { animation-delay: 0.1s; }
.produto-automacao .faq-produto .faq-item:nth-of-type(3) { animation-delay: 0.15s; }
.produto-automacao .faq-produto .faq-item:nth-of-type(4) { animation-delay: 0.2s; }
.produto-automacao .faq-produto .faq-item:nth-of-type(5) { animation-delay: 0.25s; }
.produto-automacao .faq-produto .faq-item:nth-of-type(6) { animation-delay: 0.3s; }

/* ========== ACESSIBILIDADE ========== */

/* Foco visível para navegação por teclado */
.produto-automacao .faq-produto .faq-item:focus-within {
  outline: 3px solid #f97316;
  outline-offset: 2px;
}

/* Reduzir animações para usuários com preferência */
@media (prefers-reduced-motion: reduce) {
  .produto-automacao .faq-produto .faq-item {
    animation: none;
    transition: none;
  }
  
  .produto-automacao .faq-produto .faq-item:hover {
    transform: none;
  }
}

/* ========== PRINT ========== */
@media print {
  .produto-automacao .faq-produto {
    box-shadow: none;
    background: #fff;
  }
  
  .produto-automacao .faq-produto .faq-item {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .produto-automacao .faq-produto .faq-item ul,
  .produto-automacao .faq-produto .faq-item ol {
    margin: 12px 0 12px 16px !important;
  }
}