/* Site footer — copyright, social (ex Sitely ps112) */

.age-site-footer {
  width: 100%;
  background: var(--age-sand);
  color: var(--age-green);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
  /* Estende il fondo sabbia nella safe area (iOS) invece del bianco del sistema */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.age-site-footer *,
.age-site-footer *::before,
.age-site-footer *::after {
  box-sizing: border-box;
}

.age-site-footer__inner {
  max-width: var(--age-content-max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.35rem);
  text-align: center;
  overflow-x: visible;
}

.age-site-footer__copy {
  margin: 0;
  font-family: var(--age-font-sans);
  font-size: clamp(0.88rem, 0.45vw + 0.8rem, 1rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--age-green);
  white-space: normal;
  max-width: 100%;
  min-width: 0;
  text-wrap: balance;
  order: 2;
}

.age-site-footer__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  order: 1;
}

@media (min-width: 720px) {
  .age-site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .age-site-footer__copy {
    white-space: nowrap;
    flex-shrink: 0;
    text-wrap: unset;
    order: unset;
  }

  .age-site-footer__social {
    justify-content: flex-end;
    order: unset;
  }
}

.age-site-footer__social-title {
  margin: 0;
  font-family: var(--age-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 99, 67, 0.75);
}

.age-site-footer__icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.age-site-footer__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--age-green);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.age-site-footer__icons a:hover {
  background: #fff;
  color: var(--age-green);
  transform: translateY(-1px);
}

.age-site-footer__icons a:focus-visible {
  outline: 2px solid var(--age-green);
  outline-offset: 3px;
}

.age-site-footer__icons svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.age-site-footer__icons a[href*="facebook"] svg {
  width: 1.1rem;
  height: 1.1rem;
}
