/*
 * Ajustes de design - Planti Center (desktop)
 * Carregado por ultimo em todas as paginas (ver comum/views/template/default.php).
 * Mantem a identidade visual: verde #00a651, vermelho da faixa, Montserrat, padrao de triangulos e ramos de trigo.
 * Tokens usados: verde #00a651 (hover escuro #008a43), texto #414141, texto secundario #666 / #8a8a8a,
 * divisorias #d7d7d7, sombra de legibilidade rgba(0,0,0,.35). Nunca contorno branco em texto.
 */

/* ==========================================================================
   1. Cabecalho / menu
   O menu transparente ficava sobre fundos diferentes (verde, foto, branco) e
   perdia leitura. Passa a usar sempre o visual branco do estado fixo (.top),
   que ja e da identidade do site. Substitui o degrade da home.css.
   ========================================================================== */
#menu:not(.top){background:#fff;border-bottom:2px solid #00a651;height:114px;padding:0}
#menu:not(.top) #logo{padding-top:27px}
#menu:not(.top) .menu-item:after{top:108px}
#menu:not(.top) .submenu{top:97%}
/* Home: o banner desce para nao ficar sob o menu */
#header + main > #banner:first-child{margin-top:114px}
main#conteudo{display:block}

/* Itens do menu um pouco maiores e menos apertados
   (so a partir de 1280px: abaixo disso as bandeiras quebravam para uma 2a linha, fora da faixa branca) */
@media (min-width:1280px){
  #menu .menu-item{font-size:12px;letter-spacing:.01em}
}
/* Item da secao atual (requer a classe .active no header.php - opcional) */
#menu .menu-item.active{color:#00a651}
#menu .menu-item.active:after{opacity:1;transform:scale(1,1)}

/* Submenu Contato: branco com filete verde, destaca-se sobre qualquer fundo */
#menu .submenu{background-color:#fff;border-top:3px solid #00a651;box-shadow:0 12px 24px rgba(0,0,0,.18)}
#menu .submenu a{color:#414141;text-shadow:none;padding:16px 25px 15px;border-bottom:1px solid #ececec}
#menu .submenu a:last-child{border-bottom:0}
#menu .submenu a:hover{background-color:#00a651;color:#fff}

/* Janela de 1280-1359px: sem rolagem horizontal e com respiro lateral no menu */
@media (min-width:1280px){
  .container-fluid{width:auto}
}
@media (min-width:1280px) and (max-width:1359px){
  #menu .container-fluid{padding:0 24px;box-sizing:border-box}
  #menu .menu-list{padding-left:60px}
}

/* ==========================================================================
   2. Faixas de titulo (heading) e breadcrumbs
   ========================================================================== */
/* Titulos brancos sobre foto/verde: sombra difusa e discreta (sem contorno) */
.heading .page-title h1,
.heading .header-text,
.heading #breadcrumbs{text-shadow:0 1px 3px rgba(0,0,0,.35),0 2px 14px rgba(0,0,0,.25)}
.heading .header-text p{font-weight:400}

/* Breadcrumb: hover visivel tambem sobre a faixa verde do produto */
#breadcrumbs a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* Categorias de produtos (/produtos/<categoria>): mesma geometria do detalhe do produto
   (/produtos/<categoria>/<produto>) -> fundo comeca em 168px, breadcrumb no topo da faixa verde
   e titulo branco dentro dela. Antes o titulo ficava abaixo da faixa vermelha, desalinhado. */
.heading.category-heading .lazyload-image{background-position:50% 168px}
.heading.category-heading #breadcrumbs{top:182px;bottom:auto}
.heading.category-heading .page-title-container{top:280px;bottom:auto}
/* Folha decorativa acima do titulo: mesma posicao do detalhe do produto (produtos.css usava -85px e ela encostava no breadcrumb) */
.heading.category-heading .page-title h1:before{top:-65px}

/* Titulo com os ramos de trigo: centralizado ja no primeiro instante.
   Antes era montado com float + um script que so calculava as larguras depois que TODAS as imagens
   carregavam (window.load) -> o titulo aparecia encostado a esquerda e depois "pulava" para o centro.
   Agora o flexbox do navegador faz isso direto; as larguras que o script grava sao ignoradas. */
.flex-container.page-title{display:flex;align-items:flex-start;justify-content:center}
.flex-container.page-title:after{display:none}
.flex-container.page-title>.flex-fixed,
.flex-container.page-title>.flex-auto,
.flex-container.page-title>.flex-grow{float:none;width:auto!important}
.flex-container.page-title>.flex-fixed{flex:0 0 auto}
.flex-container.page-title>.flex-auto{flex:0 1 auto;min-width:0}
.flex-container.page-title>.flex-grow{flex:1 1 0;min-width:0}

/* ==========================================================================
   3. Home
   ========================================================================== */
/* Vitrine: cards alinhados pelo topo, imagens com a mesma altura */
#showcase .showcase-item{vertical-align:top}
#showcase .showcase-image{height:175px;object-fit:contain}
#showcase .showcase-name{min-height:40px;box-sizing:content-box}

/* Faixa "Desafiando os limites do plantio" sobre a foto */
#para h1{text-shadow:0 1px 4px rgba(0,0,0,.45)}
#para p{font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.6)}

/* ==========================================================================
   4. Cards de noticias (home, /noticias, Leia Tambem, empresa, pos-vendas)
   ========================================================================== */
.news-card .news-date{color:#6b6b6b} /* contraste 5,3:1 (acessibilidade; antes #8a8a8a = 3,4:1) */
.news-card .news-text br{display:none}
.news-card .news-card-picture{opacity:.85}

/* Botao "Ver mais" com cara de acao (preserva o estado de carregamento) */
#load-more:not(.loading-news){color:#00a651;border-color:#00a651}
#load-more:not(.loading-news):hover{background-color:#00a651;color:#fff}

/* ==========================================================================
   5. Produtos - listagem e categorias
   ========================================================================== */
.category-grid{display:flex;flex-wrap:wrap;justify-content:center}
.category-grid:after{content:none}
.category-grid>.col-lg-4{float:none}
.product-grid .product-cell .product-name span{text-wrap:balance}

/* ==========================================================================
   6. Produtos - detalhe
   ========================================================================== */
/* Foto principal no tamanho natural, sem distorcao */
.heading .header-product img.lazyload-image{width:auto;max-width:100%;height:auto;min-height:0}

/* Barra de botoes: divide a largura pelo numero de botoes */
.product-subsection{display:flex}
.product-subsection .subsection-link{float:none;flex:1 1 0;width:auto}

/* Tabela tecnica: some o vazio e o botao morto quando nao ha conteudo */
.page-content .container-scroll{margin:0 0 60px;max-height:none}
.page-content .container-scroll>.mCustomScrollBox:has(.mCSB_container>*){margin:54px 0 40px}
.product-subsection .subsection-link.tecnical-table{display:none}
.page-content:has(.container-scroll>:not(.mCustomScrollBox),.container-scroll .mCSB_container>*) .product-subsection .subsection-link.tecnical-table{display:block}

/* Tabela tecnica com estilo da marca */
.container-scroll table{width:100%;max-width:760px;margin:0 auto;border:0;border-collapse:collapse}
.container-scroll table caption{color:#00a651;font-size:16px;font-weight:700;letter-spacing:-.02em;padding:0 0 14px;text-align:center;text-transform:uppercase}
.container-scroll table td{border:0;border-bottom:1px solid #e3e3e3;font-size:14px;line-height:20px;padding:9px 14px;vertical-align:top}
.container-scroll table tr:nth-child(odd) td{background-color:#f6f6f6}
.container-scroll table td:first-child{color:#414141;font-weight:600;width:45%}

/* Galeria: itens uniformes, video quebrado oculto, icone de play */
#product-gallery .owl-item{overflow:hidden}
#product-gallery .owl-item:has(>.product-gallery-video[href*="/embed/?"]){display:none}
#product-gallery .product-gallery-item{display:block;height:370px;overflow:hidden;position:relative;background-color:#f2f2f2}
#product-gallery .product-gallery-item img{display:block;width:100%;height:100%;object-fit:cover}
#product-gallery .product-gallery-video img{transform:scale(1.4)}
#product-gallery .product-gallery-video:before,#product-gallery .product-gallery-video:after{content:'';left:50%;pointer-events:none;position:absolute;top:50%;z-index:1;transition:opacity .4s}
#product-gallery .product-gallery-video:before{background-color:rgba(0,166,81,.92);border-radius:50%;box-shadow:0 2px 10px rgba(0,0,0,.3);width:64px;height:64px;margin:-32px 0 0 -32px}
#product-gallery .product-gallery-video:after{border-color:transparent transparent transparent #fff;border-style:solid;border-width:12px 0 12px 20px;margin:-12px 0 0 -7px}
#product-gallery .product-gallery-video:hover:before,#product-gallery .product-gallery-video:hover:after{opacity:0}

/* Produtos relacionados: some quando vazio, centraliza quando ha poucos */
.page-content>.container-fluid:has(>h2+.product-grid):not(:has(.product-cell)){display:none}
.page-content>.container-fluid>h2+.product-grid{display:flex;flex-wrap:wrap;justify-content:center}
.page-content>.container-fluid>h2+.product-grid:after{content:none}
.page-content>.container-fluid>h2+.product-grid>.col-lg-4{float:none}

/* ==========================================================================
   7. Noticia - detalhe
   ========================================================================== */
.news-content h1{letter-spacing:-.025em;line-height:1.05;padding:0 40px}
.news-content .page-text{text-align:left}
.news-content .share-content{bottom:auto;margin:-10px 0 40px}
#news-gallery .owl-item,#action-gallery .owl-item{overflow:hidden}
#news-gallery .news-gallery-video{display:block;position:relative;background-color:#1e1e1e}
#news-gallery .news-gallery-video img{display:block;width:100%;height:370px;object-fit:cover}
#news-gallery .news-gallery-video .gallery-image-overlay svg{opacity:.9;width:87px;height:87px;transform:translate(-50%,-50%)}

/* ==========================================================================
   8. Empresa
   ========================================================================== */
#about-content .history-container>.owl-wrapper-outer{clip-path:inset(0 1px 0 0)}
#values>.col-lg-4 h3{color:#00a651}
#about-content .container-fixed>img{display:block;max-width:100%;height:auto;margin:20px auto 60px}

/* ==========================================================================
   9. Contato, Trabalhe Conosco e Pos-vendas
   ========================================================================== */
/* Aceite LGPD: checkbox e texto na mesma linha, link verde */
.form-row > .col-md-12.form-cell{float:none;clear:both;width:auto;height:auto;display:flex;align-items:center;padding:0;margin-top:28px}
#politica-lgpd{flex:none;width:16px;height:16px;margin:0;accent-color:#00a651;cursor:pointer}
#politica-lgpd-label{position:static;transform:none;width:auto;height:auto;top:auto;left:auto;margin:0 0 0 10px!important;font-size:14px;line-height:1.4;cursor:pointer}
#politica-lgpd-label a{color:#00a651;text-decoration:underline}
#politica-lgpd-label a:hover{text-decoration:none}
/* Aceite nao marcado ao enviar: texto em vermelho (a validacao marca o checkbox com .error) */
#politica-lgpd.error + #politica-lgpd-label{color:#ee1d25}

/* Faixa "Entre em contato por telefone": icone e numero legiveis */
#phones svg{opacity:.55}
#phones svg path{fill:#fff}
#phones .phone{color:rgba(255,255,255,.92)}

/* Pos-vendas > Contate-nos: noticias alinhadas a faixa verde */
#aftersales-content #news .news-card{width:25%}
#aftersales-content #news .news-card:last-child{border-right:1px solid #d7d7d7}
#aftersales-content #phones + #news{margin-top:50px}

/* Pos-vendas > Downloads: Acesso Restrito legivel */
#restricted-access label{color:rgba(255,255,255,.8)}
#restricted-access input{border-bottom-color:rgba(255,255,255,.6)}

/* ==========================================================================
   10. Representantes - cards de resultado
   ========================================================================== */
#list-sales.visible{float:none;display:flex;flex-wrap:wrap;justify-content:center;width:100%;margin:30px 0 60px}
#list-sales .id-sales{float:none;height:auto;min-height:395px;padding-bottom:105px;margin:0 -1px -1px 0}
#list-sales .id-sales:hover{padding-bottom:104px}
#list-sales .id-sales>h1{line-height:1.3}
#list-sales .id-sales>.info_item .info{font-weight:400;color:#555;line-height:1.45}
#list-sales .id-sales>.info_email .info,#list-sales .id-sales>.info_site .info{text-transform:none}
#list-sales .id-sales:hover>.como_chegar .svg-icon{filter:brightness(0) invert(1)}

/* ==========================================================================
   11. Rodape
   ========================================================================== */
#footer .company-details{font-weight:700;line-height:1.6;text-shadow:0 1px 2px rgba(0,0,0,.25)}
footer #footer .social-button{border-color:rgba(255,255,255,.85);color:#fff}
footer #footer .social-button:hover{background-color:#00a651;border-color:#00a651}
#sitemap a.link-to-section[href*="/area_restrita/"]{color:#666;font-size:13px;font-weight:400;line-height:1.45;padding:4px 0}
#sitemap a.link-to-section[href*="/area_restrita/"]:hover{color:#00a651}

/* ==========================================================================
   12. Barra de cookies / LGPD (widget de terceiros - !important necessario)
   ========================================================================== */
.acta-bar,.acta-bar .acta-texto,.acta-bar .acta-widget-titulo,.acta-bar .acta-button{font-family:montserrat,sans-serif!important}
.acta-bar{box-shadow:0 -4px 18px rgba(0,0,0,.12);border-top:3px solid #00a651}
.acta-bar .acta-texto{color:#414141}
.acta-bar .acta-widget-titulo{color:#414141;font-weight:700}
.acta-bar a[style]{color:#00a651!important}
.acta-bar .acta-button-green{background-color:#00a651!important;border-color:#00a651!important;font-weight:700}

/* ==========================================================================
   13. Pagina 404 (requer class="page-404" no body e o link deste arquivo em errors/error_404.php)
   ========================================================================== */
body.page-404{font-family:montserrat,Arial,sans-serif;color:#414141;letter-spacing:-.02em}
.page-404 #wrapper{padding:10% 16px}
.page-404 #wrapper .logo{margin-bottom:56px}
.page-404 #wrapper .message{font-size:20px;font-weight:400;color:#666;margin-bottom:40px}
.page-404 #wrapper .message .big{font-size:44px;font-weight:700;color:#00a651;margin-bottom:12px}
.page-404 #wrapper a{box-shadow:none;border-radius:0;background:#00a651;color:#fff;font-size:15px;font-weight:700;padding:0 32px;line-height:50px;transition:background-color .3s}
.page-404 #wrapper a:hover{opacity:1;background:#008a43}

/* Acessibilidade (11/2026): links do mapa do site no rodape com contraste minimo 4,5:1.
   Verde um pouco mais escuro que o da marca (#00a651 = 3,2:1 sobre branco) so nesses textos. */
#sitemap a.link-to-section{color:#00843f}
#sitemap a.link-to-section svg{fill:#00843f}
#sitemap a.link-to-section:hover{color:#005a2c}
#sitemap a.link-to-section:hover svg{fill:#005a2c}

/* Performance (11/2026): fundos decorativos em WebP (183->71 KB e 155->35 KB) */
#support{background-image:url(../img/body-bg.webp)}
#para .bg-parallax{background-image:url(../img/parallax-bg.webp)}

/* Produto (11/2026): botao "Ficha Tecnica" leva ate a ficha, sem esconder o titulo atras do cabecalho fixo */
#ficha-tecnica{scroll-margin-top:130px}

/* Campos de selecao (select2, 11/2026): o plugin pede select2.png, select2x2.png e select2-spinner.gif,
   que nunca vieram com o site (404 no console em Representantes, Contato e Pos-vendas).
   A seta dos campos ja e desenhada pelo CSS do site; os outros icones ficam sem imagem e o "x" vira texto. */
html .select2-container .select2-choice abbr,
html .select2-container .select2-choice .select2-arrow b,
html .select2-search input,
html .select2-search input.select2-active,
html .select2-more-results.select2-active,
html .select2-container-multi .select2-choices .select2-search-field input.select2-active,
html .select2-search-choice-close{background-image:none!important}
html .select2-search-choice-close::before,
html .select2-container .select2-choice abbr::before{content:"\00d7";display:block;font:bold 13px/12px Arial,sans-serif;color:#888;text-align:center}

/* Representantes - busca pela localizacao (11/2026) */
#filter-sales .btn-gps{display:inline-flex;align-items:center;gap:8px;margin-top:16px;height:44px;padding:0 18px;border:1px solid #00a651;border-radius:3px;background:#fff;color:#00a651;font:700 13px/1 montserrat,sans-serif;text-transform:uppercase;cursor:pointer;transition:background .2s,color .2s}
#filter-sales .btn-gps:hover,#filter-sales .btn-gps:focus-visible{background:#00a651;color:#fff}
#filter-sales .btn-gps .sending{display:none}
#filter-sales .btn-gps.sending .default,#filter-sales .btn-gps.sending>.fa-location-arrow{display:none}
#filter-sales .btn-gps.sending .sending{display:inline}
#filter-sales .btn-gps[disabled]{cursor:wait;opacity:.85}
#list-sales .gps-titulo{float:none;clear:both;width:100%;margin:0 0 16px;font:700 16px/1.3 montserrat,sans-serif;color:#414141;text-transform:uppercase}
#list-sales .gps-distancia{margin:-14px 0 14px;text-align:center;color:#00a651;font-weight:700;font-size:13px}
.info_box .gps-distancia{margin:4px 0 10px;color:#00a651;font-weight:700;font-size:13px}
