/* =========================================================================
   iscrizione.mysteryclient.it — Design system
   Portale B2C di reclutamento mystery shopper.

   Rapporto con mysteryclient.it (sito B2B, stesso brand):
   - CONDIVISO: il rosso #e1131e e il blu #213d65 del marchio, il logo.
     E' lo stesso brand: cambiarli spezzerebbe il riconoscimento di chi
     arriva dall'annuncio e poi apre la app.
   - DISTINTO: impianto e tipografia. Il B2B usa FrankRuhlLibre (serif,
     weight 300, registro istituzionale). Qui headline in Manrope 800:
     registro diretto, orientato alla conversione. Body Roboto (continuita').
   ========================================================================= */

:root {
  /* --- Palette --- */
  --c-red: #e1131e;
  --c-red-dark: #c4101a;
  --c-red-soft: #fdecec;
  --c-navy: #213d65;
  --c-navy-deep: #16294a;
  --c-green: #1f9d6b;          /* "gratis", "pagamenti certi": rassicurazione */
  --c-green-soft: #e8f6f0;
  --c-amber: #f4a52c;          /* stelle recensioni, evidenze */

  --c-ink: #1b2430;
  --c-muted: #5c6a7a;
  --c-line: #e3e8ee;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f8fb;

  /* --- Tipografia --- */
  --ff-display: "Manrope", system-ui, -apple-system, sans-serif;
  --ff-body: "Roboto", system-ui, -apple-system, sans-serif;
  --f-h1: clamp(2.1rem, 5.2vw, 3.6rem);
  --f-h2: clamp(1.7rem, 3.6vw, 2.5rem);
  --f-h3: 1.3rem;
  --f-lead: clamp(1.05rem, 1.9vw, 1.25rem);
  --f-body: 1.0625rem;
  --f-small: 0.9rem;

  /* --- Layout --- */
  --maxw: 1160px;
  --gutter: 1.25rem;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(27, 36, 48, .06);
  --shadow: 0 10px 30px rgba(27, 36, 48, .10);
  --shadow-lg: 0 24px 60px -18px rgba(33, 61, 101, .30);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--ff-body);
  font-size: var(--f-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.15; letter-spacing: -.02em; color: var(--c-navy-deep); }
h1 { font-size: var(--f-h1); font-weight: 800; }
h2 { font-size: var(--f-h2); font-weight: 800; }
h3 { font-size: var(--f-h3); font-weight: 700; }
a { color: var(--c-red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--c-navy); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 10000;
  padding: 12px 24px; background: var(--c-red); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* --- Utility --- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--navy { background: var(--c-navy-deep); color: #dfe6f0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--ff-display); font-weight: 800;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-red); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--c-amber); }
.lead { font-size: var(--f-lead); color: var(--c-muted); }
.section--navy .lead { color: #b9c6d8; }

/* --- Bottoni --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--c-red); color: #fff; box-shadow: 0 8px 22px rgba(225, 19, 30, .32); }
.btn-primary:hover { background: var(--c-red-dark); box-shadow: 0 12px 28px rgba(225, 19, 30, .40); }
.btn-ghost { background: transparent; color: var(--c-navy); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-navy); background: #fff; }
.btn-on-dark { background: #fff; color: var(--c-navy-deep); }
.btn-on-dark:hover { background: #f0f4f9; }
.btn-sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.08rem; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav-wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
/* Il logo e' una mela VERTICALE (150x189): va dimensionata per ALTEZZA, mai per
   larghezza, altrimenti sfonda l'header. Il wordmark accanto e' testo, perche'
   la scritta dentro la mela e' illeggibile a queste dimensioni. */
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand-mark { height: 44px; width: auto; }
.brand-word {
  font-family: var(--ff-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.02em; color: var(--c-navy-deep); line-height: 1;
}
.brand-word em { font-style: normal; color: var(--c-red); }
/* Firma di gruppo (vedi _shared/brand-endorsement.md) */
.brand-by {
  display: flex; flex-direction: column; line-height: 1.1;
  padding-left: .7rem; border-left: 1px solid var(--c-line);
}
.by-k { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.by-v { font-family: var(--ff-display); font-weight: 700; font-size: .8rem; color: var(--c-navy); }
@media (max-width: 560px) { .brand-by { display: none; } }

.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links a {
  display: block; padding: .5rem .7rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500; color: var(--c-navy);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--c-bg-soft); color: var(--c-red); text-decoration: none; }
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--c-navy); border-radius: 2px; transition: .2s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    padding: .5rem var(--gutter) 1.25rem; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: .2s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: .85rem .5rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav-cta { display: none; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--c-navy-deep) 0%, var(--c-navy) 55%, #2c5286 100%);
  color: #fff; padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero::after {
  content: ""; position: absolute; right: -12%; top: -30%;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 19, 30, .30) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 .accent { color: #ff5560; }
.hero .lead { color: #cfdaea; margin-bottom: 1.1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 500; color: #e8eef7;
}
.hero-badge b { color: #fff; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-note { margin-top: 1rem; font-size: var(--f-small); color: #9fb1c9; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
}

/* --- Store buttons --- */
.store-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; color: var(--c-navy-deep);
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: .55rem 1rem; font-weight: 600; font-size: .92rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.store-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn small { display: block; font-size: .68rem; font-weight: 400; color: var(--c-muted); line-height: 1; }

/* =========================================================================
   STATISTICHE
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.stat {
  padding: 1.75rem 1rem; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); color: var(--c-red); line-height: 1;
}
.stat-label { margin-top: .4rem; font-size: .95rem; color: var(--c-muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* =========================================================================
   CARD / GRIGLIE
   ========================================================================= */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--c-muted); font-size: .97rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--c-red-soft); color: var(--c-red);
}
.card-icon--green { background: var(--c-green-soft); color: var(--c-green); }
.card-icon svg { width: 24px; height: 24px; }

/* --- Split: testo + foto affiancati --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- Lista numerata discorsiva (es. "sei gia' iscritto?") --- */
.plain-steps { counter-reset: ps; list-style: none; display: grid; gap: .9rem; margin-top: 1.4rem; }
.plain-steps li { position: relative; padding-left: 2.4rem; color: var(--c-muted); }
.plain-steps li::before {
  counter-increment: ps; content: counter(ps);
  position: absolute; left: 0; top: .05rem;
  display: grid; place-items: center; width: 26px; height: 26px;
  font-family: var(--ff-display); font-weight: 800; font-size: .82rem;
  color: #fff; background: var(--c-navy); border-radius: 50%;
}
.plain-steps strong { color: var(--c-ink); }

/* --- Griglia di foto (settori) --- */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
.media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.media figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem .9rem .8rem;
  background: linear-gradient(to top, rgba(11, 20, 36, .88) 25%, transparent);
  color: #fff; font-family: var(--ff-display); font-weight: 700; font-size: .92rem;
}

/* --- Foto di testata (blog, faq) --- */
.page-hero-img {
  width: 100%; max-height: 320px; object-fit: cover;
  border-radius: var(--radius); margin-top: 1.5rem; box-shadow: var(--shadow);
}

/* --- Steps (come funziona) --- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.6rem 1.6rem 1.6rem 1.6rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .9rem;
  font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem;
  color: #fff; background: var(--c-red); border-radius: 50%;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--c-muted); font-size: .97rem; }

/* =========================================================================
   FORM (libro / lead magnet)
   ========================================================================= */
.form-panel {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) { .form-panel { grid-template-columns: 1fr; } .form-book { max-width: 260px; margin-inline: auto; } }
.form-book img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.lead-form { display: grid; gap: 1rem; }
.form-group { display: grid; gap: .35rem; }
.form-group label { font-weight: 600; font-size: .95rem; }
.form-group input[type="email"], .form-group input[type="text"] {
  width: 100%; padding: .85rem 1rem; font: inherit;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: #fff; color: var(--c-ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-group input:focus {
  outline: none; border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(33, 61, 101, .14);
}
.form-consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--c-muted); }
.form-consent input[type="checkbox"] { margin-top: .28rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--c-red); }
.form-error {
  display: none; padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: var(--c-red-soft); color: var(--c-red-dark);
  font-size: .9rem; font-weight: 500;
}
.form-error.show { display: block; }
/* honeypot: invisibile agli umani, visibile ai bot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: .7rem; }
.faq-item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1.1rem 1.3rem; background: none; border: 0; cursor: pointer;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.03rem;
  color: var(--c-navy-deep); text-align: left;
}
.faq-q:hover { background: var(--c-bg-soft); }
.faq-q::after {
  content: ""; flex-shrink: 0; width: 11px; height: 11px;
  border-right: 2px solid var(--c-red); border-bottom: 2px solid var(--c-red);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
.faq-a { display: none; padding: 0 1.3rem 1.25rem; color: var(--c-muted); }
.faq-a.open { display: block; }
.faq-a p + p { margin-top: .7rem; }

/* =========================================================================
   TESTIMONIANZE
   ========================================================================= */
.testimonials { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 980px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials { grid-template-columns: 1fr; } }
.quote {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.quote-stars { color: var(--c-amber); letter-spacing: .1em; margin-bottom: .7rem; font-size: .95rem; }
.quote p { font-size: .97rem; color: var(--c-ink); }
.quote footer { margin-top: .9rem; font-family: var(--ff-display); font-weight: 700; color: var(--c-navy); font-size: .95rem; }
.quote--long p { font-size: .93rem; }

/* =========================================================================
   SETTORI
   ========================================================================= */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--c-line);
  font-size: .93rem; font-weight: 500; color: var(--c-navy);
}
.section--navy .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #e8eef7; }

/* =========================================================================
   CTA FINALE
   ========================================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: #ffe3e5; max-width: 620px; margin: 0 auto 1.5rem; }
.cta-band .store-row { justify-content: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--c-navy-deep); color: #a9b8cc; padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 {
  font-family: var(--ff-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: .9rem;
}
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a { color: #a9b8cc; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
/* Il logo MysteryClient e' una mela rossa con la zip. NON metterci sopra un
   filter: brightness(0) invert(1) per "farlo bianco": lo appiattisce in una
   sagoma muta. La mela a colori regge benissimo sul navy; il wordmark accanto
   e' testo bianco. */
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer-brand img { height: 54px; width: auto; }
.footer-brand .brand-word { color: #fff; font-size: 1.25rem; }
.footer-brand .brand-word em { color: #ff5560; }   /* il rosso pieno non regge sul navy */
.footer-about { font-size: .92rem; line-height: 1.6; }
.footer-cert { margin-top: .9rem; font-size: .8rem; color: #7f90a6; }
.footer-group-logo { display: inline-flex; flex-direction: column; gap: .35rem; margin-top: 1.25rem; }
.fg-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #7f90a6; }
.footer-group-logo img { width: 165px; height: auto; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .10);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: #7f90a6;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* =========================================================================
   BLOG / ARTICOLI
   ========================================================================= */
.page-head {
  background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.breadcrumb { font-size: .85rem; color: var(--c-muted); margin-bottom: .6rem; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-red); }

.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.post-card .tag {
  align-self: flex-start; margin-bottom: .7rem;
  padding: .22rem .6rem; border-radius: var(--radius-pill);
  background: var(--c-red-soft); color: var(--c-red-dark);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.post-card h3 { color: var(--c-navy-deep); margin-bottom: .45rem; }
.post-card p { color: var(--c-muted); font-size: .94rem; }
.post-card .more { margin-top: auto; padding-top: .9rem; color: var(--c-red); font-weight: 700; font-size: .9rem; }

.cat-block + .cat-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.cat-title { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.25rem; }
.cat-title h2 { font-size: 1.5rem; }
.cat-title span { font-size: .88rem; color: var(--c-muted); }

/* --- Corpo articolo --- */
.article { max-width: 760px; margin-inline: auto; }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body > * + * { margin-top: 1.15rem; }
.article-body h2 { font-size: 1.55rem; margin-top: 2.25rem; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: .45rem; }
.article-body img { border-radius: var(--radius); margin-block: 1.5rem; }
.article-body strong { color: var(--c-navy-deep); }
.article-body blockquote {
  border-left: 3px solid var(--c-red); padding: .3rem 0 .3rem 1.1rem;
  color: var(--c-muted); font-style: italic;
}
.article-meta { font-size: .88rem; color: var(--c-muted); margin-top: .5rem; }

.post-nav {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
