.article-cover {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0 40px 34px;
  overflow-x: hidden;
}

.article-cover img,
.article-cover-placeholder {
  width: 100%;
  max-width: 1240px;
  aspect-ratio: 21 / 8;
  border-radius: 18px;
}

.article-cover img {
  object-fit: cover;
}

.article-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(183, 63, 252, 0.34), rgba(28, 12, 40, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 80px);
  border: 1px solid rgba(183, 63, 252, 0.24);
}

html:has(link[rel="canonical"][href="https://011enterprise.com/blog/quanto-costa-un-sito-web-a-torino-nel-2026/"]) .article-cover-placeholder {
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.08), rgba(13, 13, 13, 0.08)),
    url("../images/articles/quanto-costa-sito-web-torino-2026.jpg") center / cover no-repeat;
}

html:has(link[rel="canonical"][href="https://011enterprise.com/blog/come-scegliere-una-web-agency-a-torino/"]) .article-cover-placeholder {
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.08), rgba(13, 13, 13, 0.08)),
    url("../images/articles/come-scegliere-web-agency-torino.jpg") center / cover no-repeat;
}

html:has(link[rel="canonical"][href="https://011enterprise.com/blog/seo-locale-torino-google-business-profile-pmi/"]) .article-cover-placeholder {
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.08), rgba(13, 13, 13, 0.08)),
    url("../images/articles/seo-locale-torino-google-business-profile.jpg") center / cover no-repeat;
}

html:has(link[rel="canonical"][href="https://011enterprise.com/blog/ai-e-crm-per-pmi-piemonte-automazioni-che-servono-davvero/"]) .article-cover-placeholder {
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.08), rgba(13, 13, 13, 0.08)),
    url("../images/articles/ai-crm-pmi-piemonte.jpg") center / cover no-repeat;
}

html:has(link[rel="canonical"][href="https://011enterprise.com/blog/ecommerce-shopify-a-torino-per-pmi-cosa-serve-davvero/"]) .article-cover-placeholder {
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.08), rgba(13, 13, 13, 0.08)),
    url("../images/articles/ecommerce-shopify-torino-pmi.jpg") center / cover no-repeat;
}

html:has(link[rel="canonical"][href="https://011enterprise.com/blog/web-app-o-app-mobile-cosa-scegliere-per-la-tua-azienda/"]) .article-cover-placeholder {
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.08), rgba(13, 13, 13, 0.08)),
    url("../images/articles/web-app-o-app-mobile-azienda.jpg") center / cover no-repeat;
}

html:has(link[rel="canonical"][href="https://011enterprise.com/blog/quanto-costa-un-sito-web-a-torino-nel-2026/"]) .article-cover-placeholder svg,
html:has(link[rel="canonical"][href="https://011enterprise.com/blog/come-scegliere-una-web-agency-a-torino/"]) .article-cover-placeholder svg,
html:has(link[rel="canonical"][href="https://011enterprise.com/blog/seo-locale-torino-google-business-profile-pmi/"]) .article-cover-placeholder svg,
html:has(link[rel="canonical"][href="https://011enterprise.com/blog/ai-e-crm-per-pmi-piemonte-automazioni-che-servono-davvero/"]) .article-cover-placeholder svg,
html:has(link[rel="canonical"][href="https://011enterprise.com/blog/ecommerce-shopify-a-torino-per-pmi-cosa-serve-davvero/"]) .article-cover-placeholder svg,
html:has(link[rel="canonical"][href="https://011enterprise.com/blog/web-app-o-app-mobile-cosa-scegliere-per-la-tua-azienda/"]) .article-cover-placeholder svg {
  display: none;
}

.article-cover-placeholder svg {
  width: 74px;
  height: 74px;
  fill: rgba(255, 255, 255, 0.68);
}

.article-body {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 34px 40px 76px;
  overflow-x: clip;
  background: linear-gradient(180deg, rgba(26, 15, 36, 0.98) 0%, rgba(13, 13, 13, 1) 100%);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 850px) minmax(0, 300px);
  gap: 44px;
  align-items: start;
  width: min(100%, 1240px);
  min-width: 0;
}

.article-body-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  min-width: 0;
}

.article-body-content > * {
  max-width: 100%;
  min-width: 0;
}

.article-body-content p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85em;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: anywhere;
}

.article-body-content h2 {
  position: relative;
  margin: 42px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(183, 63, 252, 0.26);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.article-body-content h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  max-width: 40%;
  height: 1px;
  background-color: var(--color-accent-light);
}

.article-body-content h3 {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.article-body-content ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body-content li {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7em;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: anywhere;
}

.article-body-content strong {
  color: var(--color-text);
}

.article-body-content a {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.article-body-content table {
  border-collapse: collapse;
  width: max-content;
  min-width: 640px;
  max-width: none;
  background-color: rgba(255, 255, 255, 0.035);
}

.article-body-content th,
.article-body-content td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6em;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.article-body-content th {
  font-weight: 800;
  background-color: rgba(183, 63, 252, 0.2);
}

.article-body-content .table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(183, 63, 252, 0.22);
  -webkit-overflow-scrolling: touch;
}

.article-body-content .legal-meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.article-sidebar {
  position: sticky;
  top: 102px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.article-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(183, 63, 252, 0.2);
  background: rgba(255, 255, 255, 0.052);
}

.article-sidebar-card strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.article-sidebar-card span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.article-sidebar-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.article-sidebar-card a {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article-sidebar-card a:hover {
  color: var(--color-accent-light);
}

.article-sidebar-card-strong {
  background: linear-gradient(135deg, rgba(183, 63, 252, 0.24), rgba(255, 255, 255, 0.055));
  border-color: rgba(183, 63, 252, 0.34);
}

.article-sidebar-card-strong strong {
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--color-accent-light);
}

.article-sidebar-card-strong a,
.article-sidebar-contact a {
  display: inline-flex;
  justify-content: center;
  margin-top: 2px;
  padding: 11px 13px;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
  font-family: var(--font-heading);
  font-size: 10px;
  text-transform: uppercase;
}

.article-sidebar-links {
  display: grid;
  gap: 8px;
}

.article-sidebar-links a {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.article-sidebar-links a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.article-back {
  grid-column: 1 / -1;
  padding-top: 6px;
  min-width: 0;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.article-back-link svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent-light);
  flex: 0 0 auto;
}

@media (max-width: 1050px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: 2;
  }

  .article-back {
    order: 3;
  }
}

@media (max-width: 900px) {
  .article-cover {
    padding: 0 20px 24px;
  }

  .article-cover img,
  .article-cover-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }

  .article-body {
    padding: 28px 20px 68px;
  }

  .article-layout {
    gap: 26px;
  }

  .article-body-content {
    gap: 22px;
  }

  .article-body-content p,
  .article-body-content li {
    font-size: 16px;
    line-height: 1.78em;
  }

  .article-body-content h2 {
    margin-top: 34px;
    font-size: 25px;
  }
}

@media (max-width: 760px) {
  .article-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .article-cover {
    padding-inline: 16px;
  }

  .article-body {
    padding-inline: 16px;
  }

  .article-body-content ul {
    padding-left: 18px;
  }

  .article-sidebar-card {
    padding: 15px;
  }

  .article-sidebar-card-strong strong {
    font-size: 30px;
  }
}
