/* ==========================================================================
   Footer — newsletter, colonne, barra legale
   ========================================================================== */

.rp-footer {
  background: var(--rp-accent-800);
  color: #fff;
  font-family: var(--rp-font);
}
.rp-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.rp-footer a:hover { color: #fff; text-decoration: underline; }

/* --- Newsletter ---------------------------------------------------------- */
.rp-newsletter {
  display: flex;
  align-items: center;
  gap: var(--rp-space-10);
  padding-block: var(--rp-space-8);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.rp-newsletter__copy { max-width: 420px; }
.rp-newsletter__title {
  font-family: var(--rp-font-heading);
  font-weight: var(--rp-weight-heading);
  font-size: 22px;
  letter-spacing: -.01em;
}
.rp-newsletter__text {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-top: 6px;
}
.rp-newsletter__form {
  display: flex;
  align-items: stretch;
  height: 46px;
  margin-left: auto;
  width: 520px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--rp-radius-pill);
  overflow: hidden;
}
.rp-newsletter__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.rp-newsletter__input::placeholder { color: rgba(255, 255, 255, .6); }
.rp-newsletter__input:focus-visible { outline: 2px solid var(--rp-accent-2); outline-offset: -2px; }
.rp-newsletter__submit {
  border: 0;
  background: #fff;
  color: var(--rp-accent-800);
  font-family: var(--rp-font-heading);
  font-weight: var(--rp-weight-heading);
  font-size: 13px;
  padding: 0 22px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.rp-newsletter__submit:hover { background: var(--rp-accent-2); }

/* --- Colonne ------------------------------------------------------------- */
.rp-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: var(--rp-space-10);
  padding-block: 44px;
}
.rp-footer__label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rp-accent-2);
  margin-bottom: 14px;
}

/* Colonna marchio */
.rp-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--rp-space-3);
  margin-bottom: var(--rp-space-4);
}
.rp-footer__glyph {
  display: grid;
  grid-template-columns: 12px 12px;
  grid-template-rows: 12px 12px;
  gap: 3px;
  flex: none;
}
.rp-footer__glyph i { display: block; }
.rp-footer__glyph i:nth-child(1) { background: #fff; }
.rp-footer__glyph i:nth-child(2) { background: var(--rp-accent); }
.rp-footer__glyph i:nth-child(3) { background: var(--rp-accent-2); }
.rp-footer__glyph i:nth-child(4) { background: #fff; }
.rp-footer__brand-name {
  font-family: var(--rp-font-heading);
  font-weight: var(--rp-weight-heading);
  font-size: 17px;
}
.rp-footer__about {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  max-width: 320px;
}
.rp-footer__contact {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-top: 14px;
  line-height: 1.8;
}

/* Le colonne di link sono menu WordPress. */
.rp-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rp-footer__menu li { list-style: none; }

/* Colonna pagamenti */
.rp-footer__pays {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rp-footer__pays li {
  font-size: 11px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--rp-radius-pill);
}
.rp-footer__pays img { max-height: 18px; width: auto; }
.rp-footer__guarantee {
  margin-top: var(--rp-space-5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
}

/* Le aree widget del footer ereditano la tipografia della colonna. */
.rp-footer .widget { margin-bottom: var(--rp-space-6); }
.rp-footer .widget:last-child { margin-bottom: 0; }
.rp-footer .widget-title,
.rp-footer .wp-block-heading {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rp-accent-2);
  font-family: var(--rp-font);
  font-weight: 400;
  margin: 0 0 14px;
}
.rp-footer .widget ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rp-footer .widget p { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* --- Barra legale -------------------------------------------------------- */
.rp-footer__legal {
  display: flex;
  align-items: center;
  gap: var(--rp-space-6);
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}
.rp-footer__legal a { color: rgba(255, 255, 255, .55); }
.rp-footer__legal-menu {
  margin-left: auto;
  display: flex;
  gap: var(--rp-space-5);
  padding: 0;
  list-style: none;
}
.rp-footer__legal-menu li { list-style: none; }

/* ==========================================================================
   Adattamenti
   ========================================================================== */
@media (max-width: 1100px) {
  .rp-footer__cols {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--rp-space-8);
  }
  .rp-footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .rp-newsletter {
    flex-direction: column;
    align-items: stretch;
    gap: var(--rp-space-4);
  }
  .rp-newsletter__form { margin-left: 0; width: 100%; }
  .rp-footer__cols { grid-template-columns: 1fr 1fr; }
  .rp-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rp-space-3);
  }
  .rp-footer__legal-menu { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .rp-footer__cols { grid-template-columns: 1fr; }
}
