/* Firesensor — helpers for things Elementor has no widget control for.
   Layout, colours and typography of every element live in the Elementor widgets themselves. */

/* Rich text (Editor de texto): lists, tables and emphasis inside the editor content */
.fs-rich > :last-child, .fs-rich > .elementor-widget-container > :last-child { margin-bottom: 0 !important; }
.fs-rich > :first-child, .fs-rich > .elementor-widget-container > :first-child { margin-top: 0; }
.fs-rich ul, .fs-rich ol { padding-left: 22px !important; margin: 0 0 25px !important; }
.fs-rich li { margin: 9px 0; }
.fs-rich strong, .fs-rich b { color: #f4f4f4; }
.fs-rich a { text-decoration: underline; text-underline-offset: 3px; }
.fs-rich img { max-width: 100%; height: auto; border-radius: 8px; }
.fs-table { overflow: auto; margin: 22px 0 36px; border: 1px solid #333; border-radius: 8px; }
.fs-table table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; margin: 0; border: 0; }
.fs-table th, .fs-table td { padding: 13px 18px; border: 0; border-bottom: 1px solid #333; text-align: left; min-width: 140px; color: #ccc; background: transparent; vertical-align: top; }
.fs-table th { background: #171717; color: #eee; font-weight: 700; }
.fs-table tr:nth-child(even) td { background: #171717; color: #eee; }
.fs-table p { margin: 0 !important; font-size: inherit; }
.fs-table tr:last-child td { border-bottom: 0; }

/* Headings with links keep the heading colour */
.elementor-widget-heading .elementor-heading-title a { color: inherit; }

/* Catalogue / blog search */
.fs-no-results { display: none; }
.fs-no-results.is-visible { display: block; }
.fs-toolbar .catalog-toolbar { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; margin: 0; }
.fs-catalog .fs-toolbar .catalog-toolbar { padding: 20px; border: 1px solid #303030; border-radius: 10px; background: #111; }
.fs-toolbar .search-field { position: relative; flex: 1; min-width: 240px; display: block; }
.fs-toolbar .search-field input, .fs-toolbar select { width: 100%; padding: 16px 18px; border: 1px solid #444; border-radius: 7px; font: inherit; font-size: 16px; background: #080808; color: #eee; }
.fs-toolbar select { width: auto; max-width: 320px; padding: 15px 18px; }
.fs-toolbar input::placeholder { color: #8292a4; }
.fs-toolbar .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fs-toolbar .filters { display: flex; gap: 9px; flex-wrap: wrap; }
.fs-toolbar .filters button { padding: 11px 18px; border: 1px solid #444; background: #161616; border-radius: 30px; font-size: 14px; color: #ddd; cursor: pointer; }
.fs-toolbar .filters button.active { background: #e72b32; color: #fff; border-color: #e72b32; }
@media (max-width: 767px) { .fs-toolbar select { width: 100%; max-width: none; } }

/* Fallback HTML form (only when Elementor Pro is not active) */
.elementor-widget-html .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.elementor-widget-html .form-grid label { font-size: 15px; font-weight: bold; color: #ddd; }
.elementor-widget-html .form-grid input, .elementor-widget-html .form-grid textarea { margin-top: 8px; width: 100%; padding: 14px; border: 1px solid #444; border-radius: 5px; background: #080808; color: #eee; font: inherit; font-size: 16px; }
.elementor-widget-html .form-grid .full { grid-column: 1 / -1; }
.elementor-widget-html .form-grid textarea { min-height: 110px; resize: vertical; }
.elementor-widget-html .form-grid .btn { width: 100%; margin-top: 8px; background: #e72b32; color: #fff; border: 0; border-radius: 5px; padding: 18px 24px; font-weight: 700; cursor: pointer; }
@media (max-width: 680px) { .elementor-widget-html .form-grid { grid-template-columns: 1fr; } .elementor-widget-html .form-grid .full { grid-column: auto; } }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.fs-rich > :last-child, .fs-rich > .elementor-widget-container > :last-child, .fs-rich > .fs-table:last-child { margin-bottom: 0 !important; }

/* Hover effects of the original site (Elementor has no "zoom image on card hover" control) */
.fs-hz img, .fs-hz-s img { transition: transform .6s ease; }
.fs-hz:hover img { transform: scale(1.045); }
.fs-hz-s:hover img { transform: scale(1.03); }
.fs-btn-lift .elementor-button { transition: transform .2s, background-color .2s, color .2s, border-color .2s; }
.fs-btn-lift .elementor-button:hover { transform: translateY(-2px); }
.fs-card, .e-con.fs-card { transition: transform .3s, border-color .3s, box-shadow .3s; }

/* "Produtos" as a two-column mega menu (Elementor Pro Menu widget) */
.elementor-nav-menu--main .sub-menu { padding: 12px !important; }
.elementor-nav-menu--main .sub-menu a { border-radius: 5px; }
.elementor-nav-menu--main .fs-mega > .sub-menu { width: 540px !important; min-width: 540px !important; max-width: 540px !important; columns: 2; column-gap: 2px; }
.elementor-nav-menu--main .fs-mega > .sub-menu[aria-hidden="false"] { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px; columns: auto; }
.elementor-nav-menu--main .fs-mega > .sub-menu > li { break-inside: avoid; }
.elementor-nav-menu--main .fs-mega > .sub-menu a { white-space: normal; }

/* Theme button resets (Hello Elementor paints every <button> pink on hover/focus) */
.fs-toolbar .filters button:hover, .fs-toolbar .filters button:focus { background: #242424; color: #fff; border-color: #555; }
.fs-toolbar .filters button.active, .fs-toolbar .filters button.active:hover, .fs-toolbar .filters button.active:focus { background: #e72b32; color: #fff; border-color: #e72b32; }
.fs-nav-fallback button, .fs-nav-fallback button:hover, .fs-nav-fallback button:focus { background: transparent; border: 0; padding: 34px 0; color: #191919; font-size: 14px; font-weight: 600; }

/* Client logos: continuous marquee that pauses on hover; logos turn to colour on hover (same as the original) */
.fs-clients-strip { min-width: 0; }
.fs-clients-strip .client-carousel { overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.fs-clients-strip .client-track { display: flex; width: max-content; animation: fs-client-drift 28s linear infinite; }
.fs-clients-strip .client-carousel:hover .client-track { animation-play-state: paused; }
.fs-clients-strip .client-group { display: flex; align-items: center; justify-content: space-around; gap: 60px; padding-right: 60px; min-width: 1000px; flex-shrink: 0; }
.fs-clients-strip .client-group img { box-sizing: border-box; display: block; width: 145px; height: 66px; max-width: none; object-fit: contain; background: #fff; border: 0; border-radius: 5px; padding: 10px; box-shadow: none; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s, transform .3s; }
.fs-clients-strip .client-group img:hover { filter: none; opacity: 1; transform: scale(1.08); }
@keyframes fs-client-drift { to { transform: translateX(-50%); } }
@media (max-width: 680px) { .fs-clients-strip .client-group { gap: 40px; padding-right: 40px; } .fs-clients-strip .client-group img { width: 115px; } }
@media (prefers-reduced-motion: reduce) { .fs-clients-strip .client-track { animation: none; } .fs-clients-strip .client-carousel { overflow-x: auto; } }
