/* La Ceramica logo sizing */
.main-header__logo a {
  display: inline-flex;
  align-items: center;
}

.main-header__logo img {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1399px) {
  .main-header__logo img {
    width: 260px;
  }
}

@media (max-width: 1199px) {
  .main-header__logo img {
    width: 220px;
  }
}

@media (max-width: 575px) {
  .main-header__logo img {
    width: 180px;
  }
}

.footer-widget__logo img {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
}

.mobile-nav__content .logo-box img,
.sidebar-one__logo img {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 425px) {
  .mobile-nav__content .logo-box img,
  .sidebar-one__logo img,
  .footer-widget__logo img {
    width: 200px;
  }
}

/* Equal-height product / service cards */
.services-one__carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.services-one__carousel .owl-item {
  display: flex;
  height: auto;
}

.services-one__carousel .item {
  display: flex;
  width: 100%;
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.service-card__image img {
  width: 100%;
  height: 159px;
  object-fit: cover;
  display: block;
}

.service-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card__title {
  min-height: 1.2em;
}

.service-card__text {
  flex-grow: 1;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
  line-height: 1.6;
}

.service-card__btn {
  margin-top: auto;
  align-self: flex-start;
}

.services-page .row > [class*="col-"] {
  display: flex;
}

.service-card-two {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.service-card-two__image img {
  width: 100%;
  aspect-ratio: 310 / 239;
  object-fit: cover;
  display: block;
}

.service-card-two__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-two__text {
  flex-grow: 1;
  margin-bottom: 15px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
  line-height: 1.6;
}

.service-card-two__bottom {
  margin-top: auto;
}

/* Partner brand logos carousel */
.client-carousel__one__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}

.client-carousel__one__item img {
  width: auto !important;
  max-width: 160px;
  max-height: 48px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: none;
}

.client-carousel__one__item:hover img {
  opacity: 1;
}

/* Testimonials without round profile photos */
.testimonials-card__person__image {
  display: none !important;
}

.testimonials-one__carousel .owl-dots .owl-dot span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(1) span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(2) span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(3) span,
.testimonials-one__carousel .owl-dots .owl-dot.active span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(1).active span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(2).active span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(3).active span {
  background-image: none !important;
  background-color: var(--floens-base, #C7844F) !important;
  background-size: auto !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 0.35;
}

.testimonials-one__carousel .owl-dots .owl-dot.active span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(1).active span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(2).active span,
.testimonials-one__carousel .owl-dots .owl-dot:nth-child(3).active span {
  opacity: 1;
  width: 28px !important;
  height: 12px !important;
  border-radius: 10px !important;
}

.testimonials-one__carousel .owl-dots .owl-dot span::after {
  display: none !important;
}

/* Center footer copyright */
.main-footer__bottom__copyright,
.main-footer__copyright {
  text-align: center;
  margin: 0;
}

.footer-bottom__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-bottom__legal--center {
  justify-content: center;
  width: 100%;
  text-align: center;
}

.footer-bottom__channel {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer-bottom__channel-img {
  display: block;
  height: 26px;
  width: auto;
}

/* Desktop WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1.85rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(43, 30, 22, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  color: #fff;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 6px 14px rgba(43, 30, 22, 0.2);
}

/* Hide testimonial / leftover video play buttons */
.testimonials-card__video,
.testimonials-card .video-button,
.testimonials-card .video-popup {
  display: none !important;
}

.scroll-to-top,
.scroll-to-top.show {
  right: -4px !important;
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 110px) !important;
  z-index: 998 !important;
}

.mobile-contact-bar {
  display: none;
}

@media only screen and (max-width: 767px) {
  .whatsapp-float {
    display: none;
  }

  .mobile-contact-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(43, 30, 22, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(43, 30, 22, 0.16);
  }

  .mobile-contact-btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fff;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-contact-btn:active {
    transform: scale(0.98);
  }

  .mobile-contact-btn--call {
    background: var(--floens-base, #C7844F);
    box-shadow: 0 4px 12px rgba(199, 132, 79, 0.35);
    color: #fff !important;
  }

  .mobile-contact-btn--whatsapp {
    background: #1fad52;
    box-shadow: 0 4px 12px rgba(31, 173, 82, 0.32);
    color: #fff !important;
  }

  .mobile-contact-btn i,
  .mobile-contact-btn span {
    font-size: 1.1rem;
    line-height: 1;
    color: #fff !important;
  }

  .mobile-contact-btn span {
    font-size: 14px;
  }

  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .scroll-to-top,
  .scroll-to-top.show {
    bottom: calc(152px + env(safe-area-inset-bottom)) !important;
  }
}
