/* Article Content */

.ebook_content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px 60px;
    background: white;
    border-radius: 8px;
}

.ebook_article-content {
    display: flex;
    align-items: flex-start; 
    flex-wrap: nowrap;
    font-family: 'Inter', sans-serif;
    color: #000;
    font-size: 18px;
    line-height: 24px;
}

.ebook_article-content a {
    text-decoration: none;
    color: blue;
}

.ebook_article-content a:hover {
    text-decoration: underline;
}

.ebook_article-content p {
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    padding-bottom: 25px;
}

/* Banner Section */

.ebook_banner-section {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
}

.ebook_banner-image {
    width: 100%;
    max-width: 350px;
    display: grid;
    place-items: center;
    position: relative;
}

.immagine_banner_ebook {
    width: 80%;
}

.ebook_text {
    flex: 1 1 55%;
    min-width: 300px;
}

/* MEDIA QUERIES */

@media (max-width: 1128px) {
    .ebook_article-content p {
        font-size: 16px;
        line-height: 22px;
    }
    .ebook_article-content p {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}

@media (max-width: 369px) {
    .ebook_article-content p {
        line-height: 20px;
        font-size: 14px;
    }
}

@media (max-width: 699px) {
    .ebook_banner-image {
        width: 100%;
    }
    .immagine_banner_ebook {
        width: 100%;
    }
}

@media (max-width: 409px) {
    .ebook_content {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .ebook_content {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .ebook_content {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 699px) {
    .ebook_article-content {
        flex-direction: column;
        align-items: center;
    }

    .ebook_text {
        flex: 1 1 100%;
        text-align: left;
    }

    .ebook_banner-section {
        flex: 1 1 100%;
        margin-top: 20px;
        justify-content: center;
    }

    .ebook_banner-image {
        max-width: 100%;
    }

    .immagine_banner_ebook {
        width: 100%;
    }

  

}
