/* =====================================================
   FOOTER BORELLO - STANDALONE
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* =====================================================
   BASE
   ===================================================== */

.borello-footer,
.borello-footer * {
  box-sizing: border-box;
}

.borello-footer {
  width: 100%;
  background: #63665e;
  color: #f1efd9;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.borello-footer a {
  color: #f8f7ec;
  text-decoration: none;
}

.borello-footer a:hover,
.borello-footer a:focus {
  color: #f8f7ec;
  text-decoration-line: underline;
  text-decoration-color: #f8f7ec;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* =====================================================
   CONTAINER
   ===================================================== */

.borello-footer__inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 40px 48px;

  display: grid;
  grid-template-columns: 1.25fr 2.6fr 1.55fr;
  column-gap: 72px;
  align-items: start;
}

/* =====================================================
   BRAND / LOGO
   ===================================================== */

.borello-footer__brand {
  min-width: 0;
}

.borello-footer__logo-link {
  display: inline-block;
  line-height: 0;
}

.borello-footer__logo-link:hover,
.borello-footer__logo-link:focus {
  text-decoration: none;
}

.borello-footer__logo {
  display: block;
  width: 105px;
  height: auto;
  margin-bottom: 20px;
}

.borello-footer__copyright {
  margin: 0;
  color: #f1efd9b3;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
}

/* =====================================================
   LINK AREA
   ===================================================== */

.borello-footer__links-area {
  display: grid;
  grid-template-columns: 1fr 1.18fr 0.9fr;
  column-gap: 72px;
  align-items: start;
}

.borello-footer__col {
  min-width: 0;
}

.borello-footer__title {
  margin: 0 0 18px;
  color: #f1efd9;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.borello-footer__title--spaced {
  margin-top: 32px;
}

.borello-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.borello-footer__list li {
  margin: 0 0 11px;
  padding: 0;
}

.borello-footer__list a {
  display: inline-block;
  color: #f8f7ec;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
}

.borello-footer__mobile-link-utili {
  display: none;
}

/* =====================================================
   NOTE LEGALI
   ===================================================== */

.borello-footer__legal {
  min-width: 0;
}

.borello-footer__divider {
  display: none;
}

.borello-footer__legal-text {
  margin: 0;
  color: #f1efd9b3;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
}

.borello-footer__legal-text a {
  color: #f8f7ec;
  font-weight: 500;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1024px) {
  .borello-footer__inner {
    grid-template-columns: 1fr;
    row-gap: 36px;
    padding: 48px 32px;
    text-align: center;
  }

  .borello-footer__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .borello-footer__links-area {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 36px;
    text-align: center;
  }

  .borello-footer__legal {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
  }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {
  .borello-footer__inner {
    max-width: 100%;
    padding: 42px 28px 34px;
    display: block;
    text-align: center;
  }

  .borello-footer__brand {
    margin-bottom: 34px;
  }

  .borello-footer__logo {
    width: 112px;
    margin: 0 auto 20px;
  }

  .borello-footer__copyright {
    font-size: 12px;
    line-height: 1.5;
  }

  .borello-footer__links-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "azienda whistle"
      "azienda social";
    column-gap: 26px;
    align-items: start;

    width: 100%;
    max-width: 360px;
    margin: 0 auto 32px;
    text-align: center;
  }

  .borello-footer__col--azienda {
    grid-area: azienda;
  }

  .borello-footer__col--link-utili {
    grid-area: whistle;
  }

  .borello-footer__col--social {
    grid-area: social;
    margin-top: 30px;
  }

  .borello-footer__desktop-link-utili {
    display: none;
  }

  .borello-footer__mobile-link-utili {
    display: block;
    margin-top: 30px;
  }

  .borello-footer__title {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  .borello-footer__title--spaced {
    margin-top: 0;
  }

  .borello-footer__list li {
    margin-bottom: 12px;
  }

  .borello-footer__list a {
    font-size: 12px;
    line-height: 1.25;
  }

  .borello-footer__legal {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
  }

  .borello-footer__divider {
    display: block;
    width: 100%;
    height: 1px;
    border: 0;
    margin: 0 0 24px;
    background: rgba(241, 239, 217, 0.18);
  }

  .borello-footer__legal-text {
    font-size: 12px;
    line-height: 1.55;
  }
}

/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 374px) {
  .borello-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .borello-footer__links-area {
    column-gap: 18px;
  }

  .borello-footer__title {
    letter-spacing: 0.18em;
  }
}