/* ============================================
   PIQUED JACKS - Footer
   ============================================ */

#pj-footer {
  background: var(--pj-dark) !important;
  border-top: 1px solid rgba(237, 232, 220, 0.08) !important;
  padding: 0 5rem !important;
  width: 100% !important;
  height: 120px !important;
  box-sizing: border-box !important;
}

.pj-footer__main {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  align-items: center !important;
  height: 120px !important;
  gap: 2rem !important;
}

/* --- Logo sinistra centrato --- */
.pj-footer__logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  justify-self: start !important;
  height: 100% !important;
}

.pj-footer__logo img {
  height: 38px !important;
  width: auto !important;
  opacity: 0.85 !important;
  filter: brightness(0) invert(1) !important;
  display: block !important;
}

.pj-footer__logo-text {
  font-family: var(--pj-font-title) !important;
  font-weight: 300 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: var(--pj-cream) !important;
  opacity: 0.8 !important;
}

/* --- Centro: email sopra, copyright sotto --- */
.pj-footer__center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  height: 100% !important;
  gap: 0.5rem !important;
}

.pj-footer__info {
  font-family: var(--pj-font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: rgba(237, 232, 220, 0.85) !important;
}

.pj-footer__info a {
  color: rgba(237, 232, 220, 0.85) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(237, 232, 220, 0.3) !important;
}

.pj-footer__info a:hover {
  color: var(--pj-cream) !important;
  border-bottom-color: var(--pj-accent) !important;
}

.pj-footer__copyright {
  font-family: var(--pj-font-body) !important;
  font-size: 0.75rem !important;
  color: rgba(237, 232, 220, 0.5) !important;
  letter-spacing: 0.04em !important;
}

/* --- Destra: newsletter centrata --- */
.pj-footer__newsletter {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  height: 100% !important;
  gap: 0.5rem !important;
  justify-self: end !important;
}

.pj-footer__newsletter label {
  font-family: var(--pj-font-title) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: rgba(237, 232, 220, 0.7) !important;
}

.pj-footer__newsletter-form {
  display: flex !important;
  align-items: stretch !important;
  height: 42px !important;
}

.pj-footer__newsletter input[type="email"] {
  background: rgba(237, 232, 220, 0.06) !important;
  border: 1px solid rgba(237, 232, 220, 0.25) !important;
  border-right: none !important;
  color: var(--pj-cream) !important;
  font-family: var(--pj-font-body) !important;
  font-size: 0.85rem !important;
  padding: 0 1rem !important;
  outline: none !important;
  width: 180px !important;
  height: 42px !important;
  box-sizing: border-box !important;
}

.pj-footer__newsletter input[type="email"]::placeholder {
  color: rgba(237, 232, 220, 0.3) !important;
}

.pj-footer__newsletter input[type="email"]:focus {
  border-color: var(--pj-accent) !important;
}

.pj-footer__newsletter button {
  background: rgba(237, 232, 220, 0.1) !important;
  border: 1px solid rgba(237, 232, 220, 0.25) !important;
  color: rgba(237, 232, 220, 0.9) !important;
  font-family: var(--pj-font-title) !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding: 0 1.2rem !important;
  height: 42px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.pj-footer__newsletter button:hover {
  background: rgba(237, 232, 220, 0.18) !important;
  border-color: var(--pj-accent) !important;
}

.pj-footer__newsletter-msg {
  font-family: var(--pj-font-body) !important;
  font-size: 0.78rem !important;
  font-style: italic !important;
  color: var(--pj-accent) !important;
  display: none !important;
  text-align: right !important;
}

.pj-footer__newsletter-msg.visible {
  display: block !important;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 900px) {
  #pj-footer {
    height: auto !important;
    padding: 2.5rem 1.5rem !important;
  }

  /* Ordine mobile: contatti > newsletter > logo > copyright */
  .pj-footer__main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .pj-footer__center {
    order: 1 !important;
    width: 100% !important;
  }

  .pj-footer__newsletter {
    order: 2 !important;
    align-items: center !important;
    justify-self: center !important;
    height: auto !important;
    width: 100% !important;
  }

  .pj-footer__logo {
    order: 3 !important;
    justify-self: center !important;
    height: auto !important;
  }

  .pj-footer__copyright {
    order: 4 !important;
    display: block !important;
  }

  /* Nascondo copyright dal centro su mobile, lo mostriamo separato */
  .pj-footer__center .pj-footer__copyright {
    display: none !important;
  }

  .pj-footer__newsletter input[type="email"] {
    width: 160px !important;
  }

  .pj-footer__newsletter-form {
    justify-content: center !important;
  }
}

/* Copyright mobile - fuori dal grid, sempre visibile su mobile */
.pj-footer__copyright-mobile {
  display: none !important;
}

@media (max-width: 900px) {
  .pj-footer__copyright-mobile {
    display: block !important;
    text-align: center !important;
    font-family: var(--pj-font-body) !important;
    font-size: 0.82rem !important;
    color: rgba(237, 232, 220, 0.75) !important;
    padding: 0 1.5rem 2rem !important;
    margin-top: -1rem !important;
  }
}