/*
 * Footer (Figma HP desktop / mobile).
 */

.i2k-footer {
  --i2k-footer-text: #E2E2E2;
  color: var(--i2k-footer-text);
  font-size: 15px;
  line-height: 1.4;
}
.i2k-footer p {
  margin: 0;
}
.i2k-footer a {
  color: inherit;
}
.i2k-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.i2k-footer__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
.i2k-footer__strong {
  font-weight: 700;
  color: #FFFFFF;
}

/* ---------- Newsletter band ---------- */
.i2k-footer__newsletter {
  padding: 50px 0;
  color: #FFFFFF;
  background: var(--color-primary);
}
.i2k-footer__newsletter .i2k-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.i2k-footer__newsletter-title {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #FFFFFF;
}
.i2k-footer__newsletter-text {
  font-size: 15px;
}
.i2k-footer__newsletter-form {
  flex: 0 1 588px;
}

/* ---------- Main ---------- */
.i2k-footer__main {
  background: #121212;
}
.i2k-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.47fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.i2k-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 330px;
}
.i2k-footer__brand > p:nth-child(2) {
  margin-bottom: 8px;
}
.i2k-footer__logo {
  margin-bottom: 12px !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.i2k-footer__col-title {
  display: block;
  width: 100%;
  margin: 8px 0 26px;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: #FFFFFF;
  background: none;
  border: 0;
  cursor: default;
}
.i2k-footer__links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.i2k-footer__links li {
  margin: 0;
}
/* "Bagno · Cucina · Arredo casa" share one line, as in the mockup. */
.i2k-footer__links .i2k-inline {
  display: inline;
}
.i2k-footer__links .i2k-inline + .i2k-inline::before {
  content: "\00B7";
  margin: 0 6px;
}
.i2k-footer__links:has(.i2k-inline) {
  display: block;
}
.i2k-footer__links:has(.i2k-inline) li:not(.i2k-inline) {
  margin-bottom: 13px;
}

/* ---------- Payments / carriers ---------- */
.i2k-footer__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid #2E2E2E;
}
.i2k-footer__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.i2k-footer__chips .i2k-footer__strong {
  margin-right: 2px;
  font-size: 14px;
  letter-spacing: .04em;
}
.i2k-footer__chip {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--i2k-footer-text);
  border: 1px solid #4A4A4A;
  border-radius: 2px;
}

/* ---------- Bottom bar ---------- */
.i2k-footer__bottom p {
  font-size: inherit;
}
.i2k-footer__bottom {
  padding: 18px 0;
  font-size: 13px;
  color: #A8A8A8;
  background: #000000;
}
.i2k-footer__bottom .i2k-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.i2k-footer__legal {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.i2k-footer__legal li {
  margin: 0;
}
.i2k-footer__legal li + li::before {
  content: "\00B7";
  margin: 0 8px;
}

@media (max-width: 1024px) {
  .i2k-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .i2k-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .i2k-footer__inner {
    padding: 0 16px;
  }
  .i2k-footer__newsletter {
    padding: 40px 0 32px;
  }
  .i2k-footer__newsletter .i2k-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .i2k-footer__newsletter-form {
    flex-basis: auto;
  }
  .i2k-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .i2k-footer__brand {
    margin-bottom: 24px;
  }
  .i2k-footer__col {
    border: 1px solid #3A3A3A;
    border-radius: 8px;
  }
  .i2k-footer__col-title {
    position: relative;
    margin: 0;
    padding: 16px 44px 16px 16px;
    font-size: 14px;
    letter-spacing: 0;
    cursor: pointer;
  }
  .i2k-footer__col-title::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
  }
  .i2k-footer__col.is-open .i2k-footer__col-title::after {
    transform: translateY(-30%) rotate(-135deg);
  }
  .i2k-footer__col .i2k-footer__links {
    display: none;
    padding: 0 16px 18px;
  }
  .i2k-footer__col.is-open .i2k-footer__links {
    display: flex;
  }
  .i2k-footer__col.is-open .i2k-footer__links:has(.i2k-inline) {
    display: block;
  }
  .i2k-footer__trust {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .i2k-footer__chips .i2k-footer__strong {
    flex-basis: 100%;
    font-size: 15px;
  }
  .i2k-footer__bottom .i2k-footer__inner {
    flex-direction: column;
  }
}
