/* ----------------------------------------------------------------
   Fantini-style Footer for Rotor Italia
   Adapted from fantinisilvano.com footer design
   Dark background with decorative SVG lines and crosses
----------------------------------------------------------------- */

/* ---- Footer base ---- */
#footer {
  position: relative !important;
  background-color: #1E1E1E !important;
  padding: 2.5rem 1rem !important;
  padding-bottom: 4rem !important;
  border-top: none !important;
  font-family: "Epilogue", sans-serif;
  overflow: hidden;
}

#footer .highlight { background-color: transparent !important; }

@media (min-width: 992px) {
  #footer {
    padding: clamp(20px, 5rem, 80px) !important;
  }
}

#footer a {
  color: #fff;
  text-decoration: none !important;
  transition: color 0.25s ease, text-decoration 0.25s ease;
}

#footer a:hover {
  text-decoration: underline !important;
  color: #fff !important;
}

/* ---- Decorative elements: crosses + lines ---- */
.decor-ct.decor-clc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  pointer-events: none;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.decor-ct.decor-clc.bottom {
  margin-bottom: 0;
  margin-top: 2rem;
}

.cross-decor {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.line-decor {
  flex: 1;
  height: 1px;
  background-color: #ACACAC;
}

.vertical-line-decor {
  width: 1px;
  height: 100%;
  background-color: #ACACAC;
}

/* Vertical lines container */
.decor-ct.decor-vlvl {
  display: none;
  pointer-events: none;
}

@media (min-width: 992px) {
  .decor-ct.decor-vlvl {
    display: flex;
    position: absolute;
    top: -40px;
    bottom: 160px;
    left: clamp(20px, 5.56vw - 12px, 68px);
    right: clamp(20px, 5.56vw - 12px, 68px);
    justify-content: space-between;
    overflow: hidden;
  }
}

/* Cross offsets on desktop */
@media (min-width: 992px) {
  .decor-ct.decor-clc {
    padding: 0;
  }

  .decor-ct.decor-clc .sx {
    transform: translateX(-1.5rem);
  }

  .decor-ct.decor-clc .dx {
    transform: translateX(1.5rem);
  }

  .decor-ct.decor-clc.top {
    display: none;
  }
}

/* ---- Footer main layout ---- */
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .footer-main {
    flex-direction: row;
    max-width: 1280px;
    margin: 0 auto;
    width: 90%;
  }
}

/* Footer logo column */
.footer-main .footer-logo-ct {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .footer-main .footer-logo-ct {
    display: block;
    flex-shrink: 0;
  }
}

.footer-main .footer-logo-ct img {
  max-width: 140px;
  height: auto;
}

/* Footer columns */
.footer-main .col-ct {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-main .col-ct .mod-ct {
  width: 100%;
}

@media (min-width: 992px) {
  .footer-main .col-ct .mod-ct {
    width: auto;
    min-width: 200px;
  }
}

.footer-main .col-ct p,
.footer-main .col-ct a,
.footer-main .col-ct span {
  color: #fff;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-main .col-ct .highlight {
  font-size: 1.25rem;
  color: #D23731 !important;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---- Footer last row (legal) ---- */
.footer-last {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
}

.footer-last p,
.footer-last a {
  color: #767676 !important;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0;
}

.footer-last a:hover {
  color: #ACACAC !important;
}

/* ---- Fantini partner logo in footer ---- */
.footer-main .partner-logo img {
  max-width: 80px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.footer-main .partner-logo img:hover {
  opacity: 1;
}
