/* Restore the original anchor geometry after the two UI controls become buttons.
   Theme class/id rules still own sizing, location, icon color and hover behavior. */
#header button.responsive_nav.resp_mid_nav,
button#slide_top {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    font: inherit;
    text-transform: none;
    letter-spacing: inherit;
    cursor: pointer;
}
#header button.responsive_nav.resp_mid_nav {
    background: transparent;
    color: inherit;
}
#header button.responsive_nav.resp_mid_nav:focus-visible,
button#slide_top:focus-visible {
    outline: 3px solid #173f4b;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fff;
}
#header button.responsive_nav.resp_mid_nav:focus-visible {
    /* Its native .resp_mid_nav_wrap uses overflow:hidden. Keep the ring inside
       the existing hit target rather than altering the header wrapper. */
    outline-offset: -3px;
    box-shadow: none;
}
.ees-performance-skip-link {
    position: fixed;
    z-index: 2147483647;
    left: 12px;
    top: 12px;
    padding: 12px 18px;
    background: #fff;
    color: #173f4b;
    border: 2px solid #173f4b;
    border-radius: 6px;
    font: 600 16px/1.4 Arial, sans-serif;
    text-decoration: underline;
    transform: translateY(-180%);
}
.ees-performance-skip-link:focus {
    transform: none;
    color: #173f4b;
    outline: 3px solid #173f4b;
    outline-offset: 2px;
}
#middle[role="main"] {
    scroll-margin-block-start: var(--ees-content-scroll-offset, 120px);
}

/* The two contrast failures in the saved homepage Lighthouse baseline.
   The header retains its darker native inset gradient. The pale CTA base
   colors are adjusted locally; only the homepage contact CTA loses its shadow. */
#header .slogan_wrap .slogan_wrap_text > a.cmsmasters_button[href="#consulenza"],
#header .slogan_wrap .slogan_wrap_text > a.cmsmasters_button[href="#consulenza"]:hover {
    color: #fff;
    background-color: #087c8d;
}
body.home #cmsmasters_button_brluxuox89 > a.cmsmasters_button {
    color: #fff;
    background-color: #cf412e;
    box-shadow: none;
}
body.home #cmsmasters_button_brluxuox89 > a.cmsmasters_button:hover {
    color: #fff;
    background-color: #bd3726;
    box-shadow: none;
}
#header .slogan_wrap .slogan_wrap_text > a.cmsmasters_button[href="#consulenza"]:focus-visible,
body.home #cmsmasters_button_brluxuox89 > a.cmsmasters_button:focus-visible {
    outline: 3px solid #173f4b;
    outline-offset: 3px;
}

/* The CMSMasters submit-only row has no column to compensate its negative
   gutters. Keep this correction inside the existing blog contact section. */
body.single-post .cmsmasters_post_content .ees-lead-shortcode .wpcf7-form > .cmsmasters_row_margin.cmsms_131313 {
    margin-left: 0;
    margin-right: 0;
}
body.single-post .cmsmasters_post_content .ees-lead-shortcode .wpcf7-form input[type="submit"] {
    color: #fff !important;
    background-color: #087c8d !important;
}
body.single-post .cmsmasters_post_content .ees-lead-shortcode .wpcf7-form input[type="submit"]:hover,
body.single-post .cmsmasters_post_content .ees-lead-shortcode .wpcf7-form input[type="submit"]:focus-visible {
    background-color: #0b6479 !important;
}

/* Shared footer: the verified privacy link must remain distinguishable from
   surrounding copyright text without relying only on its color. */
#footer .footer_copyright > a.privacy-policy-link {
    text-decoration: underline;
}

/* Dental page only. technical-dental.css sets white submit text, while the
   older global important cyan background wins its non-important background.
   Preserve native inset-shadow/hover animation and geometry; make the base
   color safe as well (white/#087c8d = 4.909:1). */
body.page-id-2826 .ees-dental-contact .wpcf7 input[type="submit"] {
    color: #fff !important;
    background-color: #087c8d !important;
}


/* EES_PHASE2_HOME_HEADINGS_START */
/* Private Phase 2 candidate. Enqueue only for page 505, after the existing recovery styles.
 * Classes are attached only to the 34 explicitly mapped existing elements in widget 2572bd0e.
 * Preserve the Denta type scale while changing element semantics; no copy/layout change.
 */
body.page-id-505 :is(.ees-home-type-h1,.ees-home-type-h4,.ees-home-type-h5,.ees-home-type-h6) {
  font-family:'Fira Sans',Arial,Helvetica,'Nimbus Sans L',sans-serif;
  font-weight:300;
  font-style:normal;
  text-transform:none;
  text-decoration:none;
  color:#1b1e29;
  padding:0;
  margin:0 0 20px;
}
body.page-id-505 .ees-home-type-h1 {font-size:36px;line-height:44px}
body.page-id-505 .ees-home-type-h4 {font-size:18px;line-height:26px}
body.page-id-505 .ees-home-type-h5 {font-size:16px;line-height:22px}
body.page-id-505 .ees-home-type-h6 {font-size:14px;line-height:20px}
body.page-id-505 .ees-home-main-heading .cmsmasters_heading {line-height:20px}
/* These exact spacing rules already exist for the original H4/H6 elements.
 * Retain them for the now-semantic paragraphs, without broadening their scope.
 */
@media(max-width:767px) {
  body.page-id-505 :is(#cmsmasters_row_l6osvvu83c,#cmsmasters_row_fte426lzz,#cmsmasters_row_2dg905zq2p) .ees-home-type-h4 {margin-bottom:0}
  body.page-id-505 #cmsmasters_column_gk80lknk8 .ees-home-type-h4 {margin-bottom:22px}
  body.page-id-505 .ees-lead-cms .ees-lead-description .ees-home-type-h6 {margin:0!important}
}

/* EES_PHASE2_HOME_HEADINGS_END */
