/* ==========================================================================
   ADFT Ingegneria — Footer
   Layout a due righe coerenti per tutte le pagine del sito.
   ========================================================================== */

.footer {
  position: relative;
  width: 100%;
  min-height: 553.46px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  /* Linea sottile spostata dalla sezione metodo */
  padding: 83.66px 0 64px;
  color: var(--footer-text, #000000);
  background: var(--footer-bg, var(--bg-white));
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

/* Righe del Footer (due righe perfettamente allineate a griglia) */
.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Logo ADFT nel Footer (95.23 x 22.15 px in Handoff Sez. 11) */
.footer-logo {
  display: inline-flex;
  align-items: center;
  width: 95.23px;
  height: 22.15px;
  margin-bottom: 20px;
  color: var(--brand-dark);
  font: 700 28px/22.15px "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: opacity var(--ease);
}

.footer-logo img {
  width: 95.23px;
  height: 22.15px;
  object-fit: contain;
}

.footer-logo:hover {
  opacity: 0.85;
}

/* Descrizione testuale sotto il logo (Inter 16/24) */
.footer-description {
  max-width: 440px;
  min-height: 60px;
  font: 400 16px/24px "Inter", sans-serif;
  letter-spacing: 0;
  color: #000000;
  margin: 0;
}

.footer-legal {
  margin: 14px 0 0;
  font: 400 13.5px/20px "Inter", sans-serif;
  letter-spacing: 0;
  color: #636772;
}

/* Intestazioni di colonna:
   - Newsletter heading (Riga 1): Inter 600 SemiBold 18/24 (Sez. 04)
   - Column title (Riga 2): Inter 600 SemiBold 16/22 (Sez. 11) */
.footer-heading {
  margin: 0 0 20px;
  font: 600 18px/24px "Inter", sans-serif;
  letter-spacing: 0;
  color: #000000;
}

.footer-row--bottom .footer-heading {
  font: 600 16px/22px "Inter", sans-serif;
}

/* Linea divisoria evidente tra le due righe del footer (#E1E4ED, 1 px) */
.footer-divider {
  width: 100%;
  height: 1px;
  background-color: #E1E4ED;
  margin: clamp(36px, 4.5vw, 48px) 0;
}

/* Modulo Newsletter (Riga 1 - Colonna Destra, 421 x 49 px, radius 8 px) */
.footer-newsletter-wrap {
  display: flex;
  flex-direction: column;
}

.newsletter {
  --nl-radius: var(--radius-nl, 8px);
  --nl-pad: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 421px;
  height: 49px;
  padding: var(--nl-pad) var(--nl-pad) var(--nl-pad) 18px;
  border: 1px solid rgba(0, 0, 0, 0.20);
  border-radius: var(--nl-radius);
  background: #FFF4F4;
  box-shadow: 0 1px 2px rgba(25, 33, 61, 0.08);
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: max(0px, calc(var(--nl-radius) - var(--nl-pad)));
  outline: none;
  background: transparent;
  color: #000000;
  font: 400 14px/20px "Inter", sans-serif;
  letter-spacing: 0;
  padding-right: 12px;
}

.newsletter input::placeholder {
  color: #636772;
  opacity: 1;
}

.newsletter .button,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: unset;
  min-height: unset;
  height: 33px;
  padding: 7.5px 12px;
  border: 0;
  border-radius: max(0px, calc(var(--nl-radius) - var(--nl-pad)));
  color: #ffffff;
  background: var(--brand);
  font: 600 12px/18px "Inter", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: opacity var(--ease), background-color var(--ease);
}

.newsletter .button:hover:not(:disabled),
.newsletter button:hover:not(:disabled) {
  background: var(--brand-dark);
  opacity: 0.95;
}

.newsletter .button:disabled,
.newsletter button:disabled {
  opacity: 1;
  cursor: default;
}

/* Link di navigazione (Riga 2 - Colonna Sinistra, Inter Regular 16/22) */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font: 400 16px/22px "Inter", sans-serif;
  letter-spacing: 0;
  color: #000000;
  text-decoration: none;
  transition: color var(--ease);
}

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

/* Contatti (Riga 2 - Colonna Destra, Inter 14/20) */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-icon svg {
  display: block;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  display: block;
  font: 400 14px/20px "Inter", sans-serif;
  letter-spacing: 0;
  color: #636772;
  margin-bottom: 2px;
}

.contact-details a,
.contact-value {
  font: 600 14px/20px "Inter", sans-serif;
  letter-spacing: 0;
  color: #000000;
  text-decoration: none;
  transition: color var(--ease);
}

.contact-details a:hover {
  color: var(--brand);
}

/* Telefono in linea: "Phone: (414) 687 - 5892" */
.contact-item--phone .contact-details {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.contact-item--phone .contact-label {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-divider {
    margin: 32px 0;
  }
}