/* ===================================================================
   Inside Technologies Blog - global stylesheet
   Design tokens allineati a web-inside-technologies-vnext
   =================================================================== */

/* === Font: Brinnan (locale) === */
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Thin.otf") format("opentype");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* === Brand palette === */
  --c-blue-900: #102B5C;
  --c-blue-800: #1A3F7F;
  --c-blue-600: #2557B5;
  --c-blue-100: #DCE6F5;
  --c-blue-50:  #EFF4FB;

  --c-yellow-500: #F5C518;
  --c-yellow-400: #FFD43B;
  --c-yellow-100: #FFF3C4;

  --c-red-700: #990000;
  --c-red-100: #F4D6D6;

  /* === Neutral === */
  --c-gray-900: #0F1115;
  --c-gray-800: #1A1D24;
  --c-gray-700: #3A3F47;
  --c-gray-500: #7A8088;
  --c-gray-300: #C4C8CE;
  --c-gray-200: #E4E6EA;
  --c-gray-100: #EFF1F4;
  --c-gray-50:  #F6F7F9;
  --c-white:    #FFFFFF;

  /* === Semantic (dark theme) === */
  --c-bg:        #0B1929;
  --c-bg-alt:    #09151F;
  --c-bg-alt2:   #0E2240;
  --c-text:      #F0F4FA;
  --c-text-soft: rgba(240,244,250,0.78);
  --c-text-mute: rgba(240,244,250,0.50);
  --c-border:    rgba(255,255,255,0.10);
  --c-border-strong: rgba(255,255,255,0.18);
  --c-link:      var(--c-yellow-500);

  /* === Gradients === */
  --grad-navy:        linear-gradient(135deg, #102B5C 0%, #1A3F7F 100%);
  --grad-cloud:       linear-gradient(135deg, #102B5C 0%, #2557B5 60%, #6FA8FF 100%);
  --grad-workplace:   linear-gradient(135deg, #102B5C 0%, #2557B5 50%, #F5C518 100%);
  --grad-security:    linear-gradient(135deg, #0F1115 0%, #2A0E0E 50%, #990000 100%);

  /* === Typography === */
  --ff-display: "Brinnan", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-body:    "Brinnan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  /* === Spacing (8pt grid) === */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 160px;

  /* === Radii === */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 12px;
  --r-xl: 16px; --r-2xl: 24px; --r-3xl: 32px; --r-pill: 999px;

  /* === Shadows === */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.20);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.28);
  --shadow-lg: 0 32px 64px rgba(0,0,0,0.36);
  --shadow-glow-blue:   0 0 0 4px rgba(37,87,181,0.28);
  --shadow-glow-yellow: 0 0 0 4px rgba(245,197,24,0.32);

  /* === Transitions === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms var(--ease-out);
  --t-base: 220ms var(--ease-out);
  --t-slow: 360ms var(--ease-out);

  /* === Layout === */
  --container-max: 1280px;
  --container-narrow: 880px;
  --gutter-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(72px, 11vw, 160px);

  /* === z-index === */
  --z-nav: 100;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; padding-left: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible {
  outline: 2px solid var(--c-yellow-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Body === */
body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 767px) { body { font-size: 15px; } }

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter-x);
}
.container--narrow { max-width: var(--container-narrow); }

/* === Headings === */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-white);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: var(--sp-4); }
h3 { font-size: 1.35rem; margin-bottom: var(--sp-3); }

p { margin: 0 0 var(--sp-4); }
a:hover { color: var(--c-yellow-500); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-yellow-500);
  margin-bottom: var(--sp-4);
}

/* === Skip link === */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--c-yellow-500);
  color: var(--c-blue-900);
  padding: var(--sp-3) var(--sp-5);
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(11, 25, 41, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-4) 0;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.site-logo__mark {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.site-logo__text {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--c-white);
}
@media (max-width: 600px) {
  .site-logo__mark { width: 30px; height: 30px; }
  .site-logo__text { font-size: 1rem; }
}

.site-nav { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.site-nav a {
  color: var(--c-text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--t-fast);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--c-yellow-500); }

/* === Header search === */
.header-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.header-search__field {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0 var(--sp-4);
  gap: var(--sp-2);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.header-search__field:focus-within {
  border-color: var(--c-yellow-500);
  background: rgba(255,255,255,0.10);
}
.header-search__icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--c-text-mute);
  pointer-events: none;
}
.header-search__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  padding: var(--sp-2) 0;
  width: 100%;
}
.header-search__input::placeholder { color: var(--c-text-mute); }
.header-search__input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }

.header-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--c-bg-alt2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}
.hs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast);
}
.hs-item:last-child { border-bottom: none; }
.hs-item:hover { background: rgba(245,197,24,0.08); }
.hs-item__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.3;
}
.hs-item__excerpt {
  font-size: 0.78rem;
  color: var(--c-text-mute);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hs-item__excerpt mark {
  background: transparent;
  color: var(--c-yellow-500);
  font-weight: 600;
}
.hs-msg {
  padding: var(--sp-4);
  font-size: 0.88rem;
  color: var(--c-text-soft);
  margin: 0;
}

@media (max-width: 720px) {
  .site-header__inner { flex-wrap: wrap; gap: var(--sp-3); }
  .site-nav { width: auto; justify-content: flex-start; gap: var(--sp-4); }
  .site-nav a { font-size: 0.9rem; }
  .header-search { max-width: 100%; flex: 1; min-width: 140px; }
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  margin-top: 0;
  padding: var(--sp-5) 0 var(--sp-6);
  background: #0F1115;
  color: var(--c-text-mute);
  font-size: 0.9rem;
  border-top: 1px solid var(--c-border);
}
.site-footer a { color: var(--c-text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--c-yellow-500); }

/* top row: brand + social */
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--sp-3); }
.site-footer__brand img { height: 36px; width: auto; }
.site-footer__tagline {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-yellow-500);
  letter-spacing: 0.01em;
}
.site-footer__sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-text-mute);
}

/* social icons */
.site-footer__social { display: flex; gap: var(--sp-3); align-items: center; padding-top: var(--sp-1); }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--c-text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.site-footer .social-btn:hover {
  background: var(--c-yellow-500);
  color: #0F1115;
}
.social-btn svg { width: 17px; height: 17px; }

/* divider */
.site-footer__divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-7) 0 var(--sp-5);
}

/* bottom row: copyright / legal */
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.82rem;
  color: var(--c-text-mute);
}
.site-footer__copy { display: flex; flex-direction: column; gap: 2px; }
.site-footer__legal { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; }
.site-footer__legal a { color: var(--c-text-mute); font-size: 0.82rem; }
.site-footer__legal a:hover { color: var(--c-yellow-500); }
.site-footer__disclaimer {
  max-width: 55%;
  margin: 0;
  font-size: 0.75rem;
  color: var(--c-text-mute);
  opacity: 0.7;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 600px) {
  .site-footer__top { flex-direction: column; gap: var(--sp-5); }
  .site-footer__bottom { flex-direction: column; gap: var(--sp-3); }
  .site-footer__legal { gap: var(--sp-4); }
  .site-footer__disclaimer { max-width: 100%; text-align: left; }
}

/* ===================================================================
   Card grid (homepage 3 col × 5 row)
   =================================================================== */
.page-intro {
  text-align: center;
  margin: var(--sp-8) auto var(--sp-7);
  max-width: 760px;
}
.page-intro p { color: var(--c-text-soft); font-size: 1.1rem; }

/* ===================================================================
   About page
   =================================================================== */
.about-page {
  margin: var(--sp-8) auto var(--sp-9);
  padding: var(--sp-8) var(--gutter-x);
  background: var(--c-bg-alt2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}
.about-page h1 {
  margin-bottom: var(--sp-6);
}
.about-page__content {
  color: var(--c-text-soft);
  font-size: 1.08rem;
}
.about-page__content p:last-child {
  margin-bottom: 0;
}
.about-page__content a {
  color: var(--c-yellow-500);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.about-page__content a:hover {
  color: var(--c-yellow-400);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin: var(--sp-7) 0 var(--sp-8);
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--c-bg-alt2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}
.card__image {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--c-bg-alt);
}
.card__body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex-grow: 1;
}
.card__category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-yellow-500);
}
.card__title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.card__title a { color: var(--c-white); transition: color var(--t-fast); }
.card__title a:hover { color: var(--c-yellow-500); }
.card__excerpt {
  color: var(--c-text-soft);
  font-size: 0.95rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--c-text-mute);
  border-top: 1px solid var(--c-border);
}

/* ===================================================================
   Article page
   =================================================================== */
.article-hero {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 52vw, 520px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg-alt);
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 25, 41, 0.20) 0%,
    rgba(11, 25, 41, 0.55) 55%,
    rgba(11, 25, 41, 0.92) 100%);
}
.article-hero__content {
  position: relative;
  width: 100%;
  padding: var(--sp-7) 0;
}
.article-hero__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-yellow-500);
  margin-bottom: var(--sp-3);
}
.article-hero__category a { color: inherit; }
.article-hero h1 {
  max-width: 920px;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.92rem;
  color: var(--c-text-soft);
}
.article-hero__meta .sep { opacity: 0.4; }

.article {
  max-width: 1100px;
  margin: var(--sp-8) auto;
  padding: var(--sp-8) var(--gutter-x);
  font-size: 1.08rem;
  color: var(--c-gray-800);
  background: #ffffff;
  border-radius: var(--r-xl);
}
.article__lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--c-gray-900);
  font-weight: 400;
  margin-bottom: var(--sp-6);
}
.article p,
.article ul,
.article ol,
.article blockquote,
.article table { margin-bottom: var(--sp-5); }
.article ul, .article ol { padding-left: 1.25rem; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: var(--sp-2); }
.article h2 { margin-top: var(--sp-6); font-size: clamp(1.4rem, 3vw, 1.85rem); color: var(--c-blue-900); }
.article h3 { margin-top: var(--sp-6); font-size: 1.2rem; color: var(--c-blue-800); }
.article a {
  color: var(--c-blue-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.article a:hover { color: var(--c-blue-800); }
.article img {
  border-radius: var(--r-md);
  margin: var(--sp-6) auto;
  border: 1px solid var(--c-gray-200);
}
.article .it-media { margin: var(--sp-6) 0; clear: both; }
.article .it-media.it-center { text-align: center; }
.article .it-media.it-center img { width: 70%; margin: 0 auto; }
.article .it-media.it-left {
  float: left;
  max-width: min(46%, 360px);
  margin: 0.3rem var(--sp-5) var(--sp-3) 0;
}
.article .it-media.it-right {
  float: right;
  max-width: min(46%, 360px);
  margin: 0.3rem 0 var(--sp-3) var(--sp-5);
}
.article .alignleft,
.article .wp-block-image.alignleft,
.article figure.alignleft,
.article img.alignleft {
  float: left;
  max-width: min(46%, 360px);
  margin: 0.3rem var(--sp-5) var(--sp-3) 0;
}
.article .alignright,
.article .wp-block-image.alignright,
.article figure.alignright,
.article img.alignright {
  float: right;
  max-width: min(46%, 360px);
  margin: 0.3rem 0 var(--sp-3) var(--sp-5);
}
.article .aligncenter,
.article .wp-block-image.aligncenter,
.article figure.aligncenter,
.article img.aligncenter {
  display: block;
  float: none;
  margin-left: auto;
  margin-right: auto;
}
.article .it-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-bg-alt);
}
.article .it-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article::after { content: ''; display: block; clear: both; }
.article blockquote {
  border-left: 3px solid var(--c-blue-600);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-blue-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--c-gray-800);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article code {
  font-family: var(--ff-mono);
  background: var(--c-gray-100);
  border: 1px solid var(--c-gray-300);
  padding: 0.1em 0.4em;
  border-radius: var(--r-xs);
  font-size: 0.92em;
  color: var(--c-blue-900);
}
.article pre {
  background: var(--c-gray-900);
  border: 1px solid var(--c-gray-700);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  overflow-x: auto;
  margin-bottom: var(--sp-6);
}
.article pre code { background: none; border: 0; padding: 0; color: inherit; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article th, .article td {
  padding: var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--c-gray-200);
}
.article th { background: var(--c-blue-50); color: var(--c-blue-900); font-weight: 600; }
.article hr { border: 0; border-top: 1px solid var(--c-gray-200); margin: var(--sp-7) 0; }

@media (max-width: 900px) {
  .article .it-media.it-left,
  .article .it-media.it-right {
    float: none;
    max-width: 100%;
    margin: var(--sp-5) 0;
  }
  .article .alignleft,
  .article .alignright,
  .article .wp-block-image.alignleft,
  .article .wp-block-image.alignright,
  .article figure.alignleft,
  .article figure.alignright,
  .article img.alignleft,
  .article img.alignright {
    float: none;
    max-width: 100%;
    margin: var(--sp-5) 0;
  }
}

.article__footer {
  max-width: 1100px;
  margin: var(--sp-7) auto var(--sp-8);
  padding: 0 var(--gutter-x);
}
.article__tags-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  margin-bottom: var(--sp-3);
}
.article__updated { margin-top: var(--sp-5); color: var(--c-text-mute); font-size: 0.9rem; }

/* ===================================================================
   Tags / chips
   =================================================================== */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 197, 24, 0.10);
  color: var(--c-yellow-500);
  border: 1px solid rgba(245, 197, 24, 0.25);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35em 0.85em;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tag:hover {
  background: var(--c-yellow-500);
  color: var(--c-blue-900);
  border-color: var(--c-yellow-500);
}

/* ===================================================================
   Pagination
   =================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-8) 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 2.4em;
  text-align: center;
  padding: 0.55em 1em;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  color: var(--c-text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--t-fast);
}
.pagination a:hover {
  background: var(--c-yellow-500);
  color: var(--c-blue-900);
  border-color: var(--c-yellow-500);
}
.pagination .current {
  background: var(--c-yellow-500);
  color: var(--c-blue-900);
  border-color: var(--c-yellow-500);
  font-weight: 700;
}
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ===================================================================
   Section heading (per pagine indice tag/categoria)
   =================================================================== */
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  margin: var(--sp-8) 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  letter-spacing: -0.01em;
}
.section-title .accent { color: var(--c-yellow-500); }
.count-line { color: var(--c-text-mute); margin-bottom: var(--sp-5); }

/* ===================================================================
   Related articles
   =================================================================== */
.related {
  border-top: 1px solid var(--c-border);
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
}
.related h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }

/* ===================================================================
   Search (Pagefind UI overrides)
   =================================================================== */
.search-wrapper { max-width: 720px; margin: var(--sp-8) auto; }
#search {
  --pagefind-ui-primary: var(--c-yellow-500);
  --pagefind-ui-text: var(--c-text);
  --pagefind-ui-background: var(--c-bg-alt2);
  --pagefind-ui-border: var(--c-border);
  --pagefind-ui-tag: var(--c-bg-alt);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: var(--r-md);
  --pagefind-ui-font: var(--ff-body);
}

/* ===================================================================
   404
   =================================================================== */
.error-page { text-align: center; padding: var(--sp-10) 0 var(--sp-9); }
.error-page__code {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-workplace);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.error-page__msg { font-size: 1.2rem; color: var(--c-text-soft); }
.error-page__cat { font-size: clamp(4rem, 14vw, 7rem); line-height: 1; margin: 0 0 var(--sp-4); }
.error-page__cat-img { width: clamp(160px, 30vw, 280px); height: auto; margin: 0 auto var(--sp-4); display: block; border-radius: var(--radius-lg); }

/* === Utility === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* ===================================================================
   Inside Technologies Blog - global stylesheet
   Design tokens allineati a web-inside-technologies-vnext
   =================================================================== */

/* === Font: Brinnan (locale) === */
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Thin.otf") format("opentype");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brinnan";
  src: url("/fonts/Brinnan-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* === Brand palette === */
  --c-blue-900: #102B5C;
  --c-blue-800: #1A3F7F;
  --c-blue-600: #2557B5;
  --c-blue-100: #DCE6F5;
  --c-blue-50:  #EFF4FB;

  --c-yellow-500: #F5C518;
  --c-yellow-400: #FFD43B;
  --c-yellow-100: #FFF3C4;

  --c-red-700: #990000;
  --c-red-100: #F4D6D6;

  /* === Neutral === */
  --c-gray-900: #0F1115;
  --c-gray-800: #1A1D24;
  --c-gray-700: #3A3F47;
  --c-gray-500: #7A8088;
  --c-gray-300: #C4C8CE;
  --c-gray-200: #E4E6EA;
  --c-gray-100: #EFF1F4;
  --c-gray-50:  #F6F7F9;
  --c-white:    #FFFFFF;

  /* === Semantic (dark theme) === */
  --c-bg:        #0B1929;
  --c-bg-alt:    #09151F;
  --c-bg-alt2:   #0E2240;
  --c-text:      #F0F4FA;
  --c-text-soft: rgba(240,244,250,0.78);
  --c-text-mute: rgba(240,244,250,0.50);
  --c-border:    rgba(255,255,255,0.10);
  --c-border-strong: rgba(255,255,255,0.18);
  --c-link:      var(--c-yellow-500);

  /* === Gradients === */
  --grad-navy:        linear-gradient(135deg, #102B5C 0%, #1A3F7F 100%);
  --grad-cloud:       linear-gradient(135deg, #102B5C 0%, #2557B5 60%, #6FA8FF 100%);
  --grad-workplace:   linear-gradient(135deg, #102B5C 0%, #2557B5 50%, #F5C518 100%);
  --grad-security:    linear-gradient(135deg, #0F1115 0%, #2A0E0E 50%, #990000 100%);

  /* === Typography === */
  --ff-display: "Brinnan", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-body:    "Brinnan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  /* === Spacing (8pt grid) === */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 160px;

  /* === Radii === */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 12px;
  --r-xl: 16px; --r-2xl: 24px; --r-3xl: 32px; --r-pill: 999px;

  /* === Shadows === */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.20);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.28);
  --shadow-lg: 0 32px 64px rgba(0,0,0,0.36);
  --shadow-glow-blue:   0 0 0 4px rgba(37,87,181,0.28);
  --shadow-glow-yellow: 0 0 0 4px rgba(245,197,24,0.32);

  /* === Transitions === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms var(--ease-out);
  --t-base: 220ms var(--ease-out);
  --t-slow: 360ms var(--ease-out);

  /* === Layout === */
  --container-max: 1280px;
  --container-narrow: 880px;
  --gutter-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(72px, 11vw, 160px);

  /* === z-index === */
  --z-nav: 100;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; padding-left: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible {
  outline: 2px solid var(--c-yellow-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Body === */
body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 767px) { body { font-size: 15px; } }

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter-x);
}
.container--narrow { max-width: var(--container-narrow); }

/* === Headings === */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-white);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: var(--sp-4); }
h3 { font-size: 1.35rem; margin-bottom: var(--sp-3); }

p { margin: 0 0 var(--sp-4); }
a:hover { color: var(--c-yellow-500); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-yellow-500);
  margin-bottom: var(--sp-4);
}

/* === Skip link === */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--c-yellow-500);
  color: var(--c-blue-900);
  padding: var(--sp-3) var(--sp-5);
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(11, 25, 41, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-4) 0;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 36px; width: auto; }
@media (max-width: 600px) { .site-logo img { height: 30px; } }

.site-nav { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.site-nav a {
  color: var(--c-text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--t-fast);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--c-yellow-500); }

/* === Header search === */
.header-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.header-search__field {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0 var(--sp-4);
  gap: var(--sp-2);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.header-search__field:focus-within {
  border-color: var(--c-yellow-500);
  background: rgba(255,255,255,0.10);
}
.header-search__icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--c-text-mute);
  pointer-events: none;
}
.header-search__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  padding: var(--sp-2) 0;
  width: 100%;
}
.header-search__input::placeholder { color: var(--c-text-mute); }
.header-search__input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }

.header-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--c-bg-alt2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}
.hs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast);
}
.hs-item:last-child { border-bottom: none; }
.hs-item:hover { background: rgba(245,197,24,0.08); }
.hs-item__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.3;
}
.hs-item__excerpt {
  font-size: 0.78rem;
  color: var(--c-text-mute);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hs-item__excerpt mark {
  background: transparent;
  color: var(--c-yellow-500);
  font-weight: 600;
}
.hs-msg {
  padding: var(--sp-4);
  font-size: 0.88rem;
  color: var(--c-text-soft);
  margin: 0;
}

@media (max-width: 720px) {
  .site-header__inner { flex-wrap: wrap; gap: var(--sp-3); }
  .site-nav { width: auto; justify-content: flex-start; gap: var(--sp-4); }
  .site-nav a { font-size: 0.9rem; }
  .header-search { max-width: 100%; flex: 1; min-width: 140px; }
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  margin-top: 0;
  padding: var(--sp-5) 0 var(--sp-6);
  background: #0F1115;
  color: var(--c-text-mute);
  font-size: 0.9rem;
  border-top: 1px solid var(--c-border);
}
.site-footer a { color: var(--c-text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--c-yellow-500); }

/* top row: brand + social */
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--sp-3); }
.site-footer__brand img { height: 36px; width: auto; }
.site-footer__tagline {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-yellow-500);
  letter-spacing: 0.01em;
}
.site-footer__sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-text-mute);
}

/* social icons */
.site-footer__social { display: flex; gap: var(--sp-3); align-items: center; padding-top: var(--sp-1); }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--c-text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.site-footer .social-btn:hover {
  background: var(--c-yellow-500);
  color: #0F1115;
}
.social-btn svg { width: 17px; height: 17px; }

/* divider */
.site-footer__divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-7) 0 var(--sp-5);
}

/* bottom row: copyright / legal */
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.82rem;
  color: var(--c-text-mute);
}
.site-footer__copy { display: flex; flex-direction: column; gap: 2px; }
.site-footer__legal { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; }
.site-footer__legal a { color: var(--c-text-mute); font-size: 0.82rem; }
.site-footer__legal a:hover { color: var(--c-yellow-500); }
.site-footer__disclaimer {
  max-width: 55%;
  margin: 0;
  font-size: 0.75rem;
  color: var(--c-text-mute);
  opacity: 0.7;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 600px) {
  .site-footer__top { flex-direction: column; gap: var(--sp-5); }
  .site-footer__bottom { flex-direction: column; gap: var(--sp-3); }
  .site-footer__legal { gap: var(--sp-4); }
  .site-footer__disclaimer { max-width: 100%; text-align: left; }
}

/* ===================================================================
   Card grid (homepage 3 col × 5 row)
   =================================================================== */
.page-intro {
  text-align: center;
  margin: var(--sp-8) auto var(--sp-7);
  max-width: 760px;
}
.page-intro p { color: var(--c-text-soft); font-size: 1.1rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin: var(--sp-7) 0 var(--sp-8);
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--c-bg-alt2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}
.card__image {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--c-bg-alt);
}
.card__body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex-grow: 1;
}
.card__category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-yellow-500);
}
.card__title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.card__title a { color: var(--c-white); transition: color var(--t-fast); }
.card__title a:hover { color: var(--c-yellow-500); }
.card__excerpt {
  color: var(--c-text-soft);
  font-size: 0.95rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--c-text-mute);
  border-top: 1px solid var(--c-border);
}

/* ===================================================================
   Article page
   =================================================================== */
.article-hero {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 52vw, 520px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg-alt);
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 25, 41, 0.20) 0%,
    rgba(11, 25, 41, 0.55) 55%,
    rgba(11, 25, 41, 0.92) 100%);
}
.article-hero__content {
  position: relative;
  width: 100%;
  padding: var(--sp-7) 0;
}
.article-hero__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-yellow-500);
  margin-bottom: var(--sp-3);
}
.article-hero__category a { color: inherit; }
.article-hero h1 {
  max-width: 920px;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.92rem;
  color: var(--c-text-soft);
}
.article-hero__meta .sep { opacity: 0.4; }

.article {
  max-width: 1100px;
  margin: var(--sp-8) auto;
  padding: var(--sp-8) var(--gutter-x);
  font-size: 1.08rem;
  color: var(--c-gray-800);
  background: #ffffff;
  border-radius: var(--r-xl);
}
.article__lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--c-gray-900);
  font-weight: 400;
  margin-bottom: var(--sp-6);
}
.article p,
.article ul,
.article ol,
.article blockquote,
.article table { margin-bottom: var(--sp-5); }
.article ul, .article ol { padding-left: 1.25rem; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: var(--sp-2); }
.article h2 { margin-top: var(--sp-6); font-size: clamp(1.4rem, 3vw, 1.85rem); color: var(--c-blue-900); }
.article h3 { margin-top: var(--sp-6); font-size: 1.2rem; color: var(--c-blue-800); }
.article a {
  color: var(--c-blue-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.article a:hover { color: var(--c-blue-800); }
.article img {
  border-radius: var(--r-md);
  margin: var(--sp-6) auto;
  border: 1px solid var(--c-gray-200);
}
.article .it-media { margin: var(--sp-6) 0; clear: both; }
.article .it-media.it-center { text-align: center; }
.article .it-media.it-center img { width: 70%; margin: 0 auto; }
.article .it-media.it-left {
  float: left;
  max-width: min(46%, 360px);
  margin: 0.3rem var(--sp-5) var(--sp-3) 0;
}
.article .it-media.it-right {
  float: right;
  max-width: min(46%, 360px);
  margin: 0.3rem 0 var(--sp-3) var(--sp-5);
}
.article .alignleft,
.article .wp-block-image.alignleft,
.article figure.alignleft,
.article img.alignleft {
  float: left;
  max-width: min(46%, 360px);
  margin: 0.3rem var(--sp-5) var(--sp-3) 0;
}
.article .alignright,
.article .wp-block-image.alignright,
.article figure.alignright,
.article img.alignright {
  float: right;
  max-width: min(46%, 360px);
  margin: 0.3rem 0 var(--sp-3) var(--sp-5);
}
.article .aligncenter,
.article .wp-block-image.aligncenter,
.article figure.aligncenter,
.article img.aligncenter {
  display: block;
  float: none;
  margin-left: auto;
  margin-right: auto;
}
.article .it-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-bg-alt);
}
.article .it-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article::after { content: ''; display: block; clear: both; }
.article blockquote {
  border-left: 3px solid var(--c-blue-600);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-blue-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--c-gray-800);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article code {
  font-family: var(--ff-mono);
  background: var(--c-gray-100);
  border: 1px solid var(--c-gray-300);
  padding: 0.1em 0.4em;
  border-radius: var(--r-xs);
  font-size: 0.92em;
  color: var(--c-blue-900);
}
.article pre {
  background: var(--c-gray-900);
  border: 1px solid var(--c-gray-700);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  overflow-x: auto;
  margin-bottom: var(--sp-6);
}
.article pre code { background: none; border: 0; padding: 0; color: inherit; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article th, .article td {
  padding: var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--c-gray-200);
}
.article th { background: var(--c-blue-50); color: var(--c-blue-900); font-weight: 600; }
.article hr { border: 0; border-top: 1px solid var(--c-gray-200); margin: var(--sp-7) 0; }

@media (max-width: 900px) {
  .article .it-media.it-left,
  .article .it-media.it-right {
    float: none;
    max-width: 100%;
    margin: var(--sp-5) 0;
  }
  .article .alignleft,
  .article .alignright,
  .article .wp-block-image.alignleft,
  .article .wp-block-image.alignright,
  .article figure.alignleft,
  .article figure.alignright,
  .article img.alignleft,
  .article img.alignright {
    float: none;
    max-width: 100%;
    margin: var(--sp-5) 0;
  }
}

.article__footer {
  max-width: 1100px;
  margin: var(--sp-7) auto var(--sp-8);
  padding: 0 var(--gutter-x);
}
.article__tags-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  margin-bottom: var(--sp-3);
}
.article__updated { margin-top: var(--sp-5); color: var(--c-text-mute); font-size: 0.9rem; }

/* ===================================================================
   Tags / chips
   =================================================================== */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 197, 24, 0.10);
  color: var(--c-yellow-500);
  border: 1px solid rgba(245, 197, 24, 0.25);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35em 0.85em;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tag:hover {
  background: var(--c-yellow-500);
  color: var(--c-blue-900);
  border-color: var(--c-yellow-500);
}

/* ===================================================================
   Pagination
   =================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-8) 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 2.4em;
  text-align: center;
  padding: 0.55em 1em;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  color: var(--c-text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--t-fast);
}
.pagination a:hover {
  background: var(--c-yellow-500);
  color: var(--c-blue-900);
  border-color: var(--c-yellow-500);
}
.pagination .current {
  background: var(--c-yellow-500);
  color: var(--c-blue-900);
  border-color: var(--c-yellow-500);
  font-weight: 700;
}
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ===================================================================
   Section heading (per pagine indice tag/categoria)
   =================================================================== */
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  margin: var(--sp-8) 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  letter-spacing: -0.01em;
}
.section-title .accent { color: var(--c-yellow-500); }
.count-line { color: var(--c-text-mute); margin-bottom: var(--sp-5); }

/* ===================================================================
   Related articles
   =================================================================== */
.related {
  border-top: 1px solid var(--c-border);
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
}
.related h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }

/* ===================================================================
   Search (Pagefind UI overrides)
   =================================================================== */
.search-wrapper { max-width: 720px; margin: var(--sp-8) auto; }
#search {
  --pagefind-ui-primary: var(--c-yellow-500);
  --pagefind-ui-text: var(--c-text);
  --pagefind-ui-background: var(--c-bg-alt2);
  --pagefind-ui-border: var(--c-border);
  --pagefind-ui-tag: var(--c-bg-alt);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: var(--r-md);
  --pagefind-ui-font: var(--ff-body);
}

/* ===================================================================
   404
   =================================================================== */
.error-page { text-align: center; padding: var(--sp-10) 0 var(--sp-9); }
.error-page__code {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-workplace);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.error-page__msg { font-size: 1.2rem; color: var(--c-text-soft); }
.error-page__cat { font-size: clamp(4rem, 14vw, 7rem); line-height: 1; margin: 0 0 var(--sp-4); }
.error-page__cat-img { width: clamp(160px, 30vw, 280px); height: auto; margin: 0 auto var(--sp-4); display: block; border-radius: var(--radius-lg); }

/* === Utility === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ===================================================================
   Hero - canvas animato + hero-grid
   =================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
}

.hero--dawn {
  background: #EAF6FF;
}

.hero--mesh {
  background: #07122A;
}

#hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* raccordo gradiente verso il bg della pagina */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(to bottom, transparent, #F6F8FB);
  z-index: 1;
  pointer-events: none;
}

.hero--dawn::before,
.hero--mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero--dawn::before {
  background:
    linear-gradient(115deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.45) 42%, rgba(255,255,255,0) 78%),
    radial-gradient(circle at 18% 20%, rgba(15,76,129,.16), transparent 32%),
    radial-gradient(circle at 82% 22%, rgba(143,216,255,.26), transparent 34%);
}

.hero--mesh::before {
  background:
    linear-gradient(110deg, rgba(7,18,42,.30), rgba(7,18,42,0) 42%),
    repeating-linear-gradient(115deg, rgba(126,200,227,.09) 0 1px, transparent 1px 92px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.28) 82%, transparent);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

/* --- Testo hero --- */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-copy .eyebrow {
  color: #7EC8E3;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 0.35em 1em;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.hero-copy .eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7EC8E3;
  flex-shrink: 0;
}

.hero-copy h1         { color: #FFFFFF; margin-bottom: 0; }
.hero-copy h1 .accent { color: #F0C040; }

.hero-copy p.lead        { color: rgba(255, 255, 255, .66); font-size: 1.15rem; margin-bottom: 0; }
.hero-copy p.lead strong { color: #FFFFFF; }

.hero--dawn .hero-copy h1 { color: #0B2545; }
.hero--dawn .hero-copy h1 .accent { color: #B88400; }
.hero--dawn .hero-copy p.lead { color: rgba(11, 37, 69, .72); }
.hero--dawn .hero-copy p.lead strong { color: #0B2545; }

.hero--dawn .hero-copy .eyebrow {
  color: #0B4F8C;
  background: rgba(255, 255, 255, .68);
  border-color: rgba(15, 108, 189, .18);
  box-shadow: 0 16px 40px -28px rgba(15, 76, 129, .45);
}

.hero--dawn .hero-copy .eyebrow .dot {
  background: #0F6CBD;
}

.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7em 1.4em;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  transition: border-color var(--t-base), background var(--t-base);
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .9);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 4px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xl);
  background:
    linear-gradient(90deg, rgba(240,192,64,.18), transparent 38%),
    rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 24px 60px -44px rgba(0,0,0,.9);
  overflow: hidden;
}

.hero-stat {
  position: relative;
  min-height: 104px;
  padding: 20px 22px 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.hero-stat::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F0C040;
  box-shadow: 0 0 0 5px rgba(240,192,64,.12);
}

.hero-stat::after {
  content: '';
  position: absolute;
  left: 25px;
  right: 22px;
  top: 23px;
  height: 1px;
  background: linear-gradient(90deg, rgba(240,192,64,.65), rgba(255,255,255,.08));
  transform: translateX(12px);
}

.hero-stat__value {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 0.82;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.06em;
}

.hero-stat__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, .52);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero-stat__text strong {
  color: #F0C040;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.hero--dawn .hero-stats {
  border-color: rgba(15, 76, 129, .14);
  background:
    linear-gradient(90deg, rgba(240,192,64,.18), transparent 42%),
    rgba(255, 255, 255, .70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 24px 70px -46px rgba(15,76,129,.48);
}

.hero--dawn .hero-stat + .hero-stat {
  border-left-color: rgba(15, 76, 129, .12);
}

.hero--dawn .hero-stat::after {
  background: linear-gradient(90deg, rgba(184,132,0,.58), rgba(15,76,129,.10));
}

.hero--dawn .hero-stat__value {
  color: #0B2545;
}

.hero--dawn .hero-stat__text {
  color: rgba(11, 37, 69, .50);
}

.hero--dawn .hero-stat__text strong {
  color: #B88400;
}

/* --- Portrait card --- */
.portrait-wrap {
  position: relative;
  flex-shrink: 0;
}

.portrait-card {
  position: relative;
  width: 300px;
  height: 380px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
}

.hero--dawn .portrait-card {
  box-shadow: 0 34px 80px -36px rgba(15,76,129,.62), 0 0 0 1px rgba(255,255,255,.56);
}

/* --- Carosello --- */
.carousel-slides { position: relative; width: 100%; height: 100%; }

.c-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.c-slide.active { opacity: 1; pointer-events: auto; }
.c-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-alt2);
}
.slide-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 72px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px;
  z-index: 10;
}
.cdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer; padding: 0;
  transition: background .25s, transform .2s;
}
.cdot.active { background: #fff; transform: scale(1.3); }

.portrait-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  background: rgba(11, 25, 41, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg);
  padding: 0.55em 0.9em;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  z-index: 10;
}

/* --- Animazioni hero --- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .hero-copy .eyebrow   { animation: heroFadeUp .65s cubic-bezier(.22,.8,.36,1) 0.08s both; }
  .hero-copy h1         { animation: heroFadeUp .70s cubic-bezier(.22,.8,.36,1) 0.22s both; }
  .hero-copy p.lead     { animation: heroFadeUp .70s cubic-bezier(.22,.8,.36,1) 0.38s both; }
  .hero-copy .cta-row   { animation: heroFadeUp .65s cubic-bezier(.22,.8,.36,1) 0.52s both; }
  .hero-copy .hero-stats { animation: heroFadeUp .65s cubic-bezier(.22,.8,.36,1) 0.66s both; }
  .portrait-wrap        { animation: heroFadeIn .90s ease                       0.40s both; }
}

/* --- Responsive hero --- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-wrap { max-width: 380px; margin: 0 auto; }
  .portrait-card { width: 100%; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .portrait-card { height: 320px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat { min-height: 96px; padding: 18px; }
  .hero-stat:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero-stat:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ===================================================================
   Latest section - homepage articoli
   =================================================================== */
.latest-section {
  background: #F6F8FB;
  padding: var(--sp-8) 0 var(--sp-10);
}

/* Header "LATEST / All articles →" */
.latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid #D0D8E4;
}
.latest-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #56677C;
}
.latest-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-blue-600);
  text-decoration: none;
  transition: color var(--t-fast);
}
.latest-all:hover { color: var(--c-yellow-500); }

/* Featured article - immagine sx + testo dx */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  aspect-ratio: 32 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  background: #FFFFFF;
  border: 1px solid #D0D8E4;
  text-decoration: none;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.featured-article:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-color: #B0BDD0;
}
.featured-article__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.featured-article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.featured-article:hover .featured-article__img img { transform: scale(1.03); }
.featured-article__img-placeholder {
  width: 100%; height: 100%;
  background: #E2E8F1;
  min-height: 260px;
}
.featured-article__body {
  min-height: 0;
  padding: var(--sp-6) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  justify-content: center;
}
.featured-article__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0F6CBD;
  background: #EAF2FB;
  border: 1px solid #C2D9F0;
  padding: 0.3em 0.85em;
  border-radius: var(--r-pill);
  align-self: flex-start;
}
.featured-article__title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900;
  line-height: 1.2;
  color: #000000;
  margin: 0;
  letter-spacing: -0.02em;
  transition: color var(--t-fast);
}
.featured-article:hover .featured-article__title { color: #000000; }
.featured-article__excerpt {
  color: #56677C;
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-article__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.85rem;
  color: #56677C;
  margin-top: auto;
}
.featured-article__sep { opacity: 0.4; }

/* Overlay grid - 3 card con immagine + testo sovrapposto */
.overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.overlay-card {
  position: relative;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  background: var(--c-bg-alt2);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.overlay-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-border-strong); }
.overlay-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.overlay-card:hover .overlay-card__img { transform: scale(1.04); }
.overlay-card__img--placeholder {
  background: var(--c-bg-alt);
}
.overlay-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 21, 31, 0.25) 0%,
    rgba(9, 21, 31, 0.55) 40%,
    rgba(9, 21, 31, 0.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  gap: var(--sp-2);
}
.overlay-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  align-self: flex-start;
  margin-bottom: var(--sp-1);
}
.overlay-card__title {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 900;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}
.overlay-card:hover .overlay-card__title { color: var(--c-yellow-500); }
.overlay-card__excerpt {
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.overlay-card__date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--sp-2);
}

/* Responsive latest section */
@media (max-width: 920px) {
  .featured-article {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }
  .featured-article__img { aspect-ratio: 16 / 9; }
  .overlay-grid { grid-template-columns: repeat(2, 1fr); }
  .overlay-grid .overlay-card:last-child { display: none; }
}
@media (max-width: 640px) {
  .overlay-grid { grid-template-columns: 1fr; }
  .overlay-grid .overlay-card:last-child { display: block; }
  .overlay-card { aspect-ratio: 16 / 9; }
  .featured-article__body { padding: var(--sp-5); }
}

/* ===================================================================
   hl-card - card ibrida: immagine+overlay in alto, body chiaro in basso
   (usata nelle 3 card della homepage dopo il featured)
   =================================================================== */
.hl-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #D0D8E4;
  text-decoration: none;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.hl-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-color: #B0BDD0;
}

/* Immagine con overlay testo */
.hl-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.hl-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hl-card:hover .hl-card__img { transform: scale(1.04); }
.hl-card__img--placeholder {
  width: 100%; height: 100%;
  background: #1A2F50;
}
.hl-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 20, 40, 0.55) 0%,
    rgba(9, 20, 40, 0.10) 50%,
    rgba(9, 20, 40, 0.50) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
}
.hl-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}
.hl-card__img-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hl-card__img-title {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--c-yellow-500);
  letter-spacing: -0.01em;
}
.hl-card__img-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  padding-left: 14px;
}

/* Body chiaro sotto */
.hl-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
}
.hl-card__title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0;
  transition: color var(--t-fast);
}
.hl-card:hover .hl-card__title { color: #000000; }
.hl-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #56677C;
}
.hl-card__meta-sep { opacity: 0.45; }

/* ===================================================================
   Override .card dentro .latest-section - tema chiaro
   (non modifica il CSS globale delle card usato sulle altre pagine)
   =================================================================== */
.latest-section .card {
  background: #FFFFFF;
  border-color: #D0D8E4;
}
.latest-section .card:hover {
  border-color: #B0BDD0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.latest-section .card__title a {
  color: #000000;
}
.latest-section .card__title a:hover {
  color: #000000;
}
.latest-section .card__excerpt {
  display: none;
}
.latest-section .card__category {
  color: #0F6CBD;
}
.latest-section .card__meta {
  color: #7A8898;
  border-top-color: #E2E8F1;
}
.latest-section .card__image {
  background: #E2E8F1;
}

/* ===================================================================
   Paginazione dentro .latest-section - tema chiaro
   =================================================================== */
.latest-section .pagination a,
.latest-section .pagination span {
  border-color: #C8D4E4;
  color: #1A2330;
  background: #FFFFFF;
}
.latest-section .pagination a:hover {
  background: #0F6CBD;
  color: #FFFFFF;
  border-color: #0F6CBD;
}
.latest-section .pagination .current {
  background: #0F6CBD;
  color: #FFFFFF;
  border-color: #0F6CBD;
}

.remaining-grid { margin-top: var(--sp-6); }

/* Structured code cards for article KQL and PowerShell snippets */
.article .it-code {
  margin: var(--sp-6) 0;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: 0 12px 30px rgba(15,17,21,0.08);
}
.article .it-code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-gray-50);
  border-bottom: 1px solid var(--c-gray-200);
}
.article .it-code__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--c-blue-900);
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.25;
}
.article .it-code__title span {
  color: var(--c-gray-500);
  font-size: 0.78rem;
  font-weight: 600;
}
.article .it-code__copy {
  flex: 0 0 auto;
  border: 1px solid rgba(16,43,92,0.18);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.68rem;
  color: var(--c-blue-900);
  background: var(--c-white);
  font-size: 0.78rem;
  font-weight: 800;
}
.article .it-code pre {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--c-gray-900);
}
.article .it-code code {
  display: block;
  padding: var(--sp-4);
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #dbeafe;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre;
}
.article .it-code--kql .it-code__head {
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-blue-900), var(--c-blue-600));
  border-bottom: 0;
}
.article .it-code--kql .it-code__title,
.article .it-code--kql .it-code__title span {
  color: var(--c-white);
}
.article .it-code--kql .it-code__copy {
  border: 0;
  color: var(--c-gray-900);
  background: var(--c-yellow-500);
}
.article .it-code--kql pre {
  background: linear-gradient(90deg, rgba(245,197,24,0.1), transparent 72px), var(--c-gray-900);
}
.article .it-code--ps .it-code__head {
  color: var(--c-white);
  background: #111827;
  border-bottom-color: #243044;
}
.article .it-code--ps .it-code__title,
.article .it-code--ps .it-code__title span {
  color: var(--c-white);
}
.article .it-code--ps pre {
  background: #050816;
}
.article .it-code--ps code {
  color: #e5e7eb;
}
.article .it-code__dots {
  display: inline-flex;
  gap: 6px;
  margin-right: 8px;
  vertical-align: middle;
}
.article .it-code__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}
.article .it-code__dots span:nth-child(2) { background: #f59e0b; }
.article .it-code__dots span:nth-child(3) { background: #22c55e; }

@media (max-width: 640px) {
  .article .it-code__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .article .it-code__copy {
    width: 100%;
    justify-content: center;
  }
}
