.mdsh-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2147483647;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #000;
  border: 2px solid #fff;
  border-radius: 0.25rem;
  transform: translateY(-200%);
  transition: transform 120ms ease;
}

.mdsh-skip-link:focus {
  transform: translateY(0);
}

.mdsh-main-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

a.open-menu,
a.menu-icon,
.hamburger > a {
  min-width: 44px;
  min-height: 44px;
}

.project-tabs-container [role="tab"]:focus-visible {
  outline: 3px solid currentColor !important;
  outline-offset: 4px;
}

.semplice-cover video[data-mdsh-hero] {
  background: #000 url("/wp-content/uploads/2026/02/MD_hero_bila.jpg") center / cover no-repeat;
}

.cky-consent-container,
.cky-modal {
  font-family: Arial, sans-serif !important;
}

body:has(#mdsh-static-consent) {
  overflow: hidden;
}

body:has(#mdsh-static-consent)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgb(0 0 0 / 75%);
}

.mdsh-static-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 1000001;
  box-sizing: border-box;
  width: 100%;
  padding: 24px;
  color: #000;
  background: #fff;
  font-family: Arial, sans-serif;
}

.mdsh-static-consent__panel {
  width: min(100%, 920px);
  margin: 0 auto;
}

.mdsh-static-consent h2 {
  margin: 0 0 12px;
  color: #000;
  font: 700 20px/1.2 Arial, sans-serif;
}

.mdsh-static-consent p {
  margin: 0;
  color: #000;
  font: 400 14px/1.55 Arial, sans-serif;
}

.mdsh-static-consent__actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mdsh-static-consent button {
  min-height: 40px;
  padding: 7px 16px;
  border: 1px solid #db0d15;
  border-radius: 48px;
  color: #db0d15;
  background: #fff;
  font: 400 14px/24px Arial, sans-serif;
  cursor: pointer;
}

.mdsh-static-consent button:hover,
.mdsh-static-consent button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

.mdsh-static-consent .mdsh-static-consent__accept {
  color: #fff;
  background: #db0d15;
}

html.mdsh-static-consent-active .cky-consent-container {
  visibility: hidden !important;
}

@media (min-width: 768px) {
  .mdsh-static-consent {
    padding: 28px 40px;
  }

  .mdsh-static-consent__actions {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 767px) {
  .semplice-cover video[data-mdsh-hero] {
    background-image: url("/wp-content/uploads/2026/03/MD_hero_bila_mob.jpg");
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdsh-skip-link {
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  html,
  body {
    color: #000 !important;
    background: #fff !important;
    font-size: 11pt !important;
  }

  .mdsh-skip-link,
  .semplice-cover video,
  .hamburger,
  .open-menu,
  .cky-consent-container,
  .cky-btn-revisit-wrapper,
  #mdsh-static-consent,
  #wpadminbar,
  nav,
  form,
  iframe {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  p,
  li {
    break-inside: avoid;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    overflow-wrap: anywhere;
  }
}
