/* ============ ARTICLE LAYOUT ============ */
.article{
  padding:170px 0 110px;
}
.article-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:64px;
  align-items:start;
}

/* ---- hero image ---- */
.article-hero{
  width:100%;
  margin-bottom:54px;
  background:#0a0a0a;
}
.article-hero img{
  width:100%;
  height:auto;
  display:block;
}

/* ---- title ---- */
.article-title{
  font-size:46px;
  font-weight:800;
  color:#fff;
  line-height:1.08;
  letter-spacing:-.01em;
  margin-bottom:46px;
  text-wrap:balance;
}

/* ---- body copy ---- */
.article-body p{
  color:var(--body);
  font-size:17px;
  line-height:1.62;
  margin-bottom:24px;
  max-width:760px;
}
.article-body h2{
  font-family:var(--head);
  font-weight:800;
  font-size:26px;
  color:#fff;
  letter-spacing:-.005em;
  margin:48px 0 22px;
}
.article-body h3{
  font-family:var(--head);
  font-weight:800;
  font-size:22px;
  color:#fff;
  margin:40px 0 18px;
}
.article-body ul{
  list-style:none;
  margin:0 0 24px;
  max-width:760px;
}
.article-body ul li{
  position:relative;
  color:var(--body);
  font-size:17px;
  line-height:1.5;
  padding-left:26px;
  margin-bottom:12px;
}
.article-body ul li::before{
  content:"";
  position:absolute;
  left:4px;top:11px;
  width:7px;height:7px;
  border-radius:50%;
  background:var(--body);
}
.article-body a{
  color:var(--red);
  transition:color .2s ease;
}
.article-body a:hover{color:#ff3b43;}
.article-body img{margin:32px 0;}
.article-body figure{margin:54px 0 0;max-width:460px;}
.article-body figure img{width:100%;height:auto;display:block;margin:0;}

/* ============ SIDEBAR ============ */
.sidebar{
  padding-top:6px;
}
.sidebar h3{
  font-family:var(--head);
  font-weight:800;
  font-size:24px;
  color:#fff;
  letter-spacing:-.005em;
  margin-bottom:26px;
}
.sidebar .side-block + .side-block{margin-top:46px;}
.sidebar ul{list-style:none;}
.sidebar ul li{margin-bottom:18px;}
.sidebar ul li a{
  color:var(--body);
  font-size:16px;
  line-height:1.4;
  display:inline-block;
  transition:color .2s ease;
}
.sidebar ul li a:hover{color:#fff;}

/* ============ POST NAV ============ */
.post-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:96px;
  padding-top:0;
}
.post-nav a{
  display:flex;
  align-items:center;
  gap:26px;
  color:#fff;
  transition:opacity .2s ease;
}
.post-nav a:hover{opacity:.7;}
.post-nav .pn-next{justify-content:flex-end;text-align:right;}
.post-nav .pn-arrow{
  font-family:var(--text);
  font-size:24px;
  color:rgba(255,255,255,.6);
  flex:none;
}
.post-nav .pn-label{
  font-family:var(--text);
  font-size:13px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
  margin-bottom:8px;
  display:block;
}
.post-nav .pn-title{
  font-family:var(--text);
  font-size:17px;
  color:#fff;
}

/* ============ CONDIZIONI GENERALI DI VENDITA ============
   Same PDF row as the certificates on a sede page, so the two lists of
   documents read as one thing across the site. */
.gc-page .article-title{margin-bottom:40px;}
.gc-page .gc-intro{margin-bottom:46px;}
.gc-block{max-width:760px;margin-bottom:46px;}
.gc-block:last-child{margin-bottom:0;}
.gc-label{
  font-family:var(--head);font-weight:800;font-size:22px;color:#fff;
  letter-spacing:-.005em;margin-bottom:12px;
}
.gc-page .cert-links{display:flex;flex-direction:column;}
.gc-page .cert-link{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.14);}
.gc-page .cert-link:last-child{border-bottom:none;}
.gc-page .cert-link .pdf{flex:none;width:26px;height:32px;}
.gc-page .cert-link .pdf svg{width:100%;height:100%;}
.gc-page .cert-link a{color:var(--body);font-size:16px;text-decoration:underline;text-underline-offset:3px;line-height:1.4;transition:color .25s ease;}
.gc-page .cert-link a:hover{color:#fff;}

@media (max-width:1100px){
  .article-title{font-size:38px;}
  .article-grid{gap:46px;grid-template-columns:minmax(0,1fr) 280px;}
}
@media (max-width:860px){
  .article{padding:130px 0 80px;}
  .gc-label{font-size:19px;}
  .gc-page .cert-link a{font-size:15px;}
  .article-grid{grid-template-columns:1fr;gap:64px;}
  .article-title{font-size:30px;}
  .article-body figure{max-width:100%;}

  /* Previous / next stay side by side. They used to stack because a long
     article title does not fit half a phone screen; the title is clipped at two
     lines instead, so both labels sit on the same horizontal line. */
  .post-nav{grid-template-columns:1fr 1fr;gap:16px;margin-top:64px;}
  .post-nav a{gap:10px;align-items:flex-start;min-width:0;}
  .post-nav a > span{min-width:0;}
  .post-nav .pn-next{justify-content:flex-end;text-align:right;flex-direction:row;}
  .post-nav .pn-arrow{font-size:20px;line-height:1.1;}
  .post-nav .pn-label{font-size:11px;letter-spacing:.14em;margin-bottom:6px;}
  .post-nav .pn-title{
    font-size:14px;line-height:1.35;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }

  /* asked for: no recent-posts and no categories on a phone */
  .side-block--recent,.side-block--cats{display:none;}
  /* with both gone the aside is empty unless the post carries tags, and an
     empty aside would still cost the grid's 64px gap */
  .sidebar:not(:has(.side-block--tags)){display:none;}
}
