/* ========================================
   Footer
   ======================================== */

/* Separatore pre-footer (homepage) */
.footer-separator {
  position: relative;
  height: 108px;
  background-color: var(--color-bg-dark);
}

.footer-separator::before,
.footer-separator::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-image: repeating-linear-gradient(to bottom, var(--color-grid-line-dark) 0, var(--color-grid-line-dark) 6px, transparent 6px, transparent 12px);
  pointer-events: none;
  z-index: 1;
}

.footer-separator::before {
  left: max(20px, calc((100vw - var(--container-max)) / 2));
}

.footer-separator::after {
  right: max(20px, calc((100vw - var(--container-max)) / 2));
}

.site-footer {
  background-color: var(--color-bg-dark);
  margin-top: 0;
  padding-top: 95px;
  padding-bottom: 0;
  border-top: 1px solid var(--color-grid-line-dark);
}



.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}

/* Logo */
.footer-logo {
  flex-shrink: 0;
}

.footer-logo .logo-svg {
  height: 30px;
  width: auto;
  color: var(--color-white);
}

/* Columns */
.footer-columns {
  display: flex;
  gap: 100px;
}

.footer-col-title {
  font-family: var(--font-primary);
  font-weight: var(--fw-medium);
  font-size: var(--fs-subtitle);
  line-height: var(--lh-body);
  color: var(--color-gray-text);
  margin-bottom: 6px;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: var(--fs-nav);
  line-height: var(--lh-body);
  color: var(--color-white);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 52px;
  padding-bottom: 52px;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.footer-copyright {
  font-family: var(--font-primary);
  font-weight: var(--fw-light);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--color-gray-text);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-company {
  font-family: var(--font-primary);
  font-weight: var(--fw-light);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--color-gray-text);
}

.footer-legal-links {
  display: flex;
  gap: 40px;
}

.footer-legal-links a {
  font-family: var(--font-primary);
  font-weight: var(--fw-light);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--color-gray-text);
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--color-white);
}
.footer-crosses { display: none; }
.site-footer.section--grid-dark:after{
  display: none;
}
/* ----------------------------------------
   Responsive
   ---------------------------------------- */

@media (max-width: 1024px) {
  .site-footer {
    padding-top: 80px;
  }

  .footer-content {
    flex-direction: column;
    gap: 50px;
  }

  .footer-columns {
    gap: 60px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .site-footer.section--grid-dark:after{
    display: none;
    background-image:
      repeating-linear-gradient(to bottom, var(--color-grid-line-dark) 0px, var(--color-grid-line-dark) 10px, transparent 10px, transparent 20px),
      repeating-linear-gradient(to bottom, var(--color-grid-line-dark) 0px, var(--color-grid-line-dark) 10px, transparent 10px, transparent 20px);
    background-size: 1px 20px, 1px 20px;
    background-position: 0px 0, calc(100% - 0px) 0;
    background-repeat: repeat-y, repeat-y;
  }
  .footer-crosses {
    display: block;
    position: relative;
    height: 0;
    z-index: 3;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
  }
  
  .footer-crosses .grid-cross:nth-child(1) { left: 0; }
  .footer-crosses .grid-cross:nth-child(2) { left: 100%; }
  
  .footer-crosses .grid-cross.grid-cross--dark {
    display: block;
  }

  .footer-crosses .grid-cross--dark::before,
  .footer-crosses .grid-cross--dark::after {
    background-color: var(--color-grid-line-dark);
  }

  .footer-crosses .grid-cross:nth-child(1) { left: 20px; }
  .footer-crosses .grid-cross:nth-child(2) { left: calc(100% - 20px); }

  .site-footer {
    padding-top: 60px;
  }

  .footer-columns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-col {
    flex: 1 1 calc(50% - 15px);
  }

  .footer-col:nth-child(2) {
    order: 3;
    flex: 0 0 100%;
  }

  .footer-col:nth-child(3) {
    order: 2;
  }

  .footer-legal-links {
    gap: 20px;
  }

  .footer-copyright,
  .footer-company,
  .footer-legal-links a {
    font-size: 14px;
  }
}
