@import url("/static/main/css/fonts.css");

/* editor fronted */

.richtext,
.richtext p,
.richtext li,
.richtext blockquote {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.75rem;
}

.richtext {
  white-space: normal !important;
  padding: 0 !important;
  height: auto;
}

.richtext iframe {
  margin-right: 1rem !important;
}

.richtext p, .richtext blockquote, .richtext h1, .richtext h2, .richtext h3, .richtext h4, .richtext h5, .richtext h6 {
  margin: 0px !important;
  padding: 0px !important;
}

.richtext p, .richtext dl, .richtext ol, .richtext ul, .richtext blockquote {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.richtext blockquote {
  border-left: 5px solid #2ea3f2 !important;
  padding-left: 20px !important;
}

.richtext ol li[data-list="bullet"] {
  list-style-type: disc;
}

.richtext img,
.richtext iframe,
.richtext video,
.richtext figure {
  max-width: 100% !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.richtext figure {
  max-width: 100%;
}

.richtext p:has(> img[style*="float"])::after,
.richtext div:has(> img[style*="float"])::after {
  content: "";
  display: block;
  clear: both;
}

/* editor admin */
.mce-content-body.richtext,
.mce-content-body.richtext p,
.mce-content-body.richtext li,
.mce-content-body.richtext blockquote {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

.mce-content-body.richtext {
  white-space: normal !important;
  padding: 0 !important;
  height: auto;
}

.mce-content-body.richtext p, .mce-content-body.richtext blockquote, .mce-content-body.richtext h1, .mce-content-body.richtext h2, .mce-content-body.richtext h3, .mce-content-body.richtext h4, .mce-content-body.richtext h5, .mce-content-body.richtext h6 {
  margin: 0px !important;
  padding: 0px !important;
}

.mce-content-body.richtext ol, .mce-content-body.richtext ul, .mce-content-body.richtext li, .mce-content-body.richtext blockquote {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.mce-content-body.richtext blockquote {
  border-left: 5px solid #2ea3f2 !important;
  padding-left: 20px !important;
}

.mce-content-body.richtext ol li[data-list="bullet"] {
  list-style-type: disc;
}

.mce-content-body img {
  padding-right: 1rem !important;
  max-width: 100% !important;
}

/* @media (max-width: 767.98px) {
  .richtext img,
  .richtext iframe,
  .richtext video,
  .richtext figure {
    display: block;
    max-width: 100% !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .richtext iframe,
  .richtext video {
    margin-right: 0 !important;
  }

  .richtext p > img:first-child:last-child,
  .richtext p > iframe:first-child:last-child,
  .richtext p > video:first-child:last-child {
    margin-top: 0 !important;
  }
} */


/* fallback vecchio editor */

.ql-size-huge{font-size:2.5em;}
.ql-size-large {font-size: 1.5em;}
.ql-size-small{font-size:.75em;}
.ql-align-center {text-align: center;}
