body {
    font-size: calc(10px + 0.1vmin);
}

.site_logo {
  background-image: url("images/logo.svg");
  background-size: 100%;
  display: inline-block;
  height: 56px;
  width: 56px;
}

#logo {
  display: block;
  float: left;
  line-height: 0;
  margin: 10px 3px 10px 0;
  height: auto;
  width: auto;
}

// #site-desc-full,
#site-desc-small {
  background-image: none;
}

/*
#site-desc-full {
    height: 300px;
    overflow: hidden;
    position: relative;
    text-align: center;
}


#site-desc-full img {
    max-width: 400px;
    height: auto;
    width: 90%;
    margin: auto;
}

#site-desc-full .chunk {
    display: none;
}
*/

#wrap-header-index, #wrap-header {
    position: sticky;
    position: -webkit-sticky;
    display: block;
		  
}

#breadcrumbs {
    line-height: 30px;
    height: 30px;
}

.site-header {
    line-height: 76px;
    height: auto;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: center;
    justify-content: stretch;
}

.site-header.chunk {
    padding: 0 !important;
    max-width: 100vw;
}

.site-header nav {
    flex-grow: 0;
    flex-shrink: 0;
    order: 1;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 40px;
    height: 40px;
    font-family: "Oswald", sans-serif;
    font-size: calc(14.6667px + 0.2vmin);
}

.fora-bg h3,
.forum-bg h3 {
    font-family: "Oswald", sans-serif;
    font-size: calc(14.6667px + 0.2vmin);
}

.sub-header-title {
    font-family: "Oswald", sans-serif;
}

.sub-header-title h2 {
    font-family: "Oswald", sans-serif;
    font-size: calc(22px + 0.3vmin);
    font-weight: 400;
}

.site-header .site-banner,
.site-header .site-banner h1 {
    order: 2;
    font-family: "Rammetto One", cursive;
    font-size: calc(13pt + 1.5vw);
}

.site-header a {
    display: inline-block;
    flex-grow: 0;
    flex-shrink: 0;
}

.site-header nav .site-nav > li {
    margin-top: 0;
    margin-bottom: 0;
}

.postbody h3 {
    font-size: 95% !important;
    display: none;
}

.post-actions,
.post-date,
.post-signature,
.postbody .post-number {
    font-size: 95% !important;
}

#wrap-footer {
    font-size: 95% !important;
}


* {
    transition: color .18s cubic-bezier(.6,0,.1,1), background-color .18s cubic-bezier(.6,0,.1,1), border-color .18s cubic-bezier(.6,0,.1,1);
}


#sub-header {
    //padding: 5px 0 5px;
    padding: 0 0 5px;
    /*
    z-index: 2;
    display: block;
    position: sticky;
    position: -webkit-sticky
    top: 116px;
    */

}

/*
form #sub-header {
    position: relative;
    top: 0;
}
*/

.modal-bb-content {
    font-size: calc(10px + 0.1vmin);
}

.modal-bb-body {
    font-size: calc(10px + 0.1vmin);
}

.modal-bb-body p,
.whoposted_header, 
.whoposted_posts_header {
    font-size: calc(10px + 0.1vmin);
}



.modal-bb-body h3, .modal-bb-body h4, .modal-bb-body .alert_title {
    display: inline-block;
    font-family: "Oswald", sans-serif;
    font-size: calc(14.6667px + 0.2vmin);
    font-weight: 500;
    margin-bottom: 1em;
    text-align: center;
    width: 100%;
}

.whoposted_title {
    font-family: "Oswald", sans-serif;
    font-size: calc(14.6667px + 0.2vmin);
    font-weight: 500;
    width: 50%;
    min-width: 250px;
}

.whoposted_posts_header,
.whoposted_posts {
    float: right;
    text-align: right;
    width: 7em;
}

.whoposted_header,
.modal-bb-body a.username-coloured {
    display: inline-block;
    width: calc(100% - 7em);
}

.whoposted_header, 
.whoposted_posts_header {
    text-decoration: none;
}


.modal-bb-body a.username-coloured,
.whoposted_posts,
.whoposted_header, 
.whoposted_posts_header {
    line-height: 2em;
    height: 2em;
}

a[data-ajax="who_posted"]::before {
    content: "\f0c0";
    font-family: "Font Awesome 5 Free";
    margin-right: .5em;
    font-weight: 900; /* altrimenti non funziona */
}

.cdm_tags {
    margin-top: 1em;
    display: inline-block;
}

div.rh_tag:before,
.cdm_tags:before {
    content: "\f02c";
    font-family: "Font Awesome 5 Free";
    margin-right: .5em;
    font-weight: 900; /* altrimenti non funziona */
}

div.rh_tag ~ div.rh_tag:before {
    content: "";
    margin: 0;
}

.cdm_tags a:not(:last-of-type):after,
div.rh_tag:not(:last-of-type):after {
  content: ", ";
}

div.rh_tag {
    background-color: transparent;
    margin: 0;
    padding: 0;
}

#message-sidebar .bbcode-status {
    display: none;
}


/**************************/

#message-box {
    border: none;
}

.quickreply-box textarea,
textarea,
tags-input .tags,
#message-box input#topic_desc,
.input {
    padding: .5em;
    min-height: 2em;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
}


#message-box input#topic_desc {
    width: 100%;
}

.sub-header-title p {
    font-style: italic;
}

.topicdescription {
    font-style: italic;
    font-size: 90%;
}

dl.field-inline {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

dl.field-inline dt {
    line-height: 1em;
    height: 1em;
    margin-right: 1em;
}


.chosen-drop li {
    min-width: 10em;
    padding: .5em;
    opacity: 1;
}

.chosen-drop li.result-selected {
    opacity: 1;
    font-weight: 600;
}

.chosen-container {
    display: inline-block;
    position: relative;
    margin-top: 1em;
    margin-bottom: 1em;
    min-width: 10em;
    font-size: inherit;
    padding-left: .5em;
    padding-right: .5em;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;

}

/**/

.official-index-box {
    padding: 1em;
    margin: 1em;
    font-size: calc(12px + 0.2vmin);
}


.official-index-box h3 {
    display: block;
    float: none;
    line-height: 1em;
    padding: 0;
    margin: .2em;
    margin-top: 1em;
    font-weight: bold;
    text-align: center;
    width: 100%;
    
}

.official-index {
    margin-top: 0;
    margin-bottom: 0;
}

.official-index ol {
    margin: 0;
}

.official-index li.row {
    display: flex;
    justify-content: stretch;
    align-content: stretch;
    align-items: stretch;
    width: 100%;
}

.official-index li.row .row-text {
	flex-shrink: 1;
	flex-grow: 0;
	display: inline-block;
	flex-basis: 100%;
}


.official-index li.row .index-button {
    flex-shrink: 0;
    flex-grow: 1;
    text-align: right;
}

.official-index li.row .row-text {
    flex-shrink: 0;
    flex-grow: 0;
}

.official-index li.row .poster::before {
    content: "di\a0";
} 

.official-index li.row .topic::after {
    content: ",\a0";
} 

.site-header a > i + span {
	display: none;
}

.narrativa-first {
    font-family: 'EBGaramond';
    font-size: calc(12px + 0.1vmin);
    padding:
}

.narrativa-first aside {
    display: none;
}

.narrativa-first .re-md.post-author-r {
    display: none !important;
}

.narrativa-first .post-content p {
    text-align: justify;
    text-indent: 1.2em;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 2em;
}

.narrativa-first .post-content p:first-of-type {
    text-indent: 0;
}

.quickreply-box {
    margin-left: 98px;
    margin-right: 0;
}

.quickreply-avatar {
    left: 7px;
    right: auto;
}

.quickreply-buttons {
    height: 4em;
}

.quickreply-buttons button.left {
    padding-right: 1em;
    //display: inline-block;
}

/* àncora sotto l'header invece che in cima alla pagina */

a.anchor {
    display: block;
    position: relative;
    top: -120px;
    visibility: hidden;
}

a.cdm-post-copylink {
    float: left;
}

div.cdm-post-copylink {
    display: inline-block;
    visibility: hidden;
    width: 0;
    position: absolute;
    left: 1em;
    top: 2em;
    border-radius: 2px;
    padding: .5em;
}

div.cdm-post-copylink input {
    width: calc(100% - 2em);
    padding: .3em;
}

.postbody > div {
    position: relative;
}

.username-coloured {
    font-weight: bold;
}

/** da sistemare **/

.quickreply-box #message {
    height: 300px;
    width: 100%;
    padding: 1em;
}

.mchat-avatar a, .mchat-avatar img {
    object-fit: cover !important;
}

.mchat-avatar {
    margin: 5px 5px 5px 0;
}

.mchat-text {
    word-break: break-word;
    margin-top: 10px;
}

.mchat-text blockquote {
    border: none;
    font-size: 90%;
    margin: 0;
    padding: 2px;
    margin-left: 10px;
}

.mchat-text cite {
    padding: 0;
    margin: 0;
    font-style: italic;
    border: none;
}

.mchat-message-header {
    float: none;
}

.mchat-message::after {
    display: none;
}

#mchat-messages {
    resize: vertical;
}


@media (max-width: 700px) {
    .dropdown-profile {
	left: 48px;
    }

    .quickreply .avatar-none,
    .quickreply .quickreply-avatar,
    .quickreply-buttons span {
	display: none;
    }

    .quickreply-box {
	margin-left: 0;
    }

}

.iframe-container {
    width: 100%;
    margin-bottom: 1em;
}

.iframe-container iframe {
    padding: 18px;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.03);
    
}
