/* ==========================================================================
   JMobile Marcenaria — Clone Styles & Interactive Overrides
   ========================================================================== */

html,
body {
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

#page {
  overflow-x: hidden;
}

/* Preloader off immediately */
.preloader {
  opacity: 0 !important;
  display: none !important;
  pointer-events: none !important;
}

/* Guard all inline SVGs against oversized rendering */
.sydney-svg-icon,
.btn-menu .sydney-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sydney-svg-icon svg {
  width: 16px;
  height: 16px;
  max-width: 100%;
  max-height: 100%;
}

.btn-menu {
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}

.btn-menu .sydney-svg-icon,
.btn-menu .sydney-svg-icon svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  fill: #ffffff !important;
}

.go-top .sydney-svg-icon svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
}

/* Header & Navigation */
#masthead.site-header {
  background-color: #000000;
  position: relative;
  z-index: 1000;
}

#masthead.site-header.float-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#mainnav ul li a {
  color: #ffffff;
  transition: color 0.2s ease;
}

#mainnav ul li a:hover {
  color: #c7c7c7;
}

#mainnav ul li.menu-item-has-children {
  position: relative;
}

#mainnav .sub-menu {
  background-color: #000000;
  border-top: 2px solid #ffffff;
}

@media only screen and (min-width: 1025px) {
  .btn-menu {
    display: none !important;
  }
}

@media only screen and (max-width: 1024px) {
  #masthead .row > div {
    text-align: center;
  }

  .btn-menu {
    display: inline-flex !important;
    margin: 12px auto 4px;
    padding: 8px 12px;
    cursor: pointer;
    color: #ffffff;
  }

  #mainnav {
    display: none;
    width: 100%;
    background: #000000;
    margin-top: 10px;
    text-align: left;
    border-top: 1px solid #222222;
  }

  #mainnav.is-open {
    display: block;
  }

  #mainnav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #mainnav ul.menu > li {
    display: block;
    float: none;
    padding: 0;
    border-bottom: 1px solid #1f1f1f;
    position: relative;
  }

  #mainnav ul.menu > li > a {
    display: block;
    padding: 12px 18px;
  }

  #mainnav .sub-menu {
    position: static !important;
    display: none;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border-top: 0;
    background: #111111;
    padding-left: 15px;
  }

  #mainnav li.submenu-open > .sub-menu {
    display: block;
  }

  .btn-submenu {
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 16px;
    user-select: none;
  }

  .btn-submenu::before {
    content: '\f107';
    font-family: 'FontAwesome';
  }

  li.submenu-open > .btn-submenu::before {
    content: '\f106';
  }
}

/* Hero Slider (#slideshow) */
#slideshow.header-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  background-color: #000000;
}

#slideshow .slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#slideshow .slide-item {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
  z-index: 1;
}

#slideshow .slide-item.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

#slideshow .slide-inner {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 4;
  text-align: center;
  padding: 0 20px;
}

#slideshow .text-slider .maintitle {
  color: #ffffff;
  text-transform: lowercase;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

@media only screen and (max-width: 1024px) {
  #slideshow.header-slider {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  #slideshow .slides-container {
    height: auto !important;
  }

  #slideshow .slide-item {
    position: relative !important;
    height: auto !important;
    display: none;
    background-image: none !important;
  }

  #slideshow .slide-item.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  #slideshow .slide-item img.mobile-slide {
    display: block !important;
    width: 100%;
    height: auto;
  }
}

/* SiteOrigin Full-Width Row Stretching */
#primary.fp-content-area {
  width: 100%;
}

.siteorigin-panels-stretch {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Home Section 1: Sobre a J Mobile */
.sobre-a-j-mobile,
.sobre-a-j-mobile h3,
.sobre-a-j-mobile p,
.sobre-a-j-mobile a {
  color: #ffffff;
}

.sobre-a-j-mobile .roll-icon-list .list-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 28px;
}

.sobre-a-j-mobile .roll-icon-list .icon {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  line-height: 68px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  text-align: center;
  margin-right: 0;
}

.sobre-a-j-mobile .roll-icon-list .content {
  flex: 1;
}

/* Home Section 2: Informações Técnicas (white band) */
#pg-220-1 > .panel-row-style {
  background-color: #ffffff !important;
}

#pg-220-1 h3.widget-title {
  color: #000000 !important;
  text-align: center;
}

#panel-w6ad8a7cce7196-1-0-0 > .panel-widget-style {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 35px 25px;
}

#panel-w6ad8a7cce7196-1-0-0 .roll-promobox .title {
  color: #000000 !important;
  text-align: center;
  margin-bottom: 22px;
}

#panel-w6ad8a7cce7196-1-0-0 .promo-controls {
  text-align: center;
}

#panel-w6ad8a7cce7196-1-0-0 .roll-button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  display: inline-block;
}

#panel-w6ad8a7cce7196-1-0-0 .roll-button:hover {
  background-color: #222222 !important;
  color: #ffffff !important;
}

/* Home Section 3: Elettromec & Natuzzi */
#panel-w6ad8a7cce7717-0-1-0 .title {
  color: #ffffff !important;
  line-height: 1.45;
}

/* Home Section 4: Nossos Projetos (Filterable Grid) */
#projetos h3.widget-title {
  color: #ffffff !important;
  text-align: center;
  margin-bottom: 35px;
}

#filters.project-filter {
  display: table;
  margin: 0 auto 40px;
  padding: 0;
  background-color: #f5f5f5;
  list-style: none;
  text-align: center;
}

#filters.project-filter li {
  display: inline-block;
  margin: 0;
  background: transparent !important;
}

#filters.project-filter li a {
  display: block;
  padding: 12px 16px;
  color: #555555;
  font-size: 14px;
  text-decoration: none;
  background-color: #f5f5f5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#filters.project-filter li a:hover,
#filters.project-filter li a.active {
  background-color: #222222 !important;
  color: #ffffff !important;
}

.roll-project.fullwidth {
  width: 100%;
  margin: 0;
}

#isotope-container.project-wrap {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  position: relative !important;
  height: auto !important;
}

#isotope-container .project-item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 20% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#isotope-container .project-item.is-hidden {
  display: none !important;
}

#isotope-container .project-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

#isotope-container .project-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 991px) {
  #isotope-container .project-item {
    width: 33.3333% !important;
  }
}

@media (max-width: 600px) {
  #isotope-container .project-item {
    width: 50% !important;
  }
}

@media (max-width: 420px) {
  #isotope-container .project-item {
    width: 100% !important;
  }
}

/* Home Section 5: Cyclone Slider (#cycloneslider-banner-comemorativo-1) */
#cycloneslider-banner-comemorativo-1 {
  margin: 0 auto;
  position: relative;
}

#cycloneslider-banner-comemorativo-1 .cycloneslider-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1110 / 335;
  overflow: hidden;
  background: #000000;
}

#cycloneslider-banner-comemorativo-1 .cycloneslider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
  display: block !important;
}

#cycloneslider-banner-comemorativo-1 .cycloneslider-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

#cycloneslider-banner-comemorativo-1 .cycloneslider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* WPLS Logo / Showroom Carousel (.wpls-logo-showcase) */
.wpls-logo-showcase-slider-wrp {
  position: relative;
  padding: 0 36px;
  margin: 25px 0;
}

.wpls-logo-showcase.is-initialized {
  position: relative;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.wpls-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.wpls-logo-showcase .wpls-logo-cnt {
  flex: 0 0 33.3333% !important;
  max-width: 33.3333% !important;
  width: 33.3333% !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 0 12px !important;
  text-align: center;
}

.wpls-logo-showcase .wpls-fix-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpls-logo-showcase .wpls-fix-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.wpls-nav-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpls-nav-btn:hover {
  color: #cccccc;
  background: transparent;
}

.wpls-nav-prev {
  left: 0;
}

.wpls-nav-next {
  right: 0;
}

.wpls-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.wpls-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background-color: #ffffff;
  opacity: 0.45;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

.wpls-dots li.slick-active button {
  opacity: 1;
  background-color: #888888;
}

@media (max-width: 991px) {
  .wpls-logo-showcase .wpls-logo-cnt {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 600px) {
  .wpls-logo-showcase .wpls-logo-cnt {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Internal Pages & Sidebar Readability on Black Background */
.entry-content,
.entry-content p,
.entry-content li,
.entry-content span,
.entry-content strong {
  color: #ffffff;
}

#secondary .widget-title,
#secondary h3.widget-title,
#secondary .widget {
  color: #ffffff !important;
}

#secondary .search-field {
  background-color: #ffffff;
  color: #000000 !important;
  padding: 10px 14px;
  border: 1px solid #444444;
  width: 100%;
  max-width: 240px;
}

/* Contact Form 7 Readability & Styling on /contato/ */
.wpcf7-form p,
.wpcf7-form label,
.wpcf7-form .wpcf7-list-item-label {
  color: #ffffff !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #cccccc !important;
  padding: 10px 14px;
  width: 90%;
  box-sizing: border-box;
}

.wpcf7-form input[type="submit"] {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  padding: 12px 35px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  color: #ffffff;
  border: 1px solid transparent;
  display: none;
}

.wpcf7-response-output.is-visible {
  display: block;
}

.wpcf7-response-output.is-success {
  border-color: #46b450;
  background-color: rgba(70, 180, 80, 0.15);
}

.wpcf7-response-output.is-error {
  border-color: #dc3232;
  background-color: rgba(220, 50, 50, 0.15);
}

/* Footer Widgets (#sidebar-footer) */
#sidebar-footer,
#sidebar-footer h3,
#sidebar-footer h5,
#sidebar-footer a {
  color: #ffffff !important;
}

.social-menu-widget {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
}

.social-menu-widget li a {
  color: #ffffff !important;
  font-size: 36px;
  text-decoration: none;
}

/* Lightbox Modal for Portfolio & Showroom Images */
.orion-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.orion-lightbox.is-open {
  display: flex;
}

.orion-lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.orion-lightbox-inner img {
  display: block;
  max-width: calc(92vw - 20px);
  max-height: calc(86vh - 20px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.orion-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.orion-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.orion-lightbox-prev {
  left: -54px;
}

.orion-lightbox-next {
  right: -54px;
}

@media (max-width: 768px) {
  .orion-lightbox-prev {
    left: 8px;
  }
  .orion-lightbox-next {
    right: 8px;
  }
}
