/* =====================================================================
   LINKING SPACE — Landing
   Design system da spec Figma (8pt grid, brand blu/oro)
   ===================================================================== */

:root {
  /* Color */
  --blu:        #0F2A3D;
  --blu-dark:   #0A1F2E;   /* hover button */
  --oro:        #C8A96A;
  --oro-dark:   #B7965A;
  --text:       #111827;
  --subtext:    #6B7280;
  --border:     #E5E7EB;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --slate-50:   #F1F5F9;

  /* Spacing (8pt) */
  --xs: 8px;  --sm: 16px;  --md: 24px;  --lg: 32px;  --xl: 48px;  --xxl: 64px;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(16,42,61,.04);
  --shadow-hover: 0 12px 28px rgba(16,42,61,.10);
  --shadow-mockup: 0 20px 40px rgba(0,0,0,.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 80px; }
.section--tight { padding-block: 64px; }
.bg-soft { background: var(--bg); }

/* ---- Typography ----------------------------------------------------- */
h1, h2, h3 { color: var(--text); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 56px; line-height: 1.08; }
h2 { font-size: 36px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; letter-spacing: 0; }
.body { font-size: 18px; color: var(--subtext); }
.small { font-size: 14px; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oro);
}

.section-head { max-width: 800px; margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: var(--sm); }
.section-head h2 { margin-bottom: var(--sm); }
.section-head p { color: var(--subtext); font-size: 18px; }
.section-head .rule { width: 48px; height: 3px; background: var(--oro); border-radius: 2px; margin: 0 auto var(--md); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border-radius: 8px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blu); color: var(--white); }
.btn--primary:hover { background: var(--blu-dark); }
.btn--gold { background: var(--oro); color: var(--blu); }
.btn--gold:hover { background: var(--oro-dark); }
.btn--outline { background: var(--white); color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--blu); color: var(--blu); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---- Brand lockup --------------------------------------------------- */
.brand { display: inline-flex; align-items: center; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: var(--lg); height: 72px; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
.nav__links a { font-size: 15px; font-weight: 500; color: #374151; transition: color .15s; }
.nav__links a:hover { color: var(--blu); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__logo { height: 50px; width: auto; }
.nav__logo--mark { display: none; }
.nav__login svg { width: 18px; height: 18px; }
.nav__menu-cta { display: none; }
.nav__toggle { display: none; background: none; border: none; color: var(--blu); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: 120px; padding-bottom: 80px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero__eyebrow { margin-bottom: var(--sm); }
.hero h1 { max-width: 560px; }
.hero__sub { max-width: 520px; margin-top: var(--md); font-size: 18px; color: var(--subtext); }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: var(--lg); }
.hero__benefits { display: flex; gap: var(--lg); margin-top: 40px; flex-wrap: wrap; }
.benefit { display: flex; gap: 12px; align-items: flex-start; max-width: 200px; }
.benefit__icon { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--slate-50);
  display: grid; place-items: center; color: var(--blu); }
.benefit__icon svg { width: 20px; height: 20px; }
.benefit__t { font-size: 14px; font-weight: 600; color: var(--text); }
.benefit__d { font-size: 13px; color: var(--subtext); line-height: 1.4; }

/* soft blob behind mockup */
.hero__blob {
  position: absolute; right: -6%; top: 8%; width: 640px; height: 640px;
  background: radial-gradient(circle at 50% 50%, rgba(200,169,106,.10), rgba(15,42,61,.04) 60%, transparent 70%);
  border-radius: 50%; z-index: -1;
}

/* ---- Dashboard mockup (hero visual) --------------------------------- */
.mockup {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-mockup);
  overflow: hidden;
}
.mockup__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mockup__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.mockup__bar .brand-mini { margin-left: 4px; display:flex; align-items:center; gap:6px; font-weight:700; font-size:12px; letter-spacing:.05em; }
.mockup__bar .brand-mini .b2 { color: var(--oro); }
.mockup__body { display: grid; grid-template-columns: 132px 1fr; min-height: 300px; }
.mockup__side { background: var(--bg); border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.mockup__side .row { display: flex; align-items: center; gap: 8px; }
.mockup__side .row.active { color: var(--blu); font-weight: 600; }
.mockup__side .ic { width: 16px; height: 16px; color: #94A3B8; flex:none; }
.mockup__side .row.active .ic { color: var(--blu); }
.mockup__side .ln { height: 8px; border-radius: 4px; background: #E2E8F0; flex: 1; max-width: 78px; }
.mockup__side .row.active .ln { background: #B7C7D2; }
.mockup__main { padding: 16px; display: grid; gap: 14px; }
.mockup__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.kpi-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.kpi-box .l { font-size: 10px; color: var(--subtext); text-transform: none; }
.kpi-box .v { font-size: 24px; font-weight: 800; color: var(--blu); line-height: 1.1; margin-top: 4px; }
.mockup__row2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.panel { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.panel .h { font-size: 11px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.panel .list-ln { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.panel .list-ln .a { height: 7px; width: 55%; background: #EEF2F6; border-radius: 4px; }
.panel .list-ln .b { font-size: 9px; color: #B4BCC6; }
.donut { display: flex; align-items: center; gap: 12px; }
.donut__ring {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--blu) 0 68%, #E2E8F0 68% 100%);
  -webkit-mask: radial-gradient(circle 20px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 20px at center, transparent 98%, #000 100%);
}
.donut__leg { display: flex; flex-direction: column; gap: 7px; }
.donut__leg .li { display:flex; align-items:center; gap:6px; font-size:10px; color: var(--subtext); }
.donut__leg .li i { width: 8px; height: 8px; border-radius: 2px; display:inline-block; }

/* =====================================================================
   CARDS (riutilizzabili)
   ===================================================================== */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #DCE3EA; }
.icon-box {
  width: 40px; height: 40px; border-radius: 8px; background: var(--slate-50);
  display: grid; place-items: center; color: var(--blu); margin-bottom: var(--sm);
}
.icon-box svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--subtext); }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--md); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--md); }
.mt-head { margin-top: var(--xl); }

/* soluzioni card con lista + footer link */
.sol-card { display: flex; flex-direction: column; }
.sol-card .head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: var(--sm); }
.sol-card .head .icon-box { margin-bottom: 0; }
.sol-card .head h3 { font-size: 17px; }
.sol-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--md); flex: 1; }
.sol-list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--subtext); }
.sol-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--oro); }
.sol-foot {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--blu); padding-top: var(--sm); border-top: 1px solid var(--border);
}
.sol-foot svg { width: 15px; height: 15px; transition: transform .15s; }
.sol-card:hover .sol-foot svg { transform: translateX(3px); }
.sol-foot .muted { color: var(--subtext); font-weight: 500; }

/* per chi è */
.audience { text-align: center; }
.audience .icon-box { margin: 0 auto var(--sm); width: 48px; height: 48px; }
.audience h3 { font-size: 17px; margin-bottom: 6px; }
.audience p { font-size: 14px; color: var(--subtext); }

/* approccio steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--md); }
.step { position: relative; }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--oro);
  color: var(--oro); font-weight: 700; font-size: 18px;
  display: grid; place-items: center; margin-bottom: var(--sm); background: var(--white);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--subtext); }
.step__arrow { position: absolute; top: 20px; right: -14px; color: #CBD5E1; }
.step:last-child .step__arrow { display: none; }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(5,1fr); gap: var(--md); text-align: center; }
.stat__v { font-size: 40px; font-weight: 800; color: var(--blu); line-height: 1; }
.stat__l { font-size: 14px; color: var(--subtext); margin-top: 8px; }

.link-gold { display: inline-flex; align-items: center; gap: 6px; color: var(--oro-dark); font-weight: 600; font-size: 14px; }
.link-gold svg { width: 15px; height: 15px; transition: transform .15s; }
.link-gold:hover svg { transform: translateX(3px); }
.center { text-align: center; }

/* ---- Portfolio: piattaforme + soluzioni (thumbnail stile portfolio) ---- */
.portfolio { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--md); }
.port-card { text-align: center; display: flex; flex-direction: column; }
.port-thumb {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16 / 11; background: var(--bg);
  transition: box-shadow .18s ease, transform .18s ease;
}
.port-card:hover .port-thumb { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.port-thumb.has-img { background: #fff; }
.port-thumb.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.port-thumb .bar { height: 24px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.port-thumb .bar i { width: 7px; height: 7px; border-radius: 50%; background: #E2E8F0; }
.port-thumb .canvas { position: absolute; inset: 24px 0 0 0; display: grid; place-items: center; color: #fff; }
.port-thumb .canvas svg { width: 46px; height: 46px; opacity: .95; }
.port-thumb .canvas .wm { position: absolute; bottom: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; color: rgba(255,255,255,.92); }
.t-safe .canvas    { background: linear-gradient(135deg, #16374f, #0F2A3D); }
.t-vow .canvas     { background: linear-gradient(135deg, #d3b878, #a9895180); background-color:#a98951; }
.t-quality .canvas { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.t-turismo .canvas { background: linear-gradient(135deg, #60a5fa, #1e40af); }
.port-status {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.port-status.live { background: #DCFCE7; color: #166534; }
.port-status.dev  { background: #EEF2F6; color: #64748B; }
.port-card h3 { margin-top: var(--sm); font-size: 19px; }
.port-card h3 a { color: var(--blu); transition: color .15s; }
.port-card h3 a:hover { color: var(--oro-dark); }
.port-card > p { font-size: 14px; color: var(--subtext); margin-top: 6px; flex: 1; }
.port-card .link-gold { margin-top: 12px; justify-content: center; }
.port-card .muted-cta { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--subtext); }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { background: var(--blu); color: var(--white); border-radius: var(--radius-lg); padding: 48px; }
.cta-band__inner { display: flex; align-items: center; gap: var(--lg); flex-wrap: wrap; }
.cta-band__icon { width: 64px; height: 64px; border-radius: 14px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; flex: none; }
.cta-band__icon svg { width: 30px; height: 30px; color: var(--oro); }
.cta-band h2 { color: var(--white); font-size: 28px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 16px; margin-top: 4px; }
.cta-band__actions { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--bg); color: var(--subtext); border-top: 1px solid var(--border); padding-top: 56px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--xl); padding-bottom: var(--xl); }
.footer__logo { height: 42px; width: auto; margin-bottom: var(--sm); }
.footer__desc { font-size: 14px; color: var(--subtext); max-width: 340px; line-height: 1.6; }
.footer__col h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: var(--md); }
.footer__col a { display: block; font-size: 14px; color: var(--blu); margin-bottom: 12px; transition: color .15s; }
.footer__col a:hover { color: var(--oro-dark); }
.footer__made { font-size: 14px; color: var(--subtext); margin-bottom: var(--md); }
.footer__made .heart { color: #e11d48; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 8px; background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--subtext); transition: color .15s, border-color .15s; }
.footer__social a:hover { color: var(--blu); border-color: var(--blu); }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom { border-top: 1px solid var(--border); padding-block: var(--md); text-align: center; font-size: 13px; color: var(--subtext); }
.footer__bottom .sep { margin: 0 6px; color: #CBD5E1; }
.footer__bottom a { color: var(--subtext); transition: color .15s; }
.footer__bottom a:hover { color: var(--blu); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 992px) {
  .grid-4, .portfolio { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step__arrow { display: none; }
  .stats { grid-template-columns: repeat(3,1fr); row-gap: var(--lg); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--xl); }
  .hero__visual { order: 2; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  /* Header mobile: monogramma + menu a tendina */
  .nav__inner { gap: var(--sm); }
  .nav__logo--full { display: none; }
  .nav__logo--mark { display: block; height: 34px; }
  .nav__cta { margin-left: auto; gap: 8px; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: 8px 24px 16px;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: none; }
  /* Contattaci: fuori dalla barra, dentro il menu come CTA piena */
  .nav__cta .btn--gold { display: none; }
  .nav__links a.nav__menu-cta {
    display: inline-flex; justify-content: center; align-self: flex-start;
    margin-top: 14px; padding: 0 20px; height: 44px;
    border: none; border-radius: var(--radius); color: var(--blu); font-weight: 600;
  }
  .nav__toggle { display: grid; place-items: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .plat-card { grid-template-columns: 1fr; }
  .plat-thumb { max-width: 220px; }
  .section { padding-block: 56px; }
  .cta-band { padding: 32px; }
  .cta-band__actions { margin-left: 0; width: 100%; }
  .cta-band__actions .btn { flex: 1; justify-content: center; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .portfolio { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .hero__benefits { gap: var(--md); }
  .benefit { max-width: none; width: calc(50% - var(--md)); }
  .footer__top { grid-template-columns: 1fr; }
  /* Login solo icona per non affollare la barra */
  .nav__login-txt { display: none; }
  .nav__login { padding: 0 10px; }
  /* Il mockup dashboard ha una larghezza minima > viewport: nascondi su smartphone
     (come Linking Safe) per evitare overflow orizzontale. */
  .hero__visual { display: none; }
}

/* =====================================================================
   BLOG
   ===================================================================== */
.blog-head { padding-top: 112px; padding-bottom: var(--lg); }
.blog-head .section-head { margin-inline: 0; text-align: left; align-items: flex-start; }

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lg);
  margin-top: var(--lg);
}
.post-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .18s, box-shadow .18s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--slate-50); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb--ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blu), #1c4a63);
}
.post-card__thumb--ph img { width: 46px; height: auto; opacity: .9; }
.post-card__body { padding: var(--md); display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: 13px; color: var(--subtext); margin-bottom: 8px; }
.post-card__body h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.post-card__body h3 a:hover { color: var(--blu); }
.post-card__excerpt { font-size: 15px; color: var(--subtext); line-height: 1.55; }
.post-card__more { margin-top: auto; padding-top: var(--sm); }

.post-status-draft {
  display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700;
  color: var(--oro-dark); background: #FaF4E8; border: 1px solid var(--oro);
  padding: 2px 10px; border-radius: 999px;
}

/* ---- Empty state ---- */
.blog-empty {
  text-align: center; padding: var(--xxl) var(--md); color: var(--subtext);
  border: 1px dashed var(--border); border-radius: var(--radius-lg); margin-top: var(--lg);
}
.blog-empty h3 { color: var(--text); margin-bottom: var(--xs); }

/* ---- Article (detail) ---- */
.article { padding-top: 112px; padding-bottom: var(--xxl); }
.article__wrap { max-width: 760px; margin-inline: auto; }
.article__back { font-size: 14px; color: var(--subtext); margin-bottom: var(--md); display: inline-flex; gap: 6px; align-items: center; }
.article__back:hover { color: var(--blu); }
.article__meta { font-size: 14px; color: var(--subtext); margin-bottom: var(--sm); }
.article h1 { font-size: 42px; line-height: 1.15; margin-bottom: var(--md); }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin: var(--md) 0 var(--lg); border: 1px solid var(--border); }
.article__cover img { width: 100%; height: auto; }
.article__lead { font-size: 20px; color: var(--subtext); margin-bottom: var(--lg); line-height: 1.6; }
.article__body { font-size: 18px; line-height: 1.75; }
.article__body p { margin-bottom: var(--md); }
.article__body h2 { font-size: 28px; margin: var(--lg) 0 var(--sm); }
.article__body h3 { font-size: 22px; margin: var(--md) 0 var(--xs); }
.article__body ul, .article__body ol { margin: 0 0 var(--md) 1.4em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: 6px; }
.article__body a { color: var(--blu); text-decoration: underline; }
.article__body img { border-radius: var(--radius); margin: var(--md) 0; }
.article__body blockquote {
  border-left: 3px solid var(--oro); padding-left: var(--md);
  color: var(--subtext); font-style: italic; margin: var(--md) 0;
}

/* ---- Blog index editoriale (2 colonne) ----------------------------- */
.blog2 { padding-top: 96px; }
.blog2__grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }

/* Byline con avatar iniziali + riga verticale */
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.byline::before { content: ''; width: 2px; height: 30px; background: var(--border); border-radius: 2px; flex: none; }
.byline--mini { margin-bottom: 12px; }
.byline--mini::before { height: 24px; }
.byline__txt { font-size: 15px; color: var(--text); }
.byline__by { color: var(--subtext); font-style: italic; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blu); color: var(--white);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.avatar--lg { width: 40px; height: 40px; font-size: 14px; }

/* Articolo in evidenza */
.feat__title { font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.feat__title a:hover { color: var(--blu); }
.tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5b6b7b; }
.feat__excerpt { font-size: 19px; line-height: 1.6; color: #374151; margin-bottom: 26px; max-width: 640px; }
.pill { display: inline-flex; align-items: center; padding: 12px 26px; border: 1.5px solid var(--blu);
  border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--blu); transition: background .15s, color .15s; }
.pill:hover { background: var(--blu); color: var(--white); }

/* Colonna laterale */
.side { display: flex; flex-direction: column; }
.side__card { border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow-card); }
.side__card .avatar { width: 30px; height: 30px; font-size: 11px; }
.side__title { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin: 2px 0 14px; }
.side__title a:hover { color: var(--blu); }
.cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #6b7280; background: var(--slate-50); padding: 5px 12px; border-radius: 6px; }
.side__none { color: var(--subtext); font-size: 15px; }

@media (max-width: 992px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .blog2__grid { grid-template-columns: 1fr; gap: 40px; }
  .feat__title { font-size: 40px; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .side__card { margin-bottom: 0; }
}
@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }
  .article h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .blog2 { padding-top: 84px; }
  .feat__title { font-size: 32px; }
  .side { grid-template-columns: 1fr; }
}

/* =====================================================================
   BLOG — Articolo (detail) editoriale
   ===================================================================== */
.post { padding-top: 96px; padding-bottom: 64px; }
.post__head { max-width: 820px; margin: 0 auto 32px; text-align: center; }
.post__title { font-size: 56px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.post__subtitle { font-size: 22px; line-height: 1.5; color: var(--subtext); margin-top: 16px; }
.post__byline { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.bl-field { display: flex; flex-direction: column; text-align: left; font-size: 15px; line-height: 1.3; }
.bl-field .byline__by { font-style: italic; color: var(--subtext); font-size: 13px; }
.bl-field strong { color: var(--text); }
.bl-sep { width: 1px; height: 34px; background: var(--border); }
.tags--center { justify-content: center; margin-top: 20px; }

.post__cover { max-width: 1000px; margin: 0 auto 44px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.post__cover img { width: 100%; height: auto; display: block; }

.post__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; max-width: 1140px; margin: 0 auto; align-items: start; }
.post__main { min-width: 0; }

/* Drop cap sul primo paragrafo */
.dropcap > p:first-of-type::first-letter {
  float: left; font-weight: 800; font-size: 64px; line-height: 50px;
  padding: 6px 12px 0 0; color: var(--blu);
}
.post__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.pill--sm { padding: 9px 18px; font-size: 14px; }

/* Sidebar sticky */
.post__side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; }

/* Box iscrizione */
.subcard { background: var(--blu); color: var(--white); border-radius: 16px; padding: 24px; }
.subcard__title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.subcard__txt { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.82); margin-top: 8px; }
.subcard__form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.subcard__form input { height: 44px; border: none; border-radius: 10px; padding: 0 14px; font-size: 15px; font-family: inherit; }
.dashish-btn { height: 46px; border: none; border-radius: 10px; background: var(--oro); color: var(--blu);
  font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer; transition: background .15s; }
.dashish-btn:hover { background: var(--oro-dark); }
.subcard__note { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 10px; }

/* Blocco "ti potrebbe interessare" */
.side-block { border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.side-block__head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--subtext); margin-bottom: 14px; }
.side-related { display: flex; flex-direction: column; }
.side-related li { border-top: 1px solid var(--border); padding: 14px 0; }
.side-related li:first-child { border-top: none; padding-top: 0; }
.side-related li:last-child { padding-bottom: 0; }
.side-related__link { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--text); }
.side-related__link:hover { color: var(--blu); }
.side-related__cat { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }

/* Spazio pubblicitario */
.ad-slot { border: 1px dashed var(--border); border-radius: 16px; min-height: 250px; background: var(--slate-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--subtext); }
.ad-slot span { font-weight: 600; font-size: 14px; }
.ad-slot small { font-size: 12px; color: #9aa3af; }

@media (max-width: 900px) {
  .post__grid { grid-template-columns: 1fr; gap: 40px; }
  .post__side { position: static; }
  .post__title { font-size: 40px; }
}
@media (max-width: 560px) {
  .post { padding-top: 84px; }
  .post__title { font-size: 30px; }
  .post__subtitle { font-size: 18px; }
  .post__byline { flex-wrap: wrap; gap: 12px; }
}

/* =====================================================================
   CONTATTI (feedback)
   ===================================================================== */
.contact-wrap { max-width: 640px; margin: var(--lg) auto 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.cf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.ffield { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--white); }
.ffield:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 3px rgba(15,42,61,.08); }
textarea.ffield { resize: vertical; min-height: 130px; line-height: 1.5; }
.cf-err { font-size: 13px; color: #b4232a; }
.contact-ok { text-align: center; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 24px; box-shadow: var(--shadow-card); }
.contact-ok h3 { font-size: 22px; margin-bottom: 8px; }
@media (max-width: 560px) { .cf-row2 { grid-template-columns: 1fr; } }
