/* Footer Luca's Informatica: compatto, leggibile, coerente con l'identità blu. */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 49px 0 22px;
  color: #e9f2ff;
  background: linear-gradient(117deg, #081b43 0%, #102d63 64%, #103a7e 100%);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #20cfe6 0%, #7feced 48%, transparent 84%);
  z-index: -1;
}

.footer::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -270px;
  top: -330px;
  border: 1px solid rgba(143, 219, 255, .18);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(205px, 1fr) minmax(130px, .6fr);
  align-items: start;
  column-gap: clamp(35px, 5.2vw, 90px);
  row-gap: 35px;
}

.footer .footer-brand,
.footer .footer-company,
.footer .footer-links { min-width: 0; }

.footer .footer-eyebrow,
.footer .footer-label {
  display: block;
  margin: 0 0 18px;
  color: #85e8f3;
  font: 800 10px/1.5 'Manrope', sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer .footer-brand img {
  display: block;
  box-sizing: content-box;
  width: min(225px, calc(100% - 34px));
  max-width: 100%;
  height: auto;
  padding: 9px 15px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.footer .footer-brand-note {
  margin: 17px 0 0;
  max-width: 275px;
  font-size: 12px;
  line-height: 1.7;
  color: #bdcee6;
}

.footer .footer-company {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #c9d8ee;
  font: 500 12px/1.65 'DM Sans', sans-serif;
  overflow-wrap: anywhere;
}

.footer .footer-company .footer-label,
.footer .footer-links .footer-label { margin-bottom: 7px; }

.footer .footer-company strong {
  color: #fff;
  font: 800 14px/1.45 'Manrope', sans-serif;
}

.footer .footer-company a {
  color: #b8f6ff;
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer .footer-company a:hover { color: #fff; text-decoration: underline; }
.footer .footer-vat { margin-top: 2px; font-size: 11px; color: #adc2dd; }

.footer .footer-links {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: start;
  align-content: start;
  justify-items: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  font: 700 12px/1.4 'DM Sans', sans-serif;
}

.footer .footer-links a,
.footer .footer-links a[href$=".html"] {
  color: #d3e2f5;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.footer .footer-links a:hover { color: #7ce7f8; transform: translateX(3px); }

.footer .footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 2px;
  padding: 19px 0 0;
  border-top: 1px solid rgba(206, 229, 255, .18);
  font-size: 11px;
  color: #aebfd7;
}

.footer .footer-copyright { max-width: 520px; line-height: 1.6; }

.footer .footer-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .footer-utility { display: flex; align-items: center; gap: 9px; margin: 0; grid-column: auto; }

.footer .administrator-link {
  padding: 9px 13px;
  border: 1px solid rgba(203, 228, 255, .25);
  background: rgba(255, 255, 255, .045);
  color: #c6d7f0;
  font: 700 10px 'Manrope', sans-serif;
}

.footer .administrator-link:hover {
  border-color: #86e7f0;
  background: rgba(98, 231, 247, .13);
  color: #fff;
}

.footer #administrator-feedback { color: #f5d8a8; }

.footer .division-credit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(189, 226, 255, .28);
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.footer .division-credit:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #7feafa;
}

.footer .division-monogram {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0710ad;
  font-size: 21px;
}

.footer .division-credit small { color: #a2d0ea; font-size: 7px; }
.footer .division-credit strong { color: #fff; font-size: 10px; }

/* Lo spazio bianco sotto i contatti non deve separare eccessivamente il footer. */
.contact.section { padding-bottom: 68px; }

@media (max-width: 940px) {
  .footer .footer-inner { grid-template-columns: 1fr 1fr; column-gap: 35px; row-gap: 30px; }
  .footer .footer-links { grid-column: 1 / -1; grid-template-columns: repeat(4, max-content); gap: 12px 25px; }
  .footer .footer-links .footer-label { grid-column: 1 / -1; margin-bottom: 0; }
  .footer .footer-bottom { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .footer { padding: 38px 0 72px; }
  .footer .footer-inner { display: grid; grid-template-columns: 1fr; row-gap: 30px; }
  .footer .footer-brand img { width: 210px; }
  .footer .footer-brand-note { max-width: 315px; }
  .footer .footer-company { gap: 6px; }
  .footer .footer-links { grid-column: auto; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 12px 20px; }
  .footer .footer-links .footer-label { grid-column: 1 / -1; }
  .footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 17px; padding: 18px 0 0; }
  .footer .footer-bottom-actions { justify-content: flex-start; gap: 14px; }
  .contact.section { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer .footer-links a { transition: none; }
}
