/* Aita Magazine - Box flottante; riguarda solo articoli Magazine. */
body.aita-magazine-article .fam-article-layout--flow {
    display: block !important;
    grid-template-columns: none !important;
    margin-top: 36px;
    margin-bottom: 55px;
}
body.aita-magazine-article .fam-article-layout--flow > .fam-article-content {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
}
/* Consiglio accanto al testo, non in una colonna fissa. */
body.aita-magazine-article .aita-article-copy > .fam-article-aside--float,
body.aita-magazine-article .fam-article-content > .fam-article-aside--float {
    display: block !important;
    float: right !important;
    clear: right;
    position: static !important;
    width: 300px !important;
    max-width: 30% !important;
    height: auto !important;
    margin: 5px 0 24px 30px !important;
    padding: 0 !important;
    box-sizing: border-box;
    transform: none !important;
}
body.aita-magazine-article .fam-article-aside--float .fam-pharmacist-box {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    position: static !important;
}
/* Previene contenuti sovrapposti agli elementi che seguono i float. */
body.aita-magazine-article .fam-article-content:after {
    content: '';
    display: table;
    clear: both;
}
body.aita-magazine-article .fam-pharmacist-mobile {
    display: none !important;
}
/* Tablet e smartphone: il consiglio viene visualizzato dopo il testo. */
@media (max-width: 1000px) {
    body.aita-magazine-article .aita-article-copy > .fam-article-aside--float,
    body.aita-magazine-article .fam-article-content > .fam-article-aside--float {
        display: none !important;
    }
    body.aita-magazine-article .fam-pharmacist-mobile {
        display: block !important;
        width: 100%;
        max-width: 720px;
        box-sizing: border-box;
        margin: 28px auto 45px;
        padding: 0 18px;
    }
    body.aita-magazine-article .fam-pharmacist-mobile .fam-article-aside {
        position: static !important;
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.aita-magazine-article .fam-pharmacist-mobile .fam-pharmacist-box {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }
}

/* Match the simplified single-article design without changing the Magazine front page. */
body.aita-magazine-article .fam-article-page { background: #fbf8f0; }
body.aita-magazine-article .fam-article-content h2,
body.aita-magazine-article .fam-article-content h3 {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -.025em;
}
body.aita-magazine-article .fam-article-layout--flow { padding-top: 32px; }
@media (max-width: 900px) {
  body.aita-magazine-article .fam-article-layout--flow { padding-top: 25px; }
}
