/* ==========================================================================
   Lendmates | pagina blog (blog.html, en/blog.html)
   Generata da tools/landing/genera_blog.py: non modificare l'HTML a mano.
   Colori dei quattro percorsi, come le linee della metro di Milano:
   vendere giallo (M3), comprare verde (M2), mettere a noleggio lilla (M5),
   noleggiare blu (M4, quella di Linate).
   ========================================================================== */

.bl { --ink: #1C1C1C; --ink-2: #4A4A4A; --line: #E9E9E9; --soft: #FAFAFA; color: var(--ink); overflow-x: clip; }
.bl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.bl [data-flow="vendere"] { --c: #FFC400; --c-ink: #1C1C1C; --c-mark: #FFC400; }
.bl [data-flow="comprare"] { --c: #2CBE6E; --c-ink: #1C1C1C; --c-mark: #8FDDB1; }
.bl [data-flow="mettere-a-noleggio"] { --c: #8E4C96; --c-ink: #FFFFFF; --c-mark: #DDBFE2; }
.bl [data-flow="noleggiare"] { --c: #1E5BB8; --c-ink: #FFFFFF; --c-mark: #B5CAEE; }
.bl [data-flow="storie"] { --c: #1C1C1C; --c-ink: #FFFFFF; }
.bl-kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.bl-kicker::before { content: ''; width: 26px; height: 3px; border-radius: 2px; background: #FFC400; }

/* ---------- Titolo che fa da menu ---------- */
.bl-hero { padding: 64px 0 18px; }
.bl-hero h1 { margin: 0; font-size: clamp(36px, 6vw, 92px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; }
.bl-word {
  all: unset; cursor: pointer; display: inline; box-sizing: border-box;
  font: inherit; letter-spacing: inherit; line-height: inherit; color: var(--ink);
  border-radius: .12em; transition: opacity .2s ease;
}
.bl-word span:first-child {
  padding: 0 .06em;
  background-image: linear-gradient(var(--c-mark), var(--c-mark)); background-repeat: no-repeat;
  background-position: 0 90%; background-size: 0% 34%; transition: background-size .45s cubic-bezier(.2, .8, .2, 1);
}
.bl-word[aria-pressed="true"] span:first-child { background-size: 100% 34%; }
.js .bl-word[aria-pressed="false"] { opacity: .28; }
.bl-word:hover { opacity: 1 !important; }
.bl-word:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.bl-sep { color: #C9C9C9; }
.bl-hero__lead { margin: 26px 0 0; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Percorsi ---------- */
.bl-paths { padding: 36px 0 88px; }
.bl-path + .bl-path { margin-top: 72px; }
.js .bl-path { display: none; }
.js .bl-path.is-on { display: block; animation: blIn .45s ease both; margin-top: 0; }
.bl-path__h { margin: 0 0 22px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.bl-path__grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.bl-first {
  flex: 1 1 380px; min-width: 0; position: sticky; top: 92px; box-sizing: border-box; min-height: 440px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 36px; border-radius: 36px; background: var(--c); color: var(--c-ink); text-decoration: none;
  transition: transform .25s ease;
}
.bl-first:hover { transform: translateY(-4px); color: var(--c-ink); }
.bl-first__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.bl-first__top span:first-child { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.bl-first__n { font-weight: 700; font-size: clamp(110px, 12vw, 160px); line-height: .8; letter-spacing: -.06em; }
.bl-first h3 { margin: 0 0 12px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.bl-first p { margin: 0; font-size: 17px; line-height: 1.5; }
.bl-first__go { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 16px; }
.bl-rest { flex: 1.3 1 460px; min-width: 0; }
.bl-rest__h { margin: 0 0 14px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.bl-rest ol { list-style: none; margin: 0; padding: 0; position: relative; }
.bl-rest ol::before { content: ''; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 4px; border-radius: 2px; background: var(--c); }
.bl-step {
  position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 24px; gap: 18px; align-items: center;
  padding: 16px 12px 16px 0; border-radius: 18px; color: var(--ink); text-decoration: none; transition: background-color .2s ease;
}
.bl-step:hover { background: var(--soft); color: var(--ink); }
.bl-step__n {
  width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; border: 4px solid var(--c); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.bl-step h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.bl-step__meta { font-size: 14px; color: var(--ink-2); }
.bl-step__go { font-weight: 700; font-size: 20px; transition: transform .25s ease; }
.bl-step:hover .bl-step__go { transform: translateX(6px); }

/* ---------- Storie ---------- */
.bl-stories { padding: 80px 0 72px; background: var(--soft); border-top: 2px solid var(--ink); }
.bl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.bl-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; max-width: 18ch; }
.bl-head p { margin: 0; max-width: 44ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.bl-storygrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.bl-story {
  height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px;
  padding: 22px 22px 24px; border: 2px solid var(--ink); border-radius: 26px; background: #FFFFFF;
  color: var(--ink); text-decoration: none; transition: transform .3s ease;
}
.bl-story:hover { transform: translateY(-6px) rotate(-1deg); color: var(--ink); }
.bl-story__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bl-story h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; font-weight: 700; }
.bl-story__top span { font-weight: 700; font-size: 20px; }
.bl-moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bl-moves li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.4; }
.bl-moves li::before { content: ''; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #FFFFFF; border: 5px solid var(--c); box-sizing: border-box; }
.bl-moves b { font-weight: 700; }
.bl-story__p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Tutti gli articoli ---------- */
.bl-all { padding: 80px 0 104px; }
.bl-all__h { margin: 0 0 26px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.bl-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; margin-bottom: 26px; }
.bl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-filter {
  all: unset; cursor: pointer; box-sizing: border-box; display: inline-flex; align-items: baseline; gap: 7px;
  padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: 15px; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease;
}
.bl-filter small { font-size: 12px; opacity: .7; }
.bl-filter[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.bl-filter:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bl-filter[data-flow]:not([data-flow="tutti"])::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: center; }
.bl-search { display: flex; align-items: center; gap: 10px; min-width: 260px; flex: 0 1 340px; border-bottom: 2px solid var(--ink); padding: 8px 2px; }
.bl-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.bl-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; width: 100%; color: var(--ink); }
.bl-search input::placeholder { color: #8F8F8F; }
.bl-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.bl-list li { border-bottom: 1px solid #D9D9D9; }
.bl-row {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 22px; gap: 18px; align-items: center;
  padding: 18px 6px; color: var(--ink); text-decoration: none; transition: background-color .2s ease;
}
.bl-row:hover { background: var(--soft); color: var(--ink); }
.bl-row::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.bl-row__t { font-weight: 700; font-size: 18px; line-height: 1.3; }
.bl-row__m { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.bl-row__go { font-weight: 700; transition: transform .25s ease; }
.bl-row:hover .bl-row__go { transform: translateX(5px); }
.bl-empty { margin: 24px 0 0; font-size: 17px; color: var(--ink-2); }
.bl-count { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }

@media (max-width: 760px) {
  .bl-hero { padding-top: 40px; }
  .bl-first { position: static; min-height: 0; padding: 28px; }
  .bl-first__n { font-size: 96px; }
  .bl-step h3 { font-size: 18px; }
  .bl-row { grid-template-columns: 12px minmax(0, 1fr) 18px; gap: 14px; }
  .bl-row::before { width: 12px; height: 12px; }
  .bl-row__m { grid-column: 2; grid-row: 2; }
  .bl-row__go { grid-row: 1 / span 2; grid-column: 3; }
  .bl-row__t { font-size: 17px; }
  .bl-search { flex: 1 1 100%; }
}

@keyframes blIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bl *, .bl *::before { animation: none !important; transition: none !important; }
}
