/* Ajustes responsivos da reconstrução Ideal Inkjet */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
.wrapper { max-width: 1200px; width: 100%; padding-left: 20px; padding-right: 20px; }
.wppButton, .scrollToTop { z-index: 999; }

/* Cabeçalho móvel recriado a partir da referência do site anterior. */
.ii-mobile-header { display: none; }

/* Carrossel independente do JavaScript legado do fornecedor antigo. */
.slick-banner.ii-carousel-ready {
  position: relative; display: block; overflow: hidden;
  visibility: visible !important; opacity: 1 !important;
}
.slick-banner.ii-carousel-ready > .slick-banner-sig { display: none !important; width: 100%; }
.slick-banner.ii-carousel-ready > .slick-banner-sig.ii-active { display: block !important; }
.ii-carousel-previous, .ii-carousel-next {
  position: absolute; top: 50%; z-index: 8; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #ed1c24; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.25);
  font-size: 18px; cursor: pointer;
}
.ii-carousel-previous { left: 25px; }
.ii-carousel-next { right: 25px; }
.ii-carousel-dots {
  position: absolute; z-index: 8; left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 10px;
}
.ii-carousel-dots button {
  width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.48); cursor: pointer;
}
.ii-carousel-dots button.is-active { background: #fff; transform: scale(1.18); }

/* Botões flutuantes: WhatsApp acima e retorno ao topo logo abaixo. */
.wppButton { bottom: 86px !important; }
#ii-back-to-top {
  position: fixed; right: 24px; bottom: 18px; z-index: 9997;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #3e6878; color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.2);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
#ii-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#ii-back-to-top:hover { background: #ed1c24; }

/* Consentimento LGPD. */
.ii-cookie-banner {
  position: fixed; z-index: 12000; left: 18px; right: 18px; bottom: 18px;
  max-width: 1120px; margin: 0 auto; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #2f3539; background: #fff; border-top: 4px solid #ed1c24;
  border-radius: 10px; box-shadow: 0 12px 42px rgba(0,0,0,.28);
}
.ii-cookie-copy { max-width: 720px; }
.ii-cookie-copy strong { display: block; margin-bottom: 5px; font-size: 20px; }
.ii-cookie-copy p { margin: 0 0 5px; font-size: 15px; line-height: 1.45; }
.ii-cookie-copy a { color: #b61118; text-decoration: underline; }
.ii-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ii-cookie-actions button {
  min-height: 44px; padding: 10px 16px; border: 1px solid #ccd0d2;
  border-radius: 7px; background: #fff; color: #343a3e; font-weight: 700; cursor: pointer;
}
.ii-cookie-actions button.primary { border-color: #ed1c24; background: #ed1c24; color: #fff; }
.ii-cookie-settings {
  position: fixed; left: 10px; bottom: 8px; z-index: 9000; padding: 5px 9px;
  border: 1px solid #c9cdd0; border-radius: 5px; background: rgba(255,255,255,.94);
  color: #4b5155; font-size: 12px; cursor: pointer;
}

@media (max-width: 992px) {
  #scrollheader .topo .d-flex { flex-wrap: wrap; row-gap: 6px; }
  #scrollheader > .wrapper > .d-flex { flex-wrap: wrap; justify-content: center; }
  #scrollheader .logo img { display: block; max-width: 210px; }
  #menu > ul { display: flex; flex-wrap: wrap; justify-content: center; }
  #menu .sub-menu, #menu .sub-menu-info { max-width: calc(100vw - 32px); }
  .slick-banner .slick-slide { min-height: 330px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.55; }
  body.ii-menu-open { overflow: hidden; }
  body.ii-menu-open::before {
    content: ""; position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.48);
  }
  #scrollheader, #header-block { display: none !important; }
  .ii-mobile-header {
    position: relative; z-index: 10000; display: block; width: 100%; background: #fff;
  }
  .ii-mobile-main {
    min-height: 122px; padding: 20px 18px; display: flex; align-items: center;
    justify-content: space-between; gap: 20px; background: #fff;
  }
  .ii-mobile-logo { display: block; width: min(205px, 58vw); }
  .ii-mobile-logo img { display: block; width: 100%; height: auto; }
  .ii-menu-toggle {
    width: 54px; height: 54px; flex: 0 0 54px; border: 1px solid #c8c8c8;
    border-radius: 10px; background: #fff; color: #444; font-size: 28px; cursor: pointer;
  }
  .ii-mobile-contacts {
    min-height: 88px; padding: 12px; display: flex; align-items: center;
    justify-content: center; gap: 18px; background: #ed1c24;
  }
  .ii-mobile-contacts a {
    width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff; color: #ed1c24; font-size: 23px;
    box-shadow: 0 2px 5px rgba(0,0,0,.12);
  }
  .ii-mobile-header.is-open .ii-mobile-contacts { display: none; }
  .ii-mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10001;
    max-height: calc(100vh - 122px); overflow-y: auto; background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }
  .ii-mobile-header.is-open .ii-mobile-menu { display: block; }
  .ii-mobile-menu > a, .ii-products-toggle {
    width: 100%; min-height: 58px; padding: 16px 20px; display: flex;
    align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid #ddd;
    background: #fff; color: #555; font: inherit; font-size: 18px; text-align: left;
  }
  .ii-mobile-menu > a:first-child { margin: 0; background: #ed1c24; color: #fff; }
  .ii-products-toggle i { transition: transform .2s ease; }
  .ii-mobile-header.products-open .ii-products-toggle i { transform: rotate(180deg); }
  .ii-products-submenu { display: none; padding: 4px 0 12px; border-bottom: 1px solid #ddd; }
  .ii-mobile-header.products-open .ii-products-submenu { display: block; }
  .ii-products-submenu a { display: block; padding: 11px 38px; color: #666; font-size: 16px; }
  /* O site original não exibia o carrossel no celular. O !important evita
     que o Slick volte a mostrá-lo por meio de estilo inserido pelo script. */
  .slick-banner.hide-mobile { display: none !important; }
  .wrapper { padding-left: 16px; padding-right: 16px; }
  #scrollheader .topo { padding: 8px 0; }
  #scrollheader .topo .d-flex { align-items: center; flex-direction: column; }
  #scrollheader .topo a { font-size: 14px; line-height: 1.35; }
  #scrollheader > .wrapper > .d-flex,
  #scrollheader > .wrapper > .d-flex > .d-flex { width: 100%; flex-direction: column; }
  #scrollheader .logo { text-align: center; }
  #scrollheader .logo img { margin: 0 auto; max-width: 180px; }
  #menu { width: 100%; }
  #menu > ul { align-items: stretch; flex-direction: column; width: 100%; }
  #menu > ul > li, #menu > ul > li > a { display: block; width: 100%; }
  #menu > ul > li > a { min-height: 44px; padding: 11px 14px; text-align: center; }
  #menu .sub-menu, #menu .sub-menu-info { position: static; width: 100%; max-height: 260px; overflow-y: auto; }
  [class*="col-"] { flex: 0 0 100%; max-width: 100%; width: 100%; }
  .row { row-gap: 24px; }
  .slick-banner .slick-slide { height: auto; min-height: 270px; }
  .slick-banner h1, .slick-banner h2, .slick-banner__title { font-size: clamp(26px, 8vw, 38px); line-height: 1.12; }
  .bread { padding-top: 34px; padding-bottom: 34px; }
  .bread h1 { font-size: clamp(30px, 9vw, 42px); }
  .contato__form input, .contato__form select, .contato__form textarea,
  .contato__form button { width: 100%; min-height: 44px; }
  .wppButton { right: 14px !important; bottom: 76px !important; }
  #ii-back-to-top { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .ii-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; align-items: stretch; flex-direction: column; gap: 14px; }
  .ii-cookie-copy strong { font-size: 18px; }
  .ii-cookie-copy p { font-size: 14px; }
  .ii-cookie-actions { flex-direction: column-reverse; }
  .ii-cookie-actions button { width: 100%; }
  .ii-cookie-settings { left: 6px; bottom: 5px; }
}

@media (max-width: 480px) {
  .wrapper { padding-left: 14px; padding-right: 14px; }
  #scrollheader .topo a { font-size: 13px; }
  #scrollheader .logo img { max-width: 160px; }
  .slick-banner .slick-slide { min-height: 230px; }
  .wppButton { transform: scale(.88); transform-origin: right bottom; }
}
