/* ==========================================================================
   Lendmates | menu e footer comuni a tutte le pagine del sito.
   Un solo stile per home, blog, articoli, supporto e pagine legali.
   Il markup sta in _nav.html / _footer.html (e en/) e viene copiato dentro
   ogni pagina da tools/landing/inject_partials.py.
   Va caricato DOPO site.css / shared.css.
   ========================================================================== */

/* ---------- Menu ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #E9E9E9;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.header .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.header__logo { flex: none; display: inline-flex; }
.header__logo img { height: 30px; width: auto; display: block; }

.header .nav { display: flex; align-items: center; gap: 26px; }
.header .nav > a {
  position: relative; padding: 10px 0;
  text-decoration: none; font-weight: 700; font-size: 15px; color: #4A4A4A;
}
.header .nav > a:hover, .header .nav > a[aria-current="page"] { color: #1C1C1C; }
.header .nav > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 3px; border-radius: 2px;
  background: #FFC400; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.header .nav > a:hover::after, .header .nav > a[aria-current="page"]::after { transform: scaleX(1); }

/* spazio sotto il menu fisso, solo nelle pagine che non lo prevedevano già */
.lm-spacer { height: 68px; }

/* ---------- Selettore lingua a bandierine ---------- */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid #E9E9E9; border-radius: 999px; padding: 3px; margin-left: 2px;
}
.lang__opt {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 7px; border-radius: 999px; line-height: 0;
  opacity: .38; filter: saturate(.25); transition: opacity .15s ease, filter .15s ease, background .15s ease;
}
.lang__opt:hover { opacity: .8; filter: saturate(.9); }
.lang__opt--on { opacity: 1; filter: none; background: #FAFAFA; cursor: default; }
.lang__flag { width: 21px; height: 15px; display: block; border-radius: 2px; }

/* ---------- Menu su telefono (pulsante creato da assets/nav.js) ---------- */
.nav__toggle, .mnav { display: none; }
@media (max-width: 860px) {
  .has-mnav .header .nav > a { display: none; }
  .header .nav { gap: 10px; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; cursor: pointer;
    background: #FFFFFF; border: 1px solid #E9E9E9; border-radius: 999px; color: #1C1C1C;
  }
  .nav__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .header--open .nav__toggle { background: #FFC400; border-color: #FFC400; }
  .header--open .mnav {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #FFFFFF; border-bottom: 1px solid #E9E9E9; box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
    padding: 6px 24px 18px;
  }
  .mnav a {
    text-decoration: none; font-weight: 700; font-size: 18px; color: #1C1C1C;
    padding: 14px 0; border-bottom: 1px solid #E9E9E9;
  }
  .mnav a:last-child { border-bottom: 0; }
  .mnav a[aria-current="page"] { color: #A37A00; }
}

/* ---------- Footer ---------- */
.lm-foot {
  background: #1C1C1C; color: #BDBDBD; margin: 0;
  padding: 72px 24px 32px;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.6;
}
.lm-foot__in { max-width: 1240px; margin: 0 auto; }
.lm-foot a { color: #FFFFFF; text-decoration: none; }
.lm-foot a:hover { color: #FFC400; }
.lm-foot__top { display: flex; flex-wrap: wrap; gap: 48px 64px; justify-content: space-between; }
.lm-foot__brand { flex: 1 1 280px; max-width: 360px; }
.lm-foot__brand img { height: 30px; width: auto; display: block; margin-bottom: 22px; }
.lm-foot__claim { margin: 0 0 10px; color: #FFC400; font-weight: 700; font-size: 22px; line-height: 1.25; }
.lm-foot__brand p { margin: 0 0 16px; }
.lm-foot__mail { font-weight: 700; border-bottom: 2px solid #FFC400; padding-bottom: 2px; }
.lm-foot__cols { flex: 2 1 520px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.lm-foot__h { margin: 0 0 14px; color: #8F8F8F; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lm-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lm-foot li a { display: inline-block; padding: 5px 0; font-weight: 600; }
.lm-foot__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #333333; }
.lm-foot__legal { margin: 0 0 18px; font-size: 13px; color: #9A9A9A; }
.lm-foot__legal strong { color: #D6D6D6; }
.lm-foot__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lm-foot__row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; font-size: 13px; color: #9A9A9A; }
.lm-foot__social { display: flex; gap: 6px; align-items: center; }
.lm-foot__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #D6D6D6; }
.lm-foot__social a:hover { background: #2A2A2A; color: #FFC400; }
.lm-foot__social svg { width: 18px; height: 18px; }
.lm-foot__lang { display: flex; gap: 4px; align-items: center; font-weight: 700; }
.lm-foot__lang a { padding: 8px 10px; border-radius: 999px; color: #9A9A9A; }
.lm-foot__lang a.lang-active { color: #1C1C1C; background: #FFC400; }
@media (max-width: 760px) {
  .lm-foot { padding: 56px 24px 28px; }
  .lm-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .lm-foot__cols { grid-template-columns: 1fr; }
}
