/* Luccicar Detailing - custom brand overrides */

.luccicar-logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.luccicar-logo-img {
  height: 50px;
  width: auto;
  display: block;
}

header.smaller .luccicar-logo-img {
  height: 42px;
}

.footer-logo-img {
  height: 58px;
  width: auto;
  display: block;
}

@media (max-width: 992px) {
  .luccicar-logo-img {
    height: 38px;
  }
}

/* ---------- Page loader (logo animato) ---------- */
#lc-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 1;
  pointer-events: none; /* non blocca mai i click */
  transition: opacity 0.5s ease;
}

#lc-loader.lc-loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* logo: entrata animata (sfocatura + scala + risalita + dissolvenza) */
.lc-loader-logo {
  width: 320px;
  max-width: 70vw;
  aspect-ratio: 864 / 222;
  background: #f4f4f4;
  -webkit-mask: url('/images/logo-luccicar.png') center / contain no-repeat;
  mask: url('/images/logo-luccicar.png') center / contain no-repeat;
  opacity: 0;
  transform: translateY(26px) scale(0.8);
  filter: blur(12px);
  animation: lc-logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lc-logo-in {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.8);
    filter: blur(12px);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* barra di caricamento indeterminata */
.lc-loader-bar {
  position: relative;
  width: 190px;
  max-width: 48vw;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
  opacity: 0;
  animation: lc-bar-fade 0.45s ease 0.45s forwards;
}

.lc-loader-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: 3px;
  background: var(--primary-color, #E9021E);
  animation: lc-bar-slide 1.05s ease-in-out infinite;
}

@keyframes lc-bar-fade {
  to {
    opacity: 1;
  }
}

@keyframes lc-bar-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(360%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lc-loader-logo {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .lc-loader-bar {
    animation: none;
    opacity: 1;
  }
  .lc-loader-bar::before {
    animation: none;
  }
}

/* uniform horizontal image boxes (service cards + gallery preview) */
.lc-img-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* FAQ accordion */
.lc-faq {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.lc-faq summary {
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  list-style: none;
  position: relative;
}

.lc-faq summary::-webkit-details-marker {
  display: none;
}

.lc-faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--primary-color, #E9021E);
}

.lc-faq[open] summary::after {
  content: '\2013';
}

.lc-faq-answer {
  padding: 0 22px 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

/* ---------- Hero slider ---------- */
.hero-swiper {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  background-size: cover;
  background-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.15) 100%),
    linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 45%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-slide-subtitle {
  display: inline-block;
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-color, #E9021E);
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 22px;
}

.hero-slide-content h1,
.hero-slide-content h2 {
  font-size: 64px;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}

.hero-slide-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 30px;
  max-width: 540px;
}

/* pagination bullets */
.hero-swiper .swiper-pagination {
  position: absolute;
  bottom: 36px;
  left: 0;
  width: 100%;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-swiper .swiper-pagination-bullet {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  margin: 0 !important;
  transition: background 0.3s ease, width 0.3s ease;
  cursor: pointer;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--primary-color, #E9021E);
  width: 56px;
}

/* navigation arrows */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #fff;
  transition: background 0.3s ease, border-color 0.3s ease;
  top: auto;
  bottom: 32px;
  margin-top: 0;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: var(--primary-color, #E9021E);
  border-color: var(--primary-color, #E9021E);
}

.hero-swiper .swiper-button-next { right: 32px; left: auto; }
.hero-swiper .swiper-button-prev { right: 96px; left: auto; }

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 992px) {
  .hero-swiper {
    height: auto;
    min-height: 0;
  }
  .hero-slide {
    padding: 130px 0 90px;
  }
  .hero-slide-content h1,
  .hero-slide-content h2 {
    font-size: 38px;
  }
  .hero-slide-content p {
    font-size: 16px;
  }
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    display: none;
  }
  .hero-swiper .swiper-pagination {
    bottom: 24px;
  }
}
