/* =========================================================================
   Nano Smart - CSS da marca (efeitos do design Stitch)
   Classes utilitarias para aplicar nos widgets do Elementor (campo "Classes CSS").
   ========================================================================= */

:root {
	--ns-background: #131313;
	--ns-surface: #202020;
	--ns-dark: #1E1E1E;
	--ns-primary: #2F2F7F;   /* azul marinho - base institucional */
	--ns-cyan: #00D1D5;      /* secundaria - acao/foco tecnologico */
	--ns-green: #1FFFA9;     /* destaque - agro/precisao */
	--ns-on-dark: #e5e2e1;
	--ns-gray-300: #d1d5db;
	--ns-white: #FFFFFF;
}

/* ---- Icones Material Symbols (science, target, check_circle, etc.) ---- */
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	font-variation-settings: 'FILL' 1;
}

/* ---- Corte poligonal (chanfro de 15px): assinatura visual ---- */
.ns-clip {
	clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.ns-clip-sm {
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* ---- Botoes (a cor vem das cores globais do Elementor; aqui so a forma+glow) ---- */
.ns-btn { /* aplique junto com .ns-clip num botao do Elementor */
	transition: transform .3s ease, box-shadow .3s ease;
}
.ns-btn:hover { transform: scale(1.05); }
.ns-glow-cyan:hover  { box-shadow: 0 0 25px rgba(0, 209, 213, .8); }
.ns-glow-primary:hover { box-shadow: 0 0 20px rgba(47, 47, 127, .5); }

/* ---- Padrao de pontos (fundo tecnologico em secoes escuras) ---- */
.ns-dot-pattern {
	background-image: radial-gradient(circle at center, rgba(255, 255, 255, .1) 1px, transparent 1px);
	background-size: 20px 20px;
}

/* ---- Card claro (pilares / areas de atuacao / noticias) ---- */
.ns-card {
	transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ns-card:hover { transform: translateY(-8px); }

/* ---- Chip / Tag (categorias: Inovacao, Pesquisa, Agro vs Vet) ---- */
.ns-chip {
	display: inline-block;
	padding: 4px 12px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* ---- Chip pequeno (selos de categoria das noticias) ---- */
.ns-chip-sm {
	display: inline-block;
	padding: 3px 10px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ---- Linha de destaque (divisoria curta ciano) ---- */
.ns-rule {
	width: 64px;
	height: 4px;
	background: var(--ns-cyan);
	border: 0;
	margin: 0;
}

/* ---- Imagem com tratamento (grayscale -> cor no hover), comum no design ---- */
.ns-img-hover img {
	filter: grayscale(100%);
	transition: filter .7s ease, transform .7s ease;
}
.ns-img-hover:hover img { filter: grayscale(0%); transform: scale(1.05); }

/* ---- Listas de links do rodape ---- */
.ns-footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ns-footer-list a { color: #d1d5db; text-decoration: none; font-family: 'Arimo', sans-serif; font-size: 16px; transition: color .3s ease; }
.ns-footer-list a:hover { color: #00D1D5; }

/* ---- Hamburguer (toggle do menu HFE) branco no header escuro ---- */
.hfe-nav-menu__toggle,
.hfe-nav-menu-icon,
.hfe-nav-menu-icon i,
.hfe-nav-menu-icon svg {
	color: #FFFFFF !important;
	fill: #FFFFFF !important;
}
.hfe-nav-menu-icon svg { stroke: #FFFFFF !important; }
/* painel mobile do HFE: links claros */
.hfe-nav-menu a { color: #e5e2e1 !important; }
.hfe-nav-menu a:hover { color: #00D1D5 !important; }

/* Menu mobile (HFE) ABERTO: fundo escuro p/ contraste com o texto claro */
@media (max-width: 1024px) {
	.elementor-widget-navigation-menu ul.hfe-nav-menu,
	nav.hfe-nav-menu__layout-horizontal ul.hfe-nav-menu,
	ul.hfe-nav-menu {
		background-color: #131313 !important;
		border: 1px solid rgba(255, 255, 255, .08) !important;
	}
	ul.hfe-nav-menu .menu-item,
	ul.hfe-nav-menu li.menu-item { background-color: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, .06) !important; }
	ul.hfe-nav-menu .menu-item a { background-color: transparent !important; color: #e5e2e1 !important; padding: 13px 22px !important; }
	ul.hfe-nav-menu .menu-item a:hover { color: #00D1D5 !important; background: rgba(255, 255, 255, .05) !important; }
}

/* ---- Formulario de contato (Contact Form 7) ---- */
.ns-form-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.ns-form-grid p { margin: 0; width: 100%; }
.ns-form-grid p.ns-col2 { width: calc(50% - 8px); }
.ns-form-grid input, .ns-form-grid select, .ns-form-grid textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 4px;
	font-family: 'Arimo', sans-serif; font-size: 15px; color: #111827; background: #fff; box-sizing: border-box;
}
.ns-form-grid input:focus, .ns-form-grid select:focus, .ns-form-grid textarea:focus { border-color: #00D1D5; outline: none; }
.ns-form-grid textarea { min-height: 110px; resize: vertical; }
.ns-form-grid .wpcf7-acceptance { font-size: 13px; color: #6b7280; text-align: left; }
/* Checkbox de consentimento: caixa + texto na MESMA linha, alinhados à esquerda (corrige checkbox centralizado) */
.ns-form-grid .wpcf7-acceptance .wpcf7-list-item { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.ns-form-grid .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; }
.ns-form-grid .wpcf7-acceptance input[type="checkbox"] { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0 0; }
.ns-form-grid .wpcf7-acceptance .wpcf7-list-item-label { flex: 1; line-height: 1.5; }
/* Botão de envio: largura automática, alinhado à esquerda no card */
.ns-form-grid .wpcf7-submit { display: inline-block; }
.ns-form-grid .wpcf7-submit {
	background: #00D1D5; color: #1E1E1E; border: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
	font-size: 15px; padding: 14px 30px; cursor: pointer; width: auto;
	clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
	transition: transform .3s ease, box-shadow .3s ease;
}
.ns-form-grid .wpcf7-submit:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(0,209,213,.5); }
@media (max-width: 600px) { .ns-form-grid p.ns-col2 { width: 100%; } }

/* ---- Grid dinamico de noticias ([ns_noticias]) ---- */
.ns-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ns-news-grid > .ns-news-card:first-child { grid-column: span 2; }
.ns-news-card {
	display: flex; flex-direction: column; background: #f9fafb; border: 1px solid #eef0f2;
	text-decoration: none; overflow: hidden; transition: transform .3s ease, border-color .3s ease;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.ns-news-card:hover { transform: translateY(-6px); border-color: rgba(0,209,213,.5); }
.ns-news-thumb { display: block; height: 190px; background: #e5e7eb center/cover no-repeat; }
.ns-news-grid > .ns-news-card:first-child .ns-news-thumb { height: 320px; }
.ns-news-grid > .ns-news-card:first-child .ns-news-title { font-size: 26px; }
.ns-news-content { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.ns-news-meta { display: flex; justify-content: space-between; align-items: center; }
.ns-news-date { color: #6b7280; font-size: 13px; font-family: 'Arimo', sans-serif; }
.ns-news-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 19px; color: #111827; line-height: 1.3; transition: color .3s; }
.ns-news-card:hover .ns-news-title { color: #00b3b8; }
.ns-news-excerpt { font-family: 'Arimo', sans-serif; font-size: 15px; color: #4B5563; line-height: 1.6; }
.ns-news-more { color: #00b3b8; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 14px; margin-top: 4px; }
@media (max-width: 900px) { .ns-news-grid { grid-template-columns: 1fr; } .ns-news-grid > .ns-news-card:first-child { grid-column: span 1; } .ns-news-grid > .ns-news-card:first-child .ns-news-thumb { height: 220px; } .ns-news-grid > .ns-news-card:first-child .ns-news-title { font-size: 22px; } }

/* ---- Artigo (single post) ---- */
.ns-single { background: #ffffff; }
.ns-single-hero { background: #131313; padding: 130px 24px 60px; }
.ns-single-hero .ns-single-inner { max-width: 820px; margin: 0 auto; }
.ns-single-cat { display: inline-block; color: #00D1D5; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.ns-single-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 40px; line-height: 1.2; color: #ffffff; margin: 0 0 16px; }
.ns-single-date { color: #918f9c; font-family: 'Arimo', sans-serif; font-size: 15px; }
.ns-single-thumb { max-width: 980px; margin: -40px auto 0; padding: 0 24px; }
.ns-single-thumb img { width: 100%; height: auto; display: block;
	clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); }
.ns-single-body { max-width: 760px; margin: 0 auto; padding: 48px 24px 90px; font-family: 'Arimo', sans-serif; font-size: 18px; line-height: 1.8; color: #374151; }
.ns-single-body p { margin: 0 0 24px; }
.ns-single-back { display: inline-block; margin-top: 16px; color: #00b3b8; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; text-decoration: none; }
@media (max-width: 700px) { .ns-single-title { font-size: 30px; } .ns-single-hero { padding: 110px 20px 50px; } }

/* ---- Cards de Áreas: overlay roxo (multiply) + zoom no hover, como no Stitch ---- */
.ns-area-img { overflow: hidden; }
.ns-area-img .elementor-widget-container { position: relative; overflow: hidden; line-height: 0; }
.ns-area-img .elementor-widget-container::after {
	content: ''; position: absolute; inset: 0; background: #2F2F7F;
	mix-blend-mode: multiply; opacity: .42; transition: opacity .5s ease; pointer-events: none;
}
.ns-area-img img { transition: transform .7s ease; display: block; width: 100%; }
.ns-card:hover .ns-area-img .elementor-widget-container::after { opacity: 0; }
.ns-card:hover .ns-area-img img { transform: scale(1.08); }

/* ---- Scroll-reveal (seções surgem ao rolar, como no Stitch) ---- */
.ns-reveal { opacity: 0; transform: translateY(44px); transition: opacity .8s ease-out, transform .8s ease-out; will-change: opacity, transform; }
.ns-reveal.ns-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ns-reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---- Hero Premium: glow ciano atrás da imagem do cilindro ---- */
.ns-hero-glow { position: relative; }
.ns-hero-glow::before { content: ''; position: absolute; inset: -12%; background: radial-gradient(circle, rgba(0,209,213,.28), transparent 68%); filter: blur(45px); z-index: 0; pointer-events: none; }
.ns-hero-glow img { position: relative; z-index: 1; }
.ns-hero-glow::after { content: ''; position: absolute; inset: -7%; border: 1px solid rgba(0,209,213,.30); transform: rotate(6deg); z-index: 0; pointer-events: none; }

/* Cards com cantos chanfrados (assinatura Stitch) — áreas e pilares */
.ns-card { clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }

/* Links de texto do hero (como no Stitch, em vez de botão sólido) */
.ns-hero-link .elementor-button { background: transparent !important; padding: 4px 0 !important; box-shadow: none !important; clip-path: none !important; font-weight: 600; letter-spacing: .02em; }
.ns-hero-link .elementor-button:hover { text-decoration: underline; transform: none !important; }

/* Dropdown do menu "Soluções" — escuro, combinando com o tema */
.hfe-nav-menu .sub-menu, .hfe-nav-menu ul.sub-menu { background: #131313 !important; border: 1px solid rgba(255,255,255,.08) !important; box-shadow: 0 12px 30px rgba(0,0,0,.4) !important; }
.hfe-nav-menu .sub-menu .menu-item a, .hfe-nav-menu ul.sub-menu a { color: #e5e2e1 !important; }
.hfe-nav-menu .sub-menu .menu-item a:hover { color: #00D1D5 !important; background: rgba(255,255,255,.05) !important; }

/* =========================================================================
   REMOLD STITCH (jun/2026) — helpers que faltavam p/ fidelidade ao site_stitch
   ========================================================================= */

/* Grade técnica (linhas finas 60px) — seções escuras (hero, formulário) */
.ns-tech-grid {
	background-image:
		linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
	background-size: 60px 60px;
}

/* Glow radial difuso atrás de seções escuras (hero/form) — usar com _element_id próprio */
.ns-glow-section { position: relative; overflow: hidden; }
.ns-glow-section > .e-con-inner, .ns-glow-section > .elementor-container { position: relative; z-index: 2; }
.ns-glow-section::before {
	content: ''; position: absolute; top: -20%; right: -10%;
	width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
	background: radial-gradient(circle, rgba(0,209,213,.06), transparent 60%);
	filter: blur(120px); z-index: 0; pointer-events: none;
}
.ns-glow-section::after {
	content: ''; position: absolute; bottom: -20%; left: -10%;
	width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
	background: radial-gradient(circle, rgba(47,47,127,.12), transparent 60%);
	filter: blur(120px); z-index: 0; pointer-events: none;
}

/* Glass card (pilares e formulário) — vidro fosco com topo ciano */
.ns-glass {
	background: rgba(255,255,255,.04) !important;
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,.06) !important;
	border-top: 2px solid rgba(70,237,241,.30) !important;
	border-radius: 12px;
	transition: border-color .5s ease, background .5s ease, transform .5s ease;
}
.ns-glass:hover { border-top-color: #46edf1 !important; background: rgba(255,255,255,.07) !important; transform: translateY(-6px); }

/* Selo/badge sobre a imagem dos cards de área (Divisão Animal / Industrial) */
.ns-badge {
	display: inline-block; padding: 8px 16px;
	font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .05em; color: #fff;
	backdrop-filter: blur(6px); border-radius: 2px;
}

/* Card de área com imagem-topo + badge posicionado (corpo da home) */
.ns-areacard { position: relative; overflow: hidden; }
.ns-areacard .ns-badge-wrap { position: absolute; top: 22px; left: 22px; z-index: 20; }

/* Formulário em fundo escuro (home/landing) — sobrepõe as cores do .ns-form-grid claro */
.ns-form-dark input, .ns-form-dark select, .ns-form-dark textarea {
	background: rgba(42,42,42,.5); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 8px;
}
.ns-form-dark input::placeholder, .ns-form-dark textarea::placeholder { color: rgba(255,255,255,.35); }
.ns-form-dark select option { background: #2a2a2a; color: #fff; }
.ns-form-dark label, .ns-form-dark .wpcf7-acceptance label { color: rgba(255,255,255,.8); }
.ns-form-dark .ns-form-label { color: rgba(255,255,255,.8); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 600; }

/* Caixa de vidro que envolve o formulário escuro */
.ns-glass-box {
	background: rgba(25,25,25,.6); backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,.10); border-radius: 16px;
}

/* Sublinhado curvo ciano sob palavra de destaque do hero (aprox. do SVG do Stitch) */
.ns-underline-cyan { position: relative; color: #00D1D5; }
.ns-underline-cyan::after {
	content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 6px;
	background: radial-gradient(ellipse at center top, rgba(0,209,213,.55) 40%, transparent 60%);
	opacity: .8;
}

/* Newsletter (página Notícias) */
.ns-newsletter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 520px; margin: 10px auto 0; width: 100%; }
.ns-newsletter input { flex: 1 1 240px; background: rgba(14,14,14,.4); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 12px 16px; font-family: 'Arimo', sans-serif; outline: none; }
.ns-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.ns-newsletter input:focus { border-color: #00D1D5; }
.ns-news-sub { background: #00D1D5; color: #1E1E1E; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 14px; padding: 12px 28px; text-decoration: none; white-space: nowrap;
	clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); transition: box-shadow .3s ease; }
.ns-news-sub:hover { box-shadow: 0 0 20px rgba(0,209,213,.5); }

/* Wrapper de formulário centralizado com largura máxima (evita form largo demais / overflow) */
.ns-formwrap { width: 100% !important; max-width: 920px; margin-left: auto; margin-right: auto; }

/* =========================================================================
   Header FIXO + botão flutuante de WhatsApp (jun/2026)
   ========================================================================= */

/* Header global fixo no topo ao rolar (como no Stitch: fixed top-0 + blur) */
#masthead {
	position: fixed !important;
	top: 0; left: 0; right: 0; width: 100%;
	z-index: 9999;
	background: rgba(19, 19, 19, .92);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	transition: box-shadow .3s ease;
}
#masthead.ns-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
/* âncoras internas (#historia, #lead-gen, #captura…) não ficam escondidas sob o header fixo */
html { scroll-padding-top: 96px; }
/* admin bar (só logado) empurra o header pra baixo da barra */
body.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar #masthead { top: 46px; } }

/* Botão flutuante de WhatsApp (fixo, canto inferior direito, todas as páginas) */
.ns-whatsapp {
	position: fixed; right: 22px; bottom: 22px; z-index: 9998;
	width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
	transition: transform .25s ease, box-shadow .25s ease;
}
.ns-whatsapp svg { width: 32px; height: 32px; fill: #fff; position: relative; z-index: 1; }
.ns-whatsapp:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37, 211, 102, .65); }
.ns-whatsapp::before {
	content: ''; position: absolute; inset: 0; border-radius: 50%;
	background: #25D366; z-index: 0; animation: ns-wa-pulse 2.2s ease-out infinite;
}
@keyframes ns-wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ns-whatsapp::before { animation: none; } }
@media (max-width: 600px) { .ns-whatsapp { right: 16px; bottom: 16px; width: 52px; height: 52px; } .ns-whatsapp svg { width: 28px; height: 28px; } }
