body .inside-header .site-branding-container {
  width: 80%;
}

.site-branding-container .site-logo {
  margin-right: 0.25em;
}

body .inside-header .header-widget {
  width: 20%;
}

.header-widget .search-form-wrap form {
  padding: 10px 0 10px 10px;
  top: -10px;
  background: rgba(255,255,255,0.9) !important;
}

.header-widget .search-form-wrap form::before {
  content: '';
  width: 200%;
  height: 100%;
  right: 100%;
  background-color: rgba(255,255,255,0.9) !important;
  top: 0;
  position: absolute;
}

/* Single Video */

body .video-wrap {
  flex-wrap: wrap;
  margin-left: -40px;
  margin-right: -40px;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 25px;
  min-width: 100%;
}

.video-wrap .entry-content .dgv-embed-wrapper .widget {
  margin-left: -40px;
  margin-right: -40px;
}

body .video-wrap::after,
body .video-wrap::before {
  display: none !important;
}

.video-wrap .right-sidebar-wrap,
.video-wrap .content-meta-wrap {
  width: 100%;
}

.video-wrap .entry-content .essb_links {
  margin-top: 0;
  display: block !important;
}

.video-wrap .right-sidebar-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

body .video-wrap .right-sidebar-wrap .essb_links {
  margin-top: 0;
  width: 100%;
  order: -2;
  margin-bottom: 1.5em;
}

body .video-wrap .right-sidebar-wrap .essb_links ul {
  text-align: left;
}

body .video-wrap .right-sidebar-wrap .essb_links ul::before {
  display: inline;
  margin-right: 0.8em;
}

body .video-wrap.dark-mode .rel-box.yellow {
  margin-top: 1em;
}

body .video-wrap.dark-mode .rel-box.yellow,
body .video-wrap.dark-mode .rel-box.yellow .posted-on,
body .video-wrap .right-sidebar-wrap .tag-box .widget-title,
body .video-wrap .right-sidebar-wrap .tag-box ul {
  text-align: left;
}

body .video-wrap .author-box {
  overflow: visible;
  min-width: 370px;
  margin-right: 60px;
  order: -1;
  margin-top: 0 !important;
}

body .video-wrap .tag-box {
  order: 9;
  width: 100%;
}

body .video-wrap .tag-box .widget-title {
  margin-top: 1em;
}

.tag24-video-a-destra-dopo-correlati {
  text-align: left;
}

@media screen and (max-width: 900px) {
  body .video-wrap.dark-mode .rel-box.yellow {
    width: 100%;
  }
}

/* Author Archive */

.archive.author .page-header {
  flex-wrap: wrap;
  margin-top: 1em;
}

.author-name-and-description {


}


.author-info + .author-counts,
.author-info {
  float: none;
  width: 100%;
  text-align: left;
}

.author-info + .author-counts {
  margin-top: 1em;
}

.author-name-and-description + div {

}

/* Post Navigation */

.site-main .post-navigation {
  flex-wrap: wrap;

}

.post-navigation a {
  line-height: 1;
}

.post-navigation .nav-previous + .nav-next {
  margin-top: 2em;
}

/* HV Loop in sidebar / builder */

#right-sidebar .basil-post-wrap.hv-loop article .inside-article {
  flex-wrap: wrap;
}

#right-sidebar .basil-post-wrap.hv-loop .post-image {
  width: 100%;
}

#right-sidebar .basil-post-wrap.hv-loop .entry-header {
  font-size: 1.1em;
  width: 100%;
  padding-left: 0;
  margin-top: 1em;
}

/* Storia Diretta Header */

body .storia-diretta-header {
  flex-wrap: wrap;
  margin-left: -40px;
  margin-right: -40px;
  width: auto;
  padding-bottom: 40px;
  margin-bottom: 0;
}

#storia-diretta-stats {
  font-size: 0.9em;
}

.storia-diretta-image {
  left: auto;
  width: 100%;
}

.storia-diretta-header img {
  width: 100%;
}

.storia-diretta-header::before,
.storia-diretta-header::after {

}

.storia-diretta-info {
  position: static;
  top: auto;
  right: auto;
  width: calc(100% - 80px);
  min-width: 0;
  height: auto;
  margin: -200px auto 0 auto;
}

.storia-diretta-status {
  position: absolute;
  top: 20px;
  left: 0;
}

.title-description-wrap {
  font-size: 0.9em;
}

#storia-diretta-stats .essb_links {
  margin-bottom: 2em;
}

/* Tax Diretta */

body .storia-diretta-header {
  padding-bottom: 40px;
}

.tax-diretta .site-main > .basil-post-wrap {
  width: auto;
}

.tax-diretta .right-sidebar-wrap {
  order: 999;
  width: 100%;
}

@media screen and (max-width: 810px) {

  /* Author Archive */

  .archive.author .page-header .entry-meta.author-only {
    width: 100%;
  }

  .author-name-and-description {
    padding-left: 0;
    margin-top: 1em;
  }

  .author-name-and-description {
    width: calc(100% - 275px);
    position: relative;
  }

  /* Archive 1st Post */

  .basil-post-wrap:not(.loop) article.first-post .entry-header,
  .basil-post-wrap:not(.loop) article.first-post .post-image,
  .basil-post-wrap:not(.loop) article.first-post .inside-article .tag24-related.list {
    width: 100%;
    position: relative;
    right: 0;
  }
  .basil-post-wrap:not(.loop) article.first-post .inside-article .tag24-related.list .yellow.offset {

  }
  .basil-post-wrap:not(.loop) article.first-post .entry-header {
    padding-top: 0;
  }
  .basil-post-wrap:not(.loop) article.first-post .post-image a {
    width: 100%;
    left: 0;
  }
  .basil-post-wrap:not(.loop) article.first-post .entry-header .entry-title {
    width: 100%;
  }

  .loop.one-plus-two-loop article:first-child .post-image {
    box-shadow: none;
  }

  /* Second to forth */

  .one-container .basil-post-wrap:not(.loop) article.second-to-forth {
    width: 100% !important;
    padding: 10px 20px !important;
  }

  /* One plus Two Layout */

  .loop.one-plus-two-loop article,
  .loop.one-plus-two-loop article:not(:first-child) .post-image {
    width: 100%;
  }

  .loop.one-plus-two-loop article:not(:first-child) .entry-header {
    width: 100%;
    left: 20px;
    margin-top: -20px;
    z-index: 1;
  }

   .loop.one-plus-two-loop article:not(:first-child) .inside-article {
     font-size: 1em;
   }

  /* HV Loop */

  .hv-row .basil-post-wrap.hv-loop article {
    width: 100%;
  }

  .hv-row .basil-post-wrap.hv-loop article:not(:first-child) {
    padding-top: 20px;
  }

  .basil-post-wrap.hv-loop article .inside-article {
    align-items: center;
  }

  .basil-post-wrap.hv-loop .entry-header {
    font-size: 1.1em;
  }

  /* Single Post */

  .featured-rel-wrap {
    flex-wrap: wrap;
  }
  .featured-rel-wrap .tag24-related.list,
  .featured-wrap,
  .featured-image {
    width: 100%;
  }
  .featured-rel-wrap .tag24-related.list {
    margin-top: 2em;
  }
  .featured-rel-wrap .rel-box.yellow {
    text-align: left;
	display: none;
  }
  .featured-rel-wrap .rel-box .posted-on {
    display: none;
  }
  .featured-rel-wrap  .offset {

  }

  /* Author box */

  .author-box {
    position: relative;
    padding: 15px 20px 20px 20px;
  }

  body .author-box h3.widget-title {
    position: absolute;
    top: 15px;
    left: 20px;
    font-weight: normal;
  }

  .author-box .entry-meta.author-only {
    margin-top: 0.25em;
  }

  .author-box .entry-meta.author-only .author-avatar {
    margin-top: 2em;
  }

  .author-box .entry-meta.author-only .author-name {
    font-size: 1.75em;
  }

  .author-box .entry-meta.author-only a {
    align-items: flex-start;
  }

  .author-description {
    padding-left: 100px;
    margin-top: -2em;
    margin-bottom: 1.5em;
    font-size: 0.9em;
  }

  .content-meta-wrap,
  .right-sidebar-wrap,
  .comments-area {
    width: 100%;
  }

  /* Author Entry Meta */

  .first-post .entry-meta.author-only {
    margin-top: 0;
    margin-bottom: 0.5em;
  }

  /* In content related */

  .in-content .loop.one-plus-two-loop article .entry-header {
    width: 60%;
  }

  .in-content .loop.one-plus-two-loop article .post-image {
    width: 40%;
  }

  /* Single Video */

  body .video-wrap .author-box {
    width: 100%;
    margin-right: 0;
  }

  body .video-wrap .author-box h3.widget-title {
    left: 0;
  }

}

@media screen and (max-width: 768px) {

  body .entry-meta:not(.author-only) {
    font-size: 85%;
  }

  /* Header and Navigation */

  .header-nav-wrap .header-widget {
    margin-top: 0;
    margin-right: 0;
  }
  .header-nav-wrap .inside-header {
    flex-direction: row;
  }
  .inside-navigation > .inside-nav-wrapper {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  body button.menu-toggle {
    position: fixed;
    bottom: 27px;
    right: 28px;
    z-index: 1;
    background: var(--contrast);
    height: 45px;
    border-radius: 50%;
    top: auto;
  }
  button.menu-toggle:hover,
  button.menu-toggle:focus {
      background: var(--contrast);
  }
  body button.menu-toggle::before {
    line-height: 45px;
  }
  .main-navigation .main-nav > ul > li span.menu-toggle {
    padding-left: 45px;
  }

  /* Overlay Menu Areas */

  .overlay-nav-content .overlay-areas {
    padding: 20px;
    flex-wrap: wrap;
  }

  .overlay-nav-content .overlay-nav-area,
  .overlay-nav-content .overlay-areas > div {
    width: auto;
    padding: 0;
  }

  .overlay-nav-content .overlay-nav-area + .overlay-nav-area {
    padding-top: 30px;
  }

  /* Search form specific */

  .search-form label {
    width: 100%;
  }

  /* Post Naviagtion */

  .site-main .post-navigation {
    font-size: 0.9em;
  }

  /* Generate Back To Top left move */

  /*.generate-back-to-top {
    left: 30px;
    right: auto;
  }*/
  
   .generate-back-to-top {
    left: 13px;
    right: auto;
    bottom: 56px;
  }

  /* Content Width */

  .container .site-content .content-area {
    width: 100%;
  }

  /* Ad + related at the bottom */

  /*.bp-after-content-inner {
    flex-direction: column;
    align-items: flex-start;
  }*/

  .bp-after-content-inner {
    flex-direction: column;
  }

  .bp-after-content-inner .tag24-related.list {
    width: 100%;
    margin-top: 1em;
  }

  /* Tax Diretta */

  .tax-diretta .site-main > .basil-post-wrap .post-image {
    width: auto;
  }

  .tax-diretta .site-main > .basil-post-wrap .entry-header {
    padding-left: 0;
    margin-top: 1em;
    width: 100%;
  }

}
