/* ============================================================
   TAKEAWAY — Footer
   Layout originale da landing_v3 — position:absolute
   ============================================================ */



#footer {
  width: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* ← aggiungi questa riga */
}

.footer-inner {
  position: relative;
  width: min(1728px, 100%);
  height: 100vh;
}

.footer-middle {
  display: contents;
}

/* ── Logo rotante centrato ── */
.footer-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.footer-logo-spinning {
  width: 20vw;
  height: 20vw;
  will-change: transform;
  display: block;
  transform: rotate(0deg);
}

@keyframes footer-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}



/* ── Get in touch ── */
.footer-cta {
  position: absolute;
  left: 32px;
  top: 207px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-cta-text {
  font-family: var(--font, 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif);
  font-size: var(--text-h2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-body);
  color: #fff;
  text-decoration: none;
  cursor: default;
  margin: 0 0 32px 0;
  opacity: 0; /* stato iniziale — reveal via JS */
  will-change: opacity, transform;
}

/* ── Variante bottone toggle — sottolinea "Get in touch" ── */
button.footer-cta-text,
.footer-cta-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

/* Linea che si disegna da sx a dx allo scroll reveal — width: 0 → 100% */
button.footer-cta-text::after,
.footer-cta-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.12em;
  width: 0;
  height: 1px;
  background: #fff;
  will-change: width;
}

/* Dopo il reveal (classe aggiunta da JS) — disegna la linea */
button.footer-cta-text.line-drawn::after,
.footer-cta-toggle.line-drawn::after {
  width: 100%;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

button.footer-cta-text:hover::after,
.footer-cta-toggle:hover::after {
  opacity: 0.6;
}

/* ── Blocco contatti ── */
.footer-contact-block {
  position: absolute;
  right: clamp(32px, 11.3vw, 196px);
  bottom: 207px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 46px;
}

.footer-contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-contact-label {
  font-family: var(--font, 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-label);
  line-height: var(--lh-body-sm);
  margin: 0 0 4px 0;
}

.footer-contact-group a {
  font-family: var(--font);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-md);
  letter-spacing: var(--ls-md);
  color: var(--c-text);
  text-decoration: none;
  transition: opacity 0.2s;
  margin: 24px 0 0 0;
}

.footer-contact-group p {
  font-family: var(--font);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-md);
  letter-spacing: var(--ls-md);
  color: var(--c-label);
  margin: 0;
}

.footer-contact-group a:hover {
  opacity: 0.5;
}

/* ── Responsive ── */
@media (orientation: portrait) {
  .footer-logo-spinning {
    width: 40vw;
    height: 40vw;
  }
}

@media (max-width: 768px) {
  #footer {
    align-items: flex-start;
    min-height: unset;
  }

  .footer-inner {
    position: static;
    width: 100%;
    height: auto;          /* altezza definita dal contenuto */
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 112px 20px 56px;
    overflow: visible;
    gap: 48px;
  }

  .footer-logo-wrap {
    position: static;
    transform: none;
    order: 1;
    flex-shrink: 0;
  }

  .footer-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
    order: 2;
    margin-top: 40px;
  }

  .footer-cta {
    position: static;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
  }

  .footer-cta-text {
    font-size: var(--text-h3);
    line-height: var(--lh-h3);
    text-align: center;
    flex-shrink: 0;
  }

  button.footer-cta-text::after,
  .footer-cta-toggle::after {
    bottom: -4px;
  }

  .footer-contact-block {
    position: static;
    width: 100%;
    align-items: center;
    gap: 24px;
    order: 3;          /* logo → cta+form → contacts */
    margin-top: 40px;
    padding-bottom: 8px;
  }

  .footer-contact-group {
    align-items: center;
    text-align: center;
  }
}

/* ── Site footer bar (footer.php — info legale + privacy) ── */
.site-footer-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #000;
  border-top: none;
  width: 100%;
}

.site-footer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer-info p {
  font-family: var(--font, 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-regular);
  color: var(--c-label);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body);
  margin: 0;
}

.site-footer-legal {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.site-footer-legal a {
  font-family: var(--font, 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif);
  font-size: var(--text-body-sm);
  font-weight: var(--fw-regular);
  color: var(--c-label);
  text-decoration: none;
  letter-spacing: var(--ls-body);
  transition: opacity 0.2s;
}

.site-footer-legal a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .site-footer-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
  }

  .site-footer-info {
    align-items: center;
  }

  .site-footer-info p {
    font-size: var(--text-body-sm);
    line-height: var(--lh-body-sm);
    text-align: center;
    letter-spacing: var(--ls-body);
  }

  .site-footer-legal {
    justify-content: center;
    gap: 20px;
  }

  /* site-footer-legal a — font-size auto via token --text-body-sm mobile */
}
/* ── Policy iframe iubenda ── */
.policy-iframe {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  border: none;
  background: transparent;
  display: block;
  filter: invert(1) hue-rotate(180deg);
  /* Inverte i colori dell'iframe: sfondo bianco → nero, testo nero → bianco
     coerente con il design system TAKEAWAY */
}

/* ── Label footer — WRITE TO US / FOLLOW US / OR FILL IN THE FORM BELOW ── */
.footer-social-label,
.footer-form-intro-label {
  font-family: var(--font);
  font-size: var(--text-body-md) !important;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-label) !important;
  text-transform: uppercase;
  color: var(--c-label);
  line-height: var(--lh-body-sm);
  margin: 0 0 var(--sp-md) 0;
  white-space: nowrap;
  display: block;
}

/* ── CTA social ── */
.footer-social-cta {
  font-family: var(--font);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body);
  color: var(--c-text);
  white-space: nowrap;
  margin: 0 0 var(--sp-2xl, 48px) 0;
}

.footer-social-link {
  font-family: var(--font);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-md);
  letter-spacing: var(--ls-md);
  color: var(--c-text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-social-link:hover { opacity: 0.5; }

/* Testo blocco location — bianco */
.footer-contact-block .footer-contact-group p {
  color: var(--c-text);
}


/* ── Form intro ── */
.footer-form-intro {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  margin-bottom: 0;
}

/* Stacco tra email e label OR FILL IN — gestito sull'email */
.footer-form-email {
  margin-bottom: var(--sp-2xl, 48px) !important;
}

.footer-form-email {
  font-family: var(--font);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-md);
  color: var(--c-text);
  text-decoration: none;
  margin-bottom: var(--sp-lg);
  display: block;
  transition: opacity 0.2s;
}
.footer-form-email:hover { opacity: 0.5; }

@media (max-width: 768px) {
  .footer-social-label,
  .footer-form-intro-label { white-space: normal; }
  .footer-social-cta { white-space: normal; }
}

/* ── Label sezione — classe unica per tutte e tre le CTA ── */
.footer-section-label {
  font-family: var(--font);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-label);
  line-height: var(--lh-body-sm);
  margin: 0 0 var(--sp-md) 0;
  white-space: nowrap;
  display: block;
}

/* ── CTA social ── */
.footer-social-cta {
  font-family: var(--font);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body);
  color: var(--c-text);
  white-space: nowrap;
  margin: 0 0 var(--sp-2xl, 48px) 0;
}

.footer-social-link {
  font-family: var(--font);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-md);
  letter-spacing: var(--ls-md);
  color: var(--c-text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-social-link:hover { opacity: 0.5; }

/* Testo blocco location — bianco */
.footer-contact-block .footer-contact-group p {
  color: var(--c-text);
}


/* ── Form intro ── */
.footer-form-intro {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  margin-bottom: 0;
}

/* Stacco tra email e label OR FILL IN — gestito sull'email */
.footer-form-email {
  margin-bottom: var(--sp-2xl, 48px) !important;
}

.footer-form-email {
  font-family: var(--font);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-md);
  color: var(--c-text);
  text-decoration: none;
  margin-bottom: var(--sp-lg);
  display: block;
  transition: opacity 0.2s;
}
.footer-form-email:hover { opacity: 0.5; }

@media (max-width: 768px) {
  .footer-section-label { white-space: normal; }
  .footer-social-cta    { white-space: normal; }
}

/* ── Location block — bianco, classe autonoma ── */
.footer-location-text {
  font-family: var(--font);
  font-size: var(--text-body-md);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-body);
  color: #fff;
  line-height: var(--lh-body-md);
  margin: 0;
  text-transform: uppercase;
}
