:root {
  --blu: #0b2545;
  --blu-2: #13315c;
  --blu-soft: #1d3a6b;
  --ink: #0e1a2b;
  --muted: #6b7a90;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(11,37,69,.55), rgba(11,37,69,0));
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo {
  font-weight: 600; letter-spacing: .01em; font-size: 17px;
  display: flex; align-items: center; gap: 12px;
  color: #fff;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #e8eef7 100%);
  color: var(--blu);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 18px -6px rgba(0,0,0,.35);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 7px; border: 1px solid rgba(11,37,69,.12);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .brand { font-weight: 700; letter-spacing: .02em; }
.logo-text .sub { font-size: 11px; opacity: .7; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.nav.scrolled .logo { color: var(--ink); }
.nav.scrolled .logo-mark {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-2) 100%);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(11,37,69,.4);
}
.nav.scrolled .logo-mark::after { border-color: rgba(255,255,255,.18); }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: #fff; opacity: .9; }
.nav-links a:hover { opacity: 1; }
.nav-lang { font-size: 12px; opacity: .7; border-left: 1px solid rgba(255,255,255,.2); padding-left: 16px; }
.nav.scrolled .nav-lang { border-left-color: var(--line); }
.nav-cta {
  background: #fff; color: var(--blu) !important; opacity: 1 !important;
  padding: 9px 16px; border-radius: 999px; font-weight: 600;
}
.nav.scrolled .nav-cta { background: var(--blu); color: #fff !important; }
.nav-burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; font-size: 26px; line-height: 1; padding: 6px 10px; }
.nav.scrolled .nav-burger { color: var(--ink); }

/* === Hero === */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: #0b2545;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/trieste-hero.jpg');
  background-size: cover; background-position: center;
  filter: saturate(.85);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(135deg, rgba(11,37,69,.88) 0%, rgba(19,49,92,.78) 50%, rgba(29,58,107,.7) 100%),
    radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,.06), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 140px 0 80px; max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .8; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 22px;
}
.hero h1 em { font-style: normal; opacity: .65; font-weight: 400; }
.hero p.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  opacity: .85; max-width: 620px; margin: 0 0 36px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  border: 0;
}
.btn-primary { background: #fff; color: var(--blu); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--blu); color: #fff; }
.btn-dark:hover { background: var(--blu-2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blu); border: 1px solid var(--blu); }
.btn-outline:hover { background: var(--blu); color: #fff; transform: translateY(-1px); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(37,211,102,.6); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { background: #1a87bb; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(34,158,217,.6); }
.btn-email { background: var(--blu); color: #fff; }
.btn-email:hover { background: var(--blu-2); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(11,37,69,.6); }
.btn-wa svg, .btn-tg svg, .btn-email svg { flex-shrink: 0; }

/* Trio WhatsApp/Telegram/Email — stack verticale full-width */
.contact-trio { display: flex; flex-direction: column; gap: 10px; }
.contact-trio .btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 14px; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero stats */
.hero-stats {
  position: relative;
  display: flex; gap: 56px; margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 30px;
}
.hero-stats .stat { }
.hero-stats .num { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.hero-stats .lbl { font-size: 13px; opacity: .7; margin-top: 4px; }

/* === Sections === */
section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-tag {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blu); font-weight: 600; margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15; margin: 0 0 18px;
  letter-spacing: -.01em; font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* USP — premium icon cards */
.usp { background: var(--bg-2); padding: 110px 0 120px; position: relative; }
.usp::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(11,37,69,.05), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(11,37,69,.04), transparent 60%);
  pointer-events: none;
}
.usp .container { position: relative; }
.section-alt { background: var(--bg-2); }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.usp-card {
  position: relative;
  background: #fff;
  padding: 38px 34px 32px;
  border-radius: 18px;
  border: 1px solid rgba(11,37,69,.06);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 40px -24px rgba(11,37,69,.18);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.usp-card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blu) 0%, var(--blu-soft) 60%, transparent 100%);
  transform: scaleX(.35); transform-origin: left;
  transition: transform .35s ease;
}
.usp-card::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11,37,69,.06), transparent 70%);
  pointer-events: none;
}
.usp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11,37,69,.3);
  border-color: rgba(11,37,69,.12);
}
.usp-card:hover::before { transform: scaleX(1); }

.usp-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px;
}
.usp-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-soft) 100%);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -10px rgba(11,37,69,.5);
  position: relative;
}
.usp-icon::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 13px; border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.usp-icon svg { width: 38px; height: 38px; display: block; }
.usp-icon svg [fill="#eef2f9"] { fill: rgba(255,255,255,.15); }
.usp-icon svg [fill="#fff"] { fill: rgba(255,255,255,.92); }

.usp-step {
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.usp-card h3 {
  font-size: 20px; line-height: 1.3;
  margin: 0 0 14px; letter-spacing: -.01em;
  font-weight: 600; color: var(--ink);
}
.usp-card p {
  color: var(--muted); margin: 0 0 22px;
  font-size: 15px; line-height: 1.7;
  flex: 1;
}
.usp-link {
  font-size: 14px; font-weight: 600; color: var(--blu);
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.usp-link .arr { transition: transform .25s ease; }
.usp-card:hover .usp-link .arr { transform: translateX(4px); }

/* Selezione immobili */
.props-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.prop {
  border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid rgba(11,37,69,.06);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 40px -24px rgba(11,37,69,.18);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: block;
}
.prop:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11,37,69,.3);
  border-color: rgba(11,37,69,.14);
}
.prop-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blu-2) 0%, var(--blu) 100%);
  position: relative;
  overflow: hidden;
}
.prop-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,0) 60%, rgba(11,37,69,.25) 100%);
  pointer-events: none;
}
.prop-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(11,37,69,.92);
  color: #fff;
  padding: 6px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.prop-body { padding: 24px 26px 26px; }
.prop-loc {
  font-size: 12px; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 8px;
}
.prop h3 {
  font-size: 19px; margin: 0 0 16px; letter-spacing: -.01em;
  line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}
.prop-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.prop-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prop-meta span + span::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted); opacity: .4;
  display: inline-block; margin-right: 8px;
}
.prop-price-row { display: flex; justify-content: space-between; align-items: center; }
.prop-price { font-size: 22px; font-weight: 700; color: var(--blu); letter-spacing: -.01em; }
.prop-go {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-2); color: var(--blu);
  display: grid; place-items: center;
  font-size: 16px; transition: background .25s ease, color .25s ease, transform .25s ease;
}
.prop:hover .prop-go { background: var(--blu); color: #fff; transform: translateX(2px); }

.section-cta { text-align: center; margin-top: 48px; }

/* Cross CTA banner (blu pieno, icona + body) */
.cross-cta {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-2) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 48px 56px;
  display: grid; grid-template-columns: auto 1fr; gap: 40px;
  align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11,37,69,.4);
}
.cross-cta::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  pointer-events: none;
}
.cross-cta-icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.cross-cta-icon svg { width: 56px; height: 56px; }
.cross-cta-body { position: relative; }
.cross-cta-body h3 {
  font-size: clamp(22px, 2.4vw, 28px); margin: 8px 0 14px;
  letter-spacing: -.01em; line-height: 1.25; font-weight: 600;
}
.cross-cta-body p { opacity: .88; margin: 0 0 24px; font-size: 16px; line-height: 1.7; max-width: 640px; }
.cross-cta-body .section-tag { color: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .cross-cta { grid-template-columns: 1fr; gap: 24px; padding: 36px 28px; }
  .cross-cta-icon { width: 72px; height: 72px; }
  .cross-cta-icon svg { width: 42px; height: 42px; }
}

/* Valutazione block */
.evaluate {
  background: var(--blu);
  color: #fff; border-radius: 24px;
  padding: 80px 60px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.evaluate::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
}
.evaluate h2 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15;
  margin: 0 0 22px; letter-spacing: -.01em;
}
.evaluate p { opacity: .85; margin: 0 0 30px; font-size: 17px; }
.evaluate-points { list-style: none; padding: 0; margin: 0; }
.evaluate-points li {
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; gap: 14px; align-items: flex-start;
}
.evaluate-points li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.evaluate-points .ck {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  flex-shrink: 0; margin-top: 1px;
}
.evaluate-points .ck::after {
  content: ""; width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Chi sono teaser */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 80px; align-items: center; }
.about-img {
  aspect-ratio: 4/5; border-radius: var(--radius);
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11,37,69,.35);
}
.about-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
}
.about-text h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 22px; letter-spacing: -.01em; }
.about-text p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.about-text .signature { margin-top: 30px; font-weight: 600; color: var(--ink); }

/* Contact */
.contact-cta {
  text-align: center; padding: 120px 0;
}
.contact-cta h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 20px; letter-spacing: -.01em; }
.contact-cta p { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 auto 36px; }

/* Footer */
.footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 16px; letter-spacing: .04em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer li a:hover { color: #fff; }
.footer-bot {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-burger { display: inline-block; order: 3; }
  .nav { position: relative; background: var(--blu); z-index: 50; }
  .nav.scrolled { background: var(--blu); box-shadow: none; }
  .hero { min-height: auto; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 0;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    border-top: 1px solid var(--line);
    z-index: 60;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { color: var(--ink) !important; opacity: 1; padding: 14px 24px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-lang { border-left: 0 !important; padding-left: 24px !important; }
  .nav-links a.nav-cta { background: var(--blu); color: #fff !important; margin: 10px 18px 6px; text-align: center; border-radius: 999px; padding: 12px 18px !important; border-bottom: 0 !important; }
  .usp { padding: 70px 0 80px; }
  .usp-grid { grid-template-columns: 1fr; gap: 18px; }
  .props-grid { grid-template-columns: 1fr; }
  .evaluate { grid-template-columns: 1fr; padding: 50px 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  section { padding: 70px 0; }
  .hero-inner { padding: 50px 0 60px; }
  .hero h1 { font-size: 38px; line-height: 1.15; }
  .hero .lede { font-size: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-row .btn { width: 100%; text-align: center; justify-content: center; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 40px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero .eyebrow { margin-top: 0; }
  .logo .sub { display: none; }
  .logo-text .brand { font-size: 15px; }
  section { padding: 56px 0; }
  .container { padding: 0 18px; }
}

/* === Blog === */
.subhero {
  background: linear-gradient(180deg, var(--blu) 0%, var(--blu-2) 100%);
  color: #fff;
  padding: 150px 0 80px;
  position: relative;
}
.subhero .eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  margin-bottom: 22px;
}
.subhero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 18px; font-weight: 700; letter-spacing: -.01em; max-width: 820px; }
.subhero .lede { font-size: 19px; line-height: 1.55; opacity: .92; max-width: 720px; margin: 0; }

.blog-list-wrap { padding: 70px 0 90px; background: var(--bg); position: relative; }
.blog-list-wrap::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(11,37,69,.04), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(11,37,69,.03), transparent 60%);
  pointer-events: none;
}
.blog-list-wrap > .container { position: relative; }

/* Toolbar: search + filtri */
.blog-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.blog-search {
  position: relative; flex: 1; min-width: 240px; max-width: 360px;
}
.blog-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.blog-search input {
  width: 100%; padding: 11px 14px 11px 42px;
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.blog-search input:focus {
  outline: none; border-color: var(--blu);
  box-shadow: 0 0 0 3px rgba(11,37,69,.08);
}
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.blog-filter {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.blog-filter:hover { border-color: var(--blu); }
.blog-filter.is-active {
  background: var(--blu); color: #fff; border-color: var(--blu);
}
.blog-filter .cnt {
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(11,37,69,.08); color: var(--blu);
  transition: background .2s ease, color .2s ease;
}
.blog-filter.is-active .cnt {
  background: rgba(255,255,255,.18); color: #fff;
}

.blog-section-title {
  font-size: 14px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 24px;
  display: flex; align-items: center; gap: 14px;
}
.blog-section-title::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Featured card stile magazine — foto full-bleed, titolo overlay */
.blog-featured { margin-bottom: 56px; }
.blog-featured-card {
  position: relative;
  display: block; overflow: hidden;
  border-radius: 22px;
  min-height: 460px;
  background: var(--blu-2) center/cover no-repeat;
  box-shadow: 0 30px 70px -30px rgba(11,37,69,.4);
  transition: transform .35s ease, box-shadow .35s ease;
  isolation: isolate;
}
.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -30px rgba(11,37,69,.5);
}
.blog-featured-img {
  position: absolute; inset: 0;
  background: var(--blu-2) center/cover no-repeat;
  background-image: inherit;
  transition: transform .6s ease;
  z-index: 0;
}
.blog-featured-card:hover .blog-featured-img { transform: scale(1.05); }
.blog-featured-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,37,69,.05) 0%, rgba(11,37,69,.55) 50%, rgba(11,37,69,.92) 100%);
}
.blog-featured-cat {
  position: absolute; left: 28px; top: 28px; z-index: 3;
  background: rgba(255,255,255,.95);
  color: var(--blu);
  padding: 7px 13px; border-radius: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  backdrop-filter: blur(6px);
}
.blog-featured-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 44px 48px;
  color: #fff;
  max-width: 760px;
}
.blog-featured-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; opacity: .9;
  margin-bottom: 16px;
}
.blog-featured-tag::before {
  content: ""; width: 24px; height: 1px; background: #fff;
  display: inline-block;
}
.blog-featured-body h2 {
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; margin: 0 0 16px;
  letter-spacing: -.015em; font-weight: 700; color: #fff;
}
.blog-featured-body h2 a { color: #fff; }
.blog-featured-body h2 a:hover { color: #fff; opacity: .85; }
.blog-featured-body p {
  color: rgba(255,255,255,.88);
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.65;
  margin: 0 0 18px; max-width: 620px;
}
.blog-featured-body .blog-card-meta { color: rgba(255,255,255,.7); }
.blog-featured-body .blog-card-meta .dot { background: rgba(255,255,255,.6); }
.blog-featured-body .btn-dark {
  background: #fff; color: var(--blu);
}
.blog-featured-body .btn-dark:hover { background: rgba(255,255,255,.92); }
@media (max-width: 900px) {
  .blog-featured-card { min-height: 360px; }
  .blog-featured-body { padding: 28px 24px; }
}

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid rgba(11,37,69,.06);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 40px -24px rgba(11,37,69,.18);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11,37,69,.3);
  border-color: rgba(11,37,69,.14);
}
.blog-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--blu-2) center/cover no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.03); }
.blog-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,0) 50%, rgba(11,37,69,.35) 100%);
}
.blog-card-cat {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(11,37,69,.92);
  color: #fff;
  padding: 6px 11px; border-radius: 6px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  backdrop-filter: blur(6px);
}
.blog-card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.blog-card-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted); opacity: .5;
}
.blog-card-body h3 { font-size: 19px; line-height: 1.32; margin: 0 0 12px; font-weight: 600; letter-spacing: -.005em; }
.blog-card-body h3 a:hover { color: var(--blu); }
.blog-card-body p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; flex: 1; }
.blog-card-more {
  font-size: 14px; font-weight: 600; color: var(--blu);
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding-top: 14px; border-top: 1px solid var(--line); width: 100%;
}
.blog-card-more:hover .arr { transform: translateX(3px); }
.blog-card-more .arr { transition: transform .2s ease; }

.blog-loading, .blog-empty {
  grid-column: 1 / -1;
  text-align: center; color: var(--muted);
  padding: 60px 0;
}

/* === Article (detail) === */
.article-hero {
  position: relative;
  color: #fff;
  padding: 150px 0 70px;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute; inset: 0;
  background: var(--blu-2) center/cover no-repeat;
  z-index: 0;
}
.article-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,.78) 0%, rgba(11,37,69,.92) 100%);
}
.article-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.article-breadcrumb { margin-bottom: 24px; font-size: 14px; }
.article-breadcrumb a { color: rgba(255,255,255,.75); }
.article-breadcrumb a:hover { color: #fff; }
.article-meta-top {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 13px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.85);
}
.article-cat {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: .12em; text-transform: uppercase; font-size: 11px; font-weight: 600;
}
.article-date::before, .article-reading::before { content: "·"; margin-right: 14px; opacity: .6; }
.article-meta-top .article-date:first-of-type::before { content: none; margin: 0; }
.article-hero h1 {
  font-size: 44px; line-height: 1.12; margin: 0 0 18px;
  font-weight: 700; letter-spacing: -.015em;
}
.article-hero .lede { font-size: 19px; line-height: 1.55; opacity: .9; margin: 0; }

.article-body {
  max-width: 740px; margin: 60px auto 0;
  font-size: 18px; line-height: 1.8; color: var(--ink);
  font-feature-settings: "kern", "liga", "onum";
}
.article-body > p:first-of-type::first-letter {
  font-size: 4.2em;
  font-weight: 700;
  float: left;
  line-height: .9;
  padding: 4px 12px 0 0;
  color: var(--blu);
  font-feature-settings: normal;
}
.article-body > p:first-of-type {
  font-size: 19.5px;
  color: #2a3a52;
  line-height: 1.7;
}
.article-body h2 {
  font-size: 26px; line-height: 1.25; margin: 48px 0 18px;
  font-weight: 700; letter-spacing: -.005em; color: var(--blu);
}
.article-body h3 {
  font-size: 20px; line-height: 1.3; margin: 36px 0 14px;
  font-weight: 600; color: var(--ink);
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 600; color: var(--blu); }
.article-body blockquote {
  margin: 36px 0; padding: 28px 32px 28px 64px;
  border-left: 0;
  background: linear-gradient(135deg, rgba(11,37,69,.04) 0%, rgba(11,37,69,.02) 100%);
  color: var(--ink);
  font-style: normal;
  border-radius: 14px;
  font-size: 19px; line-height: 1.7;
  font-weight: 500;
  position: relative;
}
.article-body blockquote::before {
  content: """;
  position: absolute; left: 18px; top: 8px;
  font-size: 70px; line-height: 1; color: var(--blu);
  font-family: Georgia, serif;
  opacity: .35;
}
.article-body blockquote p:last-child { margin: 0; }
.article-body a {
  color: var(--blu);
  text-decoration: underline;
  text-decoration-color: rgba(11,37,69,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.article-body a:hover { text-decoration-color: var(--blu); }
.article-body code {
  background: var(--bg-2);
  padding: 2px 6px; border-radius: 4px;
  font-size: .92em;
}
.article-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 36px 0 8px;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(11,37,69,.06), 0 18px 40px -22px rgba(11,37,69,.25);
}
.article-body img[src$=".svg"] {
  box-shadow: none;
  border: 1px solid var(--line);
  background: #fff;
}
.article-body em.caption,
.article-body p > img + em {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 28px;
  font-style: normal;
  line-height: 1.5;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0 28px;
  font-size: 15.5px;
}
.article-body th, .article-body td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.article-body th {
  font-weight: 600; color: var(--blu); background: var(--bg-2);
  font-size: 13px; letter-spacing: .02em; text-transform: uppercase;
}

.article-tags {
  max-width: 740px; margin: 36px auto 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.article-tag {
  font-size: 12px; color: var(--muted);
  background: var(--bg-2);
  padding: 5px 11px; border-radius: 999px;
}

.article-author {
  max-width: 740px; margin: 48px auto 80px;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
}
.article-author-mark {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blu); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px; letter-spacing: .04em;
  flex-shrink: 0;
}
.article-author-name { font-weight: 600; margin-bottom: 4px; }
.article-author-bio { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.blog-related-wrap { padding: 70px 0 90px; background: var(--bg-2); }

/* Reading progress bar (sticky top) */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.reading-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blu) 0%, var(--blu-soft) 100%);
  transition: width .1s linear;
}

/* Layout articolo: TOC + main */
.article-layout {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 60px;
  max-width: 1100px; margin: 0 auto;
  align-items: start;
}
.article-layout .article-main { max-width: 740px; }
.article-toc {
  position: sticky; top: 110px;
  padding: 22px 0 22px 0;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.toc-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
#toc-list { list-style: none; padding: 0; margin: 0; }
#toc-list li { margin: 0; }
#toc-list a {
  display: block;
  padding: 8px 12px; border-left: 2px solid transparent;
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
#toc-list a:hover { color: var(--blu); }
#toc-list a.is-active {
  color: var(--blu); border-left-color: var(--blu);
  background: rgba(11,37,69,.04);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { display: none; }
  .article-layout .article-main { max-width: 100%; }
}

/* Article body needs the same max-width as main on desktop */
.article-layout .article-body { max-width: 740px; margin: 60px 0 0; }
.article-layout .article-tags,
.article-layout .article-author,
.article-layout .article-share { max-width: 740px; margin-left: 0; margin-right: 0; }

/* Share buttons */
.article-share {
  margin: 48px auto 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.share-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.share-buttons {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); cursor: pointer;
  font-family: inherit;
  transition: all .2s ease;
}
.share-btn:hover { transform: translateY(-1px); border-color: transparent; color: #fff; }
.share-btn.share-wa:hover { background: #25D366; }
.share-btn.share-tg:hover { background: #229ED9; }
.share-btn.share-email:hover { background: var(--blu); }
.share-btn.share-copy:hover { background: var(--blu); }
.share-toast {
  position: absolute; right: 0; top: 26px;
  background: var(--blu); color: #fff;
  padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .subhero { padding: 110px 0 60px; }
  .subhero h1 { font-size: 32px; }
  .subhero .lede { font-size: 17px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .article-hero { padding: 110px 0 50px; }
  .article-hero h1 { font-size: 30px; }
  .article-hero .lede { font-size: 17px; }
  .article-body { font-size: 16.5px; margin-top: 40px; }
  .article-body h2 { font-size: 22px; margin-top: 36px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-author { flex-direction: column; }
}

