.produto-automacao * {
  box-sizing: border-box;
}

.produto-automacao {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --text-color: #333;
  --text-light: #666;
  --border-color: #d1d5db;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
}


#product-overview {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.intro-section {
  margin: 40px 0 60px;
  padding: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 40px;
}

.intro-section .intro-text h1 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.intro-section .intro-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 0;
  text-align: justify;
}

.intro-section .intro-text strong {
  color: var(--primary-color);
  font-weight: 600;
}


.beneficios-section {
  margin: 60px 0;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
}

.beneficios-section > h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
}

.beneficio-item {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e5e7eb;
}

.beneficio-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Alterna posição da imagem - ímpares: texto | imagem */
.beneficio-item:nth-child(odd) {
  grid-template-columns: 1fr 400px;
}

.beneficio-item:nth-child(odd) .beneficio-text {
  order: 1;
}

.beneficio-item:nth-child(odd) .beneficio-image {
  order: 2;
}

/* Alterna posição da imagem - pares: imagem | texto */
.beneficio-item:nth-child(even) {
  grid-template-columns: 400px 1fr;
}

.beneficio-item:nth-child(even) .beneficio-text {
  order: 2;
}

.beneficio-item:nth-child(even) .beneficio-image {
  order: 1;
}

.beneficio-item h3 {
  font-size: 19px;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.beneficio-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin: 0;
  text-align: justify;
}

/* Área para imagem - SEM BORDAS */
.beneficio-image {
  width: 400px;
  height: 400px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Quando tem imagem */
.beneficio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder quando vazio */
.beneficio-image:empty::before {
  content: 'Clique para inserir imagem (400x400)';
  color: #999;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}

/* Quando tem imagem */
.beneficio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Torna a div editável via contenteditable */
.beneficio-image[contenteditable="true"] {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.beneficio-image:focus {
  border-color: var(--primary-color);
  background: #fff;
}


.publico-alvo-section {
  margin: 60px 0;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border-color);
}

.publico-alvo-section h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
}

.publico-alvo-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: justify;
}

.publico-alvo-section p strong {
  color: var(--primary-color);
  font-weight: 600;
}


.caracteristicas-section {
  margin: 60px 0;
  padding: 0 0 60px;
  border-bottom: 1px solid var(--border-color);
}

.caracteristicas-section h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
}

.caracteristicas-section > p:first-of-type {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 30px;
  text-align: justify;
}

.caracteristicas-section .specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.caracteristicas-section .specs-grid p {
  margin: 0;
  padding: 18px 20px;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
  line-height: 1.6;
  background: white;
  transition: background 0.2s ease;
}

.caracteristicas-section .specs-grid p:nth-child(even) {
  border-right: none;
}

.caracteristicas-section .specs-grid p:nth-last-child(-n+2) {
  border-bottom: none;
}

.caracteristicas-section .specs-grid p:hover {
  background: #f8f9fa;
}

.caracteristicas-section .specs-grid p strong {
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.caracteristicas-section > p:last-of-type {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
  margin-top: 30px;
  margin-bottom: 0;
  text-align: justify;
}


.faq-produto {
  margin: 60px 0 40px;
  padding: 0;
}

.faq-produto h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
}

.faq-item {
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 17px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 15px;
  text-align: justify;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-item strong {
  color: var(--primary-color);
  font-weight: 600;
}

.faq-item ul {
  margin: 15px 0;
  padding-left: 0;
  list-style: none;
}

.faq-item ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item ul li:before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--primary-color);
  font-weight: bold;
}


@media (max-width: 768px) {
  #product-overview {
    padding: 0 15px;
  }
  
  .intro-section {
    margin: 30px 0 40px;
    padding-bottom: 30px;
  }
  
  .intro-section .intro-text h1 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .intro-section .intro-text p {
    font-size: 15px;
    text-align: left;
  }
  
  .beneficios-section {
    margin: 40px 0;
    padding-bottom: 40px;
  }
  
  .beneficios-section > h2 {
    font-size: 20px;
    margin-bottom: 30px;
    padding-left: 15px;
  }
  
  /* Benefícios viram 1 coluna em mobile */
  .beneficio-item,
  .beneficio-item:nth-child(odd),
  .beneficio-item:nth-child(even) {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  
  .beneficio-item .beneficio-text,
  .beneficio-item:nth-child(odd) .beneficio-text,
  .beneficio-item:nth-child(even) .beneficio-text {
    order: 2 !important;
  }
  
  .beneficio-item .beneficio-image,
  .beneficio-item:nth-child(odd) .beneficio-image,
  .beneficio-item:nth-child(even) .beneficio-image {
    order: 1 !important;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  
  .beneficio-item h3 {
    font-size: 17px;
  }
  
  .beneficio-item p {
    font-size: 14px;
    text-align: left;
  }
  
  .publico-alvo-section {
    padding: 30px 0 40px;
    margin: 40px 0;
  }
  
  .publico-alvo-section h2 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-left: 15px;
  }
  
  .publico-alvo-section p {
    font-size: 14px;
    text-align: left;
  }
  
  .caracteristicas-section {
    margin: 40px 0;
    padding-bottom: 40px;
  }
  
  .caracteristicas-section h2 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-left: 15px;
  }
  
  .caracteristicas-section .specs-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .caracteristicas-section .specs-grid p {
    padding: 15px;
    border-right: none;
    font-size: 14px;
  }
  
  .caracteristicas-section .specs-grid p:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
  }
  
  .caracteristicas-section .specs-grid p strong {
    font-size: 13px;
  }
  
  .caracteristicas-section > p {
    font-size: 14px;
    text-align: left;
  }
  
  .faq-produto {
    margin: 40px 0 30px;
  }
  
  .faq-produto h2 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-left: 15px;
  }
  
  .faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }
  
  .faq-item h3 {
    font-size: 16px;
  }
  
  .faq-item p {
    font-size: 14px;
    text-align: left;
  }
  
  .faq-item ul li {
    font-size: 14px;
  }
}


@media print {
  .produto-automacao {
    max-width: 100%;
  }
  
  .intro-section,
  .beneficios-section,
  .publico-alvo-section,
  .caracteristicas-section,
  .faq-produto {
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  .beneficio-item {
    page-break-inside: avoid;
  }
  
  .beneficio-image {
    border: 1px solid #ccc;
  }
  
  .caracteristicas-section .specs-grid {
    border: 1px solid #ccc;
  }
  
  .caracteristicas-section .specs-grid p {
    border-color: #ccc;
  }
}