/* Proposta unica: applicare le classi cst-* solo ai blocchi interessati. */
.cst-page {
  --cst-ink: #27313a;
  --cst-dark: #18242d;
  --cst-muted: #59656e;
  --cst-line: #d4dde1;
  --cst-soft: #e7eef0;
  --cst-paper: #fafaf7;
  --cst-accent: #b44a31;
  color: var(--cst-ink);
}
.cst-hero {
  --cst-hero-overlay-opacity: .72;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 68vh, 48rem);
  padding: clamp(4rem, 9vw, 8rem) max(1.25rem, calc((100% - 1200px) / 2));
  color: #fff;
  background-color: var(--cst-dark);
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, .035) 48% 49%, transparent 49% 100%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(135deg, #18242d 0%, #2b3a44 100%);
  background-size: 180px 180px, 32px 32px, 32px 32px, auto;
  background-position: center;
}
.cst-hero::before {
  content: none;
}
.cst-hero > * {
  position: relative;
  z-index: 3;
}
.cst-hero-has-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.cst-hero-poster,
.cst-hero-video,
.cst-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.cst-hero-poster {
  z-index: 0;
  background-color: var(--cst-dark);
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, .035) 48% 49%, transparent 49% 100%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(135deg, #18242d 0%, #2b3a44 100%);
  background-size: 180px 180px, 32px 32px, 32px 32px, auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.cst-hero-video {
  z-index: 1;
  overflow: hidden;
}
.cst-hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cst-hero-overlay {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(16 25 32 / .94) 0%, rgb(16 25 32 / var(--cst-hero-overlay-opacity)) 52%, rgb(16 25 32 / .48) 100%);
}
.cst-reduced-motion .cst-hero-video {
  display: none;
}
.cst-hero-inner {
  width: 100%;
  max-width: 48rem;
  margin-right: auto;
}
.cst-hero .wp-block-heading,
.cst-hero p {
  color: inherit;
}
.cst-hero-lead {
  max-width: 18ch;
  line-height: 1.08;
}
.cst-kicker,
.cst-card-label {
  color: var(--cst-accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cst-hero .cst-kicker {
  color: #f0a18d;
}
.cst-section {
  padding-top: clamp(3.25rem, 7vw, 6rem);
  padding-bottom: clamp(3.25rem, 7vw, 6rem);
}
.cst-section-light {
  background: var(--cst-paper);
}
.cst-section-soft {
  background: #f1f4f4;
}
.cst-section-technical {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cst-soft);
}
.cst-section-technical::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  background-image:
    linear-gradient(rgba(36, 55, 70, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 55, 70, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to right, #000, transparent 88%);
}
.cst-band-dark {
  background: linear-gradient(135deg, #18242d 0%, #293943 100%);
  color: #fff;
}
.cst-band-dark .wp-block-heading,
.cst-band-dark p {
  color: inherit;
}
.cst-grid {
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.cst-grid-2 > .wp-block-column {
  flex-basis: calc(50% - .75rem);
}
.cst-card {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border: 1px solid var(--cst-line);
  border-radius: .45rem;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 .4rem 1.25rem rgba(24, 36, 45, .07);
}
.cst-card-link {
  color: var(--cst-dark);
  font-weight: 700;
  text-decoration-thickness: .1em;
  text-underline-offset: .22em;
}
.cst-media {
  display: grid;
  place-items: center;
  min-height: 15rem;
  overflow: hidden;
  border-radius: .4rem;
  background: #dce4e6;
}
.cst-media .wp-block-image {
  width: 100%;
  height: 100%;
  margin: 0;
}
.cst-media .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cst-placeholder {
  max-width: 20rem;
  padding: 2rem 1rem;
  color: var(--cst-muted);
  font-size: .9rem;
  text-align: center;
}
.cst-step {
  padding-top: 1.1rem;
  border-top: .2rem solid var(--cst-line);
}
.cst-step-number {
  color: var(--cst-accent);
  font-size: 1.35rem;
}
.cst-download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--cst-line);
  border-radius: .4rem;
  background: #fff;
}
.cst-works-gallery {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.cst-works-gallery .wp-block-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cst-contact-section {
  border-top: 1px solid var(--cst-line);
}
.cst-contact-card {
  box-shadow: none;
}
.cst-contact-address {
  color: var(--cst-muted);
  line-height: 1.7;
}
.cst-contact-phone a,
.cst-contact-channels a {
  color: var(--cst-dark);
  font-weight: 700;
  text-decoration-thickness: .1em;
  text-underline-offset: .2em;
}
.cst-contact-channels {
  margin-top: 1.5rem;
  gap: .75rem 2rem;
}
.cst-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 6rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: .55rem;
  background: linear-gradient(135deg, #18242d 0%, #2a3a44 100%);
  color: #fff;
}
.cst-cta .wp-block-heading,
.cst-cta p {
  color: inherit;
}
.cst-button .wp-block-button__link {
  background: var(--cst-accent);
  color: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.cst-button .wp-block-button__link:hover,
.cst-button .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 .45rem 1rem rgba(0, 0, 0, .2);
}
.cst-button-outline .wp-block-button__link {
  color: #fff;
  border-color: currentColor;
}
@media (max-width: 1024px) {
  .cst-grid-3,
  .cst-grid-4 {
    flex-wrap: wrap;
  }
  .cst-grid-3 > .wp-block-column,
  .cst-grid-4 > .wp-block-column {
    flex-basis: calc(50% - .75rem);
  }
}
@media (max-width: 781px) {
  .cst-hero {
    min-height: 28rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    background-position: 62% center;
  }
  .cst-hero::before {
    content: none;
  }
  .cst-hero-video {
    display: none;
  }
  .cst-hero-overlay {
    background: rgb(16 25 32 / .84);
  }
  .cst-grid-3 > .wp-block-column,
  .cst-grid-4 > .wp-block-column,
  .cst-grid-2 > .wp-block-column {
    flex-basis: 100%;
  }
  .cst-section-technical::before {
    background-size: 24px 24px;
    mask-image: none;
  }
  .cst-download-row {
    grid-template-columns: 1fr;
  }
  .cst-cta {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) { .cst-button .wp-block-button__link { transition: none; } }
@media (prefers-reduced-motion: reduce) { .cst-hero-video { display: none; } }
.cst-footer {
  background: #111b22;
  color: #eef2f3;
}
.cst-footer-inner {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.cst-footer-title {
  margin: 0 0 .5rem;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: .06em;
}
.cst-footer-description {
  max-width: 42rem;
  margin: 0;
  color: #c5d0d5;
}
.cst-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
  padding-block: 2rem;
  border-top: 1px solid rgb(255 255 255 / .14);
  border-bottom: 1px solid rgb(255 255 255 / .14);
}
.cst-footer-label {
  margin: 0 0 .35rem;
  color: #e79982;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cst-footer-heading {
  margin: 0 0 .75rem;
  color: #fff;
  font-size: 1.15rem;
}
.cst-footer address {
  color: #c5d0d5;
  font-style: normal;
  line-height: 1.7;
}
.cst-footer a {
  color: #fff;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}
.cst-footer a:hover,
.cst-footer a:focus-visible {
  color: #f0a18d;
}
.cst-footer-contacts p {
  margin: 0 0 .65rem;
}
.cst-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) {
  .cst-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cst-footer-grid { grid-template-columns: 1fr; }
  .cst-footer-nav ul { flex-direction: column; }
}
