:root {
  --st-ink: #161a1b;
  --st-muted: #626b70;
  --st-line: #dce2e3;
  --st-surface: #f3f6f5;
  --st-white: #fff;
  --st-green: #00843d;
  --st-green-dark: #006b32;
  --st-cyan: #00a6bd;
  --st-shell: 1280px;
  --st-radius: 4px;
}

html {
  color: var(--st-ink);
  background: var(--st-white);
}

body {
  margin: 0;
  color: var(--st-ink);
  background: var(--st-white);
  font-family: 'AlibabaSans-Regular', 'Alibaba-PuHuiTi-Regular', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--st-green-dark);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--st-green);
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.site-shell {
  width: min(100% - 48px, var(--st-shell));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--st-white);
  border-bottom: 1px solid var(--st-line);
}

.site-utility {
  min-height: 38px;
  color: #d8dddd;
  background: var(--st-ink);
}

.site-utility__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
  gap: 20px;
}

.site-utility__spacer {
  flex: 1 1 auto;
}

.language-menu {
  position: relative;
  width: max-content;
  min-width: 0;
}

.language-menu summary {
  position: relative;
  padding: 8px 20px 8px 0;
  color: #f4f7f6;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: '';
  transform: translateY(-70%) rotate(45deg);
}

.language-menu[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.language-menu ul {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  width: 220px;
  margin: 0;
  padding: 8px 0;
  background: var(--st-white);
  border: 1px solid var(--st-line);
  box-shadow: 0 14px 32px rgb(22 26 27 / 14%);
  list-style: none;
}

.language-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--st-ink);
}

.language-menu a[aria-current='true'],
.language-menu a:hover {
  color: var(--st-green-dark);
  background: var(--st-surface);
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-menu a {
  color: #d8dddd;
  font-size: 13px;
}

.site-search {
  width: 220px;
}

.site-search form,
.site-search .form-item,
.site-search .form-actions {
  display: flex;
  align-items: center;
  margin: 0;
}

.site-search input[type='search'],
.site-search input[type='text'] {
  width: 162px;
  height: 30px;
  margin: 0;
  padding: 5px 10px;
  color: var(--st-ink);
  background: var(--st-white);
  border: 1px solid #5c6264;
  border-radius: var(--st-radius) 0 0 var(--st-radius);
}

.site-search input[type='submit'] {
  height: 30px;
  margin: 0;
  padding: 4px 10px;
  color: var(--st-white);
  background: var(--st-green);
  border: 1px solid var(--st-green);
  border-radius: 0 var(--st-radius) var(--st-radius) 0;
}

.site-primary__inner {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 88px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 196px;
  height: auto;
}

.primary-navigation ul,
.product-navigation ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation ul {
  justify-content: flex-end;
  gap: 36px;
}

.primary-navigation a {
  display: block;
  padding: 30px 0 28px;
  color: var(--st-ink);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  color: var(--st-green-dark);
  border-bottom-color: var(--st-green);
}

.my-santoni,
.my-santoni:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  color: var(--st-white);
  background: var(--st-green);
  border: 1px solid var(--st-green);
  border-radius: var(--st-radius);
  font-size: 14px;
}

.my-santoni:hover {
  color: var(--st-white);
  background: var(--st-green-dark);
}

.product-navigation {
  background: var(--st-surface);
  border-top: 1px solid var(--st-line);
}

.product-navigation ul {
  justify-content: flex-end;
  min-height: 44px;
  gap: 34px;
}

.product-navigation a {
  color: #394144;
  font-size: 14px;
}

.site-main {
  min-height: 560px;
  padding: 50px 0 80px;
}

.is-front .site-main {
  padding-top: 0;
}

.site-content > div,
.site-content .region-content {
  width: 100%;
}

#block-santoni-page-title h1 {
  max-width: 980px;
  margin: 0 0 38px;
  color: var(--st-ink);
  font-size: 42px;
  line-height: 1.18;
  font-weight: 500;
}

#block-santoni-page-title h1::after {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 18px;
  background: var(--st-green);
  content: '';
}

.is-front #block-santoni-page-title {
  display: none;
}

.content-entity {
  width: 100%;
}

.content-entity__body,
.editorial-page,
.news-article,
.container-page {
  max-width: 1120px;
}

.field {
  margin-bottom: 24px;
}

.field__label {
  margin-bottom: 7px;
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.field__items,
.field__item {
  min-width: 0;
}

.prose {
  max-width: 880px;
  color: #343a3c;
  font-size: 17px;
  line-height: 1.85;
}

.prose p {
  margin: 0 0 1.2em;
}

.prose h2,
.prose h3 {
  margin: 2em 0 .7em;
  color: var(--st-ink);
  line-height: 1.3;
}

.prose img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto !important;
  margin: 28px 0;
}

.editorial-page__media {
  display: block;
  max-width: 1120px;
  align-items: start;
  margin-bottom: 48px;
  gap: 24px;
}

.editorial-page__media .field {
  margin: 0;
}

.editorial-page__media img,
.editorial-page__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0e1112;
}

.product-family__hero,
.machine-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  margin-bottom: 72px;
  background: var(--st-surface);
}

.product-family__hero--text-only,
.machine-hero--text-only {
  grid-template-columns: minmax(0, 760px);
  background: transparent;
}

.product-family__hero--text-only .product-family__intro,
.machine-hero--text-only .machine-hero__content {
  background: var(--st-surface);
}

.product-family__visual,
.machine-hero__visual {
  align-self: stretch;
  min-height: 500px;
  background: var(--st-white);
}

.product-family__visual img,
.machine-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: contain;
}

.product-family__intro,
.machine-hero__content {
  padding: 48px;
}

.field--name-field-category-name .field__item,
.field--name-field-product-name .field__item,
.field--name-field-machine-name .field__item {
  color: var(--st-ink);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
}

.technology-section,
.machine-gallery,
.machine-video,
.machine-specifications,
.machine-software,
.listing-section {
  padding: 64px 0;
  border-top: 1px solid var(--st-line);
}

.technology-section h2,
.machine-specifications h2,
.section-heading h2 {
  margin: 0 0 28px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
}

.machine-gallery .field__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.machine-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.machine-specifications .field__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--st-line);
}

.machine-specifications .paragraph {
  display: grid;
  grid-template-columns: minmax(120px, .4fr) 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--st-line);
  gap: 20px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-heading span {
  color: var(--st-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.content-card {
  min-width: 0;
  background: var(--st-white);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  overflow: hidden;
}

.content-card__media {
  display: block;
  min-height: 220px;
  background: var(--st-surface);
}

.content-card__media:empty::before {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--st-surface);
  content: '';
}

.content-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 240ms ease;
}

.santoni-missing-image {
  display: none !important;
}

.product-family__hero:has(.product-family__visual img.santoni-missing-image),
.machine-hero:has(.machine-hero__visual img.santoni-missing-image) {
  grid-template-columns: minmax(0, 760px);
  background: transparent;
}

.product-family__visual:has(img.santoni-missing-image),
.machine-hero__visual:has(img.santoni-missing-image),
.machine-gallery .field__item:has(img.santoni-missing-image) {
  display: none;
}

.product-family__hero:has(.product-family__visual img.santoni-missing-image) .product-family__intro,
.machine-hero:has(.machine-hero__visual img.santoni-missing-image) .machine-hero__content {
  background: var(--st-surface);
}

.product-card .content-card__media img {
  object-fit: contain;
}

.content-card:hover .content-card__media img {
  transform: scale(1.025);
}

.content-card__body {
  padding: 22px;
}

.content-card--text-only {
  border-top: 3px solid var(--st-green);
}

.content-card--text-only .content-card__body {
  min-height: 220px;
}

.content-card h2,
.content-card h3 {
  margin: 6px 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

.content-card time {
  color: var(--st-cyan);
  font-size: 12px;
  font-weight: 700;
}

.content-card p {
  margin: 0;
  color: var(--st-muted);
  font-size: 14px;
  line-height: 1.65;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
  color: var(--st-muted);
  gap: 10px 24px;
}

.news-article__meta .field {
  margin: 0;
}

.news-article__media {
  margin-bottom: 42px;
}

.news-article__media img,
.news-article__media video {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.node-home {
  width: 100%;
}

.homeSliderShow {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 480px;
  margin: 0 0 28px;
  background-color: var(--st-surface);
  background-image: none;
  overflow: hidden;
}

.homeSliderShow > div {
  height: 100%;
  min-height: 0;
}

.homeSliderShow img {
  min-height: 480px;
}

.homeSliderShow img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.home-slider__control {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: var(--st-white);
  background: rgb(22 26 27 / 68%);
  border: 0;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}

.home-slider__control:hover,
.home-slider__control:focus-visible {
  background: var(--st-green);
}

.home-slider__control--previous {
  left: 18px;
}

.home-slider__control--next {
  right: 18px;
}

.home-slider__dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 18px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.home-slider__dot {
  width: 10px;
  min-height: 10px;
  padding: 0;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(22 26 27 / 40%);
  border-radius: 50%;
}

.home-slider__dot.is-active {
  background: var(--st-green);
  border-color: var(--st-white);
}

.row.boxes_home.boxes {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  margin: 0;
  gap: 20px;
}

.row.boxes_home.boxes::before,
.row.boxes_home.boxes::after {
  display: none;
  content: none;
}

.row.boxes_home.boxes > .span4 {
  float: none;
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  transform: none;
}

.boxes_home .inner-box {
  height: 100%;
  background: var(--st-white);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  overflow: hidden;
}

.boxes_home .inner-box img {
  height: 230px;
}

.boxes_home .title {
  min-height: 116px;
  padding: 20px 22px;
  background: var(--st-white);
}

.boxes_home .title h3 {
  margin: 0 0 8px;
  color: var(--st-ink);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.boxes_home .small-title {
  display: none;
}

form:not(.site-search form) {
  max-width: 760px;
}

.form-item,
.form-actions {
  float: none;
  clear: both;
  margin: 0 0 20px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #333a3d;
  font-weight: 600;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input[type='tel'],
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  color: var(--st-ink);
  background: var(--st-white);
  border: 1px solid #bfc8ca;
  border-radius: var(--st-radius);
  box-shadow: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--st-green);
  outline: 2px solid rgb(0 132 61 / 14%);
}

input[type='submit'],
button,
.button {
  min-height: 42px;
  padding: 9px 18px;
  color: var(--st-white);
  background: var(--st-green);
  border: 1px solid var(--st-green);
  border-radius: var(--st-radius);
  box-shadow: none;
}

.tabs ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid var(--st-line);
  list-style: none;
  gap: 24px;
}

.tabs a {
  display: block;
  padding: 10px 0;
}

#block-santoni-local-tasks ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid var(--st-line);
  list-style: none;
  gap: 8px 28px;
}

#block-santoni-local-tasks a {
  display: block;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}

#block-santoni-local-tasks a.is-active {
  color: var(--st-ink);
  border-bottom-color: var(--st-green);
}

.messages-list,
[data-drupal-messages] > div {
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #eef7f2;
  border-left: 3px solid var(--st-green);
}

.site-footer {
  color: #cbd1d2;
  background: #1c2122;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1.4fr .6fr;
  min-height: 170px;
  padding: 42px 0;
  gap: 48px;
}

.site-footer__brand img {
  width: 170px;
  filter: none;
}

.site-footer__brand p {
  max-width: 320px;
  margin: 16px 0 0;
  color: #99a2a4;
  font-size: 13px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  color: #818b8d;
  border-top: 1px solid #343b3d;
  font-size: 12px;
  gap: 24px;
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: #cbd1d2;
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 32px, var(--st-shell));
  }

  .site-primary__inner {
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .primary-navigation ul {
    gap: 20px;
  }

  .site-search {
    width: 180px;
  }

  .site-search input[type='search'],
  .site-search input[type='text'] {
    width: 124px;
  }

  .product-family__hero,
  .machine-hero,
  .editorial-page__media {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .row.boxes_home.boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-shell {
    width: min(100% - 24px, var(--st-shell));
  }

  .site-utility__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
  }

  .site-utility__spacer {
    display: none;
  }

  .language-menu {
    min-width: 0;
  }

  .account-menu {
    justify-content: flex-end;
  }

  .site-search {
    grid-column: 1 / -1;
    width: 100%;
    padding-bottom: 8px;
  }

  .site-search form {
    width: 100%;
  }

  .site-search input[type='search'],
  .site-search input[type='text'] {
    flex: 1 1 auto;
    width: auto;
  }

  .site-primary__inner {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .brand img {
    width: 166px;
  }

  .primary-navigation {
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .primary-navigation ul {
    justify-content: flex-start;
    min-width: max-content;
  }

  .primary-navigation a {
    padding: 13px 0;
  }

  .my-santoni {
    grid-column: 2;
    grid-row: 1;
  }

  .product-navigation {
    overflow-x: auto;
  }

  .product-navigation ul {
    justify-content: flex-start;
    min-width: max-content;
  }

  .site-main {
    padding: 34px 0 56px;
  }

  #block-santoni-page-title h1 {
    margin-bottom: 28px;
    font-size: 32px;
  }

  .product-family__visual,
  .machine-hero__visual {
    min-height: 320px;
  }

  .product-family__intro,
  .machine-hero__content {
    padding: 28px 20px;
  }

  .technology-section,
  .machine-gallery,
  .machine-video,
  .machine-specifications,
  .machine-software,
  .listing-section {
    padding: 42px 0;
  }

  .card-grid,
  .row.boxes_home.boxes,
  .machine-gallery .field__items,
  .machine-specifications .field__items {
    grid-template-columns: 1fr;
  }

  .homeSliderShow,
  .homeSliderShow img {
    height: auto;
    min-height: 0;
  }

  .homeSliderShow {
    aspect-ratio: 8 / 3;
  }

  .homeSliderShow > div {
    height: 100%;
    min-height: 0;
  }

  .homeSliderShow img {
    height: 100%;
    object-fit: contain;
  }

  .home-slider__control {
    width: 32px;
    min-height: 32px;
    font-size: 24px;
  }

  .home-slider__dots {
    bottom: 7px;
  }

  .home-slider__control--previous {
    left: 8px;
  }

  .home-slider__control--next {
    right: 8px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }
}
