/*
* Theme Name:  Newsblock Child
* Theme URI:   https://codesupply.co/themes/newsblock/
* Description: Newsblock Child Theme
* Author:      Code Supply Co.
* Author URI:  https://codesupply.co/
* Template:    newsblock
* Version:     1.0.0
*/

/* Copy any classes from parent theme here. They will override the parent's version. */
.horizontal-type-1-occhiello {
  position: relative;
}
.horizontal-type-1-occhiello:first-child .occhiello {
  top: -10px;
}
.occhiello {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: #ab1715;
    z-index: 1;
    padding: 3px 8px;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}
#marquee {
    margin: 0 auto;
    width: 100%;
    height: 30px;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}
.mobile-only {
  display: none;
}
@media (max-width: 640px) {
  .mobile-only {
    display: block;
  }
  #marquee {
    margin-top: 30px;
    height: 80px;
  }
  /*
  .cs-header__search-toggle {
    display: none;
  }*/
  #marquee::before {
    width: 140px;
    height: 40px;
  }
  .marquee-content {
    margin-top: 50px;
  }
}
#marquee::before {
    content: "";
    display: block;
    background-image: url(/wp-content/themes/newsblock-child/Adnkronos_Logo_black.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 25px;
    width: 90px;
    height: 30px;
    position: absolute;
    left: 0;
    background-color: white;
    z-index: 1;
    background-size: contain;
    border-right: 10px solid white;
}

body[data-scheme="dark"] #marquee::before {
  background-image: url(/wp-content/themes/newsblock-child/Adnkronos_Logo_white.svg);
  background-color: black;
  border-color: black;
}

#lapis {
    background-image: url(/wp-content/uploads/2021/07/icon-lapis.png);
    background-repeat: no-repeat;
    padding-left: 36px;
    background-position: left center;
}

body[data-scheme="dark"] #lapis {
    background-image: url(/wp-content/uploads/2021/07/icon-lapis-white.png);
    background-repeat: no-repeat;
    padding-left: 36px;
    background-position: left center;
}

.sponsor-dixit-widget .cnvs-section-title span,
.lapis-widget .cnvs-section-title span,
.turismo-widget .cnvs-section-title span,
.lettori-widget .cnvs-section-title span,
.blog-widget .cnvs-section-title span,
.cucina-widget .cnvs-section-title span,
.inchieste-widget .cnvs-section-title span,
.italpress-widget .cnvs-section-title span {
background-color: black;
color: white;
padding: 3px 7px;
}

body[data-scheme="dark"] .sponsor-dixit-widget .cnvs-section-title span,
body[data-scheme="dark"] .lapis-widget .cnvs-section-title span,
body[data-scheme="dark"] .turismo-widget .cnvs-section-title span,
body[data-scheme="dark"] .lettori-widget .cnvs-section-title span,
body[data-scheme="dark"] .blog-widget .cnvs-section-title span,
body[data-scheme="dark"] .cucina-widget .cnvs-section-title span,
body[data-scheme="dark"] .inchieste-widget .cnvs-section-title span,
body[data-scheme="dark"] .italpress-widget .cnvs-section-title span {
background-color: white;
color: black;
padding: 3px 7px;
}


.marquee-content {
  width: 300%;
  display: flex;
  line-height: 30px;
  animation: marquee 30s linear infinite forwards;
}
.marquee-content:hover {
  animation-play-state: paused;
}
.list-inline {
  display: flex;
  justify-content: space-around;
  width: 33.33%;
  /* reset list */
  list-style: none;
  padding: 0;
  margin: 0;
}
.from-feed {
  margin-right: 30px;
}
.from-feed a {
  font-size: 1rem;
  font-weight: 500;
}
.from-feed a:hover {
  text-decoration: underline;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-66.6%);
  }
}
