/* Shared footer foundations; the desktop columns retain their Bootstrap layout. */
.fixit-footer {
  width: 100%;
  margin: 0;
  padding: 2rem 0 .81rem;
  background: #0d1b4a;
  color: #fff;
}
.fixit-footer__contact a { color: inherit; text-decoration: none; }
.fixit-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 991.98px) {
  .mi-navbar { padding-block: 10px; background: #fff; }
  .mi-navbar > .container { padding-inline: 16px; }
  .mi-navbar .navbar-brand { margin: 0; padding: 0; }
  .mi-navbar .logo-container { width: auto; }
  .mi-navbar .logo-container img { height: 36px; }
  .mi-navbar .d-lg-none .dropdown > button { min-height: 44px; }
  .mi-navbar .navbar-toggler {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #0d1b4a;
    background: transparent;
    transition: color .2s ease, background-color .2s ease;
  }
  .mi-navbar .navbar-toggler:focus { box-shadow: none; }
  .mi-navbar .navbar-toggler:focus-visible { outline: 2px solid #e1251b; outline-offset: 2px; }
  .mi-navbar .navbar-toggler:hover,
  .mi-navbar .navbar-toggler[aria-expanded="true"] { color: #e1251b; background: #fff0ef; }
  .fixit-menu-icon { position: relative; display: block; width: 24px; height: 24px; }
  .fixit-menu-icon::before,
  .fixit-menu-icon::after {
    content: '';
    position: absolute;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: width .2s ease, transform .2s ease;
  }
  .fixit-menu-icon::before { top: 7px; width: 24px; }
  .fixit-menu-icon::after { top: 15px; width: 18px; }
  .navbar-toggler[aria-expanded="true"] .fixit-menu-icon::before { transform: translateY(4px) rotate(45deg); }
  .navbar-toggler[aria-expanded="true"] .fixit-menu-icon::after { width: 24px; transform: translateY(-4px) rotate(-45deg); }
  #navbarMenu { flex-basis: 100%; padding: 0; }
  #navbarMenu .navbar-nav {
    gap: 2px;
    margin: 10px 0 0 !important;
    padding: 10px 0 0;
    border-top: 1px solid #edf0f4;
  }
  #navbarMenu .nav-item { margin: 0; }
  #navbarMenu .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #263451;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
  }
  #navbarMenu .nav-link[aria-current="page"] {
    color: #c7241d;
    background: #fff0ef;
    box-shadow: inset 3px 0 #e1251b;
  }
  #navbarMenu .nav-link:hover { background: #f3f5f8; }
  #navbarMenu .nav-link:focus-visible { outline: 2px solid #0d1b4a; outline-offset: -2px; }
  .search-header #wizSearch { padding-inline: 12px !important; flex-wrap: nowrap !important; }
  .search-header #wizSearch > .position-relative { min-width: 0; }
  .search-header input[type="search"] { border-radius: 6px 0 0 6px; }
  .search-header .btn-outline-success { padding-inline: 18px; border-radius: 0 6px 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mi-navbar .navbar-toggler,
  .fixit-menu-icon::before,
  .fixit-menu-icon::after { transition: none; }
}

@media (max-width: 788px) {
  .fixit-hero .carousel-item { min-height: 460px; }
  .fixit-hero__copy,
  .fixit-hero__slide--original .fixit-hero__copy { top: 5%; left: 7%; width: 86%; }
  .fixit-hero__eyebrow,
  .fixit-hero__slide--original .fixit-hero__eyebrow { font-size: clamp(11px, 2.6vw, 15px); letter-spacing: .08em; }
  .fixit-hero__title,
  .fixit-hero__slide--original .fixit-hero__title { font-size: clamp(28px, 7.5vw, 50px); line-height: 1.12; }
  .fixit-hero__description,
  .fixit-hero__slide--original .fixit-hero__description { font-size: clamp(14px, 3.4vw, 21px); line-height: 1.5; }
  .fixit-hero__cta { min-height: 44px; font-size: clamp(13px, 3.2vw, 18px); border-radius: 6px; }

  /* p1.jpg is 694 × 500. Clip its upper 88px brand strip using the original asset. */
  .fixit-hero__slide--original .fixit-hero__picture {
    inset: auto 0 0;
    height: auto;
    aspect-ratio: 694 / 412;
    overflow: hidden;
  }
  .fixit-hero__slide--original .fixit-hero__picture img {
    height: auto;
    transform: translateY(-17.6%);
  }
  .fixit-hero__slide--original .fixit-hero__picture::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #172349, rgba(23,35,73,.4) 12%, rgba(23,35,73,0) 30%);
    pointer-events: none;
  }
  .fixit-hero__slide--original::after { display: none; }
  .fixit-hero .carousel-indicators { bottom: 2px; }
  .fixit-hero .carousel-indicators button { width: 32px; height: 44px; }
  .fixit-hero .carousel-indicators button::after { top: 18px; left: 12px; }

  body.fixit-home { background: #f7f8fa; }
  .fixit-home #catalogo { padding-block: 32px !important; }
  .fixit-home #catalogo .section-title { font-size: clamp(21px, 5.3vw, 28px); line-height: 1.3; }
  .fixit-home #catalogo > .row { --bs-gutter-x: 14px; --bs-gutter-y: 14px; }
  .fixit-home #catalogo .card {
    overflow: hidden;
    border: 1px solid #e7ebf0 !important;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(13,27,74,.05) !important;
  }
  .fixit-home #catalogo .fixit-lazy-image-loader { aspect-ratio: 3 / 2; background: #eef2f5; }
  .fixit-home #catalogo .card-img-top { width: 100%; height: 100%; object-fit: cover; }
  .fixit-home #catalogo .card-body { display: grid; place-items: center; min-height: 64px; padding: 12px 8px; }
  .fixit-home #catalogo h3 { color: #0d1b4a; font-size: 15px; font-weight: 600; line-height: 1.3; }
  .fixit-home #catalogo a:focus-visible { display: block; outline: 3px solid #0d1b4a; outline-offset: 3px; border-radius: 10px; }
}

/* The simplified two-column footer is exclusive to phones. */
@media (max-width: 767.98px) {
  .fixit-footer { padding: 22px 0 14px; }
  .fixit-footer > .container { padding-inline: clamp(24px, 7.2vw, 32px); }
  .fixit-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 18px 16px;
    margin: 0;
  }
  .fixit-footer__grid > div { width: auto; padding: 0; margin: 0 !important; }
  .fixit-footer__brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .fixit-footer__brand img { height: 28px !important; flex-shrink: 0; }
  .fixit-footer__brand p { margin: 0 !important; font-size: 12px; line-height: 1.35; text-align: left; color: #d6dcea; }
  .fixit-footer__links { display: none; }
  .fixit-footer__address { grid-column: 1; }
  .fixit-footer__contact { grid-column: 2; justify-self: end; text-align: right !important; }
  .fixit-footer__grid h5 { margin: 0 0 8px !important; font-size: 14px; font-weight: 600; line-height: 1.3; }
  .fixit-footer__address p { margin: 0 !important; font-size: 13px; line-height: 1.55; color: #d6dcea; }
  .fixit-footer__address p:first-of-type { margin-bottom: 6px !important; font-size: 12px; line-height: 1.5; color: #fff; }
  .fixit-footer__line { display: block; }
  .fixit-footer__details p { margin: 0 !important; }
  .fixit-footer__details a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; line-height: 1.55; white-space: nowrap; }
  .fixit-footer__socials { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; margin-right: -6px; }
  .fixit-footer__socials a { display: grid; place-items: center; width: 32px; min-height: 36px; margin: 0 !important; font-size: 19px !important; }
  .fixit-footer__copyright { margin: 18px clamp(24px, 7.2vw, 32px) 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
  .fixit-footer__copyright small { display: block; font-size: 11px; line-height: 1.5; color: #c9d0e0; }
}
