/* ==========================================================
   BLOG — DINA FIORENTINO
   ========================================================== */

:root {
  --blog-bg: #ffffff;
  --blog-text: #10111a;
  --blog-muted: #64677a;

  --blog-purple: #5547e7;
  --blog-purple-dark: #4135cb;
  --blog-purple-light: #7b67f0;

  --blog-soft: #f6f5ff;
  --blog-soft-2: #efedff;

  --blog-border: rgba(62, 54, 150, 0.11);

  --blog-shadow:
    0 18px 55px rgba(54, 46, 132, 0.08);

  --blog-width: 1240px;
}


/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.blog-page {
  margin: 0;

  overflow-x: hidden;

  background: var(--blog-bg);

  color: var(--blog-text);

  font-family:
    "Plus Jakarta Sans",
    "Poppins",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

body.blog-page a {
  color: inherit;
}

.blog-shell {
  width: min(
    calc(100% - 64px),
    var(--blog-width)
  );

  margin-inline: auto;
}

.text-gradient {
  background:
    linear-gradient(
      90deg,
      #5145dd,
      #7560ef
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}



/* ==========================================================
   HERO
   ========================================================== */

.blog-hero {
  position: relative;

  overflow: hidden;

background:
  radial-gradient(
    circle at 78% 22%,
    rgba(111, 86, 238, 0.13),
    transparent 34%
  ),
  radial-gradient(
    circle at 100% 72%,
    rgba(142, 115, 243, 0.11),
    transparent 30%
  ),
  linear-gradient(
    115deg,
    #ffffff 0%,
    #f9f8ff 42%,
    #f4f2ff 100%
  );

  border-bottom:
    1px solid rgba(85, 71, 231, 0.06);
}

.blog-hero__inner {
width: min(
  calc(100% - 80px),
  1480px
  );

  min-height: 400px;

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    minmax(380px, 0.84fr)
    minmax(600px, 1.36fr);

  align-items: center;

  gap: 40px;
}


/* LEFT */

.blog-hero__content {
  position: relative;

  z-index: 10;

  padding: 48px 0;
}

.blog-hero__eyebrow,
.section-eyebrow {
  margin: 0 0 16px;

  color: #26227d;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}

.blog-hero__title {
  max-width: 540px;

  margin: 0;

  font-size:
    clamp(42px, 4.1vw, 60px);

  line-height: 1.01;

  letter-spacing: -0.052em;

  font-weight: 700;
}

.blog-hero__text {
  max-width: 530px;

  margin: 23px 0 0;

  color: #56596b;

  font-size: 14.5px;

  line-height: 1.68;
}

.blog-topics {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  max-width: 520px;

  margin-top: 20px;
}

.blog-topics span {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 35px;

  padding: 7px 18px;

  border:
    1px solid rgba(55, 49, 124, 0.13);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.75);

  color: #242536;

  font-size: 11px;

  font-weight: 700;

  box-shadow:
    0 5px 16px rgba(54, 47, 120, 0.025);
}


/* ==========================================================
   ARTICLES
   ========================================================== */

.blog-articles {
  padding:
    42px 0 22px;
}

.articles-heading {
  display:
    grid;

  grid-template-columns:
    1fr auto;

  align-items:
    end;

  gap:
    50px;

  margin-bottom:
    17px;
}

.articles-heading h2 {
  margin:
    0;

  font-size:
    clamp(32px, 3vw, 45px);

  line-height:
    1.06;

  letter-spacing:
    -0.045em;
}

.articles-heading__aside {
  display:
    flex;

  align-items:
    center;

  gap:
    40px;

  padding-bottom:
    5px;
}

.articles-heading__aside p {
  max-width:
    310px;

  margin:
    0;

  color:
    #6b6d80;

  font-size:
    12px;

  line-height:
    1.45;
}

.articles-heading__link {
  display:
    inline-flex;

  gap:
    10px;

  color:
    var(--blog-purple);

  font-size:
    11px;

  font-weight:
    700;

  white-space:
    nowrap;

  text-decoration:
    none;
}

.articles-heading__link:hover,
.articles-heading__link:focus-visible {
  text-decoration:
    none;
}

/* ==========================================================
   ARTICLE GRID
   ========================================================== */

.article-grid {
  display:
    grid;

  grid-template-columns:
    1.7fr 0.68fr 0.68fr;

  gap:
    14px;
}

.article-card {
  overflow:
    hidden;

  min-width:
    0;

  border:
    1px solid var(--blog-border);

  border-radius:
    13px;

  background:
    #ffffff;

  box-shadow:
    0 8px 25px rgba(53, 48, 113, 0.025);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.article-card:hover {
  transform:
    translateY(-3px);

  box-shadow:
    0 14px 35px rgba(53, 48, 113, 0.075);
}

.article-card--featured {
  display:
    grid;

  grid-template-columns:
    1.04fr 1fr;
}


/* ==========================================================
   FEATURED VISUAL
   ========================================================== */

.featured-visual {
  position:
    relative;

  min-height:
    285px;

  overflow:
    hidden;

  padding:
    25px;

  background:
    radial-gradient(
      circle at 10% 85%,
      rgba(124, 92, 232, 0.45),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #282070,
      #4130a4 54%,
      #6e4ce0
    );

  color:
    #ffffff;
}

.featured-visual::after {
  content:
    "";

  position:
    absolute;

  width:
    220px;

  height:
    220px;

  left:
    60px;

  bottom:
    -150px;

  border:
    1px solid rgba(255, 255, 255, 0.12);

  border-radius:
    50%;
}

.featured-visual__tag {
  display:
    inline-flex;

  padding:
    7px 12px;

  border-radius:
    8px;

  background:
    rgba(255, 255, 255, 0.17);

  font-size:
    9px;

  font-weight:
    700;
}



/* ==========================================================
   ARTICLE BODY
   ========================================================== */

.article-card__body {
  display:
    flex;

  flex-direction:
    column;

  padding:
    21px;
}

.article-card--featured
.article-card__body {
  padding:
    26px 24px;
}

.article-meta {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    10px;

  margin-bottom:
    12px;
}

.article-meta span {
  color:
    #777a8f;

  font-size:
    8px;

  font-weight:
    800;

  letter-spacing:
    0.08em;
}

.article-meta span:first-child {
  color:
    var(--blog-purple);
}

.article-card h3 {
  margin:
    0;

  font-size:
    19px;

  line-height:
    1.15;

  letter-spacing:
    -0.035em;
}

.article-card--featured h3 {
  font-size:
    25px;
}

.article-card p {
  margin:
    14px 0 0;

  color:
    #6b6d7e;

  font-size:
    11.5px;

  line-height:
    1.5;
}

.article-status {
  align-self:
    flex-start;

  margin-top:
    auto;

  padding:
    7px 12px;

  border-radius:
    7px;

  background:
    #f0eeff;

  color:
    var(--blog-purple);

  font-size:
    8px;

  font-weight:
    700;
}


/* ==========================================================
   SMALL ARTICLE VISUALS
   ========================================================== */

.article-card__visual {
  height:
    108px;

  overflow:
    hidden;

  margin:
    8px;

  border-radius:
    9px;

  background:
    #f3f2ff;
}


/* DAX */

.article-card__visual--dax {
  display:
    grid;

  grid-template-columns:
    52px 1fr;

  gap:
    10px;

  padding:
    13px;
}

.dax-badge {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    7px;

   background:
    linear-gradient(
      135deg,
      #f1efff 0%,
      #e9e6ff 55%,
      #f7f6ff 100%
    );

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(86, 67, 220, 0.12);
  color:
    var(--blog-purple);

  font-size:
    10px;

  font-weight:
    800;
}

.dax-code {
  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  padding:
    10px;

  border:
    1px solid rgba(82, 66, 217, 0.09);

  border-radius:
    7px;

  background:
    rgba(255, 255, 255, 0.7);

  color:
    #5447d8;

  font-family:
    monospace;

  font-size:
    7px;

  line-height:
    1.5;
}


/* STORY */

.article-card__visual--story {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    12px;
}

.story-chart {
  position:
    relative;

  width:
    100%;

  height:
    100%;
}

.story-bars {
  position:
    absolute;

  left:
    15px;

  bottom:
    5px;

  width:
    90px;

  height:
    60px;

  display:
    flex;

  align-items:
    flex-end;

  gap:
    6px;
}

.story-bars span {
  flex:
    1;

  border-radius:
    3px 3px 0 0;

  background:
    linear-gradient(
      180deg,
      #a58bf5,
      #5b4ce1
    );
}

.story-bars span:nth-child(1) {
  height:
    30%;
}

.story-bars span:nth-child(2) {
  height:
    55%;
}

.story-bars span:nth-child(3) {
  height:
    72%;
}

.story-bars span:nth-child(4) {
  height:
    95%;
}

.story-chart svg {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  color:
    #6e5ae8;
}


/* ==========================================================
   CTA COMPACT
   ========================================================== */

.blog-cta {
  padding:
    20px 0 16px;
}

.blog-cta__inner {
  min-height:
    78px;

  display:
    grid;

  grid-template-columns:
    1fr auto;

  align-items:
    center;

  gap:
    30px;

  padding:
    18px 55px;

  overflow:
    hidden;

  border:
    1px solid rgba(86, 71, 218, 0.07);

  border-radius:
    12px;

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(130, 94, 230, 0.09),
      transparent 25%
    ),
    linear-gradient(
      90deg,
      #faf9ff,
      #f2f0ff
    );
}

.blog-cta__copy
.section-eyebrow {
  margin-bottom:
    6px;
}

.blog-cta h2 {
  max-width:
    700px;

  margin:
    0;

  font-size:
    19px;

  line-height:
    1.2;

  letter-spacing:
    -0.025em;
}

.blog-cta__actions {
  display:
    flex;

  align-items:
    center;

  gap:
    12px;
}

.blog-button {
  min-width:
    142px;

  min-height:
    40px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    12px;

  padding:
    9px 16px;

  border-radius:
    8px;

  font-size:
    10px;

  font-weight:
    700;

  text-decoration:
    none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-button:hover {
  transform:
    translateY(-2px);
}

.blog-button--primary {
  border:
    1px solid transparent;

  background:
    linear-gradient(
      90deg,
      #5547e7,
      #6d5af0
    );

  color:
    #ffffff;

  box-shadow:
    0 8px 20px rgba(86, 71, 218, 0.15);
}

.blog-button--secondary {
  border:
    1px solid var(--blog-purple);

  background:
    rgba(255, 255, 255, 0.55);

  color:
    var(--blog-purple);
}

/* ==========================================================
   SMALL DESKTOP / 1025px - 1200px
   ========================================================== */

@media (min-width: 1025px) and (max-width: 1200px) {

  .article-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .article-card--featured {
    grid-column:
      1 / -1;
  }

  .blog-hero__content {
  width: 42%;
  max-width: 570px;
}

.blog-hero__title {
  max-width: 540px;

  text-wrap: initial;
}

.blog-hero__text {
  max-width: 530px;
}

.blog-topics {
  width: auto;
  max-width: 520px;

  flex-wrap: wrap;
}
}


/* ==========================================================
   TABLET
   ========================================================== */

/* ==========================================================
   TABLET LANDSCAPE / 769px - 1024px
   ========================================================== */

@media (min-width: 769px) and (max-width: 1024px) {

  .blog-shell {
    width:
      min(
        calc(100% - 40px),
        var(--blog-width)
      );
  }

  .articles-heading {
    grid-template-columns:
      1fr;

    gap:
      15px;
  }

  .articles-heading__aside {
    justify-content:
      space-between;
  }

  .article-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .article-card--featured {
    grid-column:
      1 / -1;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

  .blog-hero__title {
    font-size:
      clamp(35px, 10vw, 46px);
  }

  .blog-hero__text {
    font-size:
      14px;
  }

  .blog-topics {
    flex-wrap:
      nowrap;

    overflow-x:
      auto;

    padding-bottom:
      6px;

    scrollbar-width:
      none;
  }

  .blog-topics::-webkit-scrollbar {
    display:
      none;
  }

  .blog-topics span {
    flex:
      0 0 auto;
  }

    /* ARTICLES HEADING */
  .articles-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .articles-heading__aside {
    width: 100%;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 10px;

    padding-bottom: 0;
  }

  .articles-heading__aside p {
    max-width: none;
  }

  .article-grid {
    grid-template-columns:
      1fr;
  }

  .article-card--featured {
    display:
      block;

    grid-column:
      auto;
  }

  .featured-visual {
    min-height:
      245px;
  }

  .article-card__visual {
    height:
      155px;
  }

  .article-card h3,
  .article-card--featured h3 {
    font-size:
      22px;
  }

  .article-card p {
    font-size:
      13px;
  }

  .article-status {
    margin-top:
      25px;
  }

    /* HERO */
  .blog-hero {
    min-height: auto;
  }

  .blog-hero::before {
  position: relative;
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 1586 / 992;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

  .blog-hero::after {
    display: none;
  }

  .blog-hero__inner {
    min-height: auto;

    display: block;

    padding-top: 50px;
  }

  .blog-hero__content {
    width: 100%;
    max-width: 680px;

    padding: 0 0 40px;
  }

}

/* ==========================================================
   LARGE SMARTPHONE / 431px - 567px
   ========================================================== */

@media (min-width: 431px) and (max-width: 567px) {

  .blog-shell,
  .blog-hero__inner {
    width:
      calc(100% - 32px);
  }

  .blog-hero__title {
    font-size:
      36px;
  }

  .articles-heading h2 {
    font-size:
      32px;
  }

  .articles-heading__aside {
    align-items:
      flex-start;

    flex-direction:
      column;

    gap:
      10px;
  }
}


/* ==========================================================
   SMALL SMARTPHONE / <= 430px
   ========================================================== */

@media (max-width: 430px) {

  .blog-shell,
  .blog-hero__inner {
    width:
      calc(100% - 32px);
  }

  .blog-hero__title {
    font-size:
      36px;
  }

  .articles-heading h2 {
    font-size:
      32px;
  }

  .articles-heading__aside {
    align-items:
      flex-start;

    flex-direction:
      column;

    gap:
      10px;
  }
}
/* ==========================================================
   HERO BACKGROUND VISUAL
   ========================================================== */

.blog-hero {
  position: relative;
  overflow: hidden;

  padding: 0;

  min-height: 470px;

  background:
    linear-gradient(
      90deg,
      #ffffff 0%,
      #ffffff 35%,
      #f8f7ff 52%,
      #f3f1ff 100%
    );
}

/* immagine integrata nella hero */
.blog-hero::before {
  content: "";

  position: absolute;

  top: 0;
  right: 0;
  bottom: 0;

  width: 55%;

  background-image:
    url("../images/blog/blog-hero-data-magazine.webp");

  background-repeat: no-repeat;

  background-position:
    58% center;

  background-size:
    cover;

  z-index: 0;
}

/* dissolve il bordo sinistro dell'immagine */
.blog-hero::after {
  display: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 2;

  width: calc(100% - 64px);
  max-width: 1480px;

  min-height: 470px;

  margin: 0 auto;

  display: flex;
  align-items: center;
}

.blog-hero__content {
  width: 42%;
  max-width: 570px;
  padding: 52px 0;
}

/* ==========================================================
   HERO / 1025px - 1340px
   immagine sempre interamente visibile
   ========================================================== */

@media (min-width: 1025px) and (max-width: 1340px) {

  .blog-hero::before {
    width: 60%;

    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
  }

  .blog-hero__content {
    width: 38%;
    max-width: 520px;
  }
}

/* ==========================================================
   TABLET LANDSCAPE / 769px - 1024px
   HERO
   ========================================================== */

@media (min-width: 769px) and (max-width: 1024px) {

  .blog-hero {
    min-height: auto;
  }

.blog-hero::before {
  position: relative;
  display: block;

  width: min(100%, 860px);
  height: auto;

  aspect-ratio: 1586 / 992;

  margin-inline: auto;

  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

  .blog-hero::after {
    display: none;
  }

  .blog-hero__inner {
    min-height: auto;

    display: block;

    padding-top: 50px;
  }

  .blog-hero__content {
    width: 100%;
    max-width: 680px;

    padding: 0 0 40px;
  }

  .blog-hero__content {
  width: 100%;
  max-width: none;
}

.blog-hero__title {
  max-width: 820px;

  text-wrap: balance;
}

.blog-hero__text {
  max-width: 800px;
}

.blog-topics {
  width: 100%;
  max-width: none;

  flex-wrap: nowrap;
}

.blog-topics span {
  flex: 0 0 auto;

  padding-inline: 14px;
}
}

/* ==========================================================
   TABLET PORTRAIT + MOBILE / <= 768px
   HERO
   ========================================================== */

@media (max-width: 768px) {

  .blog-hero {
    min-height: auto;
  }

.blog-hero::before {
  position: relative;
  display: block;

  width: min(100%, 680px);
  height: auto;

  aspect-ratio: 1586 / 992;

  margin-inline: auto;

  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

  .blog-hero::after {
    display: none;
  }

  .blog-hero__inner {
    min-height: auto;

    display: block;

    padding-top: 50px;
  }

  .blog-hero__content {
    width: 100%;
    max-width: 680px;

    padding: 0 0 40px;
  }
}

/* ==========================================================
   SMARTPHONE / <= 567px
   HERO CONTENT + TOPICS
   ========================================================== */

@media (max-width: 567px) {

  .blog-hero::before {
    width: min(100%, 540px);
  }

  .blog-hero__inner {
    width: calc(100% - 32px);
  }

  .blog-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    width: 100%;
    max-width: none;

    overflow: visible;

    padding-bottom: 0;
  }

  .blog-topics span {
    width: 100%;
    min-width: 0;

    padding-inline: 10px;

    text-align: center;
  }
}
/* ==========================================================
   FEATURED POWER BI — FINAL IMAGE
   ========================================================== */

.featured-visual--image {
  position: relative;

  min-height: 0;
  padding: 0;

  overflow: hidden;

  background: #171064;
}

.featured-visual--image::before,
.featured-visual--image::after {
  display: none;
}

.featured-visual--image picture {
  display: block;

  width: 100%;
  height: 100%;
}

.featured-visual__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  object-position: center;

  background: #171064;

  border: 0;
}

@media (min-width: 769px) {
  .article-card--featured {
    grid-template-columns:
      minmax(0, 1.16fr)
      minmax(0, 0.84fr);

    align-items: stretch;
  }

  .featured-visual--image {
    width: 100%;
    height: 100%;
    min-height: 100%;

    aspect-ratio: auto;
  }

  .featured-visual--image picture {
    display: block;

    width: 100%;
    height: 100%;
  }

  .featured-visual__image {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #171064;

  }

  .article-card--featured .article-card__body {
    height: 100%;
  }
}

/* ==========================================================
   TABLET PORTRAIT + MOBILE / <= 768px
   FEATURED POWER BI
   ========================================================== */

@media (max-width: 768px) {
  .featured-visual--image {
    width: 100%;
    aspect-ratio: 3 / 2;
  }

  .featured-visual__image {
    object-fit: contain;
  }
}

/* ==========================================================
   /* ==========================================================
   DATA STORYTELLING — FINAL IMAGE
   ========================================================== */

.article-card__visual--story-image {
  position: relative;

  width: calc(100% - 16px);
  height: auto;
  aspect-ratio: 16 / 7;

  margin: 8px;
  padding: 0;

  overflow: hidden;

  border-radius: 9px;
  background: #171064;
}

.article-card__visual--story-image picture {
  display: block;

  width: 100%;
  height: 100%;
}

.article-card__story-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  background: #171064;

  border: 0;
}

/* ==========================================================
   BLOG CTA — FINAL
   ========================================================== */

.blog-cta {
  padding: 24px 0 20px;
}

.blog-cta__inner {
  min-height: 118px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;

  padding: 26px 32px;

  border: 1px solid rgba(91, 72, 226, 0.14);
  border-radius: 18px;

background:
  radial-gradient(
    circle at 0% 50%,
    rgba(92, 72, 230, 0.13) 0%,
    rgba(92, 72, 230, 0.07) 28%,
    rgba(92, 72, 230, 0.025) 48%,
    rgba(255, 255, 255, 0) 68%
  ),
  #ffffff;}

.blog-cta__copy {
  min-width: 0;
}

.blog-cta__eyebrow {
  margin: 0 0 7px;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #4f46d8;
}

.blog-cta__title {
  margin: 0;

  max-width: 760px;

  font-size: clamp(22px, 2vw, 30px);
  font-weight: 650;
  line-height: 1.18;

  letter-spacing: -0.035em;

  color: #17152a;
}

.blog-cta__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  flex-shrink: 0;
}

.blog-button {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0 18px;

  border-radius: 12px;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

/* Specificità maggiore per evitare che body.blog-page a { color: inherit; }
   renda nero il testo del pulsante */

body.blog-page .blog-button--primary {
  border: 1px solid transparent;

  background: linear-gradient(
    135deg,
    #5146e5 0%,
    #725cf2 100%
  );

  color: #ffffff;
}

body.blog-page .blog-button--secondary {
  border: 1px solid rgba(81, 70, 229, 0.22);

  background: #ffffff;

  color: #5146e5;
}

@media (hover: hover) {
  body.blog-page .blog-button--primary:hover {
    transform: translateY(-1px);

    box-shadow: 0 8px 22px rgba(81, 70, 229, 0.20);

    color: #ffffff;
  }

  body.blog-page .blog-button--secondary:hover {
    transform: translateY(-1px);

    border-color: rgba(81, 70, 229, 0.40);

    background: #faf9ff;

    color: #5146e5;
  }
}
/* ==========================================================
   SMARTPHONE / <= 567px
   ========================================================== */

@media (max-width: 567px) {

  /* CTA */
  .blog-cta__actions {
    display: grid;
    grid-template-columns: 1fr;

    width: 100%;
  }

  .blog-button {
    width: 100%;
  }
}

/* ==========================================================
   BLOG ARTICLES — SPACING REFINEMENT
   ========================================================== */

.blog-articles {
  padding-top: 84px;
  padding-bottom: 72px;
}

.blog-articles__header {
  margin-bottom: 38px;
}

.article-grid {
  row-gap: 34px;
  column-gap: 22px;
}

/* DISTANZA TRA CARD E CTA */
.blog-cta {
  margin-top: 56px;
  padding-top: 0;
  padding-bottom: 88px;
}

/* ==========================================================
   TABLET PORTRAIT + MOBILE / <= 768px
   CTA
   ========================================================== */

@media (max-width: 768px) {
  .blog-cta {
    padding-top: 18px;
    padding-bottom: 88px;
  }

  .blog-cta__inner {
    min-height: 0;

    grid-template-columns: 1fr;
    gap: 20px;

    padding: 24px 22px;
  }

  .blog-cta__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ==========================================================
   TABLET PORTRAIT / 568px - 768px
   ========================================================== */

@media (min-width: 568px) and (max-width: 768px) {

  /* HERO CONTENT */
  .blog-hero__content {
    max-width: none;
  }

  .blog-hero__title {
    max-width: 650px;
  }

  .blog-hero__text {
    max-width: 650px;
  }


  /* ARTICLE VISUALS */
  .featured-visual--image {
    aspect-ratio: 16 / 9;
  }

  .featured-visual__image {
    object-fit: contain;
  }

  .article-card__visual--dax {
    height: 130px;
    min-height: 130px;
  }

  /* CTA */
  .blog-cta__inner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(150px, 175px);

    align-items: center;

    gap: 20px;
  }

  .blog-cta__actions {
    display: grid;
    grid-template-columns: 1fr;

    width: 100%;

    justify-self: end;
  }

  .blog-button {
    width: 100%;
  }
}

/* ==========================================================
   SECONDARY ARTICLE CARDS — DESKTOP ALIGNMENT
   DAX + DATA STORYTELLING
   ========================================================== */

@media (min-width: 769px) {

  /* Le due card hanno la stessa struttura verticale */
  .article-card:not(.article-card--featured) {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Le visual hanno esattamente la stessa altezza */
  .article-card:not(.article-card--featured) .article-card__visual {
    height: 150px;
    min-height: 150px;
  }

  /* Corpo della card */
  .article-card:not(.article-card--featured) .article-card__body {
    display: grid;

    grid-template-rows:
      auto
      minmax(64px, auto)
      minmax(84px, 1fr)
      auto;

    row-gap: 12px;

    flex: 1;
    height: auto;
  }

  /* Categoria + tempo di lettura */
  .article-card:not(.article-card--featured)
    .article-card__body > :nth-child(1) {
    align-self: start;
  }

  /* Titolo */
  .article-card:not(.article-card--featured)
    .article-card__body > :nth-child(2) {
    margin: 0;
    align-self: start;
  }

  /* Descrizione */
  .article-card:not(.article-card--featured)
    .article-card__body > :nth-child(3) {
    margin: 0;
    align-self: start;
  }

  /* Badge Prossimamente */
  .article-card:not(.article-card--featured)
    .article-card__body > :last-child {
    margin-top: auto;
    align-self: start;
  }
}

/* ==========================================================
   TABLET PORTRAIT WIDE / 620px - 768px
   Featured full width + secondary cards side by side
   ========================================================== */

@media (min-width: 620px) and (max-width: 768px) {

  .article-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    column-gap: 18px;
    row-gap: 26px;
  }

  /* Featured Power BI resta grande */
  .article-card--featured {
    grid-column:
      1 / -1;

    width: 100%;
  }

  /* DAX + Data Storytelling */
  .article-card:not(.article-card--featured) {
    display: flex;
    flex-direction: column;

    height: 100%;
  }

  .article-card:not(.article-card--featured)
    .article-card__body {
    display: flex;
    flex-direction: column;

    flex: 1;
  }

  .article-card:not(.article-card--featured) h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .article-card:not(.article-card--featured) p {
    font-size: 12.5px;
  }

  .article-card:not(.article-card--featured)
    .article-status {
    margin-top: auto;
  }
}

/* ==========================================================
   TABLET LANDSCAPE WIDE / 900px - 1200px
   Three article cards in one row
   ========================================================== */

@media (min-width: 900px) and (max-width: 1200px) {

  .article-grid {
    grid-template-columns:
      minmax(0, 1.25fr)
      minmax(0, 1fr)
      minmax(0, 1fr);

    column-gap: 18px;
    row-gap: 24px;
  }

  /* Power BI featured */
  .article-card--featured {
    grid-column: auto;

    display: flex;
    flex-direction: column;

    min-width: 0;
  }

  .featured-visual--image {
    width: 100%;

    height: auto;
    min-height: 0;

    aspect-ratio: 16 / 9;
  }

  .featured-visual--image picture {
    width: 100%;
    height: 100%;
  }

  .featured-visual__image {
    width: 100%;
    height: 100%;

    object-fit: contain;
  }

  .article-card--featured .article-card__body {
    flex: 1;
    height: auto;

    padding: 18px;
  }

  .article-card--featured h3 {
    font-size: 20px;
  }

  /* Secondary cards */
  .article-card:not(.article-card--featured)
    .article-card__body {
    padding: 18px;
  }

  .article-card:not(.article-card--featured) h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .article-card:not(.article-card--featured) p {
    font-size: 12px;
  }

/* Storytelling: stessa altezza delle visual secondarie */
.article-card:not(.article-card--featured)
  .article-card__visual--story-image {
  height: 150px;
  min-height: 150px;

  aspect-ratio: auto;

  background: #171064;
}

.article-card:not(.article-card--featured)
  .article-card__visual--story-image picture {
  display: block;

  width: 100%;
  height: 100%;
}

.article-card:not(.article-card--featured)
  .article-card__story-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  background: #171064;
}
}

.article-title-link {
  color: inherit;
  text-decoration: none;
}

.article-title-link:hover,
.article-title-link:focus-visible {
  color: #5a52e0;
}

.article-status--link {
  text-decoration: none;
}

.article-card__visual--image {
  overflow: hidden;
  background: #171064;
}

.article-card__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.article-card__image--contain {
  object-fit: contain;
}

/* ==========================================================
   BLOG ARTICLE CARD — FULL CLICK TARGET
   ========================================================== */

.article-card--clickable {
  position: relative;

  cursor: pointer;
}

.article-card--clickable .article-title-link::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 2;

  border-radius: inherit;
}


/* Feedback visivo desktop */
@media (hover: hover) and (pointer: fine) {

  .article-card--clickable {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      border-color 180ms ease;
  }

  .article-card--clickable:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 82, 224, 0.22);
  box-shadow: 0 18px 46px rgba(90, 82, 224, 0.10);
}

}


/* Tastiera */
.article-card--clickable:focus-within {
  outline: 2px solid #5a52e0;
  outline-offset: 3px;
}


.articles-heading__link,
.articles-heading__link:visited {
  color: var(--blog-purple);
  text-decoration: none;
}

.articles-heading__link:hover,
.articles-heading__link:focus-visible {
  color: var(--blog-purple);
  text-decoration: none;
}

/* BLOG DESKTOP — EQUAL SMALL ARTICLE CARDS */
@media (min-width: 1201px) {
  .article-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .article-grid > .article-card--featured {
    grid-column: span 2;
  }
}

/* BLOG — ALL ARTICLES PILL CTA IT / EN */
/* Riprende gradiente e forma del selettore lingua, con misure da sezione. */
body.blog-page .articles-heading__aside > a.articles-heading__link,
body.blog-page .articles-heading__aside > a.articles-heading__link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 9px;
  width: fit-content;
  min-height: 42px;
  padding: 10px 19px;
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(245 75% 60%), hsl(265 80% 68%));
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(85, 71, 231, 0.17);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.blog-page .articles-heading__aside > a.articles-heading__link:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 9px 21px rgba(85, 71, 231, 0.23);
  }
}

body.blog-page .articles-heading__aside > a.articles-heading__link:focus-visible {
  color: #ffffff;
  text-decoration: none;
  outline: 3px solid #3129a0;
  outline-offset: 3px;
}

/* A larghezze intermedie il titolo e il pulsante non si comprimono. */
@media (min-width: 1025px) and (max-width: 1150px) {
  body.blog-page .articles-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Il pulsante resta compatto, sotto il testo, sui telefoni. */
@media (max-width: 768px) {
  body.blog-page .articles-heading__aside {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  body.blog-page .articles-heading__aside > a.articles-heading__link {
    align-self: flex-start;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.blog-page .articles-heading__aside > a.articles-heading__link {
    transition: none;
  }
}

/* BLOG — CTA ARCHIVIO DOPO LE CARD / 390–768px */
/* Il duplicato non e' visibile fuori dal breakpoint richiesto. */
body.blog-page .blog-articles a.articles-heading__link--bottom {
  display: none;
}

@media (min-width: 390px) and (max-width: 768px) {
  /* Qui la CTA resta nel DOM per desktop, ma e' nascosta alla vista su mobile. */
  body.blog-page .blog-articles .articles-heading__aside > a.articles-heading__link {
    display: none;
  }

  /* CTA collocata subito dopo l'ultimo articolo e larga quanto la blog-shell. */
  body.blog-page .blog-articles a.articles-heading__link--bottom,
  body.blog-page .blog-articles a.articles-heading__link--bottom:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin-top: 26px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, hsl(245 75% 60%), hsl(265 80% 68%));
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(85, 71, 231, 0.17);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  body.blog-page .blog-articles a.articles-heading__link--bottom:focus-visible {
    outline: 3px solid #3129a0;
    outline-offset: 3px;
  }
}

@media (min-width: 390px) and (max-width: 768px) and (hover: hover) and (pointer: fine) {
  body.blog-page .blog-articles a.articles-heading__link--bottom:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 9px 21px rgba(85, 71, 231, 0.23);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.blog-page .blog-articles a.articles-heading__link--bottom {
    transition: none;
  }
}

/* POWER BI UPDATES — MOBILE LANDSCAPE FINAL */
@media (max-width: 768px) {
  .blog-articles .article-card--updates-feature
  .featured-visual--image {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #0c075e;
  }

  .blog-articles .article-card--updates-feature
  .featured-updates-picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
  }

  .blog-articles .article-card--updates-feature
  .featured-visual__image--updates {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
  }
}

/* FIX POWER BI LENTO - MOBILE 619PX */

@media (min-width: 390px) and (max-width: 619px) {

  body.blog-page .blog-articles
  .article-card__visual--performance {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1672 / 941;
  }

  body.blog-page .blog-articles
  .article-card__visual--performance > img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
  }

}

/* FIX DAX CARD - RESPONSIVE 390-619 */

@media (min-width: 390px) and (max-width: 619px) {

  body.blog-page .blog-articles
  .article-card__visual--dax-responsive {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  body.blog-page .blog-articles
  .article-card__visual--dax-responsive
  > .article-card__image {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
  }

}


/* BLOG CARD READING LEVEL COLORS */
.article-meta .article-meta__level--beginner {
  color: #00883B;
}

.article-meta .article-meta__level--intermediate {
  color: #B16200;
}

.article-meta .article-meta__level--advanced {
  color: #C62828;
}

.article-meta .article-meta__level--update {
  color: #2458A8;
}
