/**
 * Dermocosmesi - Banner promozionale (shortcode [dermo_banner])
 */

.dermo-banner {
    display: grid;
    grid-template-columns: 405fr 420fr;
    align-items: stretch;
    width: 100%;
    max-width: 825px;
    margin: 0 auto;
    background: #dfece7;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.dermo-banner:hover,
.dermo-banner:focus {
    text-decoration: none;
    color: inherit;
}

.dermo-banner__media {
    aspect-ratio: 405 / 280;
    overflow: hidden;
}

.dermo-banner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.dermo-banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 35px 40px 29px;
}

.dermo-banner__title {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 32px;
    color: #388e8e;
    margin: 0 0 14px;
}

.dermo-banner__claim {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 22px;
    color: #388e8e;
    margin: 0 0 16px;
}

.dermo-banner__text {
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.3;
    color: #272727;
    margin: 0 0 24px;
}

.dermo-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    padding: 10px 18px;
    border-radius: 50px;
    background: #388e8e;
    color: #fff;
    font-family: Lato, sans-serif;
    font-weight: 900;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.77px;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.dermo-banner:hover .dermo-banner__cta,
.dermo-banner:focus .dermo-banner__cta {
    background: #2f7a7a;
}

/* Pulsante standalone [dermo_cta] */
.dermo-cta-wrap {
    margin: 24px 0;
}

.dermo-cta-wrap--center {
    text-align: center;
}

a.dermo-banner__cta:hover,
a.dermo-banner__cta:focus {
    background: #2f7a7a;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .dermo-banner {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .dermo-banner__media {
        aspect-ratio: 324 / 255;
    }

    .dermo-banner__content {
        align-items: center;
        text-align: center;
        padding: 38px 30px 24px;
    }

    .dermo-banner__title {
        margin-bottom: 11px;
    }

    .dermo-banner__cta {
        min-width: 185px;
        height: 38px;
        font-size: 12px;
        letter-spacing: 0.84px;
    }
}
