/* FERGRA audit candidate: component-scoped additions, no product-photo or palette changes. */
.fergra-audit-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fergra-audit-control:focus-visible,
.fergra-audit-motion:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #000 !important;
}

.bbb_viewed_nav {
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

.fergra-audit-field-label {
    margin: 0;
    font: inherit;
    color: inherit;
}

.wpcf7 .fergra-audit-contact-label {
    display: block;
    margin: 0 0 0.375rem;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
}

.fergra-audit-motion-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.fergra-audit-motion {
    max-width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #a79374;
    border-radius: 0;
    background: #000;
    color: #fff;
    font: inherit;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .bbb_viewed_slider .owl-stage {
        transition-duration: 1ms !important;
    }
    .fergra-audit-modal.fade .modal-dialog {
        transition-duration: 0s !important;
    }
}
/* Client preview only; load after the frozen audit and Diamond CSS. */
@media (max-width: 767.98px) {
  body.home #azienda > .bg-right-top {
    background-position: center bottom !important;
    background-size: min(100%, 22.5rem) auto !important;
    background-repeat: no-repeat;
  }
  body.home #azienda > .bg-right-top > .container {
    padding-bottom: 15rem !important;
  }
}
html[lang^="de"] body.page-template-template-applicazioni h1.titolo-applicazioni,
html[lang^="de"] body.page-template-template-applicazioni h2.titolo-appplicazioni-carbonato {
  max-width: 100%; min-width: 0; white-space: normal;
  overflow-wrap: anywhere; hyphens: auto;
}
@media (max-width: 575.98px) {
  html[lang^="de"] body.page-template-template-applicazioni h1.titolo-applicazioni,
  html[lang^="de"] body.page-template-template-applicazioni h2.titolo-appplicazioni-carbonato {
    font-size: clamp(1.75rem, 8.4vw, 2.125rem); line-height: 1.15;
  }
  html[lang^="de"] body.page-template-template-contatti .headline .col-xl-6 > .row > .col-md-6 > h4 {
    line-height: 1.35; white-space: normal; overflow-wrap: anywhere;
  }
  html[lang^="de"] body.page-template-template-contatti .headline .col-xl-6 > .row > .col-md-6 > h4 > span.dark {
    line-height: inherit;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html[lang^="de"] body.page-template-template-applicazioni h2.titolo-appplicazioni-carbonato {
    font-size: 40px;
    line-height: 1.15;
  }
}
body.page-template-template-granulati .box-product > a:focus-visible > .bg {
  opacity: 1 !important; visibility: visible !important;
  background: transparent;
  transition: none !important;
}
body.page-template-template-granulati .box-product > a:focus-visible > .bg h3 {
  opacity: 1 !important; visibility: visible !important; color: #fff;
  /* Only the existing title rectangle receives this backing.
     The rest of the image remains unobscured while keyboard focused. */
  background-color: rgb(0 0 0 / 75%);
  transition: none !important;
}
body.page-template-template-granulati .box-product > a:focus-visible {
  outline: 2px solid currentColor; outline-offset: -2px;
}
@media (max-width: 991.98px) {
  body.wp-theme-diamond header nav.navbar-expand-lg .navbar-toggler[aria-controls="navbarSupportedContent"] {
    min-width: 44px; min-height: 44px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; padding: .5rem;
  }
  body.wp-theme-diamond header nav.navbar-expand-lg .navbar-toggler[aria-controls="navbarSupportedContent"]:focus-visible {
    outline: 2px solid currentColor; outline-offset: 3px;
  }
}

/* Preserve Diamond legend styles after the reviewed unique-ID repair. */
.modal .granulemetria-tabella :is(#collapseExample, [id^="fergra-audit-legend-"]) {
  padding: 2em;
  background: rgb(255 255 255 / 10%);
  margin-bottom: 2em;
}
.modal .granulemetria-tabella :is(#collapseExample, [id^="fergra-audit-legend-"]) p {
  font-weight: 400;
  font-size: 12px;
}


/* C11R: direct panel > .granulemetria-tabella > .p-5 > .modal-content chain.
   .granulemetria-tabella has zero horizontal padding; .p-5 has 3rem per side.
   Recheck containment if this structure/padding changes. Applications table overflow is separate. */
@media (max-width: 575.98px) {
  .modal .granulemetria-tabella :is(#collapseExample, [id^="fergra-audit-legend-"]) {
    --fergra-legend-reading-width: max(100%, min(30rem, calc(100% + 6rem)));
    box-sizing: border-box;
    width: var(--fergra-legend-reading-width);
    max-width: none;
    margin-inline: calc((100% - var(--fergra-legend-reading-width)) / 2);
    padding: 2em;
    background: rgb(255 255 255 / 10%);
    margin-bottom: 2em;
  }
  .modal .granulemetria-tabella :is(#collapseExample, [id^="fergra-audit-legend-"]) p {
    font-weight: 400;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
}
