/* ==========================================================
   D'CLÍNIC — HOME REFINADA (Divi 5)
   Reference: declinic.com homepage
   ========================================================== */

.dclinic-imported-home,
.dclinic-imported-home #page-container,
.dclinic-imported-home #et-main-area,
.dclinic-imported-home #main-content {
    background:#fff;
}

.dclinic-imported-home #main-content .container,
.dclinic-imported-home #main-content > .container {
    width:100%;
    max-width:none;
    padding:0;
}

.dclinic-imported-home .entry-content {
    padding:0;
}

.dclinic-imported-home .et_pb_section,
.dclinic-imported-home .et_pb_row {
    box-sizing:border-box;
}

/* --- HERO / SLIDER --- */
.dclinic-imported-home .dclinic-hero,
.dclinic-imported-home .dclinic-hero-row,
.dclinic-imported-home .dclinic-hero-col,
.dclinic-imported-home .dclinic-home-slider {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
}

.dclinic-imported-home .dclinic-home-slider,
.dclinic-imported-home .dclinic-home-slider .et_pb_slides,
.dclinic-imported-home .dclinic-home-slider .et_pb_slide,
.dclinic-imported-home .dclinic-home-slider .et_pb_container {
    height:calc(100vh - 96px)!important;
    min-height:680px!important;
    max-height:900px!important;
}

.dclinic-imported-home .dclinic-home-slider .et_pb_slide {
    background-size:cover!important;
    background-position:center center!important;
    padding:0!important;
}

.dclinic-imported-home .dclinic-home-slider .et_pb_slide:before {
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.03);
    pointer-events:none;
    z-index:1;
}

.dclinic-imported-home .dclinic-home-slider .et_pb_container {
    width:100%!important;
    max-width:1180px!important;
    margin:0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}

.dclinic-imported-home .dclinic-home-slider .et_pb_slide_description {
    position:relative;
    z-index:2;
    width:100%;
    max-width:900px;
    margin:0 auto;
    padding:60px 20px 75px!important;
    text-align:center;
    text-shadow:none!important;
}

.dclinic-imported-home .dclinic-home-slider .et_pb_slide_title {
    color:#fff!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:43px!important;
    line-height:1.15!important;
    font-weight:500!important;
    letter-spacing:.5px!important;
    text-transform:none!important;
    margin:0!important;
    padding:0!important;
    text-shadow:0 1px 2px rgba(0,0,0,.15)!important;
}

.dclinic-imported-home .dclinic-slide-logo {
    margin:0 auto 20px!important;
    text-align:center!important;
}

.dclinic-imported-home .dclinic-slide-logo img {
    display:block!important;
    width:min(660px,72vw)!important;
    max-width:660px!important;
    height:auto!important;
    margin:0 auto!important;
}

.dclinic-imported-home .dclinic-slide-subtitle {
    color:#fff!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:31px!important;
    line-height:1.25!important;
    font-weight:300!important;
    margin:8px 0 28px!important;
}

.dclinic-imported-home .dclinic-home-slider .et_pb_button_wrapper {
    margin-top:24px!important;
}

.dclinic-imported-home .dclinic-home-slider .et_pb_button {
    background:transparent!important;
    border:0!important;
    color:#fff!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:16px!important;
    font-weight:600!important;
    padding:4px 12px!important;
    box-shadow:none!important;
}

.dclinic-imported-home .dclinic-home-slider .et_pb_button:before {
    content:"⌄";
    display:inline-flex;
    width:24px;
    height:24px;
    border:2px solid #fff;
    border-radius:50%;
    align-items:center;
    justify-content:center;
    margin-right:8px;
    vertical-align:-2px;
    font-size:18px;
    line-height:16px;
}

.dclinic-imported-home .dclinic-home-slider .et-pb-arrow-prev,
.dclinic-imported-home .dclinic-home-slider .et-pb-arrow-next {
    width:42px!important;
    height:42px!important;
    line-height:38px!important;
    border:2px solid rgba(255,255,255,.95)!important;
    border-radius:50%!important;
    color:#fff!important;
    font-size:31px!important;
    opacity:1!important;
    background:rgba(0,0,0,.05)!important;
    text-shadow:none!important;
}

.dclinic-imported-home .dclinic-home-slider .et-pb-arrow-prev { left:28px!important; }
.dclinic-imported-home .dclinic-home-slider .et-pb-arrow-next { right:28px!important; }

.dclinic-imported-home .dclinic-home-slider .et-pb-controllers {
    bottom:58px!important;
    z-index:5!important;
}

.dclinic-imported-home .dclinic-home-slider .et-pb-controllers a {
    width:10px!important;
    height:10px!important;
    margin-right:6px!important;
    border-radius:50%!important;
    background:#fff!important;
    opacity:1!important;
}

.dclinic-imported-home .dclinic-home-slider .et-pb-controllers a.et-pb-active-control {
    background:#7faa18!important;
}

/* --- WELCOME STRIP --- */
.dclinic-imported-home .dclinic-welcome {
    background:#2d9d3d!important;
    padding:41px 20px!important;
}

.dclinic-imported-home .dclinic-welcome .et_pb_row {
    width:100%!important;
    max-width:1200px!important;
}

.dclinic-imported-home .dclinic-welcome-title,
.dclinic-imported-home .dclinic-welcome-title h1 {
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    color:#fff!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:39px!important;
    line-height:1.25!important;
    font-weight:300!important;
}

/* --- GENERAL HOME TYPOGRAPHY --- */
.dclinic-imported-home .dclinic-section-title,
.dclinic-imported-home .dclinic-section-title h2 {
    color:#457c21!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:31px!important;
    line-height:1.25!important;
    font-weight:500!important;
    text-align:center!important;
    margin:0!important;
}

.dclinic-imported-home p,
.dclinic-imported-home li {
    font-family:var(--dclinic-font-brand)!important;
}

/* --- SPECIALTIES --- */
.dclinic-imported-home .dclinic-specialties {
    background:#ededed!important;
    padding:57px 0 66px!important;
}

.dclinic-imported-home .dclinic-title-row {
    margin-bottom:48px!important;
}

.dclinic-imported-home .dclinic-specialties-row {
    width:86%!important;
    max-width:1110px!important;
    gap:30px!important;
    margin:0 auto 68px!important;
}

.dclinic-imported-home .dclinic-specialties-row:last-child {
    margin-bottom:0!important;
}

.dclinic-imported-home .dclinic-specialty-card {
    display:block!important;
    text-align:center!important;
    text-decoration:none!important;
    color:#666!important;
}

.dclinic-imported-home .dclinic-specialty-card img {
    width:100%!important;
    aspect-ratio:1.45/1!important;
    object-fit:cover!important;
    display:block!important;
    box-shadow:0 5px 8px rgba(0,0,0,.22)!important;
    transition:transform .18s ease, box-shadow .18s ease!important;
}

.dclinic-imported-home .dclinic-specialty-card:hover img {
    transform:translateY(-2px);
    box-shadow:0 7px 13px rgba(0,0,0,.25)!important;
}

.dclinic-imported-home .dclinic-specialty-card span {
    display:block!important;
    margin-top:15px!important;
    font-family:var(--dclinic-font-brand)!important;
    color:#666!important;
    font-size:14px!important;
    line-height:1.2!important;
    font-weight:400!important;
    text-transform:uppercase!important;
}

/* --- TEAM INTRO / FOUNDER --- */
.dclinic-imported-home .dclinic-team-intro-section {
    padding:58px 0 35px!important;
}

.dclinic-imported-home .dclinic-team-title-row {
    width:80%!important;
    max-width:1160px!important;
    margin:0 auto 50px!important;
}

.dclinic-imported-home .dclinic-team-intro {
    margin-top:18px!important;
    color:#666!important;
    text-align:center!important;
    font-size:15px!important;
    line-height:1.45!important;
}

.dclinic-imported-home .dclinic-founder-row {
    width:72%!important;
    max-width:970px!important;
    margin:0 auto!important;
    gap:30px!important;
    align-items:center!important;
}

.dclinic-imported-home .dclinic-founder-image img {
    display:block!important;
    width:100%!important;
    max-width:400px!important;
    height:auto!important;
    margin:0 auto!important;
}

.dclinic-imported-home .dclinic-founder-bio {
    color:#666!important;
    font-size:15px!important;
    line-height:1.45!important;
}

.dclinic-imported-home .dclinic-founder-bio h3 {
    color:#527e24!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:20px!important;
    font-weight:400!important;
    margin:0 0 20px!important;
}

.dclinic-imported-home .dclinic-founder-bio h4 {
    color:#527e24!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:18px!important;
    font-weight:400!important;
    margin:10px 0!important;
}

.dclinic-imported-home .dclinic-founder-bio ul {
    margin:12px 0 8px 24px!important;
    padding:0!important;
}

/* --- TEAM GRID --- */
.dclinic-imported-home .dclinic-team-grid {
    padding:0 0 55px!important;
}

.dclinic-imported-home .dclinic-team-row {
    width:69%!important;
    max-width:1080px!important;
    gap:38px!important;
    margin:0 auto 28px!important;
    align-items:flex-start!important;
}

.dclinic-imported-home .dclinic-team-card {
    text-align:center!important;
    margin:0!important;
}

.dclinic-imported-home .dclinic-team-card .et_pb_team_member_image,
.dclinic-imported-home .dclinic-team-card .et_pb_team_member_image img {
    width:100%!important;
    max-width:none!important;
}

.dclinic-imported-home .dclinic-team-card .et_pb_team_member_image img {
    display:block!important;
    aspect-ratio:2/3!important;
    object-fit:cover!important;
    object-position:center top!important;
}

.dclinic-imported-home .dclinic-team-card .et_pb_team_member_description {
    padding-top:13px!important;
}

.dclinic-imported-home .dclinic-team-card h4,
.dclinic-imported-home .dclinic-team-card .et_pb_module_header {
    color:#527e24!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:19px!important;
    line-height:1.2!important;
    font-weight:400!important;
    margin:0!important;
}

.dclinic-imported-home .dclinic-team-card .et_pb_member_position {
    color:#527e24!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:17px!important;
    line-height:1.25!important;
    font-weight:300!important;
    margin-top:2px!important;
}

/* --- KIT DIGITAL --- */
.dclinic-imported-home .dclinic-kit-section {
    padding:38px 0 44px!important;
}

.dclinic-imported-home .dclinic-kit-row {
    width:68%!important;
    max-width:1060px!important;
}

.dclinic-imported-home .dclinic-kit-image img {
    display:block!important;
    max-width:100%!important;
    width:auto!important;
    height:auto!important;
    margin:0 auto!important;
}

/* --- CONTACT --- */
.dclinic-imported-home .dclinic-contact-section {
    background:#3f3f3f!important;
    padding:46px 0 78px!important;
    color:#fff!important;
}

.dclinic-imported-home .dclinic-contact-row {
    width:68%!important;
    max-width:1110px!important;
    gap:34px!important;
    align-items:flex-start!important;
}

.dclinic-imported-home .dclinic-contact-section h2,
.dclinic-imported-home .dclinic-contact-heading,
.dclinic-imported-home .dclinic-contact-heading h2 {
    color:#fff!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:31px!important;
    font-weight:600!important;
    line-height:1.2!important;
    margin-bottom:8px!important;
}

.dclinic-imported-home .dclinic-contact-info,
.dclinic-imported-home .dclinic-contact-info p,
.dclinic-imported-home .dclinic-contact-info a,
.dclinic-imported-home .dclinic-contact-legal,
.dclinic-imported-home .dclinic-contact-legal a {
    color:#fff!important;
    font-size:14px!important;
    line-height:1.48!important;
}

.dclinic-imported-home .dclinic-contact-info hr {
    border:0!important;
    border-top:1px solid rgba(255,255,255,.85)!important;
    margin:6px 0 24px!important;
}

.dclinic-imported-home .dclinic-native-contact input,
.dclinic-imported-home .dclinic-native-contact textarea {
    background:#fff!important;
    border:0!important;
    border-radius:0!important;
    color:#333!important;
    box-shadow:none!important;
}

.dclinic-imported-home .dclinic-native-contact textarea {
    min-height:118px!important;
}

.dclinic-imported-home .dclinic-native-contact .et_pb_contact_submit {
    background:#ef5744!important;
    border:0!important;
    border-radius:0!important;
    color:#111!important;
    font-size:12px!important;
    font-weight:700!important;
    padding:9px 12px!important;
}

.dclinic-imported-home .dclinic-legal-small {
    font-size:11px!important;
    line-height:1.18!important;
    margin-top:14px!important;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .dclinic-imported-home .dclinic-home-slider,
    .dclinic-imported-home .dclinic-home-slider .et_pb_slides,
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide,
    .dclinic-imported-home .dclinic-home-slider .et_pb_container {
        min-height:620px!important;
        height:calc(100vh - 90px)!important;
    }
    .dclinic-imported-home .dclinic-team-row,
    .dclinic-imported-home .dclinic-founder-row,
    .dclinic-imported-home .dclinic-contact-row,
    .dclinic-imported-home .dclinic-kit-row {
        width:84%!important;
    }
}

@media (max-width: 980px) {
    .dclinic-imported-home .dclinic-home-slider,
    .dclinic-imported-home .dclinic-home-slider .et_pb_slides,
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide,
    .dclinic-imported-home .dclinic-home-slider .et_pb_container {
        height:650px!important;
        min-height:650px!important;
    }

    .dclinic-imported-home .dclinic-home-slider .et_pb_slide_title {
        font-size:34px!important;
    }

    .dclinic-imported-home .dclinic-slide-logo img {
        width:min(560px,82vw)!important;
    }

    .dclinic-imported-home .dclinic-specialties-row,
    .dclinic-imported-home .dclinic-team-row {
        width:90%!important;
        gap:22px!important;
    }

    .dclinic-imported-home .dclinic-founder-row,
    .dclinic-imported-home .dclinic-contact-row {
        width:86%!important;
    }
}

@media (max-width: 767px) {
    .dclinic-imported-home .dclinic-home-slider,
    .dclinic-imported-home .dclinic-home-slider .et_pb_slides,
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide,
    .dclinic-imported-home .dclinic-home-slider .et_pb_container {
        height:560px!important;
        min-height:560px!important;
    }

    .dclinic-imported-home .dclinic-home-slider .et_pb_slide_title {
        font-size:27px!important;
    }

    .dclinic-imported-home .dclinic-slide-logo img {
        width:88vw!important;
    }

    .dclinic-imported-home .dclinic-home-slider .et-pb-arrow-prev { left:10px!important; }
    .dclinic-imported-home .dclinic-home-slider .et-pb-arrow-next { right:10px!important; }

    .dclinic-imported-home .dclinic-welcome-title,
    .dclinic-imported-home .dclinic-welcome-title h1 {
        font-size:29px!important;
    }

    .dclinic-imported-home .dclinic-specialties-row,
    .dclinic-imported-home .dclinic-team-row,
    .dclinic-imported-home .dclinic-founder-row,
    .dclinic-imported-home .dclinic-contact-row {
        width:90%!important;
    }

    .dclinic-imported-home .dclinic-specialty-card img {
        aspect-ratio:auto!important;
    }
}


/* Existing imported-page rules */
.dclinic-specialty-head{text-align:center}.dclinic-specialty-title{margin-bottom:6px}.dclinic-specialty-subtitle{font-weight:400}.dclinic-specialty-main-image img{width:100%;height:auto;display:block}.dclinic-specialty-section-title{text-align:center;margin-bottom:28px}.dclinic-specialty-treatment-title{margin-top:28px;margin-bottom:8px}.dclinic-specialty-copy,.dclinic-specialty-closing{line-height:1.7}.dclinic-specialty-closing{margin-top:30px}.dclinic-specialty-gallery-image img{width:100%;height:240px;object-fit:cover}.dclinic-specialty-gallery-row{margin-bottom:18px}.dclinic-specialty-cta,.dclinic-specialty-cta a{color:#fff}.dclinic-specialty-cta h2,.dclinic-specialty-cta h3{color:#fff}.dclinic-specialty-cta .et_pb_contact_submit{background:#73b72b!important;color:#fff!important;border-color:#73b72b!important}
.dclinic-clinica-space-image img{width:100%;height:230px;object-fit:cover}.dclinic-tour-frame iframe{width:100%;height:520px;border:0}.dclinic-tour-link{text-align:center;margin-bottom:18px}
@media (max-width:980px){.dclinic-specialty-gallery-image img,.dclinic-clinica-space-image img{height:auto}.dclinic-tour-frame iframe{height:420px}}
.dclinic-contacte-map-section,.dclinic-contacte-map-row,.dclinic-contacte-map-module{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}.dclinic-contacte-map iframe{width:100%;min-height:650px;border:0;display:block}
@media (max-width:980px){.dclinic-contacte-map iframe{min-height:520px;height:520px!important}}


/* Slider refinement v1.9 */
.dclinic-imported-home .dclinic-home-slider .et_pb_slide,
.dclinic-imported-home .dclinic-home-slider .et_pb_slide_description,
.dclinic-imported-home .dclinic-home-slider .et_pb_slide_content{
    text-align:center!important;
}
.dclinic-imported-home .dclinic-home-slider .et_pb_slide_description{
    width:100%!important;max-width:920px!important;float:none!important;
    margin-left:auto!important;margin-right:auto!important;left:auto!important;right:auto!important;
}
.dclinic-imported-home .dclinic-home-slider .et_pb_slide_content{
    width:100%!important;max-width:920px!important;margin:0 auto!important;
}
.dclinic-imported-home .dclinic-slide-doctor{
    color:#fff!important;font-family:var(--dclinic-font-brand)!important;font-size:32px!important;
    line-height:1.2!important;font-weight:500!important;text-align:center!important;
    margin:8px 0 10px!important;padding:0!important;text-shadow:0 1px 2px rgba(0,0,0,.15)!important;
}
.dclinic-imported-home .dclinic-slide-subtitle{
    color:#fff!important;text-align:center!important;margin:0 auto!important;
    font-size:21px!important;line-height:1.35!important;font-weight:300!important;
}
.dclinic-imported-home .dclinic-home-slider .et_pb_slide{position:relative!important;}
.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-wrap{
    position:absolute!important;left:50%!important;right:auto!important;bottom:18px!important;
    transform:translateX(-50%)!important;z-index:20!important;width:auto!important;
    margin:0!important;padding:0!important;text-align:center!important;
}
.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:8px!important;background:transparent!important;border:0!important;color:#fff!important;
    font-family:var(--dclinic-font-brand)!important;font-size:16px!important;font-weight:700!important;
    padding:0!important;margin:0!important;text-decoration:none!important;box-shadow:none!important;
}
.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link:after{display:none!important;}
.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link:before{
    content:"⌄"!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:24px!important;height:24px!important;min-width:24px!important;border:2px solid #fff!important;
    border-radius:50%!important;color:#fff!important;font-size:18px!important;font-weight:400!important;
    line-height:18px!important;margin:0!important;padding:0 0 4px 0!important;position:static!important;
    opacity:1!important;transform:none!important;
}
.dclinic-imported-home .dclinic-home-slider .et-pb-controllers{bottom:72px!important;}
.dclinic-imported-home .dclinic-home-slider .et_pb_slide_with_image .et_pb_slide_description,
.dclinic-imported-home .dclinic-home-slider .et_pb_slide_with_video .et_pb_slide_description{
    width:100%!important;float:none!important;margin:0 auto!important;
}
.dclinic-imported-home .dclinic-home-slider .et_pb_slide:nth-child(2) .et_pb_slide_description{max-width:820px!important;}
@media(max-width:767px){
    .dclinic-imported-home .dclinic-slide-doctor{font-size:25px!important;}
    .dclinic-imported-home .dclinic-slide-subtitle{font-size:18px!important;}
    .dclinic-imported-home .dclinic-home-slider .dclinic-contacta-wrap{bottom:16px!important;}
    .dclinic-imported-home .dclinic-home-slider .et-pb-controllers{bottom:66px!important;}
}


/* ==========================================================
   SLIDER POLISH v1.10 — match original Phoenix slider
   ========================================================== */

/* Original first slide title: centered, narrower and smaller than previous pass */
.dclinic-imported-home .dclinic-home-slider .et_pb_slide_title {
    width:100%!important;
    max-width:760px!important;
    margin:0 auto 14px!important;
    padding:0!important;
    text-align:center!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:38px!important;
    line-height:1.16!important;
    font-weight:500!important;
    letter-spacing:.2px!important;
    text-transform:uppercase!important;
    color:#fff!important;
}

/* Keep title and logo visually aligned around the central axis */
.dclinic-imported-home .dclinic-home-slider .et_pb_slide_description {
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
}

.dclinic-imported-home .dclinic-home-slider .dclinic-slide-logo {
    width:100%!important;
    text-align:center!important;
}

.dclinic-imported-home .dclinic-home-slider .dclinic-slide-logo img {
    width:500px!important;
    max-width:min(500px,72vw)!important;
    margin:0 auto!important;
}

/* Second slide text stack follows the old live site proportions */
.dclinic-imported-home .dclinic-home-slider .et_pb_slide:nth-child(2) .et_pb_slide_title {
    font-size:38px!important;
    max-width:760px!important;
    margin-bottom:13px!important;
}
.dclinic-imported-home .dclinic-home-slider .et_pb_slide:nth-child(2) .dclinic-slide-doctor {
    font-size:31px!important;
    font-weight:500!important;
    margin:0 0 10px!important;
}
.dclinic-imported-home .dclinic-home-slider .et_pb_slide:nth-child(2) .dclinic-slide-subtitle {
    font-size:20px!important;
    font-weight:300!important;
}

/* Contacta control: old site shows a thin white ring with a chevron inside */
.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link {
    gap:7px!important;
    font-size:16px!important;
    line-height:24px!important;
}

.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link:before {
    content:""!important;
    box-sizing:border-box!important;
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    border:2px solid #fff!important;
    border-radius:50%!important;
    background:
        linear-gradient(45deg, transparent 46%, #fff 47%, #fff 55%, transparent 56%) 8px 8px/7px 7px no-repeat,
        linear-gradient(-45deg, transparent 46%, #fff 47%, #fff 55%, transparent 56%) 12px 8px/7px 7px no-repeat!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
}

/* Position relative to original: dots above Contacta, both centered */
.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-wrap {
    bottom:16px!important;
}
.dclinic-imported-home .dclinic-home-slider .et-pb-controllers {
    bottom:69px!important;
}

/* Desktop hero content sits a little higher, like the original page */
@media (min-width:981px){
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide_description {
        padding-top:35px!important;
        padding-bottom:95px!important;
    }
}

@media (max-width:980px){
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide_title,
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide:nth-child(2) .et_pb_slide_title {
        font-size:32px!important;
        max-width:680px!important;
    }
    .dclinic-imported-home .dclinic-home-slider .dclinic-slide-logo img {
        width:460px!important;
        max-width:76vw!important;
    }
}

@media (max-width:767px){
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide_title,
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide:nth-child(2) .et_pb_slide_title {
        font-size:27px!important;
        max-width:90vw!important;
    }
    .dclinic-imported-home .dclinic-home-slider .dclinic-slide-logo img {
        width:390px!important;
        max-width:84vw!important;
    }
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide:nth-child(2) .dclinic-slide-doctor {
        font-size:25px!important;
    }
    .dclinic-imported-home .dclinic-home-slider .et_pb_slide:nth-child(2) .dclinic-slide-subtitle {
        font-size:17px!important;
    }
}


/* ==========================================================
   CONTACTA ICON — exact ring + downward chevron
   ========================================================== */
.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link{
    position:relative!important;
    gap:8px!important;
}

.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link:before{
    content:""!important;
    display:inline-block!important;
    box-sizing:border-box!important;
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    border:2px solid #fff!important;
    border-radius:50%!important;
    background:none!important;
    margin:0!important;
    padding:0!important;
    position:relative!important;
    top:0!important;
    left:0!important;
    opacity:1!important;
    transform:none!important;
    vertical-align:middle!important;
}

.dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link:after{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:8px!important;
    top:5px!important;
    width:7px!important;
    height:7px!important;
    border-right:2px solid #fff!important;
    border-bottom:2px solid #fff!important;
    transform:rotate(45deg)!important;
    transform-origin:center!important;
    opacity:1!important;
    margin:0!important;
    padding:0!important;
    background:none!important;
    pointer-events:none!important;
}

@media(max-width:767px){
    .dclinic-imported-home .dclinic-home-slider .dclinic-contacta-link:after{
        left:8px!important;
        top:5px!important;
    }
}


/* ==========================================================
   HOME PASS v1.12 — specialties spacing + professional team
   ========================================================== */

/* Welcome strip: old site has a touch more height */
.dclinic-imported-home .dclinic-welcome{
    padding:48px 20px!important;
}

/* Specialties: tighten the large vertical gaps visible in the new version */
.dclinic-imported-home .dclinic-specialties{
    padding:46px 0 46px!important;
}
.dclinic-imported-home .dclinic-title-row{
    margin-bottom:34px!important;
}
.dclinic-imported-home .dclinic-specialties-row{
    margin-bottom:42px!important;
}
.dclinic-imported-home .dclinic-specialties-row:last-child{
    margin-bottom:0!important;
}

/* Professional team heading / intro: match old site's lighter typography and spacing */
.dclinic-imported-home .dclinic-team-intro-section{
    padding:48px 0 20px!important;
}
.dclinic-imported-home .dclinic-team-title-row{
    width:80%!important;
    max-width:1160px!important;
    margin:0 auto 42px!important;
}
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title,
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title h2{
    font-family:var(--dclinic-font-brand)!important;
    font-size:31px!important;
    line-height:1.2!important;
    font-weight:400!important;
    letter-spacing:0!important;
    color:#3d7f20!important;
}
.dclinic-imported-home .dclinic-team-intro,
.dclinic-imported-home .dclinic-team-intro p{
    font-family:var(--dclinic-font-brand)!important;
    font-size:15px!important;
    line-height:1.45!important;
    font-weight:300!important;
    color:#555!important;
    text-align:center!important;
    margin:18px 0 0!important;
}

/* Albert Ferrón block */
.dclinic-imported-home .dclinic-founder-row{
    width:67%!important;
    max-width:930px!important;
    gap:28px!important;
    margin:0 auto!important;
    align-items:flex-start!important;
}
.dclinic-imported-home .dclinic-founder-image img{
    width:100%!important;
    max-width:400px!important;
    height:auto!important;
    display:block!important;
    margin:0 auto!important;
}
.dclinic-imported-home .dclinic-founder-bio{
    padding-top:2px!important;
    font-family:var(--dclinic-font-brand)!important;
    color:#555!important;
}
.dclinic-imported-home .dclinic-founder-bio h3{
    color:#4d7f22!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:400!important;
    margin:0 0 18px!important;
}
.dclinic-imported-home .dclinic-founder-bio p,
.dclinic-imported-home .dclinic-founder-bio li{
    font-size:15px!important;
    line-height:1.42!important;
    font-weight:300!important;
}
.dclinic-imported-home .dclinic-founder-bio ul{
    margin:13px 0 8px 24px!important;
}
.dclinic-imported-home .dclinic-founder-bio h4{
    color:#678b31!important;
    font-size:18px!important;
    line-height:1.2!important;
    font-weight:300!important;
    margin:8px 0 16px!important;
}
.dclinic-imported-home .dclinic-mdr-logo{
    display:block!important;
    width:230px!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
}

/* Team grid: three equal portrait cards, caption always below image */
.dclinic-imported-home .dclinic-team-grid{
    padding:0 0 45px!important;
}
.dclinic-imported-home .dclinic-team-row{
    width:69%!important;
    max-width:1100px!important;
    gap:38px!important;
    margin:0 auto 38px!important;
    align-items:flex-start!important;
}
.dclinic-imported-home .dclinic-team-row > .et_pb_column{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
}
.dclinic-imported-home .dclinic-team-photo{
    width:100%!important;
    margin:0!important;
}
.dclinic-imported-home .dclinic-team-photo .et_pb_image_wrap,
.dclinic-imported-home .dclinic-team-photo img{
    display:block!important;
    width:100%!important;
    max-width:none!important;
}
.dclinic-imported-home .dclinic-team-photo img{
    aspect-ratio:2 / 3!important;
    object-fit:cover!important;
    object-position:center top!important;
}
.dclinic-imported-home .dclinic-team-caption{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
}
.dclinic-imported-home .dclinic-team-caption-inner{
    width:100%!important;
    text-align:center!important;
    padding-top:12px!important;
}
.dclinic-imported-home .dclinic-team-caption-inner h3{
    margin:0!important;
    padding:0!important;
    color:#5d7f18!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:19px!important;
    line-height:1.18!important;
    font-weight:400!important;
}
.dclinic-imported-home .dclinic-team-caption-inner p{
    margin:2px 0 0!important;
    padding:0!important;
    color:#6b8a24!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:17px!important;
    line-height:1.2!important;
    font-weight:300!important;
}

/* Prevent old team-member rules from affecting the rebuilt grid */
.dclinic-imported-home .dclinic-team-row .et_pb_team_member_description{
    width:100%!important;
    float:none!important;
}

/* Responsive */
@media(max-width:980px){
    .dclinic-imported-home .dclinic-founder-row,
    .dclinic-imported-home .dclinic-team-row{
        width:86%!important;
    }
}
@media(max-width:767px){
    .dclinic-imported-home .dclinic-welcome{
        padding:34px 18px!important;
    }
    .dclinic-imported-home .dclinic-specialties{
        padding:36px 0 38px!important;
    }
    .dclinic-imported-home .dclinic-team-row{
        width:88%!important;
        gap:24px!important;
    }
}


/* ==========================================================
   v1.14 — global Raleway + tighter Equip professional
   ========================================================== */

/* Use the same typography family consistently across the migrated site. */
html body,
html body p,
html body li,
html body a,
html body input,
html body textarea,
html body select,
html body button,
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body .et_pb_module {
    font-family:var(--dclinic-font-brand)!important;
}

/* Remove Divi's default row padding that was creating the oversized gaps. */
.dclinic-imported-home .dclinic-team-intro-section,
.dclinic-imported-home .dclinic-team-intro-section .et_pb_row,
.dclinic-imported-home .dclinic-team-title-row,
.dclinic-imported-home .dclinic-founder-row {
    padding-top:0!important;
    padding-bottom:0!important;
}

.dclinic-imported-home .dclinic-team-intro-section {
    padding:38px 0 24px!important;
}

.dclinic-imported-home .dclinic-team-title-row {
    width:80%!important;
    max-width:1160px!important;
    margin:0 auto 28px!important;
}

.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title,
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title h2 {
    margin:0!important;
    padding:0!important;
    font-size:31px!important;
    line-height:1.18!important;
    font-weight:400!important;
}

.dclinic-imported-home .dclinic-team-intro,
.dclinic-imported-home .dclinic-team-intro p {
    margin:13px 0 0!important;
    padding:0!important;
    font-size:15px!important;
    line-height:1.42!important;
    font-weight:300!important;
}

/* Pull Albert's row upward and reduce the unused white area. */
.dclinic-imported-home .dclinic-founder-row {
    width:67%!important;
    max-width:930px!important;
    margin:0 auto!important;
    gap:28px!important;
    align-items:flex-start!important;
}

.dclinic-imported-home .dclinic-founder-row > .et_pb_column {
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
}

.dclinic-imported-home .dclinic-founder-image,
.dclinic-imported-home .dclinic-founder-bio {
    margin-top:0!important;
    margin-bottom:0!important;
}

.dclinic-imported-home .dclinic-founder-bio {
    padding-top:2px!important;
}

.dclinic-imported-home .dclinic-founder-bio h3 {
    margin:0 0 15px!important;
    font-weight:400!important;
}

.dclinic-imported-home .dclinic-founder-bio p {
    margin:0 0 11px!important;
}

.dclinic-imported-home .dclinic-founder-bio ul {
    margin:9px 0 6px 22px!important;
    padding:0!important;
}

.dclinic-imported-home .dclinic-founder-bio h4 {
    margin:7px 0 10px!important;
}

/* The genuine MDR source image is complete: never crop it. */
.dclinic-imported-home .dclinic-mdr-logo {
    display:block!important;
    width:220px!important;
    max-width:100%!important;
    height:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    clip:auto!important;
    clip-path:none!important;
}

/* Keep the following team grid close to the founder block. */
.dclinic-imported-home .dclinic-team-grid {
    padding-top:20px!important;
}

@media(max-width:980px){
    .dclinic-imported-home .dclinic-team-title-row {
        margin-bottom:24px!important;
    }
    .dclinic-imported-home .dclinic-founder-row {
        width:86%!important;
    }
}

@media(max-width:767px){
    .dclinic-imported-home .dclinic-team-intro-section {
        padding:30px 0 18px!important;
    }
    .dclinic-imported-home .dclinic-team-title-row {
        margin-bottom:22px!important;
    }
}


/* ==========================================================
   v1.15 — Implants page copied closer to old Phoenix layout
   ========================================================== */

/* Remove Divi's default footer on migrated specialty pages; page content includes D'Clínic footer. */
.dclinic-imported-specialty #main-footer,
.dclinic-imported-specialty footer#main-footer,
.dclinic-imported-specialty #footer-bottom {
    display:none!important;
}

/* Header */
.dclinic-imported-specialty .dclinic-implants-head,
.dclinic-imported-specialty .dclinic-implants-head .et_pb_row {
    padding-top:0!important;
    padding-bottom:0!important;
}
.dclinic-imported-specialty .dclinic-implants-head-row {
    width:90%!important;
    max-width:1000px!important;
}
.dclinic-imported-specialty .dclinic-implants-title,
.dclinic-imported-specialty .dclinic-implants-title h1 {
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    color:#3f7b24!important;
    font-size:39px!important;
    line-height:1.18!important;
    font-weight:500!important;
    letter-spacing:.6px!important;
}
.dclinic-imported-specialty .dclinic-implants-head-line {
    display:block!important;
    width:62px!important;
    height:1px!important;
    background:#aaa!important;
    margin:16px auto 14px!important;
}
.dclinic-imported-specialty .dclinic-implants-subtitle,
.dclinic-imported-specialty .dclinic-implants-subtitle h2 {
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    color:#aaa!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:300!important;
}

/* First green block */
.dclinic-imported-specialty .dclinic-implants-intro-row {
    width:62%!important;
    max-width:1120px!important;
    gap:28px!important;
    align-items:center!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-hero-image img {
    display:block!important;
    width:100%!important;
    height:auto!important;
    box-shadow:none!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-title,
.dclinic-imported-specialty .dclinic-implants-intro-title h2 {
    color:#fff!important;
    text-align:left!important;
    font-size:29px!important;
    line-height:1.08!important;
    font-weight:500!important;
    margin:0 0 18px!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-copy,
.dclinic-imported-specialty .dclinic-implants-intro-copy p,
.dclinic-imported-specialty .dclinic-implants-intro-copy li {
    color:#fff!important;
    font-size:16px!important;
    line-height:1.35!important;
    font-weight:400!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-copy p {
    margin-bottom:16px!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-copy ul {
    margin:0!important;
    padding-left:0!important;
    list-style:none!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-copy li:before {
    content:"• ";
}

/* Treatments grid */
.dclinic-imported-specialty .dclinic-implants-types-title,
.dclinic-imported-specialty .dclinic-implants-types-title h2,
.dclinic-imported-specialty .dclinic-implants-gallery-title,
.dclinic-imported-specialty .dclinic-implants-gallery-title h2 {
    color:#3f7b24!important;
    text-align:center!important;
    font-size:29px!important;
    line-height:1.2!important;
    font-weight:500!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-implants-dotted-line {
    display:block!important;
    width:63%!important;
    max-width:980px!important;
    border-top:2px dotted #e5e5e5!important;
    margin:16px auto 0!important;
}
.dclinic-imported-specialty .dclinic-implants-types-row {
    width:62%!important;
    max-width:1000px!important;
    gap:26px!important;
    margin-bottom:36px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implant-card-image {
    margin:0 0 15px!important;
}
.dclinic-imported-specialty .dclinic-implant-card-image img {
    display:block!important;
    width:100%!important;
    height:282px!important;
    object-fit:cover!important;
}
.dclinic-imported-specialty .dclinic-implant-card-copy h3 {
    color:#5d8725!important;
    font-size:18px!important;
    font-weight:400!important;
    line-height:1.2!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-implant-card-copy p {
    color:#555!important;
    font-size:14px!important;
    line-height:1.45!important;
    font-weight:300!important;
    margin:0!important;
}

/* Brands */
.dclinic-imported-specialty .dclinic-implants-brands-row {
    width:60%!important;
    max-width:980px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-copy,
.dclinic-imported-specialty .dclinic-implants-brands-copy p {
    color:#555!important;
    font-size:15px!important;
    text-align:left!important;
    margin:0 0 24px!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-image img {
    display:block!important;
    width:560px!important;
    max-width:100%!important;
    height:auto!important;
    margin:0 auto!important;
}

/* Bamboo statement */
.dclinic-imported-specialty .dclinic-implants-statement {
    background-image:url("../implants/bamboo-old-page.jpg")!important;
    background-size:cover!important;
    background-position:center!important;
    min-height:365px!important;
    display:flex!important;
    align-items:center!important;
}
.dclinic-imported-specialty .dclinic-implants-statement-row {
    width:64%!important;
    max-width:1110px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-statement-inner {
    color:#fff!important;
    text-align:center!important;
    font-size:29px!important;
    line-height:1.24!important;
    font-weight:300!important;
    text-shadow:0 1px 2px rgba(0,0,0,.25)!important;
}

/* Clinic gallery */
.dclinic-imported-specialty .dclinic-implants-gallery {
    background:#f3f3f3!important;
}
.dclinic-imported-specialty .dclinic-implants-gallery-title {
    margin-bottom:46px!important;
}
.dclinic-imported-specialty .dclinic-implants-gallery-row {
    width:62%!important;
    max-width:1080px!important;
    gap:40px!important;
    margin-bottom:56px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-gallery-image img {
    width:100%!important;
    height:240px!important;
    object-fit:cover!important;
    display:block!important;
}

/* Appointment form */
.dclinic-imported-specialty .dclinic-implants-appointment-row {
    width:60%!important;
    max-width:1080px!important;
    gap:18px!important;
    align-items:stretch!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-cta-copy h2 {
    color:#4d7f22!important;
    font-size:39px!important;
    font-weight:300!important;
    margin:0 0 15px!important;
}
.dclinic-imported-specialty .dclinic-implants-cta-copy h3 {
    color:#4d7f22!important;
    font-size:18px!important;
    font-weight:300!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-implants-cta-copy p,
.dclinic-imported-specialty .dclinic-implants-cta-copy a {
    color:#4d7f22!important;
    font-size:18px!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_field input,
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_field textarea {
    background:#eaf5dc!important;
    border:0!important;
    border-radius:0!important;
    color:#555!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_field textarea {
    min-height:190px!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_submit {
    background:#3f4a4d!important;
    border:0!important;
    border-radius:0!important;
    color:#fff!important;
    font-size:12px!important;
    padding:9px 14px!important;
}
.dclinic-imported-specialty .dclinic-implants-required,
.dclinic-imported-specialty .dclinic-implants-privacy {
    color:#555!important;
    font-size:13px!important;
    margin:7px 0!important;
}
.dclinic-imported-specialty .dclinic-implants-legal-small {
    color:#555!important;
    font-size:10px!important;
    line-height:1.2!important;
    margin-top:18px!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment-image,
.dclinic-imported-specialty .dclinic-implants-appointment-image .et_pb_image_wrap,
.dclinic-imported-specialty .dclinic-implants-appointment-image img {
    height:100%!important;
    min-height:780px!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment-image img {
    width:100%!important;
    object-fit:cover!important;
    object-position:center top!important;
    display:block!important;
}

/* Original footer */
.dclinic-imported-specialty .dclinic-legacy-legal,
.dclinic-imported-specialty .dclinic-legacy-legal .et_pb_row {
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-legacy-legal-row {
    width:60%!important;
    max-width:1080px!important;
}
.dclinic-imported-specialty .dclinic-legacy-legal-text {
    position:relative!important;
}
.dclinic-imported-specialty .dclinic-legacy-legal-links,
.dclinic-imported-specialty .dclinic-legacy-legal-links a {
    color:#111!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:13px!important;
    line-height:48px!important;
    text-decoration:none!important;
}
.dclinic-imported-specialty .dclinic-legacy-social {
    position:absolute!important;
    right:0!important;
    top:0!important;
    line-height:48px!important;
    color:#263238!important;
    font-size:17px!important;
}
.dclinic-imported-specialty .dclinic-legacy-footer-row {
    width:60%!important;
    max-width:1080px!important;
    align-items:center!important;
}
.dclinic-imported-specialty .dclinic-legacy-footer-logo img {
    width:250px!important;
    max-width:100%!important;
    height:auto!important;
}
.dclinic-imported-specialty .dclinic-legacy-contact,
.dclinic-imported-specialty .dclinic-legacy-contact p {
    color:#fff!important;
    text-align:right!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:14px!important;
    line-height:1.45!important;
    margin:5px 0!important;
}

@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-implants-intro-row,
    .dclinic-imported-specialty .dclinic-implants-types-row,
    .dclinic-imported-specialty .dclinic-implants-gallery-row,
    .dclinic-imported-specialty .dclinic-implants-appointment-row,
    .dclinic-imported-specialty .dclinic-legacy-legal-row,
    .dclinic-imported-specialty .dclinic-legacy-footer-row {
        width:88%!important;
    }
    .dclinic-imported-specialty .dclinic-implants-gallery-image img,
    .dclinic-imported-specialty .dclinic-implant-card-image img {
        height:auto!important;
    }
    .dclinic-imported-specialty .dclinic-implants-appointment-image img {
        min-height:520px!important;
    }
}


/* ==========================================================
   v1.16 — Implants refinement + form + Sticky Buttons fix
   ========================================================== */

/* Sticky Buttons 4.x uses Font Awesome. Do not let the site-wide
   Raleway rule replace its icon font. */
[class*="wow"] [class*="fa-"],
[class*="sticky"] [class*="fa-"],
[class*="sticky"] .fa,
[class*="sticky"] .fas,
[class*="sticky"] .far,
[class*="sticky"] .fab,
[id*="sticky"] [class*="fa-"],
[id*="wow"] [class*="fa-"] {
    font-family:"Font Awesome 7 Free","Font Awesome 6 Free","Font Awesome 5 Free","FontAwesome"!important;
}
[class*="sticky"] .fas,
[class*="sticky"] .fa-solid,
[id*="sticky"] .fas,
[id*="sticky"] .fa-solid {
    font-weight:900!important;
}
[class*="sticky"] .far,
[class*="sticky"] .fa-regular {
    font-weight:400!important;
}
[class*="sticky"] .fab,
[class*="sticky"] .fa-brands {
    font-family:"Font Awesome 7 Brands","Font Awesome 6 Brands","Font Awesome 5 Brands","FontAwesome"!important;
    font-weight:400!important;
}

/* Keep font inheritance neutral inside plugin wrappers as an extra
   safeguard against the global Raleway typography. */
[class*="wow-sticky"],
[class*="sticky-buttons"],
[id*="wow-sticky"],
[id*="sticky-buttons"] {
    font-family:initial;
}

/* Header: old Phoenix page has more air between menu and green intro. */
.dclinic-imported-specialty .dclinic-implants-head {
    padding:62px 0 54px!important;
}
.dclinic-imported-specialty .dclinic-implants-head-row {
    width:88%!important;
    max-width:1020px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-title,
.dclinic-imported-specialty .dclinic-implants-title h1 {
    font-size:38px!important;
    line-height:1.12!important;
    font-weight:500!important;
}
.dclinic-imported-specialty .dclinic-implants-subtitle,
.dclinic-imported-specialty .dclinic-implants-subtitle h2 {
    font-size:20px!important;
    line-height:1.2!important;
}

/* Green intro */
.dclinic-imported-specialty .dclinic-implants-intro {
    padding:86px 0 88px!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-row {
    width:61%!important;
    max-width:1090px!important;
    gap:30px!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-row > .et_pb_column {
    flex:0 0 calc(50% - 15px)!important;
    width:calc(50% - 15px)!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-title,
.dclinic-imported-specialty .dclinic-implants-intro-title h2 {
    font-size:29px!important;
    line-height:1.08!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-copy,
.dclinic-imported-specialty .dclinic-implants-intro-copy p,
.dclinic-imported-specialty .dclinic-implants-intro-copy li {
    font-size:16px!important;
    line-height:1.34!important;
}

/* Types section */
.dclinic-imported-specialty .dclinic-implants-types-head {
    padding:50px 0 28px!important;
}
.dclinic-imported-specialty .dclinic-implants-types-title,
.dclinic-imported-specialty .dclinic-implants-types-title h2 {
    font-size:29px!important;
    line-height:1.18!important;
}
.dclinic-imported-specialty .dclinic-implants-types-row {
    width:61%!important;
    max-width:1000px!important;
    gap:28px!important;
    margin:0 auto 42px!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-implants-types-row > .et_pb_column {
    flex:0 0 calc(50% - 14px)!important;
    width:calc(50% - 14px)!important;
    max-width:calc(50% - 14px)!important;
    min-width:0!important;
    overflow:hidden!important;
}
.dclinic-imported-specialty .dclinic-implant-card-image,
.dclinic-imported-specialty .dclinic-implant-card-image .et_pb_image_wrap {
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
}
.dclinic-imported-specialty .dclinic-implant-card-image img {
    width:100%!important;
    max-width:100%!important;
    height:286px!important;
    object-fit:cover!important;
    object-position:center!important;
}
.dclinic-imported-specialty .dclinic-implant-card-copy h3 {
    font-size:18px!important;
    line-height:1.2!important;
    margin:0 0 12px!important;
}
.dclinic-imported-specialty .dclinic-implant-card-copy p {
    font-size:14px!important;
    line-height:1.42!important;
}

/* Brand strip: old page has a taller pale-green area. */
.dclinic-imported-specialty .dclinic-implants-brands {
    padding:58px 0 72px!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-row {
    width:61%!important;
    max-width:1000px!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-copy,
.dclinic-imported-specialty .dclinic-implants-brands-copy p {
    font-size:15px!important;
    margin:0 0 28px!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-image img {
    width:565px!important;
}

/* If Divi duplicates the statement module during migration/rendering,
   only the first one should be visible. */
.dclinic-imported-specialty .dclinic-implants-statement-row .dclinic-implants-statement-copy ~ .dclinic-implants-statement-copy {
    display:none!important;
}
.dclinic-imported-specialty .dclinic-implants-statement {
    min-height:360px!important;
}
.dclinic-imported-specialty .dclinic-implants-statement-row {
    width:61%!important;
    max-width:1080px!important;
}
.dclinic-imported-specialty .dclinic-implants-statement-inner {
    font-size:29px!important;
    line-height:1.22!important;
}

/* Gallery closer to Phoenix spacing. */
.dclinic-imported-specialty .dclinic-implants-gallery {
    padding:54px 0 44px!important;
}
.dclinic-imported-specialty .dclinic-implants-gallery-title {
    margin-bottom:52px!important;
}
.dclinic-imported-specialty .dclinic-implants-gallery-row {
    width:61%!important;
    max-width:1080px!important;
    gap:42px!important;
    margin-bottom:58px!important;
}

/* ----------------------------------------------------------
   Appointment block — rebuild to old-page layout
   ---------------------------------------------------------- */
.dclinic-imported-specialty .dclinic-implants-appointment {
    padding:45px 0 0!important;
    background:#fff!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment-row {
    width:61%!important;
    max-width:1080px!important;
    gap:18px!important;
    align-items:stretch!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment-row > .et_pb_column {
    flex:0 0 calc(50% - 9px)!important;
    width:calc(50% - 9px)!important;
    max-width:calc(50% - 9px)!important;
    min-width:0!important;
}
.dclinic-imported-specialty .dclinic-implants-cta-copy {
    margin-bottom:32px!important;
}
.dclinic-imported-specialty .dclinic-implants-cta-copy h2 {
    font-size:39px!important;
    line-height:1.08!important;
    font-weight:300!important;
    margin:0 0 15px!important;
}
.dclinic-imported-specialty .dclinic-implants-cta-copy h3 {
    font-size:18px!important;
    line-height:1.25!important;
    font-weight:300!important;
    margin:0 0 2px!important;
}
.dclinic-imported-specialty .dclinic-implants-cta-copy p,
.dclinic-imported-specialty .dclinic-implants-cta-copy a {
    font-size:17px!important;
    line-height:1.3!important;
}

.dclinic-imported-specialty .dclinic-implants-custom-form,
.dclinic-imported-specialty .dclinic-implants-custom-form .et_pb_text_inner {
    margin:0!important;
    padding:0!important;
}
.dclinic-legacy-contact-form {
    margin:0!important;
    padding:0!important;
}
.dclinic-legacy-contact-form .dclinic-form-field {
    margin:0 0 15px!important;
}
.dclinic-legacy-contact-form label {
    display:block!important;
    color:#555!important;
    font-size:13px!important;
    line-height:1.2!important;
    font-weight:300!important;
    margin:0 0 6px!important;
}
.dclinic-legacy-contact-form input[type="text"],
.dclinic-legacy-contact-form input[type="email"],
.dclinic-legacy-contact-form textarea {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    border:0!important;
    border-radius:0!important;
    background:#e7f2d7!important;
    color:#444!important;
    box-shadow:none!important;
    outline:none!important;
}
.dclinic-legacy-contact-form input[type="text"],
.dclinic-legacy-contact-form input[type="email"] {
    height:39px!important;
    padding:7px 10px!important;
}
.dclinic-legacy-contact-form textarea {
    min-height:190px!important;
    resize:vertical!important;
    padding:10px!important;
}
.dclinic-legacy-contact-form .dclinic-implants-required {
    margin:3px 0 18px!important;
    font-size:13px!important;
    color:#555!important;
}
.dclinic-legacy-contact-form .dclinic-privacy-check {
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    margin:0 0 20px!important;
    font-size:13px!important;
    color:#555!important;
}
.dclinic-legacy-contact-form .dclinic-privacy-check input {
    width:14px!important;
    height:14px!important;
    margin:0!important;
}
.dclinic-legacy-contact-form .dclinic-implants-legal-small {
    max-width:100%!important;
    margin:0 0 28px!important;
    font-size:9.5px!important;
    line-height:1.16!important;
    color:#444!important;
}
.dclinic-legacy-submit {
    display:inline-block!important;
    appearance:none!important;
    border:0!important;
    border-radius:0!important;
    background:#435156!important;
    color:#fff!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:600!important;
    padding:10px 16px!important;
    cursor:pointer!important;
}
.dclinic-form-notice {
    margin:0 0 16px!important;
    padding:10px 12px!important;
    font-size:13px!important;
}
.dclinic-form-ok {
    background:#edf7e4!important;
    color:#3f7b24!important;
}
.dclinic-form-error {
    background:#f8e8e8!important;
    color:#8b2f2f!important;
}

/* Absolutely no Divi math captcha in this rebuilt form. */
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_right,
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_captcha,
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_captcha_question {
    display:none!important;
}

/* Correct old portrait: no green/grey placeholder, no cropping. */
.dclinic-imported-specialty .dclinic-implants-appointment-image,
.dclinic-imported-specialty .dclinic-implants-appointment-image .et_pb_image_wrap {
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment-image img {
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center top!important;
    margin:0!important;
}

/* Footer proportions */
.dclinic-imported-specialty .dclinic-legacy-legal-row,
.dclinic-imported-specialty .dclinic-legacy-footer-row {
    width:61%!important;
    max-width:1080px!important;
}
.dclinic-imported-specialty .dclinic-legacy-legal-links,
.dclinic-imported-specialty .dclinic-legacy-legal-links a {
    font-size:12px!important;
    line-height:48px!important;
}
.dclinic-imported-specialty .dclinic-legacy-footer {
    padding:44px 0 50px!important;
}

@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-implants-intro-row > .et_pb_column,
    .dclinic-imported-specialty .dclinic-implants-types-row > .et_pb_column,
    .dclinic-imported-specialty .dclinic-implants-appointment-row > .et_pb_column {
        flex:0 0 100%!important;
        width:100%!important;
        max-width:100%!important;
    }
    .dclinic-imported-specialty .dclinic-implants-types-row {
        flex-wrap:wrap!important;
    }
    .dclinic-imported-specialty .dclinic-implants-appointment-image {
        margin-top:28px!important;
    }
}


/* ==========================================================
   v1.17 — Implants layout repair + centered brands
   ========================================================== */

/* Divi adds desktop column gutters/margins. Combined with our explicit
   50% flex widths this caused the visible image slivers and overlapping
   content. Reset those margins inside the rebuilt Implants rows. */
.dclinic-imported-specialty .dclinic-implants-types-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-implants-intro-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-implants-appointment-row > .et_pb_column {
    margin-left:0!important;
    margin-right:0!important;
    float:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
}

/* Two-column treatment grid: exact 50/50 layout with a real CSS gap. */
.dclinic-imported-specialty .dclinic-implants-types-row {
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:28px!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-implants-types-row > .et_pb_column {
    flex:1 1 0!important;
    width:0!important;
    max-width:none!important;
    overflow:hidden!important;
}
.dclinic-imported-specialty .dclinic-implant-card-image,
.dclinic-imported-specialty .dclinic-implant-card-image .et_pb_image_wrap {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-implant-card-image img {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:286px!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin:0!important;
    transform:none!important;
}

/* Intro and appointment rows use the same margin-free flex layout. */
.dclinic-imported-specialty .dclinic-implants-intro-row,
.dclinic-imported-specialty .dclinic-implants-appointment-row {
    display:flex!important;
    flex-wrap:nowrap!important;
}
.dclinic-imported-specialty .dclinic-implants-intro-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-implants-appointment-row > .et_pb_column {
    flex:1 1 0!important;
    width:0!important;
    max-width:none!important;
}

/* Appointment portrait must remain inside its own column only. */
.dclinic-imported-specialty .dclinic-implants-appointment-image,
.dclinic-imported-specialty .dclinic-implants-appointment-image .et_pb_image_wrap {
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
}
.dclinic-imported-specialty .dclinic-implants-appointment-image img {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    object-fit:contain!important;
    object-position:center top!important;
    transform:none!important;
}

/* Center the brand copy and both logos as a single visual group. */
.dclinic-imported-specialty .dclinic-implants-brands-row {
    text-align:center!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-copy,
.dclinic-imported-specialty .dclinic-implants-brands-copy p {
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-image,
.dclinic-imported-specialty .dclinic-implants-brands-image .et_pb_image_wrap {
    display:block!important;
    width:100%!important;
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-image img {
    display:block!important;
    margin-left:auto!important;
    margin-right:auto!important;
}

/* Bamboo promo block intentionally removed from the new visual direction.
   Keep this as a safeguard if stale regenerated content is ever present. */
.dclinic-imported-specialty .dclinic-implants-statement {
    display:none!important;
}

/* Prevent any accidental overflow from Divi image internals. */
.dclinic-imported-specialty .dclinic-implants-types-row img,
.dclinic-imported-specialty .dclinic-implants-appointment-row img {
    box-sizing:border-box!important;
}

/* Responsive */
@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-implants-types-row,
    .dclinic-imported-specialty .dclinic-implants-intro-row,
    .dclinic-imported-specialty .dclinic-implants-appointment-row {
        flex-wrap:wrap!important;
    }
    .dclinic-imported-specialty .dclinic-implants-types-row > .et_pb_column,
    .dclinic-imported-specialty .dclinic-implants-intro-row > .et_pb_column,
    .dclinic-imported-specialty .dclinic-implants-appointment-row > .et_pb_column {
        flex:0 0 100%!important;
        width:100%!important;
        max-width:100%!important;
    }
}


/* ==========================================================
   v1.18 — structural fix for image ghost strips
   ========================================================== */

/* Implant cards now use one Divi module + native CSS Grid.
   This avoids Divi 5 rebuilding nested columns and creating image fragments. */
.dclinic-imported-specialty .dclinic-implants-native-grid-row {
    width:61%!important;
    max-width:1000px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-native-grid-row > .et_pb_column {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-native-grid-module,
.dclinic-imported-specialty .dclinic-implants-native-grid-module .et_pb_text_inner {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
}
.dclinic-implants-native-grid {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    column-gap:28px!important;
    row-gap:42px!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.dclinic-implants-native-card {
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
.dclinic-implants-native-card-image {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:286px!important;
    margin:0 0 15px!important;
    padding:0!important;
    border:0!important;
    object-fit:cover!important;
    object-position:center!important;
    transform:none!important;
    box-sizing:border-box!important;
}
.dclinic-implants-native-card-copy {
    width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-implants-native-card-copy h3 {
    color:#5d8725!important;
    font-size:18px!important;
    line-height:1.2!important;
    font-weight:400!important;
    margin:0 0 12px!important;
    padding:0!important;
}
.dclinic-implants-native-card-copy p {
    color:#555!important;
    font-size:14px!important;
    line-height:1.42!important;
    font-weight:300!important;
    margin:0!important;
    padding:0!important;
}

/* Contact also uses one Divi module + native CSS Grid. */
.dclinic-imported-specialty .dclinic-implants-native-contact-row {
    width:61%!important;
    max-width:1080px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-native-contact-row > .et_pb_column {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-native-contact-module,
.dclinic-imported-specialty .dclinic-implants-native-contact-module .et_pb_text_inner {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
}
.dclinic-implants-native-contact {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:18px!important;
    align-items:start!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.dclinic-implants-native-contact-left,
.dclinic-implants-native-contact-right {
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}
.dclinic-implants-native-contact-right img {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    object-fit:contain!important;
    object-position:center top!important;
    transform:none!important;
    box-sizing:border-box!important;
}
.dclinic-implants-native-contact-left .dclinic-implants-cta-copy {
    margin:0 0 32px!important;
}
.dclinic-implants-native-contact-left .dclinic-legacy-contact-form {
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}

/* Center the complete brands block. */
.dclinic-imported-specialty .dclinic-implants-brands-row,
.dclinic-imported-specialty .dclinic-implants-brands-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-implants-brands-row .et_pb_module {
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-copy,
.dclinic-imported-specialty .dclinic-implants-brands-copy p {
    width:100%!important;
    text-align:center!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-image,
.dclinic-imported-specialty .dclinic-implants-brands-image .et_pb_image_wrap,
.dclinic-imported-specialty .dclinic-implants-brands-image img {
    margin-left:auto!important;
    margin-right:auto!important;
}

/* Bamboo remains removed. */
.dclinic-imported-specialty .dclinic-implants-statement {
    display:none!important;
}

@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-implants-native-grid-row,
    .dclinic-imported-specialty .dclinic-implants-native-contact-row {
        width:88%!important;
    }
    .dclinic-implants-native-grid,
    .dclinic-implants-native-contact {
        grid-template-columns:1fr!important;
    }
    .dclinic-implants-native-card-image {
        height:auto!important;
    }
    .dclinic-implants-native-contact-right {
        margin-top:24px!important;
    }
}


/* ==========================================================
   v1.19 — definitive runtime rendering for problem image areas
   ========================================================== */

/* The two problematic areas are now emitted at runtime by WordPress shortcodes.
   Divi stores only the shortcode token, not the image HTML itself. This avoids
   Divi 5's responsive/block reconstruction creating narrow duplicated fragments. */

.dclinic-imported-specialty .dclinic-implants-runtime-types-row,
.dclinic-imported-specialty .dclinic-implants-runtime-contact-row {
    width:61%!important;
    max-width:1080px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-runtime-types-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-implants-runtime-contact-row > .et_pb_column {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    flex:0 0 100%!important;
}
.dclinic-imported-specialty .dclinic-implants-runtime-types-module,
.dclinic-imported-specialty .dclinic-implants-runtime-contact-module,
.dclinic-imported-specialty .dclinic-implants-runtime-types-module .et_pb_text_inner,
.dclinic-imported-specialty .dclinic-implants-runtime-contact-module .et_pb_text_inner {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
}

/* Treatment cards */
.dclinic-runtime-types {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:42px 28px!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-type-card {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-type-image {
    display:block!important;
    position:static!important;
    float:none!important;
    width:100%!important;
    max-width:100%!important;
    height:286px!important;
    min-height:0!important;
    margin:0 0 15px!important;
    padding:0!important;
    border:0!important;
    transform:none!important;
    object-fit:cover!important;
    object-position:center center!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-type-copy {
    display:block!important;
    position:static!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-runtime-type-copy h3 {
    color:#5d8725!important;
    font-size:18px!important;
    line-height:1.2!important;
    font-weight:400!important;
    margin:0 0 12px!important;
}
.dclinic-runtime-type-copy p {
    color:#555!important;
    font-size:14px!important;
    line-height:1.42!important;
    font-weight:300!important;
    margin:0!important;
}

/* Contact */
.dclinic-runtime-contact {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!important;
    width:100%!important;
    max-width:100%!important;
    align-items:start!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-contact-left,
.dclinic-runtime-contact-right {
    display:block!important;
    position:static!important;
    float:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-contact-right img {
    display:block!important;
    position:static!important;
    float:none!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    transform:none!important;
    object-fit:contain!important;
    object-position:center top!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-contact-left .dclinic-implants-cta-copy {
    margin:0 0 32px!important;
}

/* Completely suppress obsolete layouts from previous generated versions. */
.dclinic-imported-specialty .dclinic-implants-native-grid-row,
.dclinic-imported-specialty .dclinic-implants-native-contact-row,
.dclinic-imported-specialty .dclinic-implants-types-row,
.dclinic-imported-specialty .dclinic-implants-appointment-row {
    display:none!important;
}

@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-implants-runtime-types-row,
    .dclinic-imported-specialty .dclinic-implants-runtime-contact-row {
        width:88%!important;
    }
    .dclinic-runtime-types,
    .dclinic-runtime-contact {
        grid-template-columns:1fr!important;
    }
    .dclinic-runtime-type-image {
        height:auto!important;
    }
    .dclinic-runtime-contact-right {
        margin-top:24px!important;
    }
}


/* ==========================================================
   v1.21 — Implants: one shared alignment system
   ========================================================== */

/* Every main block on Implants uses the same horizontal axis.
   This matches the clean alignment of the old site: title, dotted line,
   cards, brands, gallery and appointment all share one centered container. */
.dclinic-imported-specialty {
    --dclinic-implants-content-width: 1080px;
    --dclinic-implants-content-fluid: 61%;
    --dclinic-implants-col-gap: 30px;
}

.dclinic-imported-specialty .dclinic-implants-types-title-row,
.dclinic-imported-specialty .dclinic-implants-runtime-types-row,
.dclinic-imported-specialty .dclinic-implants-brands-row,
.dclinic-imported-specialty .dclinic-implants-gallery-row,
.dclinic-imported-specialty .dclinic-implants-runtime-contact-row {
    width:var(--dclinic-implants-content-fluid)!important;
    max-width:var(--dclinic-implants-content-width)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
    box-sizing:border-box!important;
}

/* Heading and dotted separator use exactly the same width as the cards. */
.dclinic-imported-specialty .dclinic-implants-types-title-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-implants-types-title-row .et_pb_module,
.dclinic-imported-specialty .dclinic-implants-types-title-row .et_pb_text_inner {
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-imported-specialty .dclinic-implants-dotted-line {
    width:100%!important;
    max-width:none!important;
    margin:26px auto 0!important;
}

/* Force an exact equal two-column grid.
   Do not let intrinsic image dimensions influence column width. */
.dclinic-runtime-types {
    display:grid!important;
    grid-template-columns:minmax(0, calc((100% - var(--dclinic-implants-col-gap)) / 2))
                          minmax(0, calc((100% - var(--dclinic-implants-col-gap)) / 2))!important;
    column-gap:var(--dclinic-implants-col-gap)!important;
    row-gap:48px!important;
    justify-content:center!important;
    align-items:start!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    padding:0!important;
    box-sizing:border-box!important;
}

.dclinic-runtime-type-card {
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:visible!important;
}

/* All four image boxes have exactly the same dimensions/aspect ratio.
   The source image can differ, but the visual grid remains aligned. */
.dclinic-runtime-type-image {
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    aspect-ratio: 1.72 / 1!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin:0 0 16px!important;
    padding:0!important;
    border:0!important;
    box-sizing:border-box!important;
}

.dclinic-runtime-type-copy {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-type-copy h3,
.dclinic-runtime-type-copy p {
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}

/* Make the title / copy line up with the image edge, not a nested Divi inset. */
.dclinic-imported-specialty .dclinic-implants-runtime-types-module,
.dclinic-imported-specialty .dclinic-implants-runtime-types-module .et_pb_text_inner {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
}

/* Brands follow the same center axis as the card grid. */
.dclinic-imported-specialty .dclinic-implants-brands-row {
    text-align:center!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-copy,
.dclinic-imported-specialty .dclinic-implants-brands-copy p,
.dclinic-imported-specialty .dclinic-implants-brands-image,
.dclinic-imported-specialty .dclinic-implants-brands-image .et_pb_image_wrap {
    width:100%!important;
    max-width:100%!important;
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-imported-specialty .dclinic-implants-brands-image img {
    display:block!important;
    width:auto!important;
    max-width:min(565px, 100%)!important;
    height:auto!important;
    margin-left:auto!important;
    margin-right:auto!important;
}

/* Appointment: exact same outer width and equal columns. */
.dclinic-runtime-contact {
    display:grid!important;
    grid-template-columns:minmax(0, calc((100% - var(--dclinic-implants-col-gap)) / 2))
                          minmax(0, calc((100% - var(--dclinic-implants-col-gap)) / 2))!important;
    column-gap:var(--dclinic-implants-col-gap)!important;
    justify-content:center!important;
    align-items:start!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    padding:0!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-contact-left,
.dclinic-runtime-contact-right {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-contact-right img {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
}

/* Gallery also follows the same outer width but retains its 4-column content. */
.dclinic-imported-specialty .dclinic-implants-gallery-row {
    gap:30px!important;
}

/* Desktop tuning: closer to the original page proportions. */
@media (min-width:981px) {
    .dclinic-imported-specialty .dclinic-implants-types-grid {
        padding-bottom:48px!important;
    }
    .dclinic-imported-specialty .dclinic-implants-types-head {
        padding-bottom:34px!important;
    }
}

/* Tablet/mobile: one consistent container and one card per row. */
@media(max-width:980px){
    .dclinic-imported-specialty {
        --dclinic-implants-content-fluid:88%;
        --dclinic-implants-col-gap:22px;
    }

    .dclinic-runtime-types,
    .dclinic-runtime-contact {
        grid-template-columns:minmax(0,1fr)!important;
    }

    .dclinic-runtime-type-image {
        aspect-ratio:auto!important;
        height:auto!important;
    }
}


/* ==========================================================
   v1.22 — exact image/text left-edge alignment
   ========================================================== */

/* The media box is the real visual rectangle. It occupies the exact same
   width as the text block below it, regardless of the source image's own
   intrinsic dimensions or WordPress/Divi image rules. */
.dclinic-runtime-type-media {
    display:block!important;
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    min-width:100%!important;
    aspect-ratio:1.72 / 1!important;
    margin:0 0 16px!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#f7f7f7!important;
}

/* Image is pinned to all four edges of the media box.
   This removes any chance of it being centered at its intrinsic width. */
.dclinic-runtime-type-media .dclinic-runtime-type-image {
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    min-width:100%!important;
    max-width:none!important;
    height:100%!important;
    min-height:100%!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:cover!important;
    object-position:center center!important;
    transform:none!important;
    box-sizing:border-box!important;
}

/* Text starts on the exact same x-coordinate as the media box. */
.dclinic-runtime-type-copy {
    display:block!important;
    position:relative!important;
    left:0!important;
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
}
.dclinic-runtime-type-copy h3,
.dclinic-runtime-type-copy p {
    margin-left:0!important;
    padding-left:0!important;
    text-indent:0!important;
}

/* Neutralize any generic image sizing rule from older plugin revisions. */
.dclinic-runtime-type-card > .dclinic-runtime-type-image {
    display:none!important;
}

@media(max-width:980px){
    .dclinic-runtime-type-media {
        aspect-ratio:auto!important;
        min-height:0!important;
    }
    .dclinic-runtime-type-media .dclinic-runtime-type-image {
        position:relative!important;
        inset:auto!important;
        height:auto!important;
        min-height:0!important;
    }
}


/* ==========================================================
   v1.23 — correct 4 implant illustrations + no cropping
   ========================================================== */

/* The original page uses four different illustrations. All four are now
   distinct fallback files and must be shown in full, never cropped. */
.dclinic-runtime-type-media {
    display:block!important;
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    aspect-ratio:auto!important;
    margin:0 0 16px!important;
    padding:0!important;
    overflow:visible!important;
    background:transparent!important;
    box-sizing:border-box!important;
}

.dclinic-runtime-type-media .dclinic-runtime-type-image {
    position:static!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:left top!important;
    transform:none!important;
    box-sizing:border-box!important;
}

/* Image, title and body share precisely the same horizontal box. */
.dclinic-runtime-type-card,
.dclinic-runtime-type-media,
.dclinic-runtime-type-copy,
.dclinic-runtime-type-copy h3,
.dclinic-runtime-type-copy p {
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    padding-left:0!important;
    box-sizing:border-box!important;
}

/* Remove the forced crop ratio inherited from previous revisions. */
.dclinic-runtime-type-image {
    aspect-ratio:auto!important;
    object-fit:contain!important;
}

/* Same equal-width columns as the old page. */
.dclinic-runtime-types {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:28px!important;
    row-gap:48px!important;
    align-items:start!important;
}

@media(max-width:980px){
    .dclinic-runtime-types {
        grid-template-columns:1fr!important;
    }
}


/* ==========================================================
   v1.26 — Implants clinic gallery -> Phoenix-style slider
   ========================================================== */
.dclinic-imported-specialty .dclinic-implants-clinic-slider-section {
    background:#eeeeee!important;
    padding:58px 0!important;
}
.dclinic-imported-specialty .dclinic-implants-clinic-slider-row {
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-implants-clinic-slider-module,
.dclinic-imported-specialty .dclinic-implants-clinic-slider-module .et_pb_text_inner {
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-clinic-slider {
    width:min(1100px, 82vw);
    margin:0 auto;
    position:relative;
}
.dclinic-clinic-slider-stage {
    position:relative;
    width:100%;
    aspect-ratio:1.855 / 1;
    overflow:hidden;
    background:#e9e9e9;
}
.dclinic-clinic-slide {
    position:absolute;
    inset:0;
    margin:0;
    opacity:0;
    visibility:hidden;
    transition:opacity .45s ease;
    z-index:1;
}
.dclinic-clinic-slide.is-active {
    opacity:1;
    visibility:visible;
    z-index:2;
}
.dclinic-clinic-slide img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin:0!important;
}
.dclinic-clinic-slider-arrow {
    position:absolute;
    top:50%;
    z-index:5;
    transform:translateY(-50%);
    width:46px;
    height:64px;
    border:0;
    background:transparent;
    color:rgba(255,255,255,.96);
    text-shadow:0 1px 6px rgba(0,0,0,.28);
    font-family:Arial,sans-serif;
    font-size:44px;
    font-weight:300;
    line-height:1;
    cursor:pointer;
    padding:0;
}
.dclinic-clinic-slider-prev { left:8px; }
.dclinic-clinic-slider-next { right:8px; }
.dclinic-clinic-slider-arrow:hover,
.dclinic-clinic-slider-arrow:focus-visible { color:rgba(255,255,255,1); text-shadow:0 1px 8px rgba(0,0,0,.38); }
.dclinic-clinic-slider-dots {
    position:absolute;
    left:50%;
    bottom:16px;
    z-index:6;
    transform:translateX(-50%);
    display:flex;
    gap:3px;
    align-items:center;
    justify-content:center;
}
.dclinic-clinic-slider-dot {
    width:12px;
    height:12px;
    min-width:12px;
    min-height:12px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#9a9a9a;
    cursor:pointer;
}
.dclinic-clinic-slider-dot.is-active { background:#777; }

@media(max-width:980px){
    .dclinic-clinic-slider { width:92vw; }
    .dclinic-clinic-slider-stage { aspect-ratio:1.55 / 1; }
    .dclinic-clinic-slider-arrow { width:42px; height:54px; font-size:38px; }
}
@media(max-width:600px){
    .dclinic-imported-specialty .dclinic-implants-clinic-slider-section { padding:34px 0!important; }
    .dclinic-clinic-slider-stage { aspect-ratio:4 / 3; }
    .dclinic-clinic-slider-arrow { width:36px; font-size:34px; }
    .dclinic-clinic-slider-dots { bottom:10px; }
    .dclinic-clinic-slider-dot { width:10px; height:10px; min-width:10px; min-height:10px; }
}

/* ==========================================================
   v1.28 — Footer, legal pages and spacing refinements
   ========================================================== */

/* Give the appointment block breathing room before the footer. */
.dclinic-imported-specialty .dclinic-implants-appointment {
    padding-bottom:64px!important;
}

/* Footer uses the same proportions on Specialty and Legal pages. */
.dclinic-legacy-legal,
.dclinic-legacy-legal .et_pb_row {
    padding-top:0!important;
    padding-bottom:0!important;
}
.dclinic-legacy-legal-row,
.dclinic-legacy-footer-row {
    width:61%!important;
    max-width:1080px!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-legacy-legal-text,
.dclinic-legacy-legal-text .et_pb_text_inner {
    width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-legacy-legal-inner {
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.dclinic-legacy-legal-links {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:5px;
    color:#111!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:13px!important;
    line-height:1.25!important;
}
.dclinic-legacy-legal-links a,
.dclinic-legacy-legal-links span {
    color:#111!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:13px!important;
    line-height:1.25!important;
    text-decoration:none!important;
}
.dclinic-legacy-legal-links a:hover { text-decoration:underline!important; }
.dclinic-legacy-social {
    position:static!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    line-height:1!important;
}
.dclinic-footer-social-icon {
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    border-radius:50%!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#263238!important;
    color:#fff!important;
    text-decoration:none!important;
    transition:transform .15s ease, opacity .15s ease!important;
}
.dclinic-footer-social-icon:hover { transform:translateY(-1px); opacity:.9; }
.dclinic-footer-social-icon svg { width:19px!important; height:19px!important; display:block!important; }

.dclinic-legacy-footer {
    padding:48px 0 58px!important;
}
.dclinic-legacy-footer-row {
    display:flex!important;
    align-items:center!important;
}
.dclinic-legacy-footer-row > .et_pb_column {
    flex:0 0 50%!important;
    width:50%!important;
    max-width:50%!important;
    margin:0!important;
}
.dclinic-legacy-footer-logo img {
    display:block!important;
    width:250px!important;
    max-width:82%!important;
    height:auto!important;
    margin:0!important;
}
.dclinic-legacy-contact {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    gap:9px!important;
}
.dclinic-legacy-contact p {
    display:flex!important;
    align-items:flex-start!important;
    justify-content:flex-end!important;
    gap:7px!important;
    width:100%!important;
    margin:0!important;
    color:#fff!important;
    text-align:left!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:14px!important;
    line-height:1.42!important;
}
.dclinic-legacy-contact a,
.dclinic-legacy-contact strong,
.dclinic-legacy-contact span { color:#fff!important; text-decoration:none!important; }
.dclinic-footer-contact-icon {
    display:inline-flex!important;
    width:15px!important;
    min-width:15px!important;
    height:18px!important;
    align-items:center!important;
    justify-content:center!important;
    margin-top:1px!important;
}
.dclinic-footer-contact-icon svg { width:14px!important; height:14px!important; display:block!important; }
.dclinic-footer-address-line2 { display:inline-block!important; margin-top:3px!important; }

/* Imported legal pages. */
.dclinic-imported-legal #main-footer,
.dclinic-imported-legal footer#main-footer,
.dclinic-imported-legal #footer-bottom { display:none!important; }
.dclinic-imported-legal .dclinic-legal-head-row,
.dclinic-imported-legal .dclinic-legal-body-row {
    width:61%!important;
    max-width:1080px!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-imported-legal .dclinic-legal-head { text-align:center!important; }
.dclinic-imported-legal .dclinic-legal-title {
    color:#47792d!important;
    font-size:36px!important;
    line-height:1.15!important;
    font-weight:400!important;
    margin:0 0 8px!important;
}
.dclinic-imported-legal .dclinic-legal-subtitle {
    color:#8a8a8a!important;
    font-size:18px!important;
    line-height:1.3!important;
    font-weight:400!important;
    margin:0!important;
}
.dclinic-imported-legal .dclinic-legal-copy,
.dclinic-imported-legal .dclinic-legal-copy-inner {
    color:#555!important;
    font-size:15px!important;
    line-height:1.65!important;
}
.dclinic-imported-legal .dclinic-legal-copy-inner h2,
.dclinic-imported-legal .dclinic-legal-copy-inner h3,
.dclinic-imported-legal .dclinic-legal-copy-inner h4,
.dclinic-imported-legal .dclinic-legal-copy-inner h5 {
    color:#47792d!important;
    font-weight:500!important;
    line-height:1.25!important;
    margin:28px 0 12px!important;
}
.dclinic-imported-legal .dclinic-legal-copy-inner p { margin:0 0 14px!important; }
.dclinic-imported-legal .dclinic-legal-copy-inner ul,
.dclinic-imported-legal .dclinic-legal-copy-inner ol { margin:0 0 18px 22px!important; }
.dclinic-imported-legal .dclinic-legal-copy-inner a { color:#47792d!important; text-decoration:underline!important; }

@media(max-width:980px){
    .dclinic-legacy-legal-row,
    .dclinic-legacy-footer-row,
    .dclinic-imported-legal .dclinic-legal-head-row,
    .dclinic-imported-legal .dclinic-legal-body-row { width:88%!important; }
    .dclinic-legacy-legal-inner { padding:10px 0!important; flex-direction:column!important; align-items:flex-start!important; gap:8px!important; }
    .dclinic-legacy-social { align-self:flex-start!important; }
    .dclinic-legacy-footer-row { display:block!important; }
    .dclinic-legacy-footer-row > .et_pb_column { width:100%!important; max-width:100%!important; }
    .dclinic-legacy-footer-logo img { margin:0 auto 30px!important; }
    .dclinic-legacy-contact { align-items:center!important; }
    .dclinic-legacy-contact p { justify-content:center!important; width:auto!important; }
    .dclinic-imported-legal .dclinic-legal-title { font-size:30px!important; }
}

/* ==========================================================
   v1.29 — Avís Legal: load styles + old-page proportions
   ========================================================== */

/* Legal pages now actually load this stylesheet; these rules intentionally
   mirror the visual proportions of the legacy Avís Legal page. */
.dclinic-imported-legal,
.dclinic-imported-legal .et_pb_section,
.dclinic-imported-legal .et_pb_row,
.dclinic-imported-legal .et_pb_text,
.dclinic-imported-legal .et_pb_heading {
    font-family:var(--dclinic-font-brand)!important;
}

.dclinic-imported-legal .dclinic-legal-head {
    padding-top:54px!important;
    padding-bottom:44px!important;
    background:#fff!important;
}
.dclinic-imported-legal .dclinic-legal-head-row {
    width:100%!important;
    max-width:100%!important;
    text-align:center!important;
}
.dclinic-imported-legal .dclinic-legal-title {
    color:#3e752d!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:42px!important;
    line-height:1.12!important;
    font-weight:400!important;
    letter-spacing:.01em!important;
    text-transform:uppercase!important;
    margin:0 0 14px!important;
}
.dclinic-imported-legal .dclinic-legal-title-rule-wrap,
.dclinic-imported-legal .dclinic-legal-title-rule-wrap .et_pb_text_inner {
    margin:0!important;
    padding:0!important;
    line-height:1!important;
}
.dclinic-imported-legal .dclinic-legal-title-rule {
    display:block!important;
    width:90px!important;
    height:1px!important;
    background:#9b9b9b!important;
    margin:0 auto 14px!important;
}
.dclinic-imported-legal .dclinic-legal-subtitle {
    color:#999!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:300!important;
    margin:0!important;
}

/* Edge-to-edge legal hero, like the original Phoenix page. */
.dclinic-imported-legal .dclinic-legal-hero,
.dclinic-imported-legal .dclinic-legal-hero-row,
.dclinic-imported-legal .dclinic-legal-hero-row > .et_pb_column {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-legal .dclinic-legal-hero-image,
.dclinic-imported-legal .dclinic-legal-hero-image .et_pb_image_wrap {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-legal .dclinic-legal-hero-image img {
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    object-fit:cover!important;
}

.dclinic-imported-legal .dclinic-legal-body {
    padding-top:26px!important;
    padding-bottom:70px!important;
    background:#fff!important;
}
.dclinic-imported-legal .dclinic-legal-body-row {
    width:58.5%!important;
    max-width:1000px!important;
    margin:0 auto!important;
}
.dclinic-imported-legal .dclinic-legal-copy,
.dclinic-imported-legal .dclinic-legal-copy-inner,
.dclinic-imported-legal .dclinic-legal-copy-inner p,
.dclinic-imported-legal .dclinic-legal-copy-inner li {
    color:#5c5c5c!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:14px!important;
    line-height:1.56!important;
    font-weight:400!important;
}
.dclinic-imported-legal .dclinic-legal-copy-inner > h3:first-child,
.dclinic-imported-legal .dclinic-legal-copy-inner > h2:first-child {
    text-align:center!important;
    color:#66894e!important;
    font-size:18px!important;
    font-weight:400!important;
    margin:0 0 46px!important;
}
.dclinic-imported-legal .dclinic-legal-copy-inner h2,
.dclinic-imported-legal .dclinic-legal-copy-inner h3,
.dclinic-imported-legal .dclinic-legal-copy-inner h4 {
    color:#5e8a42!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:18px!important;
    line-height:1.32!important;
    font-weight:400!important;
    margin:24px 0 12px!important;
}
.dclinic-imported-legal .dclinic-legal-copy-inner p {
    margin:0 0 14px!important;
}

/* Footer on legal pages: the same component as Specialty pages, but now with
   the plugin stylesheet actually enqueued. */
.dclinic-imported-legal .dclinic-legacy-legal {
    min-height:50px!important;
    padding:0!important;
    background:#74c21f!important;
}
.dclinic-imported-legal .dclinic-legacy-footer {
    background:#404040!important;
    padding:48px 0 58px!important;
}
.dclinic-imported-legal .dclinic-legacy-legal-row,
.dclinic-imported-legal .dclinic-legacy-footer-row {
    width:58.5%!important;
    max-width:1000px!important;
    margin-left:auto!important;
    margin-right:auto!important;
}

@media(max-width:980px){
    .dclinic-imported-legal .dclinic-legal-title { font-size:32px!important; }
    .dclinic-imported-legal .dclinic-legal-subtitle { font-size:17px!important; }
    .dclinic-imported-legal .dclinic-legal-body-row,
    .dclinic-imported-legal .dclinic-legacy-legal-row,
    .dclinic-imported-legal .dclinic-legacy-footer-row { width:88%!important; }
}

/* ==========================================================
   v1.30 — one global footer for the whole WordPress/Divi site
   ========================================================== */
/* Hide the stock Divi footer. D'Clínic's footer is rendered once globally
   from wp_footer, instead of being embedded separately in each page. */
#main-footer,
footer#main-footer,
.et-l--footer:not(#dclinic-global-footer) {
    display:none!important;
}

#dclinic-global-footer {
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    clear:both!important;
    font-family:var(--dclinic-font-brand)!important;
}
.dclinic-global-footer-legal {
    background:#74c21f!important;
    color:#111!important;
}
.dclinic-global-footer-legal-inner {
    width:90%!important;
    max-width:1200px!important;
    min-height:50px!important;
    margin:0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:24px!important;
    box-sizing:border-box!important;
}
.dclinic-global-footer-links {
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:4px!important;
    font-size:13px!important;
    line-height:1.35!important;
    font-weight:500!important;
}
.dclinic-global-footer-links a,
.dclinic-global-footer-links span {
    color:#111!important;
    text-decoration:none!important;
}
.dclinic-global-footer-links a:hover { text-decoration:underline!important; }
.dclinic-global-footer-social {
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    flex:0 0 auto!important;
}
.dclinic-global-footer-social a {
    width:31px!important;
    height:31px!important;
    border-radius:50%!important;
    background:#34404a!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.dclinic-global-footer-social svg {
    width:17px!important;
    height:17px!important;
    fill:#fff!important;
    display:block!important;
}
.dclinic-global-footer-main {
    background:#404040!important;
    color:#fff!important;
}
.dclinic-global-footer-main-inner {
    width:90%!important;
    max-width:1200px!important;
    min-height:235px!important;
    margin:0 auto!important;
    padding:44px 0 48px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(280px,420px)!important;
    align-items:center!important;
    column-gap:70px!important;
    box-sizing:border-box!important;
}
.dclinic-global-footer-brand img {
    width:auto!important;
    max-width:260px!important;
    max-height:108px!important;
    display:block!important;
    object-fit:contain!important;
}
.dclinic-global-footer-contact {
    justify-self:end!important;
    width:max-content!important;
    min-width:290px!important;
}
.dclinic-global-footer-contact p {
    margin:0 0 11px!important;
    padding:0!important;
    display:flex!important;
    align-items:flex-start!important;
    gap:7px!important;
    color:#fff!important;
    font-size:14px!important;
    line-height:1.45!important;
}
.dclinic-global-footer-contact p:last-child { margin-bottom:0!important; }
.dclinic-global-footer-contact a,
.dclinic-global-footer-contact strong,
.dclinic-global-footer-contact span { color:#fff!important; text-decoration:none!important; }
.dclinic-global-footer-contact-icon {
    width:15px!important;
    height:15px!important;
    flex:0 0 15px!important;
    display:inline-flex!important;
    margin-top:2px!important;
}
.dclinic-global-footer-contact-icon svg {
    width:15px!important;
    height:15px!important;
    fill:#fff!important;
    display:block!important;
}
.dclinic-global-footer-address2 { display:block!important; margin-top:3px!important; }

/* Keep a little air before the site-wide footer after content/forms. */
body.dclinic-imported-specialty #dclinic-global-footer,
body.dclinic-imported-legal #dclinic-global-footer,
body.dclinic-imported-contacte #dclinic-global-footer {
    margin-top:34px!important;
}

/* Legal pages: Avís Legal, Privacy and Cookies share the exact same shell. */
.dclinic-imported-legal .dclinic-legal-head,
.dclinic-imported-legal .dclinic-legal-hero,
.dclinic-imported-legal .dclinic-legal-body {
    width:100%!important;
}
.dclinic-imported-legal .dclinic-legal-copy-inner h3,
.dclinic-imported-legal .dclinic-legal-copy-inner h4,
.dclinic-imported-legal .dclinic-legal-copy-inner h5 {
    color:#4f7b2e!important;
    font-family:var(--dclinic-font-brand)!important;
    font-weight:400!important;
}
.dclinic-imported-legal .dclinic-legal-copy-inner ul,
.dclinic-imported-legal .dclinic-legal-copy-inner ol {
    padding-left:1.4em!important;
    margin:0 0 18px!important;
}
.dclinic-imported-legal .dclinic-legal-copy-inner li {
    margin-bottom:7px!important;
}

@media(max-width:980px){
    .dclinic-global-footer-legal-inner {
        width:88%!important;
        padding:12px 0!important;
        flex-direction:column!important;
        align-items:flex-start!important;
        gap:9px!important;
    }
    .dclinic-global-footer-main-inner {
        width:88%!important;
        grid-template-columns:1fr!important;
        row-gap:34px!important;
        padding:40px 0 44px!important;
    }
    .dclinic-global-footer-brand img { margin:0 auto!important; max-width:230px!important; }
    .dclinic-global-footer-contact {
        justify-self:center!important;
        width:auto!important;
        min-width:0!important;
    }
}

/* ==========================================================
   v1.31 — Ortodòncia: same refined visual system as Implants
   ========================================================== */
.dclinic-imported-specialty .dclinic-ortho-intro .dclinic-implants-hero-image,
.dclinic-imported-specialty .dclinic-ortho-intro .dclinic-implants-hero-image .et_pb_image_wrap,
.dclinic-imported-specialty .dclinic-ortho-intro .dclinic-implants-hero-image img {
    width:100%!important;
    max-width:100%!important;
    display:block!important;
}
.dclinic-imported-specialty .dclinic-ortho-intro .dclinic-implants-hero-image img {
    height:auto!important;
    object-fit:contain!important;
}

.dclinic-imported-specialty .dclinic-ortho-types-grid {
    background:#fff!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-row,
.dclinic-imported-specialty .dclinic-ortho-closing-row {
    width:min(1120px,88vw)!important;
    max-width:1120px!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-row {
    display:flex!important;
    gap:54px!important;
    align-items:flex-start!important;
    padding:20px 0 28px!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-row > .et_pb_column {
    width:calc(50% - 27px)!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-title,
.dclinic-imported-specialty .dclinic-ortho-treatment-title h3 {
    margin:0 0 13px!important;
    padding:0!important;
    color:#668b27!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:21px!important;
    line-height:1.25!important;
    font-weight:400!important;
    text-transform:none!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-copy,
.dclinic-imported-specialty .dclinic-ortho-treatment-copy p {
    margin:0!important;
    padding:0!important;
    color:#5c5c5c!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:15px!important;
    line-height:1.55!important;
    font-weight:400!important;
}
.dclinic-imported-specialty .dclinic-ortho-closing-row {
    padding:22px 0 14px!important;
}
.dclinic-imported-specialty .dclinic-ortho-closing,
.dclinic-imported-specialty .dclinic-ortho-closing p {
    margin:0!important;
    color:#565656!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:16px!important;
    line-height:1.55!important;
    text-align:center!important;
}

@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-ortho-treatment-row {
        display:block!important;
        width:min(92vw,720px)!important;
        padding:10px 0!important;
    }
    .dclinic-imported-specialty .dclinic-ortho-treatment-row > .et_pb_column {
        width:100%!important;
        margin:0 0 30px!important;
    }
    .dclinic-imported-specialty .dclinic-ortho-closing-row {
        width:min(92vw,720px)!important;
    }
}

/* ==========================================================
   v1.32 — Ortodòncia: restore treatment images + remove closing copy
   ========================================================== */
.dclinic-imported-specialty .dclinic-ortho-treatment-image,
.dclinic-imported-specialty .dclinic-ortho-treatment-image .et_pb_image_wrap,
.dclinic-imported-specialty .dclinic-ortho-treatment-image img {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-image {
    margin:0 0 16px!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-image img {
    height:285px!important;
    object-fit:cover!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo {
    margin:18px 0 0!important;
    text-align:left!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo .et_pb_image_wrap,
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo img {
    width:auto!important;
    max-width:260px!important;
    height:auto!important;
    display:block!important;
}
@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-ortho-treatment-image img { height:auto!important; }
    .dclinic-imported-specialty .dclinic-ortho-invisalign-logo img { max-width:220px!important; }
}


/* ==========================================================
   v1.33 — Ortodòncia image rendering hard-fix
   Use raw <img> elements instead of Divi image modules to avoid
   the duplicated/sliced rendering visible in v1.32.
   ========================================================== */
.dclinic-imported-specialty .dclinic-ortho-treatment-image-raw,
.dclinic-imported-specialty .dclinic-ortho-treatment-image-raw .et_pb_text_inner,
.dclinic-imported-specialty .dclinic-ortho-treatment-media {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-image-raw {
    margin-bottom:16px!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-media img {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:center center!important;
    border:0!important;
    box-shadow:none!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-wrap,
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-wrap .et_pb_text_inner {
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw {
    margin:18px 0 0!important;
    padding:0!important;
    text-align:left!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw img {
    display:block!important;
    width:auto!important;
    max-width:270px!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
}
@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw img { max-width:220px!important; }
}

/* ==========================================================
   v1.34 — Ortodòncia first row: exact image/text alignment
   ========================================================== */
.dclinic-imported-specialty .dclinic-ortho-treatment-row > .et_pb_column > .et_pb_module,
.dclinic-imported-specialty .dclinic-ortho-treatment-row > .et_pb_column > .et_pb_module .et_pb_text_inner,
.dclinic-imported-specialty .dclinic-ortho-treatment-image-raw,
.dclinic-imported-specialty .dclinic-ortho-treatment-media {
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    box-sizing:border-box!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-media img {
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    object-fit:fill!important;
    object-position:left top!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-title,
.dclinic-imported-specialty .dclinic-ortho-treatment-copy {
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
}


/* ==========================================================
   v1.35 — Ortodòncia logo + second row media asset refresh
   ========================================================== */
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-wrap,
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-wrap .et_pb_text_inner,
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw {
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    text-align:left!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw img {
    max-width:270px!important;
    width:auto!important;
    height:auto!important;
    margin-left:0!important;
    margin-right:0!important;
    object-position:left center!important;
}



/* ==========================================================
   v1.36 — Ortodòncia: exact original source assets
   ========================================================== */
.dclinic-imported-specialty .dclinic-ortho-treatment-media {
    overflow:hidden!important;
    background:#fff!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-media img {
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-width:none!important;
    object-fit:contain!important;
    object-position:left top!important;
    transform:none!important;
    clip-path:none!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw {
    margin-top:18px!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw img {
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:270px!important;
    object-fit:contain!important;
    object-position:left center!important;
    transform:none!important;
    clip-path:none!important;
}


/* ==========================================================
   v1.37 — Ortodòncia: deterministic original-look assets
   ========================================================== */
.dclinic-imported-specialty .dclinic-ortho-treatment-media {
    overflow:visible!important;
    background:transparent!important;
}
.dclinic-imported-specialty .dclinic-ortho-treatment-media img {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:left top!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    clip-path:none!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-wrap,
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-wrap .et_pb_text_inner,
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw {
    overflow:visible!important;
    height:auto!important;
    min-height:0!important;
}
.dclinic-imported-specialty .dclinic-ortho-invisalign-logo-raw img {
    display:block!important;
    width:295px!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:left top!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    clip-path:none!important;
}

/* ============================================================
   v1.39.0 — Estètica dental
   Mirrors the refined speciality layout already used on Implants
   and Ortodòncia, while preserving the original page's 3-column
   text-only treatment section.
   ============================================================ */
.dclinic-imported-specialty .dclinic-estetica-intro-row{
    display:flex;
    align-items:center;
    gap:46px;
}
.dclinic-imported-specialty .dclinic-estetica-intro-row > .et_pb_column{
    flex:1 1 0;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-estetica-hero-image,
.dclinic-imported-specialty .dclinic-estetica-hero-image .et_pb_image_wrap{
    width:100%;
    display:block;
}
.dclinic-imported-specialty .dclinic-estetica-hero-image img{
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
}
.dclinic-imported-specialty .dclinic-estetica-types-head{
    padding-bottom:18px!important;
}
.dclinic-imported-specialty .dclinic-estetica-treatment-row{
    width:min(1180px,88%);
    max-width:1180px;
    margin:0 auto!important;
    display:flex;
    align-items:flex-start;
    gap:44px;
}
.dclinic-imported-specialty .dclinic-estetica-treatment-row > .et_pb_column{
    flex:1 1 0;
    width:auto!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-estetica-treatment-title,
.dclinic-imported-specialty .dclinic-estetica-treatment-title h3{
    color:#648d20!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:20px!important;
    line-height:1.3!important;
    font-weight:400!important;
    margin:0 0 20px!important;
    padding:0!important;
    text-transform:none!important;
}
.dclinic-imported-specialty .dclinic-estetica-treatment-copy,
.dclinic-imported-specialty .dclinic-estetica-treatment-copy p{
    color:#595959!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:15px!important;
    line-height:1.52!important;
    font-weight:400!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-estetica-closing-row{
    width:min(1180px,88%);
    max-width:1180px;
    margin:46px auto 0!important;
}
.dclinic-imported-specialty .dclinic-estetica-closing,
.dclinic-imported-specialty .dclinic-estetica-closing p{
    text-align:center!important;
    color:#4a4a4a!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:15px!important;
    line-height:1.55!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-estetica-clinic-slider{
    padding-top:58px!important;
    padding-bottom:58px!important;
}
.dclinic-imported-specialty .dclinic-estetica-appointment{
    margin-top:0!important;
    padding-top:45px!important;
    padding-bottom:64px!important;
}
@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-estetica-intro-row,
    .dclinic-imported-specialty .dclinic-estetica-treatment-row{
        display:block;
    }
    .dclinic-imported-specialty .dclinic-estetica-intro-row > .et_pb_column,
    .dclinic-imported-specialty .dclinic-estetica-treatment-row > .et_pb_column{
        width:100%!important;
        margin:0 0 34px!important;
    }
    .dclinic-imported-specialty .dclinic-estetica-treatment-row{
        width:90%;
    }
}

/* v1.40 — Estètica dental: treatment imagery from original layout */
.dclinic-imported-specialty .dclinic-estetica-treatment-image{
    width:100%;
    margin:0 0 18px 0 !important;
}
.dclinic-imported-specialty .dclinic-estetica-treatment-image img{
    display:block;
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
}
.dclinic-imported-specialty .dclinic-estetica-treatment-row > .et_pb_column{
    align-self:flex-start;
}


/* ============================================================
   v1.41.0 — Estètica cleanup + Odontopediatria refinement
   ============================================================ */
/* The final closing sentence from the old Estètica page is intentionally removed. */
.dclinic-imported-specialty .dclinic-estetica-closing-row,
.dclinic-imported-specialty .dclinic-estetica-closing{display:none!important;}

/* Odontopediatria intro follows the same proportions as the original speciality pages. */
.dclinic-imported-specialty .dclinic-odonto-intro-row{
    display:flex!important;
    align-items:center!important;
    gap:46px!important;
}
.dclinic-imported-specialty .dclinic-odonto-intro-row > .et_pb_column{
    flex:1 1 0!important;
    width:auto!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-odonto-hero-image,
.dclinic-imported-specialty .dclinic-odonto-hero-image .et_pb_image_wrap{
    width:100%!important;
    display:block!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-odonto-hero-image img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:0!important;
}

.dclinic-imported-specialty .dclinic-odonto-types-grid{
    background:#fff!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-row,
.dclinic-imported-specialty .dclinic-odonto-closing-row{
    width:min(1080px,61%)!important;
    max-width:1080px!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    column-gap:58px!important;
    row-gap:0!important;
    align-items:start!important;
    margin-bottom:42px!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-row > .et_pb_column{
    width:auto!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-title,
.dclinic-imported-specialty .dclinic-odonto-treatment-title h3{
    color:#648d20!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:20px!important;
    line-height:1.3!important;
    font-weight:400!important;
    text-transform:none!important;
    margin:0 0 18px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-copy,
.dclinic-imported-specialty .dclinic-odonto-treatment-copy p{
    color:#595959!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:15px!important;
    line-height:1.55!important;
    font-weight:400!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-copy p + p{
    margin-top:16px!important;
}
.dclinic-imported-specialty .dclinic-odonto-closing-row{
    margin-top:8px!important;
    margin-bottom:0!important;
}
.dclinic-imported-specialty .dclinic-odonto-closing,
.dclinic-imported-specialty .dclinic-odonto-closing p{
    text-align:center!important;
    color:#4a4a4a!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:15px!important;
    line-height:1.55!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-odonto-clinic-slider{
    padding-top:58px!important;
    padding-bottom:58px!important;
}
.dclinic-imported-specialty .dclinic-odonto-appointment{
    margin-top:0!important;
    padding-top:45px!important;
    padding-bottom:64px!important;
}
@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-odonto-intro-row{
        display:block!important;
    }
    .dclinic-imported-specialty .dclinic-odonto-intro-row > .et_pb_column{
        width:100%!important;
        margin:0 0 34px!important;
    }
    .dclinic-imported-specialty .dclinic-odonto-treatment-row,
    .dclinic-imported-specialty .dclinic-odonto-closing-row{
        width:90%!important;
    }
    .dclinic-imported-specialty .dclinic-odonto-treatment-row{
        grid-template-columns:1fr!important;
        row-gap:34px!important;
    }
}

/* ============================================================
   v1.42.0 — Odontopediatria treatment images + closing cleanup
   ============================================================ */
.dclinic-imported-specialty .dclinic-odonto-treatment-image{
    width:100%!important;
    max-width:none!important;
    margin:0 0 18px!important;
    padding:0!important;
    display:block!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-image .et_pb_image_wrap{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-image img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:left top!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-row > .et_pb_column{
    min-width:0!important;
    overflow:visible!important;
    align-self:start!important;
}
.dclinic-imported-specialty .dclinic-odonto-closing-row,
.dclinic-imported-specialty .dclinic-odonto-closing{
    display:none!important;
}
@media (max-width:980px){
    .dclinic-imported-specialty .dclinic-odonto-treatment-row{
        grid-template-columns:1fr!important;
        row-gap:34px!important;
    }
    .dclinic-imported-specialty .dclinic-odonto-treatment-row{
        width:min(92%,720px)!important;
    }
}

/* ============================================================
   v1.43.0 — Periodòncia: original layout, treatment imagery,
   closing cleanup and shared speciality slider/contact styling
   ============================================================ */
.dclinic-imported-specialty .dclinic-periodoncia-intro-row{
    display:flex!important;
    align-items:center!important;
    gap:46px!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-intro-row > .et_pb_column{
    flex:1 1 0!important;
    width:auto!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-hero-image,
.dclinic-imported-specialty .dclinic-periodoncia-hero-image .et_pb_image_wrap{
    width:100%!important;
    display:block!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-hero-image img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-types-head{
    padding-bottom:18px!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-treatment-row{
    width:min(1180px,88%)!important;
    max-width:1180px!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    column-gap:44px!important;
    align-items:start!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-treatment-row > .et_pb_column{
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    align-self:start!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-treatment-image,
.dclinic-imported-specialty .dclinic-periodoncia-treatment-image .et_pb_image_wrap{
    width:100%!important;
    max-width:none!important;
    display:block!important;
    margin:0 0 18px!important;
    padding:0!important;
    overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-treatment-image img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:left top!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-treatment-title,
.dclinic-imported-specialty .dclinic-periodoncia-treatment-title h3{
    color:#648d20!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:20px!important;
    line-height:1.3!important;
    font-weight:400!important;
    text-transform:none!important;
    margin:0 0 18px!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-treatment-copy,
.dclinic-imported-specialty .dclinic-periodoncia-treatment-copy p{
    color:#595959!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:15px!important;
    line-height:1.55!important;
    font-weight:400!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-clinic-slider{
    padding-top:58px!important;
    padding-bottom:58px!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-appointment{
    margin-top:0!important;
    padding-top:45px!important;
    padding-bottom:64px!important;
}
/* The old bold closing slogan is intentionally omitted in the new visual language. */
.dclinic-imported-specialty .dclinic-periodoncia-closing-row,
.dclinic-imported-specialty .dclinic-periodoncia-closing{
    display:none!important;
}
@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-periodoncia-intro-row{
        display:block!important;
    }
    .dclinic-imported-specialty .dclinic-periodoncia-intro-row > .et_pb_column{
        width:100%!important;
        margin:0 0 34px!important;
    }
    .dclinic-imported-specialty .dclinic-periodoncia-treatment-row{
        width:min(92%,720px)!important;
        grid-template-columns:1fr!important;
        row-gap:34px!important;
    }
}

/* v1.47 — Endodòncia, styled to match the original Especialitats visual language */
.dclinic-imported-specialty .dclinic-endodoncia-intro-row{
    align-items:center;
}
.dclinic-imported-specialty .dclinic-endodoncia-hero-image,
.dclinic-imported-specialty .dclinic-endodoncia-hero-image .et_pb_image_wrap{
    width:100%;
    display:block;
}
.dclinic-imported-specialty .dclinic-endodoncia-hero-image img{
    display:block;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center center!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-steps-subtitle,
.dclinic-imported-specialty .dclinic-endodoncia-steps-subtitle h3{
    margin:15px 0 0!important;
    text-align:center!important;
    color:#888!important;
    font-size:20px!important;
    font-weight:400!important;
    text-transform:none!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-steps-row{
    max-width:1140px!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:30px!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-steps-row>.et_pb_column{
    width:auto!important;
    margin:0!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-step-number-wrap{
    margin:0 0 15px!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-step-number{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:48px!important;
    height:48px!important;
    border:1px solid #77a21d!important;
    border-radius:50%!important;
    color:#77a21d!important;
    font-size:22px!important;
    font-weight:400!important;
    line-height:1!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-step-copy,
.dclinic-imported-specialty .dclinic-endodoncia-step-copy p{
    margin:0!important;
    color:#555!important;
    font-size:16px!important;
    line-height:1.55!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-conservative-row{
    max-width:1140px!important;
    margin:38px auto 0!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-conservative,
.dclinic-imported-specialty .dclinic-endodoncia-conservative p{
    margin:0!important;
    text-align:center!important;
    color:#444!important;
    font-size:17px!important;
    line-height:1.6!important;
}
@media(max-width:980px){
    .dclinic-imported-specialty .dclinic-endodoncia-steps-row{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media(max-width:600px){
    .dclinic-imported-specialty .dclinic-endodoncia-steps-row{
        grid-template-columns:1fr!important;
    }
}
\n\n/* v1.48 — Endodòncia: force the original treatment image to render without Divi image cropping/metadata issues */\n.dclinic-imported-specialty .dclinic-endodoncia-source-image-module,\n.dclinic-imported-specialty .dclinic-endodoncia-source-image{\n    width:100%!important;\n    margin:0!important;\n    padding:0!important;\n    display:block!important;\n}\n.dclinic-imported-specialty .dclinic-endodoncia-source-image img{\n    display:block!important;\n    width:100%!important;\n    height:auto!important;\n    max-width:100%!important;\n    max-height:none!important;\n    object-fit:contain!important;\n    object-position:center center!important;\n    margin:0!important;\n    padding:0!important;\n}\n
/* v1.49 — Endodòncia: match legacy treatment block (composite 8-step image + copy) */
.dclinic-imported-specialty .dclinic-endodoncia-treatment-row{
    align-items:flex-start!important;
    gap:28px!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-treatment-row>.dclinic-endodoncia-treatment-visual{
    flex:0 0 68%!important;
    width:68%!important;
    max-width:68%!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-treatment-row>.dclinic-endodoncia-treatment-text{
    flex:0 0 calc(32% - 28px)!important;
    width:calc(32% - 28px)!important;
    max-width:calc(32% - 28px)!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-treatment-image-module,
.dclinic-imported-specialty .dclinic-endodoncia-treatment-image{
    margin:0!important;
    padding:0!important;
    width:100%!important;
    display:block!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-treatment-image img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    object-fit:contain!important;
    object-position:left top!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-treatment-copy,
.dclinic-imported-specialty .dclinic-endodoncia-treatment-copy p,
.dclinic-imported-specialty .dclinic-endodoncia-treatment-copy li{
    font-family:inherit!important;
    font-size:16px!important;
    line-height:1.45!important;
    color:#5c5350!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-treatment-copy h3{
    margin:0 0 18px!important;
    padding:0!important;
    font-size:23px!important;
    line-height:1.25!important;
    font-weight:400!important;
    color:#6a8c15!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-treatment-copy ol{
    margin:0 0 18px!important;
    padding-left:20px!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-treatment-copy li{
    margin:0 0 4px!important;
}
.dclinic-imported-specialty .dclinic-endodoncia-conservative-inline{
    margin-top:16px!important;
}
@media (max-width:980px){
    .dclinic-imported-specialty .dclinic-endodoncia-treatment-row{
        gap:24px!important;
    }
    .dclinic-imported-specialty .dclinic-endodoncia-treatment-row>.dclinic-endodoncia-treatment-visual,
    .dclinic-imported-specialty .dclinic-endodoncia-treatment-row>.dclinic-endodoncia-treatment-text{
        flex:0 0 100%!important;
        width:100%!important;
        max-width:100%!important;
    }
}

/* v1.50 — Higiene i prevenció: legacy layout reconstruction */
.dclinic-prevencio-source-image-module,
.dclinic-prevencio-source-image,
.dclinic-prevencio-source-image img {
  width:100%;
}
.dclinic-prevencio-source-image { margin:0; display:block; }
.dclinic-prevencio-source-image img {
  display:block;
  height:auto;
  max-width:100%;
  object-fit:contain;
  object-position:center;
}
.dclinic-prevencio-intro .et_pb_row,
.dclinic-prevencio-intro-row {
  align-items:center;
}
.dclinic-prevencio-types-grid .et_pb_row,
.dclinic-prevencio-treatment-row {
  align-items:flex-start;
}
.dclinic-prevencio-treatment-title h3,
.dclinic-prevencio-treatment-title {
  color:#6b9400 !important;
  font-weight:400 !important;
  font-size:21px !important;
  line-height:1.3 !important;
  margin:0 0 28px !important;
}
.dclinic-prevencio-treatment-copy,
.dclinic-prevencio-treatment-copy p {
  font-size:16px !important;
  line-height:1.55 !important;
  color:#555 !important;
}
.dclinic-prevencio-treatment-row > .et_pb_column,
.dclinic-prevencio-treatment-row > [class*="et_pb_column"] {
  padding-left:18px;
  padding-right:18px;
}
.dclinic-prevencio-types-grid { padding-top:0 !important; }
@media (max-width:980px){
  .dclinic-prevencio-treatment-row > .et_pb_column,
  .dclinic-prevencio-treatment-row > [class*="et_pb_column"] { padding:0 0 34px; }
  .dclinic-prevencio-treatment-title h3,
  .dclinic-prevencio-treatment-title { margin-bottom:16px !important; }
}


/* v1.51 — Higiene i prevenció: exact legacy treatment composition + original source images */
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-top,
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom {
  max-width:1120px!important;
  width:90%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  align-items:flex-start!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-top {
  display:flex!important;
  gap:28px!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-top > .et_pb_column,
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-top > [class*="et_pb_column"] {
  flex:1 1 0!important;
  width:calc(50% - 14px)!important;
  max-width:calc(50% - 14px)!important;
  margin:0!important;
  padding:0!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-image-module,
.dclinic-imported-specialty .dclinic-prevencio-treatment-image {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-image img {
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:left top!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-top .dclinic-prevencio-treatment-title {
  margin-top:18px!important;
  margin-bottom:18px!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-top .dclinic-prevencio-treatment-copy,
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-top .dclinic-prevencio-treatment-copy p {
  margin-top:0!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom {
  display:flex!important;
  gap:40px!important;
  margin-top:18px!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom > .et_pb_column:first-child,
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom > [class*="et_pb_column"]:first-child {
  flex:0 0 calc(66.666% - 20px)!important;
  width:calc(66.666% - 20px)!important;
  max-width:calc(66.666% - 20px)!important;
  margin:0!important;
  padding:0!important;
}
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom > .et_pb_column:last-child,
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom > [class*="et_pb_column"]:last-child {
  flex:0 0 calc(33.333% - 20px)!important;
  width:calc(33.333% - 20px)!important;
  max-width:calc(33.333% - 20px)!important;
  margin:0!important;
  padding:0!important;
}
.dclinic-imported-specialty .dclinic-prevencio-habits-title {
  margin-top:0!important;
  margin-bottom:18px!important;
}
.dclinic-imported-specialty .dclinic-prevencio-habits-image,
.dclinic-imported-specialty .dclinic-prevencio-habits-image img {
  width:100%!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:right top!important;
}
@media (max-width:980px){
  .dclinic-imported-specialty .dclinic-prevencio-treatment-row-top,
  .dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom {
    display:block!important;
    width:90%!important;
  }
  .dclinic-imported-specialty .dclinic-prevencio-treatment-row-top > .et_pb_column,
  .dclinic-imported-specialty .dclinic-prevencio-treatment-row-top > [class*="et_pb_column"],
  .dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom > .et_pb_column,
  .dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom > [class*="et_pb_column"] {
    width:100%!important;
    max-width:100%!important;
    margin:0 0 34px!important;
    padding:0!important;
  }
}

/* ==========================================================================\n   Contacte — complete legacy page (v1.52)\n   ========================================================================== */
body.dclinic-imported-contacte .entry-title,
body.dclinic-imported-contacte .et_post_meta_wrapper { display:none!important; }
body.dclinic-imported-contacte #main-content,
body.dclinic-imported-contacte .et-l--post,
body.dclinic-imported-contacte .et_builder_inner_content { background:#fff!important; }
.dclinic-imported-contacte .dclinic-contacte-hero-section,
.dclinic-imported-contacte .dclinic-contacte-hero-row,
.dclinic-imported-contacte .dclinic-contacte-hero-module,
.dclinic-imported-contacte .dclinic-contacte-info-section,
.dclinic-imported-contacte .dclinic-contacte-info-row,
.dclinic-imported-contacte .dclinic-contacte-info-module,
.dclinic-imported-contacte .dclinic-contacte-gallery-section,
.dclinic-imported-contacte .dclinic-contacte-gallery-row,
.dclinic-imported-contacte .dclinic-contacte-gallery-module,
.dclinic-imported-contacte .dclinic-contacte-form-section,
.dclinic-imported-contacte .dclinic-contacte-form-row,
.dclinic-imported-contacte .dclinic-contacte-form-module { width:100%!important; max-width:100%!important; margin:0!important; padding:0!important; }
.dclinic-contacte-hero-inner { text-align:center; padding:62px 20px 48px; font-family:var(--dclinic-font-brand)!important; }
.dclinic-contacte-hero-inner h1 { margin:0!important; font-family:var(--dclinic-font-brand)!important; font-size:42px!important; line-height:1.12!important; font-weight:400!important; letter-spacing:.3px; color:#47752d!important; }
.dclinic-contacte-hero-line { display:block; width:72px; height:1px; background:#aaa; margin:18px auto 12px; }
.dclinic-contacte-hero-inner p { margin:0!important; color:#aaa!important; font-size:20px!important; line-height:1.4!important; font-weight:300!important; }
.dclinic-contacte-info-grid { max-width:1080px; margin:0 auto; padding:34px 24px 54px; display:grid; grid-template-columns:1fr 1fr 1.45fr 1.15fr; gap:34px; font-family:var(--dclinic-font-brand)!important; }
.dclinic-contacte-info-grid article { min-width:0; }
.dclinic-contacte-info-grid h3 { margin:0 0 12px!important; color:#47752d!important; font-family:var(--dclinic-font-brand)!important; font-size:16px!important; line-height:1.3!important; font-weight:500!important; text-transform:uppercase; }
.dclinic-contacte-info-grid p,
.dclinic-contacte-info-grid a { margin:0!important; color:#555!important; font-family:var(--dclinic-font-brand)!important; font-size:15px!important; line-height:1.7!important; font-weight:400!important; text-decoration:none!important; }
.dclinic-contacte-gallery { max-width:1100px; margin:0 auto; padding:58px 24px 46px; }
.dclinic-contacte-gallery-stage { position:relative; overflow:hidden; background:#eee; aspect-ratio:1000/600; }
.dclinic-contacte-gallery-slide { position:absolute; inset:0; opacity:0; transition:opacity .45s ease; margin:0!important; }
.dclinic-contacte-gallery-slide.is-active { opacity:1; z-index:1; }
.dclinic-contacte-gallery-slide img { display:block!important; width:100%!important; height:100%!important; object-fit:cover!important; object-position:center center!important; }
.dclinic-contacte-gallery-arrow { position:absolute; z-index:4; top:50%; transform:translateY(-50%); border:0!important; background:transparent!important; color:#9c9c9c!important; font-size:42px!important; line-height:1!important; width:44px; height:54px; padding:0!important; cursor:pointer; box-shadow:none!important; }
.dclinic-contacte-gallery-prev { left:8px; }
.dclinic-contacte-gallery-next { right:8px; }
.dclinic-contacte-gallery-dots { display:flex; justify-content:center; gap:7px; margin-top:-20px; padding-bottom:10px; position:relative; z-index:6; }
.dclinic-contacte-gallery-dot { width:10px!important; height:10px!important; min-width:10px!important; border:0!important; border-radius:50%!important; background:#999!important; padding:0!important; cursor:pointer; }
.dclinic-contacte-gallery-dot.is-active { background:#739f18!important; }
.dclinic-contacte-map-section,.dclinic-contacte-map-row,.dclinic-contacte-map-module{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
.dclinic-contacte-map iframe{width:100%;min-height:520px;border:0;display:block}
.dclinic-contacte-form-wrap { max-width:980px; margin:0 auto; padding:62px 24px 76px; font-family:var(--dclinic-font-brand)!important; }
.dclinic-contacte-form-wrap h2 { text-align:center; color:#47752d!important; font-family:var(--dclinic-font-brand)!important; font-size:30px!important; line-height:1.2!important; font-weight:400!important; margin:0 0 40px!important; }
.dclinic-contacte-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 24px; }
.dclinic-contacte-field-full { grid-column:1/-1; }
.dclinic-contacte-field label { display:block; margin:0 0 7px; font-size:14px; line-height:1.3; color:#555; }
.dclinic-contacte-field input,
.dclinic-contacte-field textarea { box-sizing:border-box!important; display:block!important; width:100%!important; border:0!important; outline:0!important; border-radius:0!important; background:#e9f4d9!important; color:#444!important; font-family:var(--dclinic-font-brand)!important; font-size:15px!important; padding:11px 12px!important; box-shadow:none!important; }
.dclinic-contacte-field input { height:42px!important; }
.dclinic-contacte-field textarea { min-height:190px!important; resize:vertical; }
.dclinic-contacte-required { margin:16px 0 13px!important; color:#555!important; font-size:13px!important; }
.dclinic-contacte-privacy { display:flex!important; align-items:flex-start!important; gap:8px!important; color:#555!important; font-size:13px!important; line-height:1.45!important; }
.dclinic-contacte-privacy input { margin-top:3px!important; }
.dclinic-contacte-privacy a,
.dclinic-contacte-legal a { color:#47752d!important; text-decoration:none!important; }
.dclinic-contacte-legal { margin-top:18px; font-size:11px; line-height:1.35; color:#4e4e4e; }
.dclinic-contacte-submit { margin-top:24px!important; border:0!important; border-radius:0!important; background:#445058!important; color:#fff!important; font-family:var(--dclinic-font-brand)!important; font-size:12px!important; font-weight:600!important; padding:10px 22px!important; cursor:pointer; }
.dclinic-contacte-submit:hover { background:#47752d!important; }
.dclinic-form-notice { max-width:980px; margin:0 auto 20px; padding:12px 14px; font-size:14px; }
.dclinic-form-ok { background:#eef8e8; color:#365d24; }
.dclinic-form-error { background:#fbe9e9; color:#8a2727; }
@media (max-width:980px){
  .dclinic-contacte-info-grid{grid-template-columns:1fr 1fr;}
  .dclinic-contacte-map iframe{min-height:460px;height:460px!important}
}
@media (max-width:767px){
  .dclinic-contacte-hero-inner{padding:42px 18px 34px}
  .dclinic-contacte-hero-inner h1{font-size:34px!important}
  .dclinic-contacte-info-grid{grid-template-columns:1fr;padding:24px 22px 40px;gap:24px}
  .dclinic-contacte-gallery{padding:36px 0 30px}
  .dclinic-contacte-gallery-stage{aspect-ratio:4/3}
  .dclinic-contacte-form-grid{grid-template-columns:1fr}
  .dclinic-contacte-field-full{grid-column:auto}
  .dclinic-contacte-form-wrap{padding:44px 22px 56px}
}

/* ==========================================================
   CONTACTE v1.53 — legacy order and full layout
   Old page order: heading -> map -> dark details/slider -> form/photo
   ========================================================== */
.dclinic-imported-contacte .dclinic-contacte-legacy-section,
.dclinic-imported-contacte .dclinic-contacte-legacy-row,
.dclinic-imported-contacte .dclinic-contacte-legacy-module{
    width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
}
.dclinic-imported-contacte .dclinic-contacte-map iframe{
    min-height:445px!important;height:445px!important;
}
.dclinic-contacte-legacy-section{background:#666!important;}
.dclinic-contacte-legacy-grid{
    width:1080px!important;max-width:calc(100% - 48px)!important;
    margin:0 auto!important;padding:74px 0 82px!important;
    display:grid!important;grid-template-columns:330px minmax(0,1fr)!important;
    gap:48px!important;align-items:center!important;
    font-family:var(--dclinic-font-brand)!important;
}
.dclinic-contacte-legacy-info{color:#fff!important;}
.dclinic-contacte-legacy-item{margin:0 0 18px!important;}
.dclinic-contacte-legacy-item:last-child{margin-bottom:0!important;}
.dclinic-contacte-legacy-item h3{
    display:flex!important;align-items:center!important;gap:7px!important;
    margin:0 0 2px!important;color:#fff!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:18px!important;line-height:1.2!important;font-weight:400!important;
}
.dclinic-contacte-legacy-item p,
.dclinic-contacte-legacy-item a{
    margin:0!important;color:#fff!important;text-decoration:none!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:17px!important;line-height:1.32!important;font-weight:300!important;
}
.dclinic-contacte-legacy-item .dclinic-contact-icon{
    color:#fff!important;font-size:10px!important;line-height:1!important;
}
.dclinic-contacte-gallery-legacy{max-width:none!important;margin:0!important;padding:0!important;}
.dclinic-contacte-gallery-legacy .dclinic-contacte-gallery-stage{
    aspect-ratio:720/390!important;background:#666!important;
}
.dclinic-contacte-gallery-legacy .dclinic-contacte-gallery-slide img{
    object-fit:cover!important;object-position:center center!important;
}
.dclinic-contacte-gallery-legacy .dclinic-contacte-gallery-arrow{
    color:rgba(255,255,255,.7)!important;font-size:36px!important;
}
.dclinic-contacte-gallery-legacy .dclinic-contacte-gallery-dots{
    margin-top:-22px!important;padding-bottom:8px!important;
}
.dclinic-contacte-gallery-legacy .dclinic-contacte-gallery-dot{
    background:#8d8d8d!important;width:9px!important;height:9px!important;min-width:9px!important;
}
.dclinic-contacte-gallery-legacy .dclinic-contacte-gallery-dot.is-active{background:#739f18!important;}

.dclinic-imported-contacte .dclinic-contacte-form-wrap{
    max-width:1080px!important;padding:58px 24px 72px!important;
}
.dclinic-imported-contacte .dclinic-contacte-form-wrap h2{
    margin:0 0 44px!important;font-size:29px!important;color:#47752d!important;
}
.dclinic-contacte-form-layout{
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:18px!important;align-items:stretch!important;
}
.dclinic-contacte-form-left{min-width:0!important;padding-right:0!important;}
.dclinic-contacte-form-doctor{min-width:0!important;overflow:hidden!important;}
.dclinic-contacte-form-doctor img{
    display:block!important;width:100%!important;height:100%!important;
    min-height:660px!important;object-fit:cover!important;object-position:center top!important;
}
/* On Contacte the legacy form fields are one below another. */
.dclinic-imported-contacte .dclinic-contacte-form-grid{
    display:grid!important;grid-template-columns:1fr!important;gap:15px!important;
}
.dclinic-imported-contacte .dclinic-contacte-field-full{grid-column:auto!important;}
.dclinic-imported-contacte .dclinic-contacte-field input{height:39px!important;}
.dclinic-imported-contacte .dclinic-contacte-field textarea{min-height:180px!important;}
.dclinic-imported-contacte .dclinic-contacte-legal{font-size:10px!important;line-height:1.2!important;}
.dclinic-imported-contacte .dclinic-contacte-submit{margin-top:23px!important;}

@media(max-width:980px){
    .dclinic-contacte-legacy-grid{grid-template-columns:1fr!important;max-width:760px!important;padding:50px 24px 58px!important;gap:34px!important;}
    .dclinic-contacte-form-layout{grid-template-columns:1fr!important;}
    .dclinic-contacte-form-doctor img{min-height:0!important;height:auto!important;}
}
@media(max-width:767px){
    .dclinic-imported-contacte .dclinic-contacte-map iframe{min-height:380px!important;height:380px!important;}
    .dclinic-contacte-legacy-grid{max-width:100%!important;padding:42px 22px 48px!important;}
    .dclinic-contacte-legacy-item h3{font-size:16px!important;}
    .dclinic-contacte-legacy-item p,.dclinic-contacte-legacy-item a{font-size:15px!important;}
    .dclinic-contacte-gallery-legacy .dclinic-contacte-gallery-stage{aspect-ratio:4/3!important;}
}

/* Contacte legacy icons — v1.54 */
.dclinic-contacte-legacy-item .dclinic-contact-icon{
    width:18px!important;height:18px!important;min-width:18px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    color:#fff!important;font-size:0!important;line-height:1!important;
}
.dclinic-contacte-legacy-item .dclinic-contact-icon svg{
    width:18px!important;height:18px!important;display:block!important;
}
.dclinic-contacte-phone-line{
    display:flex!important;align-items:center!important;gap:5px!important;
}
.dclinic-contacte-phone-line + .dclinic-contacte-phone-line{margin-top:1px!important;}
.dclinic-contact-line-icon{
    width:15px!important;height:15px!important;min-width:15px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    color:#fff!important;
}
.dclinic-contact-line-icon svg{width:15px!important;height:15px!important;display:block!important;}

/* Clínica legacy reconstruction — v1.55 */
.dclinic-imported-clinica .dclinic-clinica-hero{
    background:#fff!important;
}
.dclinic-imported-clinica .dclinic-clinica-hero-row,
.dclinic-imported-clinica .dclinic-clinica-gallery-title,
.dclinic-imported-clinica .dclinic-clinica-gallery-row,
.dclinic-imported-clinica .dclinic-clinica-location-row,
.dclinic-imported-clinica .dclinic-clinica-tour-row{
    margin-left:auto!important;
    margin-right:auto!important;
}
.dclinic-imported-clinica .dclinic-clinica-title,
.dclinic-imported-clinica .dclinic-clinica-title h1{
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    color:#3d762d!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:42px!important;
    line-height:1.15!important;
    font-weight:500!important;
    text-transform:uppercase!important;
}
.dclinic-imported-clinica .dclinic-clinica-rule{
    margin:14px 0 9px!important;
}
.dclinic-imported-clinica .dclinic-clinica-title-rule{
    width:100px!important;
    height:1px!important;
    background:#9b9b9b!important;
    margin:0 auto!important;
}
.dclinic-imported-clinica .dclinic-clinica-subtitle,
.dclinic-imported-clinica .dclinic-clinica-subtitle h2{
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    color:#aaa!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:22px!important;
    line-height:1.3!important;
    font-weight:300!important;
}

/* Alternating full-width intro rows */
.dclinic-imported-clinica .dclinic-clinica-feature-section,
.dclinic-imported-clinica .dclinic-clinica-feature-row{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-feature-row{
    gap:0!important;
    align-items:stretch!important;
}
.dclinic-imported-clinica .dclinic-clinica-feature-copy-col,
.dclinic-imported-clinica .dclinic-clinica-feature-image-col{
    width:50%!important;
    max-width:50%!important;
    flex:0 0 50%!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.dclinic-imported-clinica .dclinic-clinica-feature-copy{
    width:90%!important;
    max-width:900px!important;
    margin:0 auto!important;
    padding:42px 30px!important;
}
.dclinic-imported-clinica .dclinic-clinica-feature-copy p{
    margin:0!important;
    color:#3f762d!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:20px!important;
    line-height:1.16!important;
    font-weight:400!important;
    text-align:center!important;
}
.dclinic-imported-clinica .dclinic-clinica-feature-image,
.dclinic-imported-clinica .dclinic-clinica-feature-image .et_pb_image_wrap{
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    margin:0!important;
    display:block!important;
}
.dclinic-imported-clinica .dclinic-clinica-feature-image img{
    width:100%!important;
    height:410px!important;
    min-height:410px!important;
    object-fit:cover!important;
    object-position:center center!important;
    display:block!important;
    margin:0!important;
}

/* Spaces gallery */
.dclinic-imported-clinica .dclinic-clinica-gallery{
    background:#fff!important;
}
.dclinic-imported-clinica .dclinic-clinica-gallery-heading,
.dclinic-imported-clinica .dclinic-clinica-gallery-heading h2{
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    color:#3f762d!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:29px!important;
    line-height:1.2!important;
    font-weight:500!important;
}
.dclinic-imported-clinica .dclinic-clinica-gallery-title{
    margin-bottom:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-gallery-row{
    width:90%!important;
    max-width:1080px!important;
    gap:38px!important;
    margin-bottom:0!important;
    align-items:stretch!important;
}
.dclinic-imported-clinica .dclinic-clinica-gallery-row:last-child{
    margin-bottom:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-col{
    min-width:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-image,
.dclinic-imported-clinica .dclinic-clinica-space-image .et_pb_image_wrap{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    display:block!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-image img{
    width:100%!important;
    height:240px!important;
    min-height:240px!important;
    object-fit:cover!important;
    object-position:center center!important;
    display:block!important;
    margin:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-location{
    max-width:980px!important;
    margin:0 auto!important;
    text-align:center!important;
}
.dclinic-imported-clinica .dclinic-clinica-location p{
    margin:0!important;
    color:#3f762d!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:18px!important;
    line-height:1.45!important;
}

/* Tour */
.dclinic-imported-clinica .dclinic-clinica-tour{
    background:#ededed!important;
}
.dclinic-imported-clinica .dclinic-clinica-tour-title,
.dclinic-imported-clinica .dclinic-clinica-tour-title h2{
    margin:0 0 18px!important;
    padding:0!important;
    text-align:center!important;
    color:#3f762d!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:31px!important;
    line-height:1.2!important;
    font-weight:500!important;
}
.dclinic-imported-clinica .dclinic-tour-link{
    text-align:center!important;
    margin:0 0 22px!important;
}
.dclinic-imported-clinica .dclinic-tour-link a{
    display:inline-flex!important;
    align-items:center!important;
    gap:10px!important;
    padding:13px 22px!important;
    background:#fff!important;
    color:#666!important;
    border-radius:4px!important;
    text-decoration:none!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:14px!important;
    font-weight:500!important;
}
.dclinic-imported-clinica .dclinic-tour-button-icon{
    color:#666!important;
    font-size:18px!important;
    line-height:1!important;
}
.dclinic-imported-clinica .dclinic-tour-frame{
    width:100%!important;
    max-width:1100px!important;
    margin:0 auto!important;
}
.dclinic-imported-clinica .dclinic-tour-frame iframe{
    width:100%!important;
    height:500px!important;
    border:0!important;
    display:block!important;
}

@media (max-width:980px){
    .dclinic-imported-clinica .dclinic-clinica-title,
    .dclinic-imported-clinica .dclinic-clinica-title h1{font-size:36px!important;}
    .dclinic-imported-clinica .dclinic-clinica-feature-copy-col,
    .dclinic-imported-clinica .dclinic-clinica-feature-image-col{
        width:100%!important;max-width:100%!important;flex:0 0 100%!important;
    }
    .dclinic-imported-clinica .dclinic-clinica-feature-row-two .dclinic-clinica-feature-image-col{order:1!important;}
    .dclinic-imported-clinica .dclinic-clinica-feature-row-two .dclinic-clinica-feature-copy-col{order:2!important;}
    .dclinic-imported-clinica .dclinic-clinica-feature-image img{height:auto!important;min-height:0!important;}
    .dclinic-imported-clinica .dclinic-clinica-gallery-row{gap:22px!important;margin-bottom:22px!important;}
    .dclinic-imported-clinica .dclinic-clinica-space-col{width:48%!important;max-width:48%!important;flex:0 0 48%!important;}
    .dclinic-imported-clinica .dclinic-clinica-space-image img{height:auto!important;min-height:0!important;}
    .dclinic-imported-clinica .dclinic-tour-frame iframe{height:430px!important;}
}
@media (max-width:767px){
    .dclinic-imported-clinica .dclinic-clinica-title,
    .dclinic-imported-clinica .dclinic-clinica-title h1{font-size:31px!important;}
    .dclinic-imported-clinica .dclinic-clinica-subtitle,
    .dclinic-imported-clinica .dclinic-clinica-subtitle h2{font-size:19px!important;}
    .dclinic-imported-clinica .dclinic-clinica-feature-copy{padding:34px 20px!important;}
    .dclinic-imported-clinica .dclinic-clinica-feature-copy p{font-size:17px!important;line-height:1.35!important;}
    .dclinic-imported-clinica .dclinic-clinica-space-col{width:100%!important;max-width:100%!important;flex:0 0 100%!important;}
    .dclinic-imported-clinica .dclinic-clinica-tour-title,
    .dclinic-imported-clinica .dclinic-clinica-tour-title h2{font-size:25px!important;}
    .dclinic-imported-clinica .dclinic-tour-frame iframe{height:360px!important;}
}


/* Clínica v1.58 — galería legacy 4x2 + tour virtual estable */
.dclinic-imported-clinica .dclinic-clinica-gallery-grid-row{
    width:90%!important;
    max-width:1080px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-grid-wrap,
.dclinic-imported-clinica .dclinic-clinica-space-grid-wrap .et_pb_text_inner{
    width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:54px 38px!important;
    width:100%!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-item{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    overflow:hidden!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-item img{
    display:block!important;
    width:100%!important;
    height:240px!important;
    margin:0!important;
    object-fit:cover!important;
    object-position:center center!important;
}
.dclinic-imported-clinica .dclinic-clinica-location-section,
.dclinic-imported-clinica .dclinic-clinica-location-row,
.dclinic-imported-clinica .dclinic-clinica-location{
    display:none!important;
}
.dclinic-imported-clinica .dclinic-tour-frame{
    width:100%!important;
    max-width:1100px!important;
    margin:0 auto!important;
    background:#fff!important;
}
.dclinic-imported-clinica .dclinic-tour-frame iframe{
    width:100%!important;
    height:500px!important;
    border:0!important;
    display:block!important;
}
@media (max-width:980px){
    .dclinic-imported-clinica .dclinic-clinica-space-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important;}
    .dclinic-imported-clinica .dclinic-clinica-space-item img{height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;}
}
@media (max-width:767px){
    .dclinic-imported-clinica .dclinic-clinica-space-grid{grid-template-columns:1fr!important;}
    .dclinic-imported-clinica .dclinic-clinica-space-item img{aspect-ratio:auto!important;height:auto!important;}
}

/* v1.59 — Clínica / Els nostres espais: layout legacy 4x2 */
.dclinic-imported-clinica .dclinic-clinica-gallery-row{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:36px!important;
    width:90%!important;
    max-width:1080px!important;
    margin:0 auto!important;
}
.dclinic-imported-clinica .dclinic-clinica-gallery-row:last-child{
    margin-bottom:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-gallery-row > .et_pb_column,
.dclinic-imported-clinica .dclinic-clinica-space-col{
    flex:0 0 calc((100% - 108px)/4)!important;
    width:calc((100% - 108px)/4)!important;
    max-width:calc((100% - 108px)/4)!important;
    margin:0!important;
    min-width:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-image,
.dclinic-imported-clinica .dclinic-clinica-space-image .et_pb_image_wrap{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    display:block!important;
}
.dclinic-imported-clinica .dclinic-clinica-space-image img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
}
@media (max-width:980px){
    .dclinic-imported-clinica .dclinic-clinica-gallery-row{
        flex-wrap:wrap!important;
        gap:28px!important;
        margin-bottom:28px!important;
    }
    .dclinic-imported-clinica .dclinic-clinica-gallery-row > .et_pb_column,
    .dclinic-imported-clinica .dclinic-clinica-space-col{
        flex:0 0 calc(50% - 14px)!important;
        width:calc(50% - 14px)!important;
        max-width:calc(50% - 14px)!important;
    }
}
@media (max-width:600px){
    .dclinic-imported-clinica .dclinic-clinica-gallery-row > .et_pb_column,
    .dclinic-imported-clinica .dclinic-clinica-space-col{
        flex:0 0 100%!important;
        width:100%!important;
        max-width:100%!important;
    }
}

/* =========================================================
   v1.63 — Clínica / Els nostres espais: galería legacy 3x3
   ========================================================= */
.dclinic-imported-clinica .dclinic-clinica-gallery-grid-row{
    width:94%!important;
    max-width:1100px!important;
    margin:0 auto!important;
    padding:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-gallery-grid-html,
.dclinic-imported-clinica .dclinic-clinica-gallery-grid-html .et_pb_text_inner{
    width:100%!important;
    margin:0!important;
    padding:0!important;
}
.dclinic-imported-clinica .dclinic-clinica-legacy-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:1px!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
}
.dclinic-imported-clinica .dclinic-clinica-legacy-item{
    display:block!important;
    margin:0!important;
    padding:0!important;
    width:100%!important;
    aspect-ratio:16/9!important;
    overflow:hidden!important;
    background:#f4f4f4!important;
}
.dclinic-imported-clinica .dclinic-clinica-legacy-item img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    object-fit:cover!important;
    object-position:center center!important;
}
@media (max-width:980px){
    .dclinic-imported-clinica .dclinic-clinica-legacy-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:2px!important;
    }
}
@media (max-width:600px){
    .dclinic-imported-clinica .dclinic-clinica-legacy-grid{
        grid-template-columns:1fr!important;
    }
}


/* =========================================================
   v1.64 — Clínica / Els nostres espais: lightbox
   ========================================================= */

.dclinic-imported-clinica .dclinic-clinica-lightbox-link{
    display:block!important;
    width:100%!important;
    height:100%!important;
    cursor:zoom-in!important;
    text-decoration:none!important;
}

.dclinic-imported-clinica .dclinic-clinica-lightbox-link img{
    transition:opacity .18s ease!important;
}

.dclinic-imported-clinica .dclinic-clinica-lightbox-link:hover img{
    opacity:.90!important;
}

/* Lock page scroll while lightbox is open */
html.dclinic-lightbox-open,
body.dclinic-lightbox-open{
    overflow:hidden!important;
}

/* Full-screen backdrop */
.dclinic-clinica-lightbox{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:38px 62px;
    background:rgba(20,20,20,.88);
}

.dclinic-clinica-lightbox.is-open{
    display:flex;
}

/* Main dialog */
.dclinic-clinica-lightbox-dialog{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:min(1320px, calc(100vw - 124px));
    height:min(86vh, 850px);
    outline:none;
}

.dclinic-clinica-lightbox-image{
    display:block;
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    background:#fff;
    box-shadow:0 8px 32px rgba(0,0,0,.45);
}

/* Top close control */
.dclinic-clinica-lightbox-close{
    position:fixed;
    top:18px;
    right:22px;
    z-index:3;
    width:42px;
    height:42px;
    padding:0!important;
    border:0!important;
    border-radius:50%;
    background:rgba(255,255,255,.94)!important;
    color:#444!important;
    font:400 31px/39px Arial,sans-serif!important;
    text-align:center;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.28);
}

/* Prev/next */
.dclinic-clinica-lightbox-prev,
.dclinic-clinica-lightbox-next{
    position:fixed;
    top:50%;
    z-index:3;
    transform:translateY(-50%);
    width:54px;
    height:72px;
    padding:0!important;
    border:0!important;
    background:rgba(0,0,0,.25)!important;
    color:#fff!important;
    font:300 54px/66px Arial,sans-serif!important;
    cursor:pointer;
    user-select:none;
}

.dclinic-clinica-lightbox-prev{ left:12px; }
.dclinic-clinica-lightbox-next{ right:12px; }

.dclinic-clinica-lightbox-prev:hover,
.dclinic-clinica-lightbox-next:hover{
    background:rgba(0,0,0,.45)!important;
}

/* Bottom counter, similar to the old gallery's 1/9 indicator */
.dclinic-clinica-lightbox-counter{
    position:fixed;
    left:50%;
    bottom:16px;
    transform:translateX(-50%);
    z-index:3;
    min-width:62px;
    padding:5px 10px;
    border-radius:14px;
    background:rgba(0,0,0,.48);
    color:#fff;
    font-family:var(--dclinic-font-brand)!important;
    font-size:13px!important;
    line-height:1.2!important;
    text-align:center;
}

@media (max-width:767px){
    .dclinic-clinica-lightbox{
        padding:54px 18px 48px;
    }

    .dclinic-clinica-lightbox-dialog{
        width:100%;
        height:calc(100vh - 102px);
    }

    .dclinic-clinica-lightbox-prev,
    .dclinic-clinica-lightbox-next{
        width:42px;
        height:62px;
        font-size:42px!important;
        line-height:56px!important;
    }

    .dclinic-clinica-lightbox-prev{left:3px;}
    .dclinic-clinica-lightbox-next{right:3px;}

    .dclinic-clinica-lightbox-close{
        top:8px;
        right:8px;
    }
}


/* =========================================================
   v1.68 — Home spacing refinement
   Compact rhythm inspired by the legacy site.
   Source-level override inside the importer stylesheet.
   ========================================================= */

/* "Què oferim?" */
.dclinic-imported-home .dclinic-specialties{
    padding-top:34px!important;
    padding-bottom:38px!important;
}

.dclinic-imported-home .dclinic-specialties .dclinic-title-row,
.dclinic-imported-home .dclinic-title-row{
    margin-top:0!important;
    margin-bottom:22px!important;
}

.dclinic-imported-home .dclinic-specialties-row{
    margin-top:0!important;
    margin-bottom:30px!important;
}

/* "Equip professional" */
.dclinic-imported-home .dclinic-team-intro-section{
    padding-top:32px!important;
    padding-bottom:20px!important;
}

.dclinic-imported-home .dclinic-team-title-row{
    margin-top:0!important;
    margin-bottom:18px!important;
}

.dclinic-imported-home .dclinic-team-intro{
    margin-top:0!important;
    margin-bottom:26px!important;
}

.dclinic-imported-home .dclinic-team-intro p{
    margin-top:0!important;
    margin-bottom:0!important;
}

/* Founder row */
.dclinic-imported-home .dclinic-founder-row{
    margin-top:18px!important;
    margin-bottom:30px!important;
}

/* Team grid */
.dclinic-imported-home .dclinic-team-grid{
    margin-top:22px!important;
}

/* Contact section, keep consistent with legacy compactness */
.dclinic-imported-home .dclinic-contact-section{
    padding-top:34px!important;
    padding-bottom:34px!important;
}

.dclinic-imported-home .dclinic-contact-heading,
.dclinic-imported-home .dclinic-contact-section .dclinic-title-row{
    margin-bottom:20px!important;
}

/* Tablet */
@media (max-width:980px){
    .dclinic-imported-home .dclinic-specialties{
        padding-top:30px!important;
        padding-bottom:32px!important;
    }

    .dclinic-imported-home .dclinic-specialties .dclinic-title-row,
    .dclinic-imported-home .dclinic-title-row{
        margin-bottom:18px!important;
    }

    .dclinic-imported-home .dclinic-team-intro-section{
        padding-top:28px!important;
        padding-bottom:18px!important;
    }

    .dclinic-imported-home .dclinic-team-title-row{
        margin-bottom:16px!important;
    }

    .dclinic-imported-home .dclinic-team-intro{
        margin-bottom:22px!important;
    }

    .dclinic-imported-home .dclinic-founder-row{
        margin-top:16px!important;
        margin-bottom:26px!important;
    }
}

/* Mobile */
@media (max-width:767px){
    .dclinic-imported-home .dclinic-specialties{
        padding-top:26px!important;
        padding-bottom:28px!important;
    }

    .dclinic-imported-home .dclinic-specialties .dclinic-title-row,
    .dclinic-imported-home .dclinic-title-row{
        margin-bottom:14px!important;
    }

    .dclinic-imported-home .dclinic-team-intro-section{
        padding-top:24px!important;
        padding-bottom:14px!important;
    }

    .dclinic-imported-home .dclinic-team-title-row{
        margin-bottom:14px!important;
    }

    .dclinic-imported-home .dclinic-team-intro{
        margin-bottom:18px!important;
    }

    .dclinic-imported-home .dclinic-founder-row{
        margin-top:14px!important;
        margin-bottom:22px!important;
    }

    .dclinic-imported-home .dclinic-contact-section{
        padding-top:28px!important;
        padding-bottom:28px!important;
    }
}


/* =========================================================
   v1.69 — Home spacing / Divi 5 flex-gap correction
   ========================================================= */

/*
 * Divi 5 renders these imported columns/rows as flex containers.
 * The flex gap was stacking with our margins, which is why v1.68
 * could visually create MORE space. Neutralize vertical gaps in
 * the affected Home areas, then define the intended rhythm.
 */

/* ---------------------------------------------------------
   QUÈ OFERIM?
   --------------------------------------------------------- */

.dclinic-imported-home .dclinic-specialties{
    padding:32px 0 38px!important;
}

.dclinic-imported-home .dclinic-specialties .dclinic-title-row{
    width:80%!important;
    max-width:1160px!important;
    margin:0 auto 18px!important;
    padding:0!important;
    min-height:0!important;
    gap:0!important;
    row-gap:0!important;
}

.dclinic-imported-home .dclinic-specialties .dclinic-title-row > .et_pb_column{
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    gap:0!important;
    row-gap:0!important;
}

.dclinic-imported-home .dclinic-specialties .dclinic-title-row .dclinic-section-title{
    margin:0!important;
    padding:0!important;
}

.dclinic-imported-home .dclinic-specialties-row{
    margin:0 auto 26px!important;
    padding:0!important;
    min-height:0!important;
}

.dclinic-imported-home .dclinic-specialties-row:last-child{
    margin-bottom:0!important;
}


/* ---------------------------------------------------------
   EQUIP PROFESSIONAL
   --------------------------------------------------------- */

.dclinic-imported-home .dclinic-team-intro-section{
    padding:30px 0 24px!important;
}

/* Title + intro paragraph live inside the same Divi flex column. */
.dclinic-imported-home .dclinic-team-title-row{
    width:80%!important;
    max-width:1160px!important;
    margin:0 auto 22px!important;
    padding:0!important;
    min-height:0!important;
    gap:0!important;
    row-gap:0!important;
}

.dclinic-imported-home .dclinic-team-title-row > .et_pb_column{
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    gap:0!important;
    row-gap:0!important;
}

.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title{
    margin:0!important;
    padding:0!important;
}

.dclinic-imported-home .dclinic-team-intro{
    margin:10px 0 0!important;
    padding:0!important;
}

.dclinic-imported-home .dclinic-team-intro p{
    margin:0!important;
    padding:0!important;
}

/* Founder row: no artificial vertical margin; section rhythm handles it. */
.dclinic-imported-home .dclinic-founder-row{
    margin:0 auto!important;
    padding:0!important;
    min-height:0!important;
    column-gap:28px!important;
    row-gap:0!important;
    align-items:flex-start!important;
}

.dclinic-imported-home .dclinic-founder-row > .et_pb_column{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
    row-gap:0!important;
}

/* Do not add another margin before the team grid. */
.dclinic-imported-home .dclinic-team-grid{
    margin-top:0!important;
}


/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.dclinic-imported-home .dclinic-contact-section{
    padding-top:32px!important;
    padding-bottom:32px!important;
}

.dclinic-imported-home .dclinic-contact-section .dclinic-title-row,
.dclinic-imported-home .dclinic-contact-heading{
    margin-bottom:18px!important;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width:980px){
    .dclinic-imported-home .dclinic-specialties{
        padding:28px 0 32px!important;
    }

    .dclinic-imported-home .dclinic-specialties .dclinic-title-row{
        margin-bottom:16px!important;
    }

    .dclinic-imported-home .dclinic-team-intro-section{
        padding:26px 0 20px!important;
    }

    .dclinic-imported-home .dclinic-team-title-row{
        margin-bottom:18px!important;
    }

    .dclinic-imported-home .dclinic-team-intro{
        margin-top:8px!important;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width:767px){
    .dclinic-imported-home .dclinic-specialties{
        padding:24px 0 28px!important;
    }

    .dclinic-imported-home .dclinic-specialties .dclinic-title-row{
        margin-bottom:14px!important;
    }

    .dclinic-imported-home .dclinic-team-intro-section{
        padding:22px 0 18px!important;
    }

    .dclinic-imported-home .dclinic-team-title-row{
        margin-bottom:16px!important;
    }

    .dclinic-imported-home .dclinic-team-intro{
        margin-top:7px!important;
    }

    .dclinic-imported-home .dclinic-founder-row{
        row-gap:18px!important;
    }

    .dclinic-imported-home .dclinic-contact-section{
        padding-top:26px!important;
        padding-bottom:26px!important;
    }
}


/* =========================================================
   v1.70 — CLÍNICA ROW SPACING CLEANUP
   Authoritative page-scoped spacing layer.
   ========================================================= */

/*
 * Older Clínica importer revisions accumulated large bottom margins
 * on Divi rows. Normalize row spacing here while preserving widths,
 * horizontal centering and intentional section padding.
 */

/* Every Divi row inside Clínica: no implicit vertical margin. */
.dclinic-imported-clinica .et_pb_row{
    margin-top:0!important;
    margin-bottom:0!important;
}

/* Known structural Clínica rows. */
.dclinic-imported-clinica .dclinic-clinica-hero-row,
.dclinic-imported-clinica .dclinic-clinica-feature-row,
.dclinic-imported-clinica .dclinic-clinica-gallery-title,
.dclinic-imported-clinica .dclinic-clinica-gallery-grid-row,
.dclinic-imported-clinica .dclinic-clinica-gallery-row,
.dclinic-imported-clinica .dclinic-clinica-location-row,
.dclinic-imported-clinica .dclinic-clinica-tour-row{
    margin-top:0!important;
    margin-bottom:0!important;
}

/* Clínica titles: remove accumulated title/module spacing. */
.dclinic-imported-clinica .dclinic-clinica-title,
.dclinic-imported-clinica .dclinic-clinica-subtitle,
.dclinic-imported-clinica .dclinic-clinica-gallery-heading,
.dclinic-imported-clinica .dclinic-clinica-tour-title,
.dclinic-imported-clinica .dclinic-section-title,
.dclinic-imported-clinica .dclinic-page-title,
.dclinic-imported-clinica .dclinic-item-title{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
}

/* Actual heading tags. */
.dclinic-imported-clinica h1,
.dclinic-imported-clinica h2,
.dclinic-imported-clinica h3,
.dclinic-imported-clinica h4,
.dclinic-imported-clinica .et_pb_module_header{
    margin-bottom:0!important;
    padding-bottom:0!important;
}

/* Divi heading/text modules that contain page titles. */
.dclinic-imported-clinica .et_pb_heading,
.dclinic-imported-clinica .et_pb_text.dclinic-clinica-title,
.dclinic-imported-clinica .et_pb_text.dclinic-clinica-subtitle,
.dclinic-imported-clinica .et_pb_heading.dclinic-clinica-gallery-heading,
.dclinic-imported-clinica .et_pb_heading.dclinic-clinica-tour-title{
    margin-bottom:0!important;
}

/* "Els nostres espais": remove the old 46px title-row gap. */
.dclinic-imported-clinica .dclinic-clinica-gallery-title{
    padding-bottom:0!important;
    gap:0!important;
    row-gap:0!important;
}

/* Gallery starts directly after its title row. */
.dclinic-imported-clinica .dclinic-clinica-gallery-grid-row{
    padding-top:0!important;
}

/* Compact underline below the main CLÍNICA title. */
.dclinic-imported-clinica .dclinic-clinica-rule{
    margin-top:8px!important;
    margin-bottom:8px!important;
}

/*
 * Section padding is intentionally left unchanged.
 * That remains the controlled separation between major page blocks.
 */


/* =========================================================
   v1.71 — SPECIALTY HEADING / MODULE SPACING CLEANUP
   Applies to Ortodòncia, Implantologia, Periodòncia, etc.
   ========================================================= */

/*
 * Specialty pages inherited spacing from several generations of
 * importer CSS. Some gaps come from rows, others from Divi heading
 * modules, heading tags, or title modules themselves.
 *
 * This layer removes bottom spacing from titles/headings only.
 * It intentionally does NOT zero margins on images, cards or body-copy
 * modules, so treatment layouts keep their useful separation.
 */

/* ---------------------------------------------------------
   1. Heading tags
   --------------------------------------------------------- */

.dclinic-imported-specialty h1,
.dclinic-imported-specialty h2,
.dclinic-imported-specialty h3,
.dclinic-imported-specialty h4,
.dclinic-imported-specialty .et_pb_module_header{
    margin-bottom:0!important;
    padding-bottom:0!important;
}


/* ---------------------------------------------------------
   2. Divi heading modules
   --------------------------------------------------------- */

.dclinic-imported-specialty .et_pb_heading{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
}

.dclinic-imported-specialty .et_pb_heading_container{
    margin-bottom:0!important;
    padding-bottom:0!important;
}


/* ---------------------------------------------------------
   3. Known specialty title modules
   --------------------------------------------------------- */

.dclinic-imported-specialty .dclinic-implants-title,
.dclinic-imported-specialty .dclinic-implants-subtitle,
.dclinic-imported-specialty .dclinic-implants-intro-title,
.dclinic-imported-specialty .dclinic-implants-types-title,
.dclinic-imported-specialty .dclinic-implants-gallery-title,
.dclinic-imported-specialty .dclinic-ortho-intro-title,
.dclinic-imported-specialty .dclinic-section-title,
.dclinic-imported-specialty .dclinic-page-title,
.dclinic-imported-specialty .dclinic-item-title{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
}


/* ---------------------------------------------------------
   4. Heading modules directly inside columns
   --------------------------------------------------------- */

.dclinic-imported-specialty .et_pb_column > .et_pb_heading,
.dclinic-imported-specialty .et_pb_column > .dclinic-implants-intro-title,
.dclinic-imported-specialty .et_pb_column > .dclinic-implants-types-title,
.dclinic-imported-specialty .et_pb_column > .dclinic-implants-gallery-title{
    margin-bottom:0!important;
}


/* ---------------------------------------------------------
   5. Title/header rows only
   --------------------------------------------------------- */

/*
 * We do NOT zero every specialty row because treatment-card rows
 * intentionally use spacing. Only rows whose job is primarily a
 * section/page heading are normalized.
 */

.dclinic-imported-specialty .dclinic-implants-head-row,
.dclinic-imported-specialty .dclinic-implants-types-title-row,
.dclinic-imported-specialty .dclinic-implants-gallery-title-row,
.dclinic-imported-specialty .dclinic-ortho-title-row,
.dclinic-imported-specialty .dclinic-title-row,
.dclinic-imported-specialty .dclinic-page-title-row{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
    gap:0!important;
    row-gap:0!important;
}


/* ---------------------------------------------------------
   6. Intro title -> body copy
   --------------------------------------------------------- */

/*
 * The old importer used margin-bottom:18px on the title itself.
 * Keep the title at zero and let the following copy control any
 * deliberate separation.
 */

.dclinic-imported-specialty .dclinic-implants-intro-title,
.dclinic-imported-specialty .dclinic-implants-intro-title h2{
    margin:0!important;
    padding-bottom:0!important;
}


/* ---------------------------------------------------------
   7. Treatment/card titles
   --------------------------------------------------------- */

.dclinic-imported-specialty .dclinic-implant-card-copy h3,
.dclinic-imported-specialty .dclinic-runtime-type-copy h3{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
}


/* ---------------------------------------------------------
   8. Flex-gap protection on title containers
   --------------------------------------------------------- */

.dclinic-imported-specialty .dclinic-implants-head-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-implants-types-title-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-implants-gallery-title-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-title-row > .et_pb_column,
.dclinic-imported-specialty .dclinic-page-title-row > .et_pb_column{
    row-gap:0!important;
}


/* =========================================================
   v1.72 — VALIDATED SPACING CONSOLIDATION
   ========================================================= */

/* CLÍNICA — controlled spacing after row/flex cleanup */
.dclinic-imported-clinica .dclinic-clinica-rule{
    margin-top:6px!important;
    margin-bottom:12px!important;
}

.dclinic-imported-clinica .dclinic-clinica-gallery{
    row-gap:14px!important;
    gap:14px!important;
}

.dclinic-imported-clinica .dclinic-clinica-gallery-title{
    margin-bottom:0!important;
    padding-bottom:0!important;
}

.dclinic-imported-clinica .dclinic-clinica-gallery-grid-row{
    margin-top:0!important;
    padding-top:0!important;
}

/* IMPLANTS — brands section */
.dclinic-imported-specialty .dclinic-implants-brands-copy{
    margin-bottom:12px!important;
}

.dclinic-imported-specialty .dclinic-implants-brands{
    padding-top:24px!important;
    padding-bottom:24px!important;
}

.dclinic-imported-specialty .dclinic-implants-brands-row{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
}

/* ORTODÒNCIA — treatment cards */
.dclinic-imported-specialty .dclinic-ortho-treatment-row .et_pb_column{
    row-gap:8px!important;
    gap:8px!important;
}

.dclinic-imported-specialty .dclinic-ortho-treatment-title,
.dclinic-imported-specialty .dclinic-ortho-treatment-title h3{
    margin-bottom:0!important;
    padding-bottom:0!important;
}

.dclinic-imported-specialty .dclinic-ortho-treatment-copy{
    margin-top:0!important;
    padding-top:0!important;
}


/* =========================================================
   v1.73 — TREATMENT CARD SPACING + PREVENCIÓ IMAGES
   ========================================================= */

/* ESTÈTICA DENTAL */
.dclinic-imported-specialty .dclinic-estetica-treatment-row .et_pb_column{
    row-gap:8px!important;
    gap:8px!important;
}
.dclinic-imported-specialty .dclinic-estetica-treatment-title,
.dclinic-imported-specialty .dclinic-estetica-treatment-title h3{
    margin-bottom:0!important;
    padding-bottom:0!important;
}
.dclinic-imported-specialty .dclinic-estetica-treatment-copy{
    margin-top:0!important;
    padding-top:0!important;
}

/* ODONTOPEDIATRIA */
.dclinic-imported-specialty .dclinic-odonto-treatment-row .et_pb_column{
    row-gap:8px!important;
    gap:8px!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-title,
.dclinic-imported-specialty .dclinic-odonto-treatment-title h3{
    margin-bottom:0!important;
    padding-bottom:0!important;
}
.dclinic-imported-specialty .dclinic-odonto-treatment-copy{
    margin-top:0!important;
    padding-top:0!important;
}

/* PERIODÒNCIA */
.dclinic-imported-specialty .dclinic-periodoncia-treatment-row .et_pb_column{
    row-gap:8px!important;
    gap:8px!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-treatment-title,
.dclinic-imported-specialty .dclinic-periodoncia-treatment-title h3{
    margin-bottom:0!important;
    padding-bottom:0!important;
}
.dclinic-imported-specialty .dclinic-periodoncia-treatment-copy{
    margin-top:0!important;
    padding-top:0!important;
}

/* HIGIENE I PREVENCIÓ */
.dclinic-imported-specialty .dclinic-prevencio-treatment-row .et_pb_column{
    row-gap:8px!important;
    gap:8px!important;
}

.dclinic-imported-specialty .dclinic-prevencio-treatment-title,
.dclinic-imported-specialty .dclinic-prevencio-treatment-title h3{
    margin-bottom:0!important;
    padding-bottom:0!important;
}

.dclinic-imported-specialty .dclinic-prevencio-treatment-copy{
    margin-top:0!important;
    padding-top:0!important;
}

/* Images above the first two cards */
.dclinic-imported-specialty .dclinic-prevencio-treatment-image-module,
.dclinic-imported-specialty .dclinic-prevencio-treatment-image{
    margin:0!important;
    padding:0!important;
}

.dclinic-imported-specialty .dclinic-prevencio-treatment-image img{
    display:block!important;
    width:100%!important;
    height:auto!important;
}

/* First row: reproduce the compact old two-column structure */
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-top{
    align-items:flex-start!important;
}

/* Bottom healthy-habits row: text left, image right */
.dclinic-imported-specialty .dclinic-prevencio-treatment-row-bottom{
    align-items:flex-start!important;
}

.dclinic-imported-specialty .dclinic-prevencio-habits-image-module{
    margin:0!important;
    padding:0!important;
}

.dclinic-imported-specialty .dclinic-prevencio-habits-image img{
    display:block!important;
    width:100%!important;
    height:auto!important;
}

/* Keep the treatment sections compact */
.dclinic-imported-specialty .dclinic-prevencio-types-grid-top{
    padding-top:0!important;
    padding-bottom:24px!important;
}

.dclinic-imported-specialty .dclinic-prevencio-types-grid-bottom{
    padding-top:0!important;
    padding-bottom:40px!important;
}

@media (max-width:767px){
    .dclinic-imported-specialty .dclinic-prevencio-treatment-row .et_pb_column{
        row-gap:8px!important;
    }
}


/* =========================================================
   v1.74 — HOME SCROLL ANIMATIONS
   ========================================================= */

/*
 * Hidden state is only enabled after JS adds
 * .dclinic-home-animations-ready, so content remains visible
 * if JavaScript is unavailable.
 */

body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-anim-right-left,
body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-anim-bottom-top{
    opacity:0;
    will-change:transform,opacity;
}

body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-anim-right-left{
    transform:translate3d(96px,0,0);
    transition:
        opacity .72s ease-out,
        transform .72s cubic-bezier(.22,.61,.36,1);
}

body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-anim-bottom-top{
    transform:translate3d(0,84px,0);
    transition:
        opacity .72s ease-out,
        transform .72s cubic-bezier(.22,.61,.36,1);
}

body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-anim-right-left.is-visible,
body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-anim-bottom-top.is-visible{
    opacity:1;
    transform:translate3d(0,0,0);
}

/* Second Ferrón/MDR animation follows shortly after the first */
body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-founder-mdr-anim{
    transition-delay:.16s;
}

/* Animate each line of three team members as one unit */
body.dclinic-imported-home .dclinic-team-row.dclinic-anim-bottom-top{
    transform-origin:center bottom;
}

@media (prefers-reduced-motion: reduce){
    body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-anim-right-left,
    body.dclinic-imported-home.dclinic-home-animations-ready .dclinic-anim-bottom-top{
        opacity:1!important;
        transform:none!important;
        transition:none!important;
    }
}


/* =========================================================
   v1.75 — CLÍNICA SCROLL ANIMATIONS
   ========================================================= */

body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-left-right,
body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-right-left,
body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-fade{
    opacity:0;
    will-change:transform,opacity;
}

body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-left-right{
    transform:translate3d(-96px,0,0);
    transition:
        opacity .72s ease-out,
        transform .72s cubic-bezier(.22,.61,.36,1);
}

body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-right-left{
    transform:translate3d(96px,0,0);
    transition:
        opacity .72s ease-out,
        transform .72s cubic-bezier(.22,.61,.36,1);
}

body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-fade{
    transform:none;
    transition:opacity .85s ease-out;
}

body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-left-right.is-visible,
body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-right-left.is-visible,
body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-fade.is-visible{
    opacity:1;
    transform:translate3d(0,0,0);
}

@media (prefers-reduced-motion: reduce){
    body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-left-right,
    body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-right-left,
    body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-fade{
        opacity:1!important;
        transform:none!important;
        transition:none!important;
    }
}


/* =========================================================
   v1.76 — CLÍNICA ANIMATION TIMING REFINEMENT
   ========================================================= */

/* Slower, softer motion for the two installation text blocks */
body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-left-right,
body.dclinic-imported-clinica.dclinic-clinica-animations-ready .dclinic-clinica-anim-right-left{
    transition:
        opacity 1.05s ease-out,
        transform 1.05s cubic-bezier(.22,.61,.36,1)!important;
}


/* =========================================================
   v1.77 — SPECIALTY ANIMATION PILOT: IMPLANTS DENTALS
   ========================================================= */

/*
 * The generic animation classes below are intentionally reusable.
 * v1.77 applies them only on the Implants page via JS, but the same
 * system can later be mapped to all other Especialitats pages.
 */

body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-left-right,
body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-right-left,
body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-bottom-top,
body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-top-bottom{
    opacity:0;
    will-change:transform,opacity;
    transition:
        opacity 1.0s ease-out,
        transform 1.0s cubic-bezier(.22,.61,.36,1);
}

body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-left-right{
    transform:translate3d(-96px,0,0);
}

body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-right-left{
    transform:translate3d(96px,0,0);
}

body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-bottom-top{
    transform:translate3d(0,88px,0);
}

body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-top-bottom{
    transform:translate3d(0,-88px,0);
}

body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-left-right.is-visible,
body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-right-left.is-visible,
body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-bottom-top.is-visible,
body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-top-bottom.is-visible{
    opacity:1;
    transform:translate3d(0,0,0);
}

/*
 * Contact animation wrappers/classes are generic on purpose so the
 * same rule can be reused on all subsequent specialty pages.
 */
body.dclinic-imported-specialty .dclinic-specialty-contact-anim-left,
body.dclinic-imported-specialty .dclinic-specialty-contact-anim-right{
    will-change:transform,opacity;
}

@media (prefers-reduced-motion: reduce){
    body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-left-right,
    body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-right-left,
    body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-bottom-top,
    body.dclinic-imported-specialty.dclinic-specialty-animations-ready .dclinic-specialty-anim-top-bottom{
        opacity:1!important;
        transform:none!important;
        transition:none!important;
    }
}


/* =========================================================
   v1.78 — IMPLANTS INTRO ANIMATION TIMING
   ========================================================= */

/* Slower only for "Les últimes tècniques implantològiques" */
body.dclinic-imported-specialty.dclinic-specialty-animations-ready
.dclinic-implants-intro-anim.dclinic-specialty-anim-right-left{
    transition:
        opacity 1.30s ease-out,
        transform 1.30s cubic-bezier(.22,.61,.36,1)!important;
}


/* =========================================================
   v1.80 — ORTODÒNCIA ANIMATIONS
   ========================================================= */

/* Match the slower refined Implants intro timing */
body.dclinic-imported-specialty.dclinic-specialty-animations-ready
.dclinic-ortho-intro-anim.dclinic-specialty-anim-right-left{
    transition:
        opacity 1.30s ease-out,
        transform 1.30s cubic-bezier(.22,.61,.36,1)!important;
}


/* =========================================================
   v1.90 — CONTACTE FULL-WIDTH MAP
   ========================================================= */

/*
 * The iframe was 100% of its Divi content container, not of the viewport.
 * Pull the entire map section out to the viewport edges.
 */
.dclinic-imported-contacte .dclinic-contacte-map-section{
    width:100vw!important;
    max-width:none!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow:hidden!important;
}

.dclinic-imported-contacte .dclinic-contacte-map-row,
.dclinic-imported-contacte .dclinic-contacte-map-module,
.dclinic-imported-contacte .dclinic-contacte-map,
.dclinic-imported-contacte .dclinic-contacte-map .et_pb_text_inner{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}

.dclinic-imported-contacte .dclinic-contacte-map iframe{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border:0!important;
}


/* =========================================================
   v1.91 — LEGAL / POLICIES HEADER SPACING
   Applies to Avís legal, Política de privacitat and Cookies.
   ========================================================= */

/* Divi 5 flex column was adding extra vertical separation. */
.dclinic-imported-legal .dclinic-legal-head-row,
.dclinic-imported-legal .dclinic-legal-head-row > .et_pb_column{
    gap:0!important;
    row-gap:0!important;
}

/* Main legal page title. */
.dclinic-imported-legal .dclinic-legal-title,
.dclinic-imported-legal .dclinic-legal-title h1,
.dclinic-imported-legal .dclinic-legal-title .et_pb_module_header{
    color:#3e752d!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:42px!important;
    line-height:1.12!important;
    font-weight:400!important;
    letter-spacing:.01em!important;
    text-transform:uppercase!important;
    margin:0 0 10px!important;
    padding:0!important;
}

/* Horizontal line between title and subtitle. */
.dclinic-imported-legal .dclinic-legal-title-rule-wrap,
.dclinic-imported-legal .dclinic-legal-title-rule-wrap .et_pb_text_inner{
    margin:0!important;
    padding:0!important;
    line-height:1!important;
}

.dclinic-imported-legal .dclinic-legal-title-rule{
    display:block!important;
    width:90px!important;
    height:1px!important;
    background:#9b9b9b!important;
    margin:0 auto 10px!important;
}

/* "legal" subtitle — match old page size/colour. */
.dclinic-imported-legal .dclinic-legal-subtitle,
.dclinic-imported-legal .dclinic-legal-subtitle h2,
.dclinic-imported-legal .dclinic-legal-subtitle .et_pb_module_header{
    color:#999!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:300!important;
    text-transform:none!important;
    margin:0!important;
    padding:0!important;
}

/* Remove module-level spacing around the three header elements. */
.dclinic-imported-legal .dclinic-legal-head-row .et_pb_heading,
.dclinic-imported-legal .dclinic-legal-head-row .et_pb_text{
    margin-top:0!important;
    margin-bottom:0!important;
}

@media (max-width:767px){
    .dclinic-imported-legal .dclinic-legal-title,
    .dclinic-imported-legal .dclinic-legal-title h1,
    .dclinic-imported-legal .dclinic-legal-title .et_pb_module_header{
        font-size:30px!important;
    }

    .dclinic-imported-legal .dclinic-legal-subtitle,
    .dclinic-imported-legal .dclinic-legal-subtitle h2,
    .dclinic-imported-legal .dclinic-legal-subtitle .et_pb_module_header{
        font-size:17px!important;
    }
}


/* =========================================================
   v1.92 — NEW D'CLINIC BRAND HEADER LOGO
   First branding step: white header + corporate pill logo.
   ========================================================= */

/* Divi classic header logo */
#main-header #logo,
header #logo{
    width:245px!important;
    max-width:245px!important;
    max-height:62px!important;
    height:auto!important;
    object-fit:contain!important;
}

/* Divi 5 / Theme Builder menu logo */
.et_pb_menu__logo,
.et_pb_menu__logo-wrap{
    overflow:visible!important;
}

.et_pb_menu__logo img,
.et_pb_menu__logo-wrap img,
img.custom-logo{
    width:245px!important;
    max-width:245px!important;
    max-height:62px!important;
    height:auto!important;
    object-fit:contain!important;
}

/* Give the pill logo enough breathing room without redesigning the header yet. */
#main-header .container,
.et_pb_menu_inner_container{
    min-height:78px;
}

@media (max-width:980px){
    #main-header #logo,
    header #logo,
    .et_pb_menu__logo img,
    .et_pb_menu__logo-wrap img,
    img.custom-logo{
        width:210px!important;
        max-width:210px!important;
        max-height:54px!important;
    }
}

@media (max-width:767px){
    #main-header #logo,
    header #logo,
    .et_pb_menu__logo img,
    .et_pb_menu__logo-wrap img,
    img.custom-logo{
        width:180px!important;
        max-width:180px!important;
        max-height:46px!important;
    }
}


/* =========================================================
   v1.94 — HEADER LOGO SIZE / POSITION REFINEMENT
   ========================================================= */

/* Desktop: slightly smaller pill logo, better balanced with the menu */
#main-header #logo,
header #logo,
.et_pb_menu__logo img,
.et_pb_menu__logo-wrap img,
img.custom-logo{
    width:210px!important;
    max-width:210px!important;
    max-height:52px!important;
    height:auto!important;
    object-fit:contain!important;
}

/* Improve vertical centering without changing header structure */
#main-header .logo_container,
.et_pb_menu__logo-wrap,
.et_pb_menu__logo{
    display:flex!important;
    align-items:center!important;
}

#main-header #logo,
header #logo,
.et_pb_menu__logo img,
.et_pb_menu__logo-wrap img,
img.custom-logo{
    transform:translateY(-1px);
}

/* Slightly tighter header than v1.92 */
#main-header .container,
.et_pb_menu_inner_container{
    min-height:70px!important;
}

/* Keep the logo visually anchored to the left of its own container */
#main-header .logo_container,
.et_pb_menu__logo-wrap{
    justify-content:flex-start!important;
}

/* Tablet */
@media (max-width:980px){
    #main-header #logo,
    header #logo,
    .et_pb_menu__logo img,
    .et_pb_menu__logo-wrap img,
    img.custom-logo{
        width:185px!important;
        max-width:185px!important;
        max-height:46px!important;
        transform:none;
    }

    #main-header .container,
    .et_pb_menu_inner_container{
        min-height:66px!important;
    }
}

/* Mobile */
@media (max-width:767px){
    #main-header #logo,
    header #logo,
    .et_pb_menu__logo img,
    .et_pb_menu__logo-wrap img,
    img.custom-logo{
        width:160px!important;
        max-width:160px!important;
        max-height:40px!important;
    }

    #main-header .container,
    .et_pb_menu_inner_container{
        min-height:62px!important;
    }
}


/* =========================================================
   v1.95 — OPTION B HEADER
   Formació-inspired wide corporate capsule.
   ========================================================= */

/*
 * Header remains white overall. The dark corporate capsule is a separate
 * layer that starts at the viewport's left edge, like formacion.html.
 */
#main-header{
    position:relative!important;
    background:#fff!important;
    overflow:visible!important;
}

/* Wide dark-gray capsule behind the transparent beige logo */
#main-header::before{
    content:"";
    position:absolute;
    z-index:0;
    left:0;
    top:0;
    width:min(38vw, 725px);
    height:62px;
    background:#525559;
    border-radius:0 34px 34px 0;
    pointer-events:none;
}

/* Keep all header content above the capsule */
#main-header .container{
    position:relative!important;
    z-index:1!important;
    min-height:78px!important;
}

/* Transparent beige corporate logo inside the capsule */
#main-header .logo_container{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    height:62px!important;
}

#main-header #logo,
header #logo,
img.custom-logo{
    width:225px!important;
    max-width:225px!important;
    max-height:48px!important;
    height:auto!important;
    object-fit:contain!important;
    transform:none!important;
}

/* Keep navigation centered vertically in the full white header */
#et-top-navigation{
    display:flex!important;
    align-items:center!important;
    min-height:78px!important;
    padding-top:0!important;
}

/*
 * Theme Builder / Divi 5 fallback:
 * if a menu module supplies the visible header instead of #main-header.
 */
header .et_pb_menu{
    position:relative;
    background:#fff!important;
}

header .et_pb_menu::before{
    content:"";
    position:absolute;
    z-index:0;
    left:calc(50% - 50vw);
    top:0;
    width:min(38vw, 725px);
    height:62px;
    background:#525559;
    border-radius:0 34px 34px 0;
    pointer-events:none;
}

header .et_pb_menu_inner_container{
    position:relative!important;
    z-index:1!important;
    min-height:78px!important;
}

header .et_pb_menu__logo-wrap{
    height:62px!important;
    display:flex!important;
    align-items:center!important;
}

header .et_pb_menu__logo img,
header .et_pb_menu__logo-wrap img{
    width:225px!important;
    max-width:225px!important;
    max-height:48px!important;
    height:auto!important;
    transform:none!important;
}

/* Tablet */
@media (max-width:980px){
    #main-header::before,
    header .et_pb_menu::before{
        width:54vw;
        height:58px;
        border-radius:0 30px 30px 0;
    }

    #main-header .container,
    #et-top-navigation,
    header .et_pb_menu_inner_container{
        min-height:70px!important;
    }

    #main-header .logo_container,
    header .et_pb_menu__logo-wrap{
        height:58px!important;
    }

    #main-header #logo,
    header #logo,
    img.custom-logo,
    header .et_pb_menu__logo img,
    header .et_pb_menu__logo-wrap img{
        width:195px!important;
        max-width:195px!important;
        max-height:43px!important;
    }
}

/* Mobile */
@media (max-width:767px){
    #main-header::before,
    header .et_pb_menu::before{
        width:68vw;
        height:54px;
        border-radius:0 28px 28px 0;
    }

    #main-header .container,
    #et-top-navigation,
    header .et_pb_menu_inner_container{
        min-height:66px!important;
    }

    #main-header .logo_container,
    header .et_pb_menu__logo-wrap{
        height:54px!important;
    }

    #main-header #logo,
    header #logo,
    img.custom-logo,
    header .et_pb_menu__logo img,
    header .et_pb_menu__logo-wrap img{
        width:165px!important;
        max-width:165px!important;
        max-height:38px!important;
    }
}


/* =========================================================
   v1.96 — OPTION B HEADER FIX
   Restore Divi sticky behavior + remove double-logo background.
   ========================================================= */

/*
 * v1.95 accidentally changed Divi's fixed header to position:relative.
 * Restore a real fixed header. The inline `top` value Divi sets (0px
 * logged out / 32px with WP admin bar) remains respected.
 */
#main-header{
    position:fixed!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:99999!important;
    background:#fff!important;
    overflow:visible!important;
}

/* Compact header: 68px total, 58px capsule */
#main-header .container{
    min-height:68px!important;
    height:68px!important;
}

#main-header::before{
    top:0!important;
    height:58px!important;
    width:min(38vw, 725px)!important;
    border-radius:0 30px 30px 0!important;
}

#main-header .logo_container{
    height:58px!important;
}

/* The actual artwork has no baked-in gray background now */
#main-header #logo,
header #logo{
    width:225px!important;
    max-width:225px!important;
    max-height:44px!important;
    height:auto!important;
    object-fit:contain!important;
    transform:none!important;
    background:transparent!important;
}

/* Vertically center navigation in the compact fixed header */
#et-top-navigation{
    min-height:68px!important;
    height:68px!important;
    display:flex!important;
    align-items:center!important;
    padding-top:0!important;
}

/*
 * Divi adds this padding because the header is fixed.
 * Match it to the actual new header height so there is no unnecessary gap.
 */
#page-container{
    padding-top:68px!important;
}

/* Fixed header must keep the same Option B geometry after scrolling. */
.et-fixed-header#main-header{
    position:fixed!important;
    height:68px!important;
    min-height:68px!important;
}

.et-fixed-header#main-header::before{
    height:58px!important;
}

.et-fixed-header#main-header .container,
.et-fixed-header#main-header #et-top-navigation{
    height:68px!important;
    min-height:68px!important;
}

/* Tablet / mobile */
@media (max-width:980px){
    #main-header .container,
    #et-top-navigation,
    .et-fixed-header#main-header,
    .et-fixed-header#main-header .container,
    .et-fixed-header#main-header #et-top-navigation{
        height:64px!important;
        min-height:64px!important;
    }

    #main-header::before,
    .et-fixed-header#main-header::before{
        width:54vw!important;
        height:54px!important;
        border-radius:0 28px 28px 0!important;
    }

    #main-header .logo_container{
        height:54px!important;
    }

    #main-header #logo,
    header #logo{
        width:195px!important;
        max-width:195px!important;
        max-height:40px!important;
    }

    #page-container{
        padding-top:64px!important;
    }
}

@media (max-width:767px){
    #main-header .container,
    #et-top-navigation,
    .et-fixed-header#main-header,
    .et-fixed-header#main-header .container,
    .et-fixed-header#main-header #et-top-navigation{
        height:60px!important;
        min-height:60px!important;
    }

    #main-header::before,
    .et-fixed-header#main-header::before{
        width:68vw!important;
        height:50px!important;
        border-radius:0 26px 26px 0!important;
    }

    #main-header .logo_container{
        height:50px!important;
    }

    #main-header #logo,
    header #logo{
        width:165px!important;
        max-width:165px!important;
        max-height:36px!important;
    }

    #page-container{
        padding-top:60px!important;
    }
}


/* =========================================================
   v1.97 — HEADER VERTICAL BALANCE
   Only centers the capsule/logo vertically inside the header.
   ========================================================= */

/* Desktop: 68px header / 58px capsule = 5px above + 5px below */
#main-header::before{
    top:5px!important;
}

/* Theme Builder fallback */
header .et_pb_menu::before{
    top:5px!important;
}

/* Tablet: 64px header / 54px capsule = 5px above + 5px below */
@media (max-width:980px){
    #main-header::before,
    header .et_pb_menu::before{
        top:5px!important;
    }
}

/* Mobile: 60px header / 50px capsule = 5px above + 5px below */
@media (max-width:767px){
    #main-header::before,
    header .et_pb_menu::before{
        top:5px!important;
    }
}


/* =========================================================
   v1.98 — DESKTOP MENU VERTICAL ALIGNMENT
   Keep menu vertically centered and identical before/after scroll.
   ========================================================= */

@media (min-width:981px){

    /*
     * Divi normally changes navigation padding/height when .et-fixed-header
     * is added. Use one geometry for both states.
     */
    #main-header #et-top-navigation,
    #main-header.et-fixed-header #et-top-navigation{
        height:68px!important;
        min-height:68px!important;
        padding-top:0!important;
        padding-bottom:0!important;
        display:flex!important;
        align-items:center!important;
    }

    #main-header #top-menu-nav,
    #main-header.et-fixed-header #top-menu-nav{
        height:68px!important;
        display:flex!important;
        align-items:center!important;
    }

    #main-header #top-menu,
    #main-header.et-fixed-header #top-menu{
        height:68px!important;
        margin:0!important;
        padding:0!important;
        display:flex!important;
        align-items:center!important;
    }

    /*
     * Center every top-level menu item in exactly the same vertical position.
     * Remove Divi's large padding-bottom, which is primarily what makes the
     * text change position when the fixed-header rules activate.
     */
    #main-header #top-menu > li,
    #main-header.et-fixed-header #top-menu > li{
        height:68px!important;
        margin-top:0!important;
        margin-bottom:0!important;
        display:flex!important;
        align-items:center!important;
    }

    #main-header #top-menu > li > a,
    #main-header.et-fixed-header #top-menu > li > a{
        height:68px!important;
        padding-top:0!important;
        padding-bottom:0!important;
        margin:0!important;
        display:flex!important;
        align-items:center!important;
        line-height:1.2!important;
    }

    /*
     * Keep dropdown aligned with the bottom of the fixed 68px header after
     * removing the original anchor padding that Divi used for positioning.
     */
    #main-header #top-menu > li > .sub-menu,
    #main-header.et-fixed-header #top-menu > li > .sub-menu{
        top:68px!important;
        margin-top:0!important;
    }

    /*
     * Prevent Divi header-transition rules from visually sliding the menu
     * when the .et-fixed-header class appears.
     */
    #main-header #et-top-navigation,
    #main-header #top-menu-nav,
    #main-header #top-menu,
    #main-header #top-menu > li,
    #main-header #top-menu > li > a{
        transition:none!important;
    }
}


/* =========================================================
   v1.99 — ESPECIALITATS DROPDOWN ARROW ALIGNMENT
   ========================================================= */

@media (min-width:981px){

    /*
     * Divi places the submenu arrow with an absolutely-positioned ::after.
     * After v1.98 converted the anchor to flex centering, that old position
     * leaves the arrow too high. Make the link the positioning context and
     * center the arrow vertically against the text.
     */
    #main-header #top-menu > li.menu-item-has-children > a,
    #main-header.et-fixed-header #top-menu > li.menu-item-has-children > a{
        position:relative!important;
        padding-right:18px!important;
    }

    #main-header #top-menu > li.menu-item-has-children > a::after,
    #main-header.et-fixed-header #top-menu > li.menu-item-has-children > a::after{
        position:absolute!important;
        top:50%!important;
        right:0!important;
        margin-top:0!important;
        transform:translateY(-50%)!important;
        line-height:1!important;
    }
}


/* =========================================================
   v2.00 — RESPONSIVE HAMBURGER VERTICAL ALIGNMENT
   ========================================================= */

@media (max-width:980px){

    /*
     * Divi switches to #et_mobile_nav_menu on responsive layouts.
     * Give the whole mobile navigation control the same height as
     * #et-top-navigation and center it vertically.
     */
    #main-header #et_mobile_nav_menu{
        height:100%!important;
        margin-top:0!important;
        display:flex!important;
        align-items:center!important;
    }

    #main-header #et_mobile_nav_menu .mobile_nav{
        height:100%!important;
        min-height:0!important;
        margin:0!important;
        padding:0!important;
        display:flex!important;
        align-items:center!important;
        position:relative!important;
    }

    /*
     * The visible 3-line icon is rendered by Divi's ::before pseudo-element.
     * Center the toggle box first, then center the pseudo-element inside it.
     */
    #main-header .mobile_menu_bar,
    #main-header .mobile_menu_bar_toggle{
        width:44px!important;
        height:100%!important;
        min-height:0!important;
        margin:0!important;
        padding:0!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        position:relative!important;
        line-height:1!important;
    }

    #main-header .mobile_menu_bar::before,
    #main-header .mobile_menu_bar_toggle::before{
        position:absolute!important;
        top:50%!important;
        left:50%!important;
        right:auto!important;
        bottom:auto!important;
        margin:0!important;
        transform:translate(-50%,-50%)!important;
        line-height:1!important;
    }

    /*
     * Keep the actual dropdown anchored below the compact mobile header.
     * This does not change its contents or opening behavior.
     */
    #main-header #mobile_menu{
        top:100%!important;
        margin-top:0!important;
    }
}


/* =========================================================
   v2.01 — MOBILE MENU WIDTH / POSITION FIX
   Keeps v2.00 hamburger centering, restores full mobile menu.
   ========================================================= */

@media (max-width:980px){

    /*
     * v2.00 made .mobile_nav position:relative. Divi absolutely positions
     * #mobile_menu, so it then inherited the narrow hamburger container as
     * its positioning/width context. Restore a wide positioning context.
     */
    #main-header .container.et_menu_container{
        position:relative!important;
    }

    #main-header #et-top-navigation{
        position:static!important;
    }

    #main-header #et_mobile_nav_menu{
        position:static!important;
    }

    #main-header #et_mobile_nav_menu .mobile_nav{
        position:static!important;
    }

    /*
     * Keep the hamburger itself as the local positioning context for its
     * ::before icon, preserving the correct vertical centering from v2.00.
     */
    #main-header .mobile_menu_bar,
    #main-header .mobile_menu_bar_toggle{
        position:relative!important;
    }

    /*
     * Restore the dropdown as a proper full-width panel directly below the
     * compact header instead of a ~44px strip beside the page.
     */
    #main-header #mobile_menu,
    #main-header .et_mobile_menu{
        position:absolute!important;
        top:100%!important;
        left:0!important;
        right:0!important;
        width:100%!important;
        max-width:none!important;
        min-width:100%!important;
        margin:0!important;
        box-sizing:border-box!important;
        z-index:999999!important;
    }

    /* Ensure nested Especialitats submenu uses normal mobile flow. */
    #main-header #mobile_menu .sub-menu,
    #main-header .et_mobile_menu .sub-menu{
        position:static!important;
        width:100%!important;
        max-width:none!important;
        margin:0!important;
        box-sizing:border-box!important;
    }

    #main-header #mobile_menu li,
    #main-header #mobile_menu li a,
    #main-header .et_mobile_menu li,
    #main-header .et_mobile_menu li a{
        width:100%!important;
        box-sizing:border-box!important;
    }
}


/* =========================================================
   v2.02 — GLOBAL OPTIMA TYPOGRAPHY TEST
   Brandbook typography pilot.
   ========================================================= */

:root{
    --dclinic-font-brand:
        "Optima",
        "Optima Nova",
        "Candara",
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif;
}

/*
 * Global text typography.
 * Kept as a late CSS override so this test is very easy to revert.
 */
html,
body,
body p,
body li,
body a,
body label,
body button,
body input,
body textarea,
body select,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body strong,
body b,
body .et_pb_module,
body .et_pb_text,
body .et_pb_text p,
body .et_pb_heading,
body .et_pb_heading_container,
body .et_pb_module_header,
body .et_pb_button,
body .et_pb_menu,
body .et_pb_menu a,
body #top-menu,
body #top-menu a,
body #mobile_menu,
body #mobile_menu a,
body .et_mobile_menu,
body .et_mobile_menu a,
body footer,
body footer p,
body footer a,
body .et-l--footer,
body .et-l--footer p,
body .et-l--footer a{
    font-family:var(--dclinic-font-brand)!important;
}

/*
 * Do not interfere with icon-font families used by Divi / Font Awesome.
 */
body [class*="fa-"],
body [class^="fa-"],
body .et-pb-icon,
body .mobile_menu_bar::before,
body .menu-item-has-children > a::after{
    font-family:inherit;
}

/* Reassert the known icon families where necessary. */
body .mobile_menu_bar::before,
body #top-menu .menu-item-has-children > a::after{
    font-family:"ETmodules"!important;
}


/* =========================================================
   v2.03 — HEADING WEIGHT + LEGAL H3 REFINEMENT
   ========================================================= */

/*
 * Brand typography refinement:
 * old D'Clínic hierarchy uses a stronger 600 weight for headings.
 * This late override intentionally supersedes older 400/500 rules.
 */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .et_pb_text h1,
body .et_pb_text h2,
body .et_pb_text h3,
body .et_pb_text h4,
body .et_pb_text h5,
body .et_pb_text h6,
body .et_pb_module h1,
body .et_pb_module h2,
body .et_pb_module h3,
body .et_pb_module h4,
body .et_pb_module h5,
body .et_pb_module h6,
body .et_pb_heading h1,
body .et_pb_heading h2,
body .et_pb_heading h3,
body .et_pb_heading h4,
body .et_pb_heading h5,
body .et_pb_heading h6,
body .et_pb_module_header{
    font-weight:600!important;
}

/*
 * Avís legal / Política de privacitat / Política de cookies:
 * body-section h3 headings such as "1. Datos identificativos."
 * should be 20px.
 */
.dclinic-imported-legal .dclinic-legal-body h3,
.dclinic-imported-legal .dclinic-legal-copy h3,
.dclinic-imported-legal .dclinic-legal-copy-inner h3,
.dclinic-imported-legal .dclinic-legal-body-row h3{
    font-size:20px!important;
    font-weight:600!important;
    line-height:1.35!important;
}


/* =========================================================
   v2.04 — HEADER MENU TYPOGRAPHY
   ========================================================= */

/*
 * Explicitly override legacy Divi / importer menu typography.
 * If Optima is installed on the visitor's device it will be used;
 * otherwise the browser continues through the configured fallback stack.
 */
#main-header #top-menu > li > a,
#main-header.et-fixed-header #top-menu > li > a,
#main-header #top-menu .sub-menu li a,
#main-header.et-fixed-header #top-menu .sub-menu li a,
#main-header #mobile_menu li a,
#main-header .et_mobile_menu li a{
    font-family:var(--dclinic-font-brand)!important;
    font-size:16px!important;
}

/* Preserve the current top-level menu weight/spacing hierarchy. */
#main-header #top-menu > li > a,
#main-header.et-fixed-header #top-menu > li > a{
    font-weight:500!important;
    letter-spacing:.4px!important;
}

/* Dropdown/mobile entries remain readable without becoming too heavy. */
#main-header #top-menu .sub-menu li a,
#main-header.et-fixed-header #top-menu .sub-menu li a,
#main-header #mobile_menu li a,
#main-header .et_mobile_menu li a{
    font-weight:400!important;
    letter-spacing:0!important;
}


/* =========================================================
   v2.05 — FONT FAMILY CLEANUP
   All normal text now resolves through one canonical brand stack.
   Legacy Raleway / Quicksand / Arial text declarations were removed.
   Icon-font families and slider arrow glyph rendering are preserved.
   ========================================================= */


/* =========================================================
   v2.06 — D'CLINIC BRAND PALETTE VARIABLES
   ========================================================= */

:root{
    --dclinic-brand-primary:#D0C883;
    --dclinic-brand-dark:#525559;

    --dclinic-brand-text:#525559;
    --dclinic-brand-heading:#525559;

    --dclinic-brand-bg:#ffffff;
    --dclinic-brand-bg-soft:#f6f4ee;
    --dclinic-brand-border:#d8d6cc;

    --dclinic-brand-primary-hover:#bdb46f;
}

/* =========================================================
   v2.06 — HOME BRAND PALETTE PILOT
   Home body only. Header/menu and other pages remain unchanged.
   ========================================================= */

/* --- HERO / SLIDER: keep photography/text, change only brand accent --- */
.dclinic-imported-home .dclinic-home-slider .et-pb-controllers a.et-pb-active-control{
    background:var(--dclinic-brand-primary)!important;
}

/* --- WELCOME STRIP --- */
.dclinic-imported-home .dclinic-welcome{
    background:var(--dclinic-brand-dark)!important;
}

.dclinic-imported-home .dclinic-welcome-title,
.dclinic-imported-home .dclinic-welcome-title h1{
    color:var(--dclinic-brand-primary)!important;
}

/* --- GENERAL HOME HEADINGS ON LIGHT BACKGROUNDS --- */
.dclinic-imported-home .dclinic-section-title,
.dclinic-imported-home .dclinic-section-title h2,
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title,
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title h2{
    color:var(--dclinic-brand-heading)!important;
}

/* --- "QUÈ OFERIM?" --- */
.dclinic-imported-home .dclinic-specialties{
    background:var(--dclinic-brand-bg-soft)!important;
}

.dclinic-imported-home .dclinic-specialty-card,
.dclinic-imported-home .dclinic-specialty-card span{
    color:var(--dclinic-brand-text)!important;
}

/* --- TEAM / FOUNDER --- */
.dclinic-imported-home .dclinic-team-intro,
.dclinic-imported-home .dclinic-team-intro p,
.dclinic-imported-home .dclinic-founder-bio{
    color:var(--dclinic-brand-text)!important;
}

.dclinic-imported-home .dclinic-founder-bio h3,
.dclinic-imported-home .dclinic-founder-bio h4,
.dclinic-imported-home .dclinic-team-card h4,
.dclinic-imported-home .dclinic-team-card .et_pb_module_header,
.dclinic-imported-home .dclinic-team-card .et_pb_member_position,
.dclinic-imported-home .dclinic-team-caption-inner h3,
.dclinic-imported-home .dclinic-team-caption-inner p{
    color:var(--dclinic-brand-heading)!important;
}

/* --- CONTACT --- */
.dclinic-imported-home .dclinic-contact-section{
    background:var(--dclinic-brand-dark)!important;
    color:#fff!important;
}

.dclinic-imported-home .dclinic-contact-section h2,
.dclinic-imported-home .dclinic-contact-heading,
.dclinic-imported-home .dclinic-contact-heading h2{
    color:var(--dclinic-brand-primary)!important;
}

.dclinic-imported-home .dclinic-contact-info,
.dclinic-imported-home .dclinic-contact-info p,
.dclinic-imported-home .dclinic-contact-info a,
.dclinic-imported-home .dclinic-contact-legal,
.dclinic-imported-home .dclinic-contact-legal a{
    color:#fff!important;
}

.dclinic-imported-home .dclinic-native-contact .et_pb_contact_submit{
    background:var(--dclinic-brand-primary)!important;
    border-color:var(--dclinic-brand-primary)!important;
    color:var(--dclinic-brand-dark)!important;
}

.dclinic-imported-home .dclinic-native-contact .et_pb_contact_submit:hover{
    background:var(--dclinic-brand-primary-hover)!important;
    border-color:var(--dclinic-brand-primary-hover)!important;
    color:var(--dclinic-brand-dark)!important;
}

/*
 * Keep form fields neutral/clean inside the dark section.
 */
.dclinic-imported-home .dclinic-native-contact input,
.dclinic-imported-home .dclinic-native-contact textarea{
    background:#fff!important;
    color:var(--dclinic-brand-dark)!important;
}


/* =========================================================
   v2.07 — HOME PALETTE REFINEMENT
   - Use brand beige in more accent/title positions
   - Use brand dark gray for the welcome strip background
   - Differentiate team name and role
   ========================================================= */

/* --- Welcome strip: force dark gray background --- */
.dclinic-imported-home .dclinic-welcome,
.dclinic-imported-home .dclinic-welcome.et_pb_section,
.dclinic-imported-home .dclinic-welcome .et_pb_row,
.dclinic-imported-home .dclinic-welcome .et_pb_column{
    background-color:var(--dclinic-brand-dark)!important;
}

.dclinic-imported-home .dclinic-welcome,
.dclinic-imported-home .dclinic-welcome h1,
.dclinic-imported-home .dclinic-welcome h2,
.dclinic-imported-home .dclinic-welcome h3,
.dclinic-imported-home .dclinic-welcome-title,
.dclinic-imported-home .dclinic-welcome-title h1,
.dclinic-imported-home .dclinic-welcome-title h2,
.dclinic-imported-home .dclinic-welcome-title h3,
.dclinic-imported-home .dclinic-welcome .et_pb_text_inner{
    color:var(--dclinic-brand-primary)!important;
}

/* --- Home titles that had turned gray: now beige/yellow --- */
.dclinic-imported-home .dclinic-section-title,
.dclinic-imported-home .dclinic-section-title h1,
.dclinic-imported-home .dclinic-section-title h2,
.dclinic-imported-home .dclinic-section-title h3,
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title,
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title h1,
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title h2,
.dclinic-imported-home .dclinic-team-title-row .dclinic-section-title h3,
.dclinic-imported-home .dclinic-founder-bio h1,
.dclinic-imported-home .dclinic-founder-bio h2,
.dclinic-imported-home .dclinic-founder-bio h3,
.dclinic-imported-home .dclinic-founder-bio h4{
    color:var(--dclinic-brand-primary)!important;
}

/* --- "Què oferim?" area: keep soft background, beige title/accent --- */
.dclinic-imported-home .dclinic-specialties{
    background:var(--dclinic-brand-bg-soft)!important;
}

/* Titles/strong labels inside specialty cards become beige, body remains gray */
.dclinic-imported-home .dclinic-specialty-card h3,
.dclinic-imported-home .dclinic-specialty-card h4,
.dclinic-imported-home .dclinic-specialty-card .et_pb_module_header,
.dclinic-imported-home .dclinic-specialty-card strong{
    color:var(--dclinic-brand-primary)!important;
}

.dclinic-imported-home .dclinic-specialty-card,
.dclinic-imported-home .dclinic-specialty-card p,
.dclinic-imported-home .dclinic-specialty-card span,
.dclinic-imported-home .dclinic-specialty-card li{
    color:var(--dclinic-brand-text)!important;
}

/* --- Team cards: name gray, role beige --- */
.dclinic-imported-home .dclinic-team-card h1,
.dclinic-imported-home .dclinic-team-card h2,
.dclinic-imported-home .dclinic-team-card h3,
.dclinic-imported-home .dclinic-team-card h4,
.dclinic-imported-home .dclinic-team-card .et_pb_module_header,
.dclinic-imported-home .dclinic-team-caption-inner h1,
.dclinic-imported-home .dclinic-team-caption-inner h2,
.dclinic-imported-home .dclinic-team-caption-inner h3{
    color:var(--dclinic-brand-dark)!important;
}

.dclinic-imported-home .dclinic-team-card .et_pb_member_position,
.dclinic-imported-home .dclinic-team-card .dclinic-member-role,
.dclinic-imported-home .dclinic-team-caption-inner p{
    color:var(--dclinic-brand-primary)!important;
}

/* Optional extra consistency for light-section intro copy */
.dclinic-imported-home .dclinic-team-intro,
.dclinic-imported-home .dclinic-team-intro p,
.dclinic-imported-home .dclinic-founder-bio,
.dclinic-imported-home .dclinic-founder-bio p{
    color:var(--dclinic-brand-text)!important;
}


/* =========================================================
   v2.08 — HOME PALETTE REFINEMENT 2
   ========================================================= */

/* ---------------------------------------------------------
   1. WELCOME STRIP
   Put the corporate dark gray on the real Divi section.
   Inner row/column must stay transparent.
   --------------------------------------------------------- */
.dclinic-imported-home section.dclinic-welcome,
.dclinic-imported-home .et_pb_section.dclinic-welcome,
body .dclinic-imported-home .et_pb_section_1.dclinic-welcome{
    background-color:var(--dclinic-brand-dark)!important;
    background-image:none!important;
}

.dclinic-imported-home .dclinic-welcome > .et_pb_row,
.dclinic-imported-home .dclinic-welcome > .et_pb_row > .et_pb_column,
.dclinic-imported-home .dclinic-welcome .dclinic-welcome-title{
    background:transparent!important;
    background-color:transparent!important;
}

.dclinic-imported-home .dclinic-welcome-title,
.dclinic-imported-home .dclinic-welcome-title h1,
.dclinic-imported-home .dclinic-welcome-title .et_pb_module_header{
    color:var(--dclinic-brand-primary)!important;
}

/* ---------------------------------------------------------
   2. LOW-CONTRAST BEIGE LABELS
   --------------------------------------------------------- */
.dclinic-imported-home .dclinic-founder-bio h4,
.dclinic-imported-home .dclinic-founder-bio p strong,
.dclinic-imported-home .dclinic-team-card .et_pb_member_position,
.dclinic-imported-home .dclinic-team-card .dclinic-member-role,
.dclinic-imported-home .dclinic-team-caption-inner p{
    font-weight:600!important;
}

/* ---------------------------------------------------------
   3. ACTIVE HEADER MENU ITEM
   Dark-gray readable text + beige accent underline.
   --------------------------------------------------------- */
#main-header #top-menu > li.current-menu-item > a,
#main-header #top-menu > li.current_page_item > a,
#main-header #top-menu > li.current-menu-ancestor > a,
#main-header.et-fixed-header #top-menu > li.current-menu-item > a,
#main-header.et-fixed-header #top-menu > li.current_page_item > a,
#main-header.et-fixed-header #top-menu > li.current-menu-ancestor > a{
    color:var(--dclinic-brand-dark)!important;
    font-weight:600!important;
    position:relative!important;
}

#main-header #top-menu > li.current-menu-item > a::before,
#main-header #top-menu > li.current_page_item > a::before,
#main-header #top-menu > li.current-menu-ancestor > a::before,
#main-header.et-fixed-header #top-menu > li.current-menu-item > a::before,
#main-header.et-fixed-header #top-menu > li.current_page_item > a::before,
#main-header.et-fixed-header #top-menu > li.current-menu-ancestor > a::before{
    content:""!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:10px!important;
    height:2px!important;
    background:var(--dclinic-brand-primary)!important;
    border-radius:2px!important;
}

/* Keep the submenu arrow untouched. */
#main-header #top-menu > li.menu-item-has-children > a::after{
    z-index:2;
}

/* ---------------------------------------------------------
   4. HOME FOOTER LEGAL/SOCIAL BAR
   Green -> corporate beige, dark-gray content.
   --------------------------------------------------------- */
.dclinic-imported-home .dclinic-legal-bar,
.dclinic-imported-home .dclinic-legal-bar.et_pb_section,
.dclinic-imported-home .dclinic-legal-bar .et_pb_row,
.dclinic-imported-home .dclinic-legal-bar .et_pb_column{
    background-color:var(--dclinic-brand-primary)!important;
    background-image:none!important;
}

.dclinic-imported-home .dclinic-legal-bar,
.dclinic-imported-home .dclinic-legal-bar p,
.dclinic-imported-home .dclinic-legal-bar a,
.dclinic-imported-home .dclinic-legal-bar-text,
.dclinic-imported-home .dclinic-legal-bar-text p,
.dclinic-imported-home .dclinic-legal-bar-text a{
    color:var(--dclinic-brand-dark)!important;
}

/* Social icons/bubbles on the beige strip */
.dclinic-imported-home .dclinic-legal-bar .et_pb_social_icon a,
.dclinic-imported-home .dclinic-legal-bar .et_pb_social_media_follow_network a{
    background-color:var(--dclinic-brand-dark)!important;
    color:#fff!important;
}


/* =========================================================
   v2.09 — HOME / MENU / FOOTER FIXES
   ========================================================= */

/* ---------------------------------------------------------
   1. WELCOME STRIP
   Target the real Divi section directly, without relying on
   an imported-home ancestor that may not wrap the section.
   --------------------------------------------------------- */
.et_pb_section.dclinic-welcome,
section.dclinic-welcome,
div.dclinic-welcome.et_pb_section,
body .et_pb_section_1.dclinic-welcome{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

.dclinic-welcome > .et_pb_row,
.dclinic-welcome > .et_pb_row > .et_pb_column,
.dclinic-welcome .dclinic-welcome-title,
.dclinic-welcome .et_pb_heading{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
}

.dclinic-welcome .dclinic-welcome-title,
.dclinic-welcome .dclinic-welcome-title h1,
.dclinic-welcome .dclinic-welcome-title .et_pb_module_header{
    color:#D0C883!important;
}

/* ---------------------------------------------------------
   2. TEAM ROLE/SPECIALTY READABILITY
   --------------------------------------------------------- */
.dclinic-team-caption-inner p,
.dclinic-imported-home .dclinic-team-caption-inner p{
    font-size:19px!important;
    font-weight:600!important;
    line-height:1.3!important;
    color:#D0C883!important;
}

/* Preserve same readable role treatment in Divi person modules. */
.dclinic-team-card .et_pb_member_position,
.dclinic-imported-home .dclinic-team-card .et_pb_member_position{
    font-weight:600!important;
}

/* ---------------------------------------------------------
   3. ESPECIALITATS ACTIVE STATE
   On Home, the custom #especialitats URL can be marked as the
   current menu item by WordPress. Suppress that false active state.
   --------------------------------------------------------- */
body.home #main-header #top-menu > #menu-item-122 > a,
body.home #main-header.et-fixed-header #top-menu > #menu-item-122 > a{
    color:var(--dclinic-brand-text)!important;
    font-weight:500!important;
}

body.home #main-header #top-menu > #menu-item-122 > a::before,
body.home #main-header.et-fixed-header #top-menu > #menu-item-122 > a::before{
    content:none!important;
    display:none!important;
}

/*
 * On specialty child pages WordPress normally adds current-menu-ancestor.
 * Keep the approved active treatment there.
 */
body:not(.home) #main-header #top-menu > #menu-item-122.current-menu-ancestor > a,
body:not(.home) #main-header #top-menu > #menu-item-122.current-menu-parent > a,
body:not(.home) #main-header.et-fixed-header #top-menu > #menu-item-122.current-menu-ancestor > a,
body:not(.home) #main-header.et-fixed-header #top-menu > #menu-item-122.current-menu-parent > a{
    color:var(--dclinic-brand-dark)!important;
    font-weight:600!important;
}

/* ---------------------------------------------------------
   4. ESPECIALITATS DROPDOWN ACCENT LINE
   Divi default blue -> corporate beige.
   --------------------------------------------------------- */
#main-header #top-menu li ul.sub-menu,
#main-header .nav li ul{
    border-top-color:#D0C883!important;
}

/* ---------------------------------------------------------
   5. GLOBAL FOOTER LEGAL / SOCIAL STRIP
   Target likely global footer classes directly.
   --------------------------------------------------------- */
.dclinic-legal-bar,
.dclinic-legal-bar.et_pb_section,
.dclinic-global-footer-legal,
.dclinic-global-footer-legal.et_pb_section,
.dclinic-global-footer-legal-row,
.dclinic-global-footer-legal .et_pb_row,
.dclinic-global-footer-legal .et_pb_column,
.dclinic-legal-bar .et_pb_row,
.dclinic-legal-bar .et_pb_column{
    background:#D0C883!important;
    background-color:#D0C883!important;
    background-image:none!important;
}

.dclinic-legal-bar,
.dclinic-legal-bar p,
.dclinic-legal-bar a,
.dclinic-legal-bar-text,
.dclinic-legal-bar-text p,
.dclinic-legal-bar-text a,
.dclinic-global-footer-legal,
.dclinic-global-footer-legal p,
.dclinic-global-footer-legal a{
    color:#525559!important;
}

/* Social icon circles on beige strip */
.dclinic-legal-bar .et_pb_social_icon a,
.dclinic-legal-bar .et_pb_social_media_follow_network a,
.dclinic-global-footer-legal .et_pb_social_icon a,
.dclinic-global-footer-legal .et_pb_social_media_follow_network a{
    background:#525559!important;
    background-color:#525559!important;
    color:#fff!important;
}


/* =========================================================
   v2.10 — WELCOME STRIP SPECIFICITY + FOOTER TEXT REFINEMENT
   ========================================================= */

/* ---------------------------------------------------------
   1. WELCOME STRIP
   Beat Divi's generated selector:
   .et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_1
   --------------------------------------------------------- */
.et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_1.dclinic-welcome,
body .et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_1.dclinic-welcome,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome > .et_pb_row,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome > .et_pb_row > .et_pb_column,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
}

.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title h1,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title .et_pb_module_header{
    color:#D0C883!important;
}

/* ---------------------------------------------------------
   2. FOOTER LEGAL / SOCIAL STRIP TEXT
   All four text pieces at 15px.
   Links black for stronger readability.
   --------------------------------------------------------- */
.dclinic-legal-bar-text,
.dclinic-legal-bar-text p,
.dclinic-legal-bar-text span,
.dclinic-global-footer-legal,
.dclinic-global-footer-legal p,
.dclinic-global-footer-legal span{
    font-size:15px!important;
    line-height:1.45!important;
}

.dclinic-legal-bar-text a,
.dclinic-global-footer-legal a{
    color:#000!important;
    font-size:15px!important;
    font-weight:500!important;
}

/* Copyright text stays dark gray/black and matches 15px size */
.dclinic-legal-bar-text,
.dclinic-legal-bar-text p,
.dclinic-global-footer-legal,
.dclinic-global-footer-legal p{
    color:#000!important;
}


/* =========================================================
   v2.11 — WELCOME COLOR REVERSAL + SPECIALTY LABEL SIZE
   ========================================================= */

/* Welcome strip: beige background + dark gray text */
.et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_1.dclinic-welcome,
body .et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_1.dclinic-welcome,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome,
.et_pb_section.dclinic-welcome,
section.dclinic-welcome,
div.dclinic-welcome.et_pb_section{
    background:#D0C883!important;
    background-color:#D0C883!important;
    background-image:none!important;
}

.dclinic-welcome > .et_pb_row,
.dclinic-welcome > .et_pb_row > .et_pb_column,
.dclinic-welcome .dclinic-welcome-title,
.dclinic-welcome .et_pb_heading{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
}

.dclinic-welcome .dclinic-welcome-title,
.dclinic-welcome .dclinic-welcome-title h1,
.dclinic-welcome .dclinic-welcome-title .et_pb_module_header,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title h1,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title .et_pb_module_header{
    color:#525559!important;
}

/* Home specialty-card label: 14px -> 20px */
.dclinic-imported-home .dclinic-specialty-card span{
    font-size:20px!important;
}


/* =========================================================
   v2.12 — WELCOME WEIGHT + SPECIALTY LABEL FORCE
   ========================================================= */

/* Welcome title: stronger visual emphasis */
.dclinic-welcome .dclinic-welcome-title,
.dclinic-welcome .dclinic-welcome-title h1,
.dclinic-welcome .dclinic-welcome-title .et_pb_module_header,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title h1,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-welcome .dclinic-welcome-title .et_pb_module_header{
    font-weight:600!important;
}

/*
 * Specialty labels:
 * use unscoped + Home-scoped selectors so the size applies even when
 * the rendered card is not wrapped by .dclinic-imported-home.
 */
.dclinic-specialty-card > span,
.dclinic-specialty-card span,
a.dclinic-specialty-card > span,
a.dclinic-specialty-card span,
.dclinic-imported-home .dclinic-specialty-card > span,
.dclinic-imported-home .dclinic-specialty-card span{
    font-size:20px!important;
    line-height:1.25!important;
    font-weight:400!important;
}

/* Also cover Divi wrappers if a regenerated card outputs the label differently. */
.dclinic-specialty-card .et_pb_text_inner,
.dclinic-specialty-card .et_pb_module_header,
.dclinic-specialty-card .dclinic-specialty-label{
    font-size:20px!important;
    line-height:1.25!important;
}


/* =========================================================
   v2.13 — SPECIALTY LABEL SPECIFICITY FIX
   Beats the later legacy 14px !important rule.
   ========================================================= */

body .dclinic-imported-home .dclinic-specialties .dclinic-specialty-card span,
body .dclinic-imported-home .dclinic-specialties-row .dclinic-specialty-card span,
body .dclinic-imported-home .dclinic-specialty-card span{
    font-size:20px!important;
    line-height:1.25!important;
    font-weight:400!important;
}


/* =========================================================
   v2.14 — SPECIALTY LABEL HARD OVERRIDE
   Beats Divi inline Custom CSS 14px !important declaration.
   ========================================================= */

#page-container #main-content .dclinic-imported-home .dclinic-specialties .dclinic-specialty-card span,
#page-container #main-content .dclinic-imported-home .dclinic-specialties-row .dclinic-specialty-card span,
#page-container #main-content .dclinic-imported-home .dclinic-specialty-card span,
body.home #page-container #main-content .dclinic-specialty-card span{
    font-size:20px!important;
    font-weight:400!important;
    line-height:1.25!important;
    letter-spacing:0!important;
}


/* =========================================================
   v2.15 — CLÍNICA PAGE BRAND PALETTE PILOT
   Palette-only pass. Layout, spacing, gallery and animations untouched.
   ========================================================= */

/* Main page title: old green -> corporate beige */
.dclinic-imported-clinica .dclinic-clinica-title,
.dclinic-imported-clinica .dclinic-clinica-title h1{
    color:var(--dclinic-brand-primary)!important;
}

/* Decorative rule: gray -> beige accent */
.dclinic-imported-clinica .dclinic-clinica-title-rule{
    background:var(--dclinic-brand-primary)!important;
}

/* Subtitle: slightly stronger corporate dark gray */
.dclinic-imported-clinica .dclinic-clinica-subtitle,
.dclinic-imported-clinica .dclinic-clinica-subtitle h2{
    color:var(--dclinic-brand-dark)!important;
}

/* Alternating intro-section copy: old green -> readable dark gray */
.dclinic-imported-clinica .dclinic-clinica-feature-copy,
.dclinic-imported-clinica .dclinic-clinica-feature-copy p{
    color:var(--dclinic-brand-text)!important;
}

/* Spaces gallery title: old green -> beige */
.dclinic-imported-clinica .dclinic-clinica-gallery-heading,
.dclinic-imported-clinica .dclinic-clinica-gallery-heading h2{
    color:var(--dclinic-brand-primary)!important;
}

/* Location/supporting copy: old green -> dark gray */
.dclinic-imported-clinica .dclinic-clinica-location,
.dclinic-imported-clinica .dclinic-clinica-location p{
    color:var(--dclinic-brand-text)!important;
}

/* Tour area: warm neutral surface + beige title */
.dclinic-imported-clinica .dclinic-clinica-tour{
    background:var(--dclinic-brand-bg-soft)!important;
}

.dclinic-imported-clinica .dclinic-clinica-tour-title,
.dclinic-imported-clinica .dclinic-clinica-tour-title h2{
    color:var(--dclinic-brand-primary)!important;
}

/* Tour CTA: use established beige/dark-gray button treatment */
.dclinic-imported-clinica .dclinic-tour-link a{
    background:var(--dclinic-brand-primary)!important;
    color:var(--dclinic-brand-dark)!important;
    border:1px solid var(--dclinic-brand-primary)!important;
}

.dclinic-imported-clinica .dclinic-tour-link a:hover,
.dclinic-imported-clinica .dclinic-tour-link a:focus-visible{
    background:var(--dclinic-brand-primary-hover)!important;
    border-color:var(--dclinic-brand-primary-hover)!important;
    color:var(--dclinic-brand-dark)!important;
}

.dclinic-imported-clinica .dclinic-tour-button-icon{
    color:var(--dclinic-brand-dark)!important;
}

/* Keep gallery itself clean/white */
.dclinic-imported-clinica .dclinic-clinica-gallery{
    background:var(--dclinic-brand-bg)!important;
}


/* =========================================================
   v2.16 — IMPLANTS DENTALS BRAND PALETTE PILOT
   Palette-only pass. Layout, animations and images untouched.
   ========================================================= */

/* ---------------------------------------------------------
   PAGE HEADER
   --------------------------------------------------------- */
.dclinic-imported-specialty .dclinic-implants-title,
.dclinic-imported-specialty .dclinic-implants-title h1{
    color:var(--dclinic-brand-primary)!important;
}

.dclinic-imported-specialty .dclinic-implants-head-line{
    background:var(--dclinic-brand-primary)!important;
}

.dclinic-imported-specialty .dclinic-implants-subtitle,
.dclinic-imported-specialty .dclinic-implants-subtitle h2{
    color:var(--dclinic-brand-dark)!important;
}

/* ---------------------------------------------------------
   GREEN INTRO -> DARK GRAY
   "Les últimes tècniques implantològiques"
   --------------------------------------------------------- */
.dclinic-imported-specialty .dclinic-implants-intro,
body .dclinic-imported-specialty .dclinic-implants-intro{
    background:var(--dclinic-brand-dark)!important;
    background-color:var(--dclinic-brand-dark)!important;
    background-image:none!important;
}

.dclinic-imported-specialty .dclinic-implants-intro-row,
.dclinic-imported-specialty .dclinic-implants-intro-row > .et_pb_column{
    background:transparent!important;
    background-color:transparent!important;
}

.dclinic-imported-specialty .dclinic-implants-intro-title,
.dclinic-imported-specialty .dclinic-implants-intro-title h2{
    color:var(--dclinic-brand-primary)!important;
}

.dclinic-imported-specialty .dclinic-implants-intro-copy,
.dclinic-imported-specialty .dclinic-implants-intro-copy p,
.dclinic-imported-specialty .dclinic-implants-intro-copy li,
.dclinic-imported-specialty .dclinic-implants-intro-copy strong{
    color:#fff!important;
}

/* ---------------------------------------------------------
   TREATMENTS / TYPES
   --------------------------------------------------------- */
.dclinic-imported-specialty .dclinic-implants-types-title,
.dclinic-imported-specialty .dclinic-implants-types-title h2,
.dclinic-imported-specialty .dclinic-implants-gallery-title,
.dclinic-imported-specialty .dclinic-implants-gallery-title h2{
    color:var(--dclinic-brand-primary)!important;
}

.dclinic-imported-specialty .dclinic-implants-dotted-line{
    border-color:var(--dclinic-brand-primary)!important;
}

/* Known treatment-card text */
.dclinic-imported-specialty .dclinic-implants-runtime-types-row h3,
.dclinic-imported-specialty .dclinic-implants-runtime-types-row h4,
.dclinic-imported-specialty .dclinic-implants-native-card-copy h3,
.dclinic-imported-specialty .dclinic-implants-native-card-copy h4{
    color:var(--dclinic-brand-primary)!important;
}

.dclinic-imported-specialty .dclinic-implants-runtime-types-row p,
.dclinic-imported-specialty .dclinic-implants-native-card-copy p{
    color:var(--dclinic-brand-text)!important;
}

/* ---------------------------------------------------------
   BRANDS / TECHNOLOGY
   --------------------------------------------------------- */
.dclinic-imported-specialty .dclinic-implants-brands{
    background:var(--dclinic-brand-bg-soft)!important;
    background-color:var(--dclinic-brand-bg-soft)!important;
}

.dclinic-imported-specialty .dclinic-implants-brands-row,
.dclinic-imported-specialty .dclinic-implants-brands-row > .et_pb_column{
    background:transparent!important;
}

.dclinic-imported-specialty .dclinic-implants-brands-copy,
.dclinic-imported-specialty .dclinic-implants-brands-copy p,
.dclinic-imported-specialty .dclinic-implants-brands-copy strong{
    color:var(--dclinic-brand-dark)!important;
}

/* Any highlighted statement below the brands */
.dclinic-imported-specialty .dclinic-implants-statement,
.dclinic-imported-specialty .dclinic-implants-statement-inner{
    color:var(--dclinic-brand-dark)!important;
}

/* ---------------------------------------------------------
   GALLERY / SLIDER ACCENTS
   --------------------------------------------------------- */
.dclinic-imported-specialty .dclinic-implants-gallery{
    background:#fff!important;
}

.dclinic-imported-specialty .dclinic-implants-gallery .et-pb-controllers a.et-pb-active-control,
.dclinic-imported-specialty .dclinic-implants-clinic-slider-section .et-pb-controllers a.et-pb-active-control{
    background:var(--dclinic-brand-primary)!important;
}

/* ---------------------------------------------------------
   CONTACT / APPOINTMENT BLOCK
   Reuse validated brand system.
   --------------------------------------------------------- */
.dclinic-imported-specialty .dclinic-implants-appointment,
.dclinic-imported-specialty .dclinic-implants-runtime-contact-row{
    background:var(--dclinic-brand-dark)!important;
    background-color:var(--dclinic-brand-dark)!important;
}

.dclinic-imported-specialty .dclinic-implants-runtime-contact-row > .et_pb_column{
    background:transparent!important;
}

.dclinic-imported-specialty .dclinic-implants-cta-copy h2,
.dclinic-imported-specialty .dclinic-implants-cta-copy h3{
    color:var(--dclinic-brand-primary)!important;
}

.dclinic-imported-specialty .dclinic-implants-cta-copy,
.dclinic-imported-specialty .dclinic-implants-cta-copy p,
.dclinic-imported-specialty .dclinic-implants-cta-copy a,
.dclinic-imported-specialty .dclinic-implants-legal-small,
.dclinic-imported-specialty .dclinic-implants-privacy,
.dclinic-imported-specialty .dclinic-implants-required{
    color:#fff!important;
}

/* Form fields */
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_field input,
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_field textarea,
.dclinic-imported-specialty .dclinic-implants-custom-form input,
.dclinic-imported-specialty .dclinic-implants-custom-form textarea{
    background:#fff!important;
    color:var(--dclinic-brand-dark)!important;
    border:1px solid var(--dclinic-brand-border)!important;
}

/* Submit button */
.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_submit,
.dclinic-imported-specialty .dclinic-implants-custom-form button,
.dclinic-imported-specialty .dclinic-implants-custom-form input[type="submit"]{
    background:var(--dclinic-brand-primary)!important;
    border-color:var(--dclinic-brand-primary)!important;
    color:var(--dclinic-brand-dark)!important;
}

.dclinic-imported-specialty .dclinic-implants-appointment .et_pb_contact_submit:hover,
.dclinic-imported-specialty .dclinic-implants-custom-form button:hover,
.dclinic-imported-specialty .dclinic-implants-custom-form input[type="submit"]:hover{
    background:var(--dclinic-brand-primary-hover)!important;
    border-color:var(--dclinic-brand-primary-hover)!important;
    color:var(--dclinic-brand-dark)!important;
}


/* =========================================================
   v2.17 — IMPLANTS EXACT SECTION FIXES
   Uses the rendered HTML structure supplied from DevTools.
   ========================================================= */

/* ---------------------------------------------------------
   1. INTRO SECTION
   Beat Divi's generated et_pb_section_1 background rule.
   --------------------------------------------------------- */
.et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_1.dclinic-implants-intro,
body .et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_1.dclinic-implants-intro,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-implants-intro,
body .et_pb_section.dclinic-implants-intro{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

.et-l--post > .et_builder_inner_content .dclinic-implants-intro .dclinic-implants-intro-row,
.et-l--post > .et_builder_inner_content .dclinic-implants-intro .dclinic-implants-intro-row > .et_pb_column{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
}

.dclinic-implants-intro .dclinic-implants-intro-title,
.dclinic-implants-intro .dclinic-implants-intro-title h2,
.dclinic-implants-intro .dclinic-implants-intro-title .et_pb_module_header{
    color:#D0C883!important;
}

.dclinic-implants-intro .dclinic-implants-intro-copy,
.dclinic-implants-intro .dclinic-implants-intro-copy p,
.dclinic-implants-intro .dclinic-implants-intro-copy ul,
.dclinic-implants-intro .dclinic-implants-intro-copy li,
.dclinic-implants-intro .dclinic-implants-intro-copy strong{
    color:#fff!important;
}

/* ---------------------------------------------------------
   2. APPOINTMENT SECTION
   Exact legacy form selectors from the rendered HTML.
   --------------------------------------------------------- */
.et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_6.dclinic-implants-appointment,
body .et-l--post > .et_builder_inner_content .et_pb_section.et_pb_section_6.dclinic-implants-appointment,
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-implants-appointment,
body .et_pb_section.dclinic-implants-appointment{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

.dclinic-implants-appointment .dclinic-implants-runtime-contact-row,
.dclinic-implants-appointment .dclinic-implants-runtime-contact-row > .et_pb_column,
.dclinic-implants-appointment .dclinic-implants-runtime-contact-module,
.dclinic-implants-appointment .dclinic-runtime-contact,
.dclinic-implants-appointment .dclinic-runtime-contact-left{
    background:transparent!important;
    background-color:transparent!important;
}

/* CTA typography */
.dclinic-implants-appointment .dclinic-implants-cta-copy h2{
    color:#D0C883!important;
}

.dclinic-implants-appointment .dclinic-implants-cta-copy h3{
    color:#D0C883!important;
}

.dclinic-implants-appointment .dclinic-implants-cta-copy p,
.dclinic-implants-appointment .dclinic-implants-cta-copy a{
    color:#fff!important;
}

/* Legacy form labels */
.dclinic-implants-appointment .dclinic-legacy-contact-form label,
.dclinic-implants-appointment .dclinic-form-field label{
    color:#fff!important;
    font-weight:600!important;
}

/* Actual legacy form controls */
.dclinic-implants-appointment .dclinic-legacy-contact-form input[type="text"],
.dclinic-implants-appointment .dclinic-legacy-contact-form input[type="email"],
.dclinic-implants-appointment .dclinic-legacy-contact-form textarea,
.dclinic-implants-appointment .dclinic-form-field input,
.dclinic-implants-appointment .dclinic-form-field textarea{
    background:#fff!important;
    background-color:#fff!important;
    color:#525559!important;
    border:1px solid #d8d6cc!important;
}

/* Checkbox itself stays native/white */
.dclinic-implants-appointment .dclinic-privacy-check input[type="checkbox"]{
    accent-color:#D0C883;
}

/* Supporting/legal copy */
.dclinic-implants-appointment .dclinic-implants-required,
.dclinic-implants-appointment .dclinic-privacy-check,
.dclinic-implants-appointment .dclinic-implants-legal-small,
.dclinic-implants-appointment .dclinic-implants-legal-small strong{
    color:#fff!important;
}

/* Submit button */
.dclinic-implants-appointment .dclinic-legacy-submit{
    background:#D0C883!important;
    background-color:#D0C883!important;
    color:#525559!important;
    border:1px solid #D0C883!important;
    font-weight:600!important;
}

.dclinic-implants-appointment .dclinic-legacy-submit:hover,
.dclinic-implants-appointment .dclinic-legacy-submit:focus-visible{
    background:#bdb46f!important;
    background-color:#bdb46f!important;
    border-color:#bdb46f!important;
    color:#525559!important;
}

/* Right-hand image: explicitly leave it visually untouched */
.dclinic-implants-appointment .dclinic-runtime-contact-right,
.dclinic-implants-appointment .dclinic-runtime-contact-right img{
    background:transparent!important;
}


/* =========================================================
   v2.18 — IMPLANTS CONTACT REFINEMENT
   - Remove white strip beside doctor image
   - Increase contact typography for readability
   ========================================================= */

/* Right image column: make the photo fill the whole block */
.dclinic-implants-appointment .dclinic-runtime-contact-right{
    overflow:hidden!important;
    background:#525559!important;
}

.dclinic-implants-appointment .dclinic-runtime-contact-right img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
}

/* Contact heading */
.dclinic-implants-appointment .dclinic-implants-cta-copy h2{
    font-size:34px!important;
    line-height:1.2!important;
}

/* Phone line */
.dclinic-implants-appointment .dclinic-implants-cta-copy h3{
    font-size:18px!important;
    line-height:1.35!important;
}

/* Email/body line */
.dclinic-implants-appointment .dclinic-implants-cta-copy p,
.dclinic-implants-appointment .dclinic-implants-cta-copy a{
    font-size:17px!important;
    line-height:1.45!important;
}

/* Field labels */
.dclinic-implants-appointment .dclinic-legacy-contact-form label,
.dclinic-implants-appointment .dclinic-form-field label{
    font-size:15px!important;
    line-height:1.35!important;
}

/* Form controls */
.dclinic-implants-appointment .dclinic-legacy-contact-form input[type="text"],
.dclinic-implants-appointment .dclinic-legacy-contact-form input[type="email"],
.dclinic-implants-appointment .dclinic-legacy-contact-form textarea,
.dclinic-implants-appointment .dclinic-form-field input,
.dclinic-implants-appointment .dclinic-form-field textarea{
    font-size:16px!important;
    line-height:1.4!important;
}

/* Supporting text */
.dclinic-implants-appointment .dclinic-implants-required,
.dclinic-implants-appointment .dclinic-privacy-check{
    font-size:14px!important;
    line-height:1.4!important;
}

.dclinic-implants-appointment .dclinic-implants-legal-small,
.dclinic-implants-appointment .dclinic-implants-legal-small strong{
    font-size:12px!important;
    line-height:1.35!important;
}

/* Submit */
.dclinic-implants-appointment .dclinic-legacy-submit{
    font-size:14px!important;
    line-height:1.2!important;
}


/* =========================================================
   v2.19 — IMPLANTS CONTACT IMAGE EDGE FIX
   Removes/crops the thin white strip at the right edge.
   ========================================================= */

.dclinic-implants-appointment .dclinic-runtime-contact-right{
    position:relative!important;
    overflow:hidden!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    outline:0!important;
    background:#525559!important;
    line-height:0!important;
}

/*
 * Slightly oversize the image so a possible baked-in white edge
 * in the source JPEG is cropped by the parent overflow.
 * Animation lives on the parent, so this does not affect reveal motion.
 */
.dclinic-implants-appointment .dclinic-runtime-contact-right img{
    display:block!important;
    width:101.5%!important;
    height:101.5%!important;
    max-width:none!important;
    min-width:101.5%!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin:-0.75% 0 -0.75% -0.75%!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
}


/* =========================================================
   v2.20 — IMPLANTS CONTACT IMAGE STRONGER CROP
   Removes remaining baked-in white edge from the source image.
   ========================================================= */

.dclinic-implants-appointment .dclinic-runtime-contact-right{
    overflow:hidden!important;
    background:#525559!important;
}

/*
 * Stronger centered crop.
 * Parent keeps the reveal animation; only the child image is scaled.
 */
.dclinic-implants-appointment .dclinic-runtime-contact-right img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    min-width:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    transform:scale(1.03)!important;
    transform-origin:center center!important;
}


/* =========================================================
   v2.21 — ORTODÒNCIA PALETTE FIXES
   ========================================================= */

/* Treatment titles: legacy green -> corporate beige */
.dclinic-imported-specialty .dclinic-ortho-treatment-title,
.dclinic-imported-specialty .dclinic-ortho-treatment-title h3,
body .dclinic-imported-specialty .dclinic-ortho-treatment-title,
body .dclinic-imported-specialty .dclinic-ortho-treatment-title h3{
    color:#D0C883!important;
}

/* Treatment body copy remains corporate dark gray */
.dclinic-imported-specialty .dclinic-ortho-treatment-copy,
.dclinic-imported-specialty .dclinic-ortho-treatment-copy p{
    color:#525559!important;
}

/* Ortodòncia appointment block: force dark corporate background */
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-ortho-appointment,
body .et-l--post > .et_builder_inner_content .et_pb_section.dclinic-ortho-appointment,
body .et_pb_section.dclinic-ortho-appointment{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

/* Keep inherited contact internals transparent over the dark section */
.dclinic-ortho-appointment .dclinic-implants-runtime-contact-row,
.dclinic-ortho-appointment .dclinic-implants-runtime-contact-row > .et_pb_column,
.dclinic-ortho-appointment .dclinic-implants-runtime-contact-module,
.dclinic-ortho-appointment .dclinic-runtime-contact,
.dclinic-ortho-appointment .dclinic-runtime-contact-left,
.dclinic-ortho-appointment .dclinic-runtime-contact-right{
    background:transparent!important;
    background-color:transparent!important;
}


/* =========================================================
   v2.22 — GLOBAL FOOTER LOGO + SUBMENU ACTIVE COLOUR
   ========================================================= */

/* Active Specialty child link inside desktop dropdown: Divi blue -> brand beige */
#main-header #top-menu .sub-menu li.current-menu-item > a,
#main-header #top-menu .sub-menu li.current_page_item > a,
#main-header #top-menu .sub-menu li.current-menu-ancestor > a,
#main-header.et-fixed-header #top-menu .sub-menu li.current-menu-item > a,
#main-header.et-fixed-header #top-menu .sub-menu li.current_page_item > a,
#main-header.et-fixed-header #top-menu .sub-menu li.current-menu-ancestor > a{
    color:#D0C883!important;
    font-weight:600!important;
}

/* Same active colour in responsive/mobile submenu */
#main-header #mobile_menu .sub-menu li.current-menu-item > a,
#main-header #mobile_menu .sub-menu li.current_page_item > a,
#main-header .et_mobile_menu .sub-menu li.current-menu-item > a,
#main-header .et_mobile_menu .sub-menu li.current_page_item > a{
    color:#D0C883!important;
    font-weight:600!important;
}

/* White corporate footer logo on the dark-gray lower footer */
#dclinic-global-footer .dclinic-global-footer-brand img{
    display:block!important;
}


/* =========================================================
   v2.23 — ESTÈTICA DENTAL PALETTE FIXES
   ========================================================= */

/* Treatment titles: legacy green -> corporate beige */
.dclinic-imported-specialty .dclinic-estetica-treatment-title,
.dclinic-imported-specialty .dclinic-estetica-treatment-title h3,
body .dclinic-imported-specialty .dclinic-estetica-treatment-title,
body .dclinic-imported-specialty .dclinic-estetica-treatment-title h3{
    color:#D0C883!important;
}

/* Treatment copy: corporate dark gray */
.dclinic-imported-specialty .dclinic-estetica-treatment-copy,
.dclinic-imported-specialty .dclinic-estetica-treatment-copy p{
    color:#525559!important;
}

/* Final contact section: force corporate dark-gray background */
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-estetica-appointment,
body .et-l--post > .et_builder_inner_content .et_pb_section.dclinic-estetica-appointment,
body .et_pb_section.dclinic-estetica-appointment{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

/* Keep shared contact internals transparent over the dark background */
.dclinic-estetica-appointment .dclinic-implants-runtime-contact-row,
.dclinic-estetica-appointment .dclinic-implants-runtime-contact-row > .et_pb_column,
.dclinic-estetica-appointment .dclinic-implants-runtime-contact-module,
.dclinic-estetica-appointment .dclinic-runtime-contact,
.dclinic-estetica-appointment .dclinic-runtime-contact-left,
.dclinic-estetica-appointment .dclinic-runtime-contact-right{
    background:transparent!important;
    background-color:transparent!important;
}


/* =========================================================
   v2.24 — ODONTOPEDIATRIA PALETTE FIXES
   ========================================================= */

/* Treatment titles: legacy green -> corporate beige */
.dclinic-imported-specialty .dclinic-odonto-treatment-title,
.dclinic-imported-specialty .dclinic-odonto-treatment-title h3,
body .dclinic-imported-specialty .dclinic-odonto-treatment-title,
body .dclinic-imported-specialty .dclinic-odonto-treatment-title h3{
    color:#D0C883!important;
}

/* Treatment body copy: corporate dark gray */
.dclinic-imported-specialty .dclinic-odonto-treatment-copy,
.dclinic-imported-specialty .dclinic-odonto-treatment-copy p{
    color:#525559!important;
}

/* Final contact section: force corporate dark-gray background */
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-odonto-appointment,
body .et-l--post > .et_builder_inner_content .et_pb_section.dclinic-odonto-appointment,
body .et_pb_section.dclinic-odonto-appointment{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

/* Keep shared contact internals transparent over the dark background */
.dclinic-odonto-appointment .dclinic-implants-runtime-contact-row,
.dclinic-odonto-appointment .dclinic-implants-runtime-contact-row > .et_pb_column,
.dclinic-odonto-appointment .dclinic-implants-runtime-contact-module,
.dclinic-odonto-appointment .dclinic-runtime-contact,
.dclinic-odonto-appointment .dclinic-runtime-contact-left,
.dclinic-odonto-appointment .dclinic-runtime-contact-right{
    background:transparent!important;
    background-color:transparent!important;
}


/* =========================================================
   v2.25 — PERIODÒNCIA PALETTE FIXES
   ========================================================= */

/* Treatment titles: legacy green -> corporate beige */
.dclinic-imported-specialty .dclinic-periodoncia-treatment-title,
.dclinic-imported-specialty .dclinic-periodoncia-treatment-title h3,
body .dclinic-imported-specialty .dclinic-periodoncia-treatment-title,
body .dclinic-imported-specialty .dclinic-periodoncia-treatment-title h3{
    color:#D0C883!important;
}

/* Treatment body copy: corporate dark gray */
.dclinic-imported-specialty .dclinic-periodoncia-treatment-copy,
.dclinic-imported-specialty .dclinic-periodoncia-treatment-copy p{
    color:#525559!important;
}

/* Final contact section: force corporate dark-gray background */
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-periodoncia-appointment,
body .et-l--post > .et_builder_inner_content .et_pb_section.dclinic-periodoncia-appointment,
body .et_pb_section.dclinic-periodoncia-appointment{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

/* Keep shared contact internals transparent over the dark background */
.dclinic-periodoncia-appointment .dclinic-implants-runtime-contact-row,
.dclinic-periodoncia-appointment .dclinic-implants-runtime-contact-row > .et_pb_column,
.dclinic-periodoncia-appointment .dclinic-implants-runtime-contact-module,
.dclinic-periodoncia-appointment .dclinic-runtime-contact,
.dclinic-periodoncia-appointment .dclinic-runtime-contact-left,
.dclinic-periodoncia-appointment .dclinic-runtime-contact-right{
    background:transparent!important;
    background-color:transparent!important;
}


/* =========================================================
   v2.26 — ENDODÒNCIA PALETTE FIXES
   ========================================================= */

/* Right-side treatment/process title: legacy green -> corporate beige */
.dclinic-imported-specialty .dclinic-endo-steps-title,
.dclinic-imported-specialty .dclinic-endo-steps-title h2,
.dclinic-imported-specialty .dclinic-endo-steps-title h3,
body .dclinic-imported-specialty .dclinic-endo-steps-title,
body .dclinic-imported-specialty .dclinic-endo-steps-title h2,
body .dclinic-imported-specialty .dclinic-endo-steps-title h3{
    color:#D0C883!important;
}

/* Explanatory copy/list: corporate dark gray */
.dclinic-imported-specialty .dclinic-endo-steps-copy,
.dclinic-imported-specialty .dclinic-endo-steps-copy p,
.dclinic-imported-specialty .dclinic-endo-steps-copy li,
.dclinic-imported-specialty .dclinic-endo-steps-copy strong{
    color:#525559!important;
}

/* Final contact section: force corporate dark-gray background */
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-endo-appointment,
body .et-l--post > .et_builder_inner_content .et_pb_section.dclinic-endo-appointment,
body .et_pb_section.dclinic-endo-appointment{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

/* Keep shared contact internals transparent over the dark background */
.dclinic-endo-appointment .dclinic-implants-runtime-contact-row,
.dclinic-endo-appointment .dclinic-implants-runtime-contact-row > .et_pb_column,
.dclinic-endo-appointment .dclinic-implants-runtime-contact-module,
.dclinic-endo-appointment .dclinic-runtime-contact,
.dclinic-endo-appointment .dclinic-runtime-contact-left,
.dclinic-endo-appointment .dclinic-runtime-contact-right{
    background:transparent!important;
    background-color:transparent!important;
}


/* =========================================================
   v2.27 — ENDODÒNCIA EXACT SELECTOR FIXES
   Uses the actual rendered classes from DevTools.
   ========================================================= */

/* Right text block: actual rendered class */
.dclinic-endodoncia-treatment-copy h3{
    color:#D0C883!important;
}

.dclinic-endodoncia-treatment-copy,
.dclinic-endodoncia-treatment-copy p,
.dclinic-endodoncia-treatment-copy ol,
.dclinic-endodoncia-treatment-copy li,
.dclinic-endodoncia-treatment-copy strong,
.dclinic-endodoncia-conservative-inline{
    color:#525559!important;
}

/* Final contact section: actual rendered class */
.et-l--post > .et_builder_inner_content .et_pb_section.dclinic-endodoncia-appointment,
body .et-l--post > .et_builder_inner_content .et_pb_section.dclinic-endodoncia-appointment,
body .et_pb_section.dclinic-endodoncia-appointment{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

/* Keep the inherited shared contact internals transparent */
.dclinic-endodoncia-appointment .dclinic-implants-runtime-contact-row,
.dclinic-endodoncia-appointment .dclinic-implants-runtime-contact-row > .et_pb_column,
.dclinic-endodoncia-appointment .dclinic-implants-runtime-contact-module,
.dclinic-endodoncia-appointment .dclinic-runtime-contact,
.dclinic-endodoncia-appointment .dclinic-runtime-contact-left,
.dclinic-endodoncia-appointment .dclinic-runtime-contact-right{
    background:transparent!important;
    background-color:transparent!important;
}


/* =========================================================
   v2.28 — ENDODÒNCIA TITLE HARD OVERRIDE
   Beats legacy green !important rule on the rendered h3.
   ========================================================= */

#page-container #main-content .dclinic-endodoncia-treatment-text
.dclinic-endodoncia-treatment-copy .et_pb_text_inner h3,
body #page-container #main-content .dclinic-endodoncia-treatment-text
.dclinic-endodoncia-treatment-copy .et_pb_text_inner h3{
    color:#D0C883!important;
}


/* =========================================================
   v2.29 — HIGIENE I PREVENCIÓ TITLE PALETTE
   ========================================================= */

/*
 * Existing legacy CSS sets these titles to #6b9400 !important.
 * Use a higher-specificity selector so the new brand beige wins.
 */
#page-container #main-content .dclinic-imported-specialty
.dclinic-prevencio-treatment-title,
#page-container #main-content .dclinic-imported-specialty
.dclinic-prevencio-treatment-title h3,
body #page-container #main-content .dclinic-imported-specialty
.dclinic-prevencio-treatment-title,
body #page-container #main-content .dclinic-imported-specialty
.dclinic-prevencio-treatment-title h3{
    color:#D0C883!important;
}


/* =========================================================
   v2.30 — HIGIENE I PREVENCIÓ TITLE HARD OVERRIDE
   Beats the legacy #6b9400 !important rule shown in DevTools.
   ========================================================= */

#page-container #main-content .dclinic-prevencio-treatment-title,
#page-container #main-content .dclinic-prevencio-treatment-title h3,
body #page-container #main-content .dclinic-prevencio-treatment-title,
body #page-container #main-content .dclinic-prevencio-treatment-title h3{
    color:#D0C883!important;
}


/* =========================================================
   v2.31 — CONTACTE BRAND PALETTE
   ========================================================= */

/* ---------------------------------------------------------
   1. CONTACTE HERO
   --------------------------------------------------------- */
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-hero-inner h1{
    color:#D0C883!important;
    font-weight:600!important;
}

body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-hero-line{
    background:#D0C883!important;
}

body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-hero-inner p{
    color:#7a7d80!important;
}

/* ---------------------------------------------------------
   2. CONTACT FORM SECTION
   --------------------------------------------------------- */
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-form-section{
    background:#525559!important;
    background-color:#525559!important;
    background-image:none!important;
}

body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-form-row,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-form-module,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-form-wrap{
    background:transparent!important;
    background-color:transparent!important;
}

/* Section heading */
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-form-wrap h2{
    color:#D0C883!important;
    font-weight:600!important;
}

/* Labels and supporting copy */
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-field label,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-required,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-privacy,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-legal,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-legal strong{
    color:#fff!important;
}

/* Privacy/legal links */
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-privacy a,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-legal a{
    color:#D0C883!important;
    font-weight:600!important;
}

/* Form controls: pale green -> white */
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-field input,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-field textarea{
    background:#fff!important;
    background-color:#fff!important;
    color:#525559!important;
    border:1px solid #d8d6cc!important;
}

/* Checkbox */
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-privacy input[type="checkbox"]{
    accent-color:#D0C883!important;
}

/* Submit button */
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-submit{
    background:#D0C883!important;
    background-color:#D0C883!important;
    color:#525559!important;
    border-color:#D0C883!important;
    font-weight:600!important;
}

body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-submit:hover,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-submit:focus-visible{
    background:#bdb46f!important;
    background-color:#bdb46f!important;
    color:#525559!important;
}


/* =========================================================
   v2.32 — CONTACTE DOCTOR IMAGE EDGE FIX
   Same crop treatment already validated on specialty pages.
   ========================================================= */

body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-image,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-form-image,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-runtime-contact-right{
    position:relative!important;
    overflow:hidden!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    outline:0!important;
    background:#525559!important;
    line-height:0!important;
}

body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-image img,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-contacte-form-image img,
body.dclinic-imported-contacte #page-container #main-content
.dclinic-runtime-contact-right img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    min-width:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    transform:scale(1.03)!important;
    transform-origin:center center!important;
}


/* =========================================================
   v2.33 — CONTACTE EXACT DOCTOR IMAGE FIX
   Uses the actual rendered .dclinic-contacte-form-doctor class.
   ========================================================= */

#page-container #main-content .dclinic-contacte-form-doctor,
body #page-container #main-content .dclinic-contacte-form-doctor{
    position:relative!important;
    overflow:hidden!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    outline:0!important;
    background:#525559!important;
    line-height:0!important;
}

/*
 * Crop the baked-in/right-edge white strip.
 * The reveal animation stays on the parent container.
 */
#page-container #main-content .dclinic-contacte-form-doctor img,
body #page-container #main-content .dclinic-contacte-form-doctor img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    min-width:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    transform:scale(1.03)!important;
    transform-origin:center center!important;
}


/* =========================================================
   v2.34 — HIDE WPML DEVELOPMENT-SITE FRONT-END BANNER
   Visual-only: does not alter WPML registration/key status.
   ========================================================= */

.otgs-development-site-front-end{
    display:none!important;
}


/* =========================================================
   v2.35 — AVÍS LEGAL BRAND PALETTE
   Scoped only to WordPress page ID 301.
   ========================================================= */

/* Main legal-page title */
body.page-id-301 #page-container #main-content .dclinic-legal-title{
    color:#D0C883!important;
    font-weight:600!important;
}

/* Subtitle */
body.page-id-301 #page-container #main-content .dclinic-legal-subtitle{
    color:#8A8D90!important;
}

/* Main legal copy */
body.page-id-301 #page-container #main-content .dclinic-legal-copy,
body.page-id-301 #page-container #main-content .dclinic-legal-copy-inner{
    color:#525559!important;
}

/* All legal section headings, including the introductory notice */
body.page-id-301 #page-container #main-content .dclinic-legal-copy-inner h2,
body.page-id-301 #page-container #main-content .dclinic-legal-copy-inner h3,
body.page-id-301 #page-container #main-content .dclinic-legal-copy-inner h4,
body.page-id-301 #page-container #main-content .dclinic-legal-copy-inner h5{
    color:#D0C883!important;
    font-weight:600!important;
}

/* Links in legal copy */
body.page-id-301 #page-container #main-content .dclinic-legal-copy-inner a{
    color:#B9AD58!important;
    text-decoration:underline!important;
}

/* If the header separator is generated as a rule/pseudo element, use beige */
body.page-id-301 #page-container #main-content .dclinic-legal-head::after,
body.page-id-301 #page-container #main-content .dclinic-legal-title::after{
    border-color:#D0C883!important;
    background-color:#D0C883!important;
}


/* =========================================================
   v2.36 — AVÍS LEGAL TITLE + BODY SPACING FIX
   Scoped only to Avís legal (page ID 301).
   ========================================================= */

/* Beat the older green !important rule on the actual h1/header node. */
body.page-id-301 #page-container #main-content .dclinic-legal-title,
body.page-id-301 #page-container #main-content .dclinic-legal-title h1,
body.page-id-301 #page-container #main-content .dclinic-legal-title .et_pb_module_header{
    color:#D0C883!important;
    font-weight:600!important;
}

/* Actual rendered separator element. */
body.page-id-301 #page-container #main-content .dclinic-legal-title-rule{
    background:#D0C883!important;
    background-color:#D0C883!important;
}

/*
 * Reduce the large gap between:
 * "INFORMACIÓ DISPONIBLE NOMÉS EN CASTELLÀ:"
 * and "1. Datos identificativos."
 *
 * Legacy CSS used 46px bottom margin on the first heading.
 */
body.page-id-301 #page-container #main-content
.dclinic-legal-copy-inner > h3:first-child,
body.page-id-301 #page-container #main-content
.dclinic-legal-copy-inner > h2:first-child{
    margin:0 0 12px!important;
}

/* Neutralize the legacy spacer paragraph immediately after the intro heading. */
body.page-id-301 #page-container #main-content
.dclinic-legal-copy-inner > h3:first-child + p,
body.page-id-301 #page-container #main-content
.dclinic-legal-copy-inner > h2:first-child + p{
    margin-top:0!important;
    margin-bottom:10px!important;
    min-height:0!important;
}

/* Keep the first numbered heading close to the introductory notice. */
body.page-id-301 #page-container #main-content
.dclinic-legal-copy-inner > h3:first-child + p + h3,
body.page-id-301 #page-container #main-content
.dclinic-legal-copy-inner > h2:first-child + p + h3{
    margin-top:12px!important;
}


/* =========================================================
   v2.37 — ALL LEGAL PAGES: BRAND PALETTE + TIGHTER INTRO GAP
   Applies consistently to Avís legal, Privacitat and Cookies.
   ========================================================= */

/* Main title on every imported legal page */
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-title,
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-title h1,
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-title .et_pb_module_header{
    color:#D0C883!important;
    font-weight:600!important;
}

/* Separator */
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-title-rule{
    background:#D0C883!important;
    background-color:#D0C883!important;
}

/* Subtitle */
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-subtitle{
    color:#8A8D90!important;
}

/* Legal body copy */
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy,
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy-inner,
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy-inner p,
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy-inner li{
    color:#525559!important;
}

/* All legal headings */
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy-inner h2,
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy-inner h3,
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy-inner h4,
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy-inner h5{
    color:#D0C883!important;
    font-weight:600!important;
}

/* Legal links */
body.dclinic-imported-legal #page-container #main-content .dclinic-legal-copy-inner a{
    color:#B9AD58!important;
    text-decoration:underline!important;
}

/* ---------------------------------------------------------
   Tighter gap under the introductory legal notice.
   v2.36 used ~12px + spacer; reduce to about half.
   --------------------------------------------------------- */
body.dclinic-imported-legal #page-container #main-content
.dclinic-legal-copy-inner > h3:first-child,
body.dclinic-imported-legal #page-container #main-content
.dclinic-legal-copy-inner > h2:first-child{
    margin:0 0 6px!important;
}

/* Collapse the legacy spacer paragraph directly below it */
body.dclinic-imported-legal #page-container #main-content
.dclinic-legal-copy-inner > h3:first-child + p,
body.dclinic-imported-legal #page-container #main-content
.dclinic-legal-copy-inner > h2:first-child + p{
    margin:0 0 4px!important;
    padding:0!important;
    min-height:0!important;
    line-height:1!important;
}

/* First numbered/legal heading follows more closely */
body.dclinic-imported-legal #page-container #main-content
.dclinic-legal-copy-inner > h3:first-child + p + h3,
body.dclinic-imported-legal #page-container #main-content
.dclinic-legal-copy-inner > h2:first-child + p + h3{
    margin-top:6px!important;
}


/* =========================================================
   v2.38 — HOME TYPOGRAPHY PILOT
   Desktop-only typography refinement.
   Intentionally does NOT alter section/row spacing, colors,
   header, hero slider, footer or animations.
   ========================================================= */

@media (min-width:981px){

    /* -----------------------------------------------------
       WELCOME STATEMENT
       ----------------------------------------------------- */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-welcome-title,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-welcome-title h1{
        font-size:36px!important;
        font-weight:600!important;
        line-height:1.25!important;
    }

    /* -----------------------------------------------------
       MAIN SECTION TITLES
       Què oferim? / Equip professional / equivalent Home h2s
       ----------------------------------------------------- */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-section-title,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-section-title h1,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-section-title h2,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-section-title h3{
        font-size:32px!important;
        font-weight:600!important;
        line-height:1.20!important;
    }

    /* -----------------------------------------------------
       SPECIALTY CARD LABELS
       ----------------------------------------------------- */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-specialty-card span{
        font-size:20px!important;
        font-weight:500!important;
        line-height:1.25!important;
        letter-spacing:0!important;
    }

    /* -----------------------------------------------------
       TEAM INTRO COPY
       ----------------------------------------------------- */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-intro,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-intro p{
        font-size:16px!important;
        font-weight:400!important;
        line-height:1.55!important;
    }

    /* -----------------------------------------------------
       FOUNDER / DR. ALBERT BLOCK
       ----------------------------------------------------- */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio h3{
        font-size:22px!important;
        font-weight:600!important;
        line-height:1.25!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio h4{
        font-size:17px!important;
        font-weight:600!important;
        line-height:1.35!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio p,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio li{
        font-size:16px!important;
        font-weight:400!important;
        line-height:1.50!important;
    }

    /* -----------------------------------------------------
       TEAM GRID
       Name becomes primary, role becomes secondary.
       ----------------------------------------------------- */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-caption-inner h3,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-card h4,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-card .et_pb_module_header{
        font-size:20px!important;
        font-weight:600!important;
        line-height:1.25!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-caption-inner p,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-card .et_pb_member_position,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-card .dclinic-member-role{
        font-size:17px!important;
        font-weight:500!important;
        line-height:1.30!important;
    }

    /* -----------------------------------------------------
       CONTACT SECTION
       ----------------------------------------------------- */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-section h2,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-heading,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-heading h2{
        font-size:32px!important;
        font-weight:600!important;
        line-height:1.20!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info p,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info a{
        font-size:16px!important;
        font-weight:400!important;
        line-height:1.50!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-native-contact label{
        font-size:15px!important;
        font-weight:500!important;
        line-height:1.35!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-native-contact input,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-native-contact textarea{
        font-size:16px!important;
        font-weight:400!important;
        line-height:1.40!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-legal,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-legal a,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-legal-small{
        font-size:13px!important;
        font-weight:400!important;
        line-height:1.40!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-native-contact .et_pb_contact_submit{
        font-size:15px!important;
        font-weight:600!important;
        line-height:1.20!important;
    }
}


/* =========================================================
   v2.39 — LOGO / TYPOGRAPHY / CONTACT-FORM TEST PASS
   ========================================================= */

/* Runtime Home form: no Divi captcha, same visual structure. */
.dclinic-imported-home .dclinic-home-runtime-form{
    width:100%!important;
    margin:0!important;
}
.dclinic-imported-home .dclinic-home-runtime-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px 16px!important;
}
.dclinic-imported-home .dclinic-home-runtime-field{
    min-width:0!important;
}
.dclinic-imported-home .dclinic-home-runtime-full{
    grid-column:1/-1!important;
}
.dclinic-imported-home .dclinic-home-runtime-field label{
    display:block!important;
    color:#fff!important;
    margin:0 0 6px!important;
}
.dclinic-imported-home .dclinic-home-runtime-field input,
.dclinic-imported-home .dclinic-home-runtime-field textarea{
    width:100%!important;
    box-sizing:border-box!important;
    background:#fff!important;
    color:#333!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:12px 14px!important;
}
.dclinic-imported-home .dclinic-home-runtime-field textarea{
    min-height:118px!important;
    resize:vertical!important;
}
.dclinic-imported-home .dclinic-home-runtime-actions{
    display:flex!important;
    justify-content:flex-end!important;
    margin-top:14px!important;
}
.dclinic-imported-home .dclinic-home-runtime-submit{
    background:#D0C883!important;
    border:0!important;
    border-radius:0!important;
    color:#525559!important;
    padding:11px 17px!important;
    cursor:pointer!important;
}

/* Fallback: if any legacy Divi captcha exists elsewhere, do not show it. */
.dclinic-imported-home .et_pb_contact_right,
.dclinic-imported-home .et_pb_contact_captcha,
.dclinic-imported-home .et_pb_contact_captcha_question,
.dclinic-imported-specialty .et_pb_contact_right,
.dclinic-imported-specialty .et_pb_contact_captcha,
.dclinic-imported-specialty .et_pb_contact_captcha_question,
.dclinic-imported-contacte .et_pb_contact_right,
.dclinic-imported-contacte .et_pb_contact_captcha,
.dclinic-imported-contacte .et_pb_contact_captcha_question{
    display:none!important;
}

/* Desktop typography refinements requested from screenshot 2 onward. */
@media (min-width:981px){

    /* Home — Equip professional / Dr. Albert block: +2px over v2.38. */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-intro-section .dclinic-section-title,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-intro-section .dclinic-section-title h2{
        font-size:34px!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-intro,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-team-intro p{
        font-size:18px!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio h3{
        font-size:24px!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio h4{
        font-size:19px!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio p,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio li{
        font-size:18px!important;
    }

    /* Home contact block: +2px. */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-section h2,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-heading,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-heading h2{
        font-size:34px!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info p,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info a{
        font-size:18px!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-home-runtime-field label{
        font-size:17px!important;
        font-weight:500!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-home-runtime-field input,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-home-runtime-field textarea{
        font-size:18px!important;
        font-weight:400!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-legal,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-legal a,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-legal-small{
        font-size:15px!important;
        line-height:1.40!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-home-runtime-submit{
        font-size:17px!important;
        font-weight:600!important;
    }

    /* Global lower-footer contact information: +2px. */
    #dclinic-global-footer .dclinic-global-footer-contact p,
    #dclinic-global-footer .dclinic-global-footer-contact a,
    #dclinic-global-footer .dclinic-global-footer-contact strong,
    #dclinic-global-footer .dclinic-global-footer-contact span{
        font-size:16px!important;
    }

    /* -----------------------------------------------------
       Especialitats: +2px to body copy only, not headings.
       ----------------------------------------------------- */
    .dclinic-imported-specialty .dclinic-implants-intro-copy,
    .dclinic-imported-specialty .dclinic-implants-intro-copy p,
    .dclinic-imported-specialty .dclinic-implants-intro-copy li{
        font-size:18px!important;
    }

    .dclinic-imported-specialty .dclinic-implant-card-copy p{
        font-size:16px!important;
    }

    .dclinic-imported-specialty .dclinic-implants-brands-copy,
    .dclinic-imported-specialty .dclinic-implants-brands-copy p{
        font-size:17px!important;
    }

    .dclinic-imported-specialty .dclinic-ortho-treatment-copy,
    .dclinic-imported-specialty .dclinic-ortho-treatment-copy p{
        font-size:17px!important;
    }

    .dclinic-imported-specialty .dclinic-ortho-closing,
    .dclinic-imported-specialty .dclinic-ortho-closing p{
        font-size:18px!important;
    }

    .dclinic-imported-specialty .dclinic-estetica-treatment-copy,
    .dclinic-imported-specialty .dclinic-estetica-treatment-copy p,
    .dclinic-imported-specialty .dclinic-estetica-closing,
    .dclinic-imported-specialty .dclinic-estetica-closing p,
    .dclinic-imported-specialty .dclinic-odonto-treatment-copy,
    .dclinic-imported-specialty .dclinic-odonto-treatment-copy p,
    .dclinic-imported-specialty .dclinic-odonto-closing,
    .dclinic-imported-specialty .dclinic-odonto-closing p,
    .dclinic-imported-specialty .dclinic-periodoncia-treatment-copy,
    .dclinic-imported-specialty .dclinic-periodoncia-treatment-copy p{
        font-size:17px!important;
    }

    .dclinic-imported-specialty .dclinic-endodoncia-step-copy,
    .dclinic-imported-specialty .dclinic-endodoncia-step-copy p,
    .dclinic-imported-specialty .dclinic-endodoncia-treatment-copy,
    .dclinic-imported-specialty .dclinic-endodoncia-treatment-copy p,
    .dclinic-imported-specialty .dclinic-endodoncia-treatment-copy li{
        font-size:18px!important;
    }

    .dclinic-imported-specialty .dclinic-endodoncia-conservative,
    .dclinic-imported-specialty .dclinic-endodoncia-conservative p{
        font-size:19px!important;
    }

    /* Specialty contact forms: normal/body/UI copy +2px, titles untouched. */
    .dclinic-imported-specialty .dclinic-implants-cta-copy p,
    .dclinic-imported-specialty .dclinic-implants-cta-copy a{
        font-size:19px!important;
    }

    .dclinic-imported-specialty .dclinic-form-field label{
        font-size:17px!important;
    }

    .dclinic-imported-specialty .dclinic-form-field input,
    .dclinic-imported-specialty .dclinic-form-field textarea{
        font-size:18px!important;
    }

    .dclinic-imported-specialty .dclinic-implants-required,
    .dclinic-imported-specialty .dclinic-privacy-check{
        font-size:16px!important;
    }

    .dclinic-imported-specialty .dclinic-implants-legal-small{
        font-size:14px!important;
        line-height:1.35!important;
    }

    .dclinic-imported-specialty .dclinic-legacy-submit{
        font-size:16px!important;
    }
}


/* =========================================================
   v2.40 — HARD RUNTIME + EXACT +2PX TYPOGRAPHY FIXES
   ========================================================= */

/* Make sure any old Divi captcha/validation UI cannot remain visible on Home. */
body.home #page-container #main-content .dclinic-native-contact .et_pb_contact_right,
body.home #page-container #main-content .dclinic-native-contact .et_pb_contact_captcha,
body.home #page-container #main-content .dclinic-native-contact .et_pb_contact_captcha_question,
body.home #page-container #main-content .dclinic-native-contact .et-pb-contact-message{
    display:none!important;
}

/* Home runtime form button label/style */
body.home #page-container #main-content .dclinic-home-runtime-submit{
    font-family:var(--dclinic-font-brand)!important;
    text-transform:uppercase!important;
}

/* ---------------------------------------------------------
   SCREENSHOT 1 — Home Equip professional / Albert block
   +2px body/secondary copy, titles preserved.
   --------------------------------------------------------- */
@media (min-width:981px){
    body.home #page-container #main-content .dclinic-team-intro-section .dclinic-team-intro,
    body.home #page-container #main-content .dclinic-team-intro-section .dclinic-team-intro p{
        font-size:18px!important;
        line-height:1.55!important;
    }

    body.home #page-container #main-content .dclinic-founder-bio > p,
    body.home #page-container #main-content .dclinic-founder-bio p,
    body.home #page-container #main-content .dclinic-founder-bio li{
        font-size:18px!important;
        line-height:1.50!important;
    }

    /* -----------------------------------------------------
       SCREENSHOT 2 — Home contact information + legal copy
       +2px relative to the current rendered sizes.
       ----------------------------------------------------- */
    body.home #page-container #main-content .dclinic-contact-info,
    body.home #page-container #main-content .dclinic-contact-info p,
    body.home #page-container #main-content .dclinic-contact-info a,
    body.home #page-container #main-content .dclinic-contact-info strong{
        font-size:16px!important;
        line-height:1.50!important;
    }

    body.home #page-container #main-content .dclinic-contact-legal,
    body.home #page-container #main-content .dclinic-contact-legal p,
    body.home #page-container #main-content .dclinic-contact-legal a,
    body.home #page-container #main-content .dclinic-legal-small,
    body.home #page-container #main-content .dclinic-legal-small strong{
        font-size:13px!important;
        line-height:1.40!important;
    }

    /* Home form text */
    body.home #page-container #main-content .dclinic-home-runtime-field label{
        font-size:16px!important;
    }
    body.home #page-container #main-content .dclinic-home-runtime-field input,
    body.home #page-container #main-content .dclinic-home-runtime-field textarea{
        font-size:16px!important;
    }
    body.home #page-container #main-content .dclinic-home-runtime-submit{
        font-size:14px!important;
        font-weight:600!important;
    }

    /* -----------------------------------------------------
       SCREENSHOT 3 — Especialitats normal body text +2px.
       Covers generated and runtime card/copy structures.
       Titles (h1-h6) are intentionally excluded.
       ----------------------------------------------------- */
    body.dclinic-imported-specialty #page-container #main-content
    .et_pb_text:not(.dclinic-implants-cta-copy):not(.dclinic-contact-heading) p,
    body.dclinic-imported-specialty #page-container #main-content
    .et_pb_text:not(.dclinic-implants-cta-copy):not(.dclinic-contact-heading) li,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-runtime-type-copy p,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-implant-card-copy p,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-ortho-treatment-copy p,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-estetica-treatment-copy p,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-odonto-treatment-copy p,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-periodoncia-treatment-copy p,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-endodoncia-treatment-copy p,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-endodoncia-treatment-copy li,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-prevencio-treatment-copy p{
        font-size:17px!important;
        line-height:1.50!important;
    }

    /* Intro/body areas that are currently one size larger. */
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-implants-intro-copy p,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-implants-intro-copy li{
        font-size:18px!important;
    }

    /* Specialty contact forms: labels/body/legal +2px, heading untouched. */
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-form-field label{
        font-size:16px!important;
    }
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-form-field input,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-form-field textarea{
        font-size:16px!important;
    }
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-implants-required,
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-privacy-check{
        font-size:15px!important;
    }
    body.dclinic-imported-specialty #page-container #main-content
    .dclinic-implants-legal-small{
        font-size:12px!important;
        line-height:1.35!important;
    }

    /* -----------------------------------------------------
       SCREENSHOT 4 — Contacte form page +2px
       ----------------------------------------------------- */
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-field label{
        font-size:16px!important;
        line-height:1.35!important;
    }

    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-field input,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-field textarea{
        font-size:16px!important;
    }

    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-required,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-privacy{
        font-size:15px!important;
        line-height:1.40!important;
    }

    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-legal,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-legal strong,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-legal a{
        font-size:12px!important;
        line-height:1.35!important;
    }

    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-submit{
        font-size:16px!important;
    }
}


/* =========================================================
   v2.41 — EXACT +2PX PASS FOR USER-IDENTIFIED ELEMENTS
   Desktop only; spacing/colors/layout unchanged.
   ========================================================= */
@media (min-width:981px){

    /* 1) Home — "Associació de Dentistes MDR:" */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio .dclinic-founder-association,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio p:last-of-type,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-bio a{
        font-size:20px!important;
    }

    /* 2) Global footer — phone / WhatsApp / address / email */
    #dclinic-global-footer .dclinic-global-footer-contact,
    #dclinic-global-footer .dclinic-global-footer-contact p,
    #dclinic-global-footer .dclinic-global-footer-contact a,
    #dclinic-global-footer .dclinic-global-footer-contact strong,
    #dclinic-global-footer .dclinic-global-footer-contact span,
    #dclinic-global-footer .dclinic-global-footer-contact li{
        font-size:18px!important;
        line-height:1.50!important;
    }

    /* 3) Home contact section — headings +2px */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-section h2,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-heading,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-heading h2{
        font-size:36px!important;
    }

    /* Left contact details +2px */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info p,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info a,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info strong,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-info li{
        font-size:18px!important;
        line-height:1.50!important;
    }

    /* Home runtime form field labels/inputs +2px */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-home-runtime-field label{
        font-size:18px!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-home-runtime-field input,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-home-runtime-field textarea{
        font-size:18px!important;
    }

    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-home-runtime-submit{
        font-size:16px!important;
    }

    /* Home legal/privacy copy +2px */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-legal,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-legal p,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-legal a,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-contact-legal strong,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-legal-small,
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-legal-small strong{
        font-size:15px!important;
        line-height:1.40!important;
    }

    /* 4) Contacte page form — another +2px from v2.40 */
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-field label{
        font-size:18px!important;
        line-height:1.35!important;
    }

    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-field input,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-field textarea{
        font-size:18px!important;
    }

    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-required,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-privacy,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-privacy a{
        font-size:17px!important;
        line-height:1.40!important;
    }

    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-legal,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-legal strong,
    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-legal a{
        font-size:14px!important;
        line-height:1.40!important;
    }

    body.dclinic-imported-contacte #page-container #main-content
    .dclinic-contacte-submit{
        font-size:18px!important;
    }
}


/* =========================================================
   v2.42 — MDR HEADING + LEGAL BODY +2PX
   ========================================================= */

@media (min-width:981px){

    /* Exact rendered selector for "Associació de Dentistes MDR:" */
    body.home #page-container #main-content
    .dclinic-imported-home .dclinic-founder-mdr-anim h4{
        font-size:19px!important;
        font-weight:600!important;
        line-height:1.35!important;
    }

    /*
     * Legal pages: +2px to normal body copy only.
     * Headings remain unchanged.
     */
    body.dclinic-imported-legal #page-container #main-content
    .dclinic-legal-copy-inner p,
    body.dclinic-imported-legal #page-container #main-content
    .dclinic-legal-copy-inner li{
        font-size:16px!important;
        line-height:1.55!important;
    }

    body.dclinic-imported-legal #page-container #main-content
    .dclinic-legal-copy-inner p a,
    body.dclinic-imported-legal #page-container #main-content
    .dclinic-legal-copy-inner li a{
        font-size:16px!important;
    }
}


/* =========================================================
   v2.43 — HOME FORM + MDR + SPECIALTY CONTACT FONT FIX
   ========================================================= */

/*
 * Exact rendered MDR heading.
 * Keep this OUTSIDE desktop media queries so DevTools/tablet-width
 * viewports cannot fall back to the old 17px !important rule.
 */
html body.home #page-container #main-content
.dclinic-imported-home .dclinic-founder-bio
.dclinic-founder-mdr-anim > h4{
    font-size:19px!important;
    font-weight:600!important;
    line-height:1.35!important;
}

/*
 * Especialitats contact blocks: +2px globally.
 * Titles remain unchanged; all supporting/form/legal copy is enlarged.
 */
body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-implants-cta-copy h3{
    font-size:19px!important;
    line-height:1.40!important;
}

body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-implants-cta-copy p,
body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-implants-cta-copy p a{
    font-size:19px!important;
    line-height:1.45!important;
}

body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-form-field label{
    font-size:18px!important;
    line-height:1.35!important;
}

body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-form-field input,
body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-form-field textarea{
    font-size:18px!important;
    line-height:1.40!important;
}

body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-implants-required,
body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-privacy-check,
body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-privacy-check a{
    font-size:17px!important;
    line-height:1.40!important;
}

body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-implants-legal-small,
body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-implants-legal-small strong,
body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-implants-legal-small a{
    font-size:14px!important;
    line-height:1.40!important;
}

body.dclinic-imported-specialty #page-container #main-content
.dclinic-runtime-contact .dclinic-legacy-submit{
    font-size:18px!important;
    font-weight:600!important;
}

/* Home runtime replacement must always show ENVIAR in the brand style. */
body.home #page-container #main-content
.dclinic-home-runtime-form-v240 .dclinic-home-runtime-submit{
    font-size:16px!important;
    font-weight:600!important;
    text-transform:uppercase!important;
}


/* =========================================================
   v2.44 — FINAL MDR + HOME FORM FALLBACKS
   ========================================================= */

/* Exact element shown in DevTools. No page/body/media dependency. */
.dclinic-founder-mdr-anim > h4{
    font-size:19px!important;
    font-weight:600!important;
    line-height:1.35!important;
}

/*
 * Home Divi button text fallback.
 * JavaScript changes the real label to ENVIAR; this guarantees the
 * visible text even if Divi repaints the button before JS reapplies.
 */
.dclinic-native-contact .et_pb_contact_submit,
.dclinic-contact-section .et_pb_contact_submit{
    font-size:0!important;
}

.dclinic-native-contact .et_pb_contact_submit::before,
.dclinic-contact-section .et_pb_contact_submit::before{
    content:"ENVIAR"!important;
    font-family:var(--dclinic-font-brand)!important;
    font-size:16px!important;
    font-weight:600!important;
    line-height:1.2!important;
    display:inline-block!important;
    position:static!important;
    opacity:1!important;
    margin:0!important;
}

/* Captcha must not be visible on the Home contact form. */
.dclinic-native-contact .et_pb_contact_right,
.dclinic-native-contact .et_pb_contact_captcha,
.dclinic-native-contact .et_pb_contact_captcha_question,
.dclinic-contact-section .et_pb_contact_right,
.dclinic-contact-section .et_pb_contact_captcha,
.dclinic-contact-section .et_pb_contact_captcha_question{
    display:none!important;
}

/* Runtime send status */
.dclinic-home-submit-status{
    width:100%;
    margin:0 0 14px;
    font-size:15px;
    line-height:1.4;
}
.dclinic-home-submit-status.is-ok{
    color:#D0C883;
}
.dclinic-home-submit-status.is-error{
    color:#f1b3b3;
}


/* =========================================================
   v2.45 — HOME SUBMIT DUPLICATE LABEL FIX
   ========================================================= */

/*
 * v2.44 used a ::before fallback that duplicated ENVIAR once
 * JavaScript successfully changed the real Divi button text.
 * Keep only the real button label.
 */
.dclinic-native-contact .et_pb_contact_submit,
.dclinic-contact-section .et_pb_contact_submit{
    font-size:16px!important;
}

.dclinic-native-contact .et_pb_contact_submit::before,
.dclinic-contact-section .et_pb_contact_submit::before{
    content:none!important;
    display:none!important;
}


/* =========================================================
   v2.49 — HOME INSTAGRAM FEED
   Between "Què oferim?" and "Equip professional".
   ========================================================= */

.dclinic-imported-home .dclinic-instagram-feed-section{
    background:#fff!important;
    padding:38px 0 48px!important;
}

.dclinic-imported-home .dclinic-instagram-feed-row{
    width:90%!important;
    max-width:1280px!important;
    margin-left:auto!important;
    margin-right:auto!important;
}

.dclinic-imported-home .dclinic-instagram-feed-module,
.dclinic-imported-home .dclinic-instagram-feed-module .et_pb_text_inner{
    width:100%!important;
    max-width:none!important;
}

@media (max-width:980px){
    .dclinic-imported-home .dclinic-instagram-feed-section{
        padding:30px 0 38px!important;
    }
    .dclinic-imported-home .dclinic-instagram-feed-row{
        width:92%!important;
    }
}

@media (max-width:767px){
    .dclinic-imported-home .dclinic-instagram-feed-section{
        padding:24px 0 32px!important;
    }
    .dclinic-imported-home .dclinic-instagram-feed-row{
        width:94%!important;
    }
}


/* WPML language switcher flags: SVG flags have no intrinsic size, keep them at 18x12 everywhere (menu, dropdown, mobile). */
.wpml-ls-item img.wpml-ls-flag,
#top-menu .wpml-ls-item img.wpml-ls-flag,
.et_mobile_menu .wpml-ls-item img.wpml-ls-flag {
  width: 18px !important;
  height: 12px !important;
  max-width: none !important;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}


/* dclinic Formació pages (ca /formacio/, es /es/formacion/): the gold pill logo replaces the grey header pill.
   header-brand.js adds .dclinic-logo-formacio to #logo only on those pages. */
#main-header:has(#logo.dclinic-logo-formacio)::before {
  background: transparent !important;
}
/* Anchor the logo to the header's left edge, where the grey pill was. */
#main-header:has(#logo.dclinic-logo-formacio) .et_menu_container {
  position: static !important;
}
#main-header:has(#logo.dclinic-logo-formacio) .logo_container {
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: auto !important;
}
#main-header #logo.dclinic-logo-formacio {
  position: absolute !important;
  left: 0 !important;
  top: 5px !important;
  height: calc(100% - 10px) !important;
  max-height: none !important;
  width: auto !important;
  max-width: calc(100vw - 90px) !important;
  object-fit: contain;
  object-position: left center;
  transform: none !important;
  margin: 0 !important;
  z-index: 1;
}


/* Submenu items in uppercase, like the top-level menu (desktop dropdown and mobile menu). */
#top-menu .sub-menu a,
.et_mobile_menu .sub-menu a {
  text-transform: uppercase !important;
  letter-spacing: .04em;
}


/* Mobile menu: dclinic accent instead of Divi's default blue, and language flags on one line. */
.et_mobile_menu {
  border-top-color: #d0c883 !important;
}
#main-header #mobile_menu li.wpml-ls-item,
.et_mobile_menu li.wpml-ls-item {
  display: inline-block !important;
  width: auto !important;
}
#main-header #mobile_menu li.wpml-ls-item a,
.et_mobile_menu li.wpml-ls-item a {
  display: inline-block !important;
  width: auto !important;
  padding: 14px 12px !important;
  border-bottom: 0 !important;
}
#main-header #mobile_menu li.wpml-ls-item.wpml-ls-first-item a,
.et_mobile_menu li.wpml-ls-item:first-of-type a,
.et_mobile_menu li.wpml-ls-item.wpml-ls-first-item a {
  padding-left: 5% !important;
}


/* Formació logo on mobile/tablet: the image is the whole gold pill (very wide), so instead of shrinking it
   to fit, match the grey pill's size and crop from the left (the logo and rounded end stay visible). */
@media (max-width: 980px) {
  #main-header #logo.dclinic-logo-formacio {
    width: min(267px, calc(100vw - 110px)) !important;
    height: 50px !important;
    top: 5px !important;
    object-fit: cover !important;
    object-position: right center !important;
    border-radius: 0 26px 26px 0;
  }
}
