@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
        url('../fonts/Roboto-Regular.woff') format('woff'),
        url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
        url('../fonts/Roboto-Bold.woff') format('woff'),
        url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html,body {
  font-size:16px;
}

body {
  background-color: #151220;
  margin:0;
  padding:0;
  font-family:'Roboto',sans-serif;
  font-weight: 400;
  color:#999999;
}

strong {
  font-weight:500;
}

div {
  display:block;
}

* {
  box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: 40px;
    padding: 4px;
    background: #1a3f73;
}

.credits {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    text-align: center;
    font-size: 9px;
    line-height: 1;
    padding-top: 6px;
    background: #1a3f73;
    color: #fff;
}

.intro {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row wrap;
    z-index: 10000;
    background: #1a3f73;
}



.language-selection {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  flex-flow: row wrap;
  height: 100%;
  background: #1a3f73;
  z-index:1;
}

.language-selection .language-flags {
  display:block;
  width:100%;
  padding:1rem;
  align-self:center;
}

.language-selection .language-flags a {
  display:block;
  text-align:center;
  text-decoration:none;
}

.language-selection .language-flags a:not(:last-child) {
  margin-bottom:2rem;
}

.language-selection .language-flags img {
  width: 100%;
  max-width: 6rem;
  display: block;
  margin: 0 auto 0.5rem auto;
}

.language-selection .language-flags a span {
  color:#fff;
}

.logo-intro {
    width: 100%;
    height: auto;
    align-self: center;
    max-width: 250px;
    margin: 0 auto;
}

body.ios .playbutton-overlay {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-flow: row wrap;
    background: rgba(0,0,0,.5);
}

body.ios .playbutton-overlay img {
    display: block;
    width: 30%;
    margin: 0 auto;
    align-self: center;
}

body.android .playbutton-overlay {
  position: absolute;
  z-index: 100;
  display: flex;
  flex-flow: row wrap;
  background: rgba(0,0,0,.5);
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  top: calc(50% - 5rem);
  left: calc(50% - 5rem);
  padding: 0.5rem;
}

body.android .playbutton-overlay img {
  display: block;
  width: 100%;
  height:auto;
  margin: 0 auto;
  align-self: center;
}


@media all and (max-width:1199.5px) {
  body.android .playbutton-overlay {
    position: absolute;
    z-index: 100;
    display: flex;
    flex-flow: row wrap;
    background: rgba(0,0,0,.5);
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    top: calc(50% - 3rem);
    left: calc(50% - 3rem);
    padding: 0.5rem;
  }
}

@media all and (max-width:511.5px) {
  body.android .playbutton-overlay {
    position: absolute;
    z-index: 100;
    display: flex;
    flex-flow: row wrap;
    background: rgba(0,0,0,.5);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    top: calc(50% - 2rem);
    left: calc(50% - 2rem);
    padding: 0.5rem;
  }
}




.hidden-item {
  display:none !important;
}

header img {
  height:100%;
  width:auto;
  display:block;
  margin:0 auto;
}

.video-meta {
    padding: 0 16px 0 16px;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

.titolo-video {
    margin-top: 2px;
    margin-bottom: 0;
    line-height: 1.2;
    font-size: 16px;
    align-self: flex-start;
    width: -webkit-calc(100% - 100px);
    width: -moz-calc(100% - 100px);
    width: calc(100% - 100px);
    text-align: left;
    color: #ffffff;
    display: block;
    padding-right: 16px;
}

.descrizione-video {
    font-size: 11px;
    width: 100%;
    margin-top: 16px;
    color: #aaa;
}

.categoria-video {
    width: 100px;
    align-self: flex-start;
    text-align:right;
}

.categoria-video > span {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 8px;
    color: #363636;
    font-size: 10px;
    line-height: 1;
    padding: 7px 7px;
}

.video-container {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    width: 100vw;
    height: 56.25vw;
    overflow: hidden;
    z-index: 100;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.video-container #video {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.video-content {
    position: fixed;
    top: -webkit-calc(56.25vw + 40px);
    top: -moz-calc(56.25vw + 40px);
    top: calc(56.25vw + 40px);
    left: 0;
    right: 0;
    width: 100%;
    padding-top: 14px;
    height: -webkit-calc(30vh - 20px);
    height: -moz-calc(30vh - 20px);
    height: calc(30vh - 20px);
    z-index: 100;
    background: #151220;
    filter: drop-shadow(0px 20px 16px black);
}

.video-controls {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    padding: 24px 16px;
}

.control-button {
    display:block;
    height: 24px;
    border: 0;
    line-height: 1;
    border-radius:5px;
    overflow:hidden;
}

.large-button {
    width: -webkit-calc(100% - 120px);
    width: -moz-calc(100% - 120px);
    width: calc(100% - 120px);
    background-color: #1a3f73;
    color: #fff;
}

.large-button.paused {
    background-color: #3c70c0;
    color: #ffffff;
}

.small-button {
  width:24px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:70% 70%;
  background-color:transparent;
  border-radius:0;
  margin-right:0;
}

.small-controls {
  width: 120px;
  display: flex;
  flex-flow: row wrap;
  padding-left: 93px;
}

.small-button:not(:last-child) {
  margin-right:16px;
}

.volumeslider {
    display: block;
    width: 100%;
    position:relative;
    margin-top: 24px;
}

#volume-control {
    width: -webkit-calc(100% - 64px);
    width: -moz-calc(100% - 64px);
    width: calc(100% - 64px);
    margin: 0 auto;
    display: block;
}

.muteunmute {
    display: block;
    width: 24px;
    height: 24px;
    border: 0;
    position: absolute;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-color: transparent;
    background-image: url(../svg/audio-on.svg);
    z-index: 10;
    top: -8px;
    right: 0;
}

.muted {
    background-image: url('../svg/audio-off.svg');
    right: initial;
    left: 0;
}

.volume-button {
  background-image:url('../svg/audio-on.svg');
}


.fullscreen-button{
  background-image:url('../svg/full.svg');
}

.pip-button {
  background-image:url('../svg/pip.svg');
}

.muted {
  background-image:url('../svg/audio-off.svg');
}

#volume_control {
    width: -webkit-calc(100% - 64px);
    width: -moz-calc(100% - 64px);
    width: calc(100% - 64px);
    margin: 0 auto;
    display: block;
}

input[type="range"] {
    -webkit-appearance: none;
    margin-right: 15px;
    width: 200px;
    height: 7px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-image: linear-gradient(#3c70c0, #3c70c0);
    background-size: 70% 100%;
    background-repeat: no-repeat;
}

/* Input Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3c70c0;
  cursor: ew-resize;
  box-shadow: 0 0 2px 0 #555;

}

input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3c70c0;
  cursor: ew-resize;
  box-shadow: 0 0 2px 0 #555;

}

input[type="range"]::-ms-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3c70c0;
  cursor: ew-resize;
  box-shadow: 0 0 2px 0 #555;
  /*transition: background .3s ease-in-out;*/
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #3c70c0;
}

.video-list {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(56.25vw + 30vh + 20px);
    bottom: 20px;
    height: calc(100% - 56.25vw - 30vh - 40px);
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 8px;
    display: flex;
    flex-flow: row wrap;
    background: #110f1a;
}

.video-tumb-container {
    width: 50%;
    padding: 8px;
    align-self: flex-start;
}

.video-thumb {
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index:10;
}

img.video-tumb-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    opacity: 1;
    display: block;
}

.video-thumb span {
  position: absolute;
  z-index: 50;
  left: 0;
  bottom: 0;
  font-size: 12px;
  padding: 8px 16px;
  width: 100%;
  color: #fff;
  font-weight: bold;
  background: transparent;
}

.video-thumb span a:link,
.video-thumb span a:visited,
.video-thumb span a:hover {
  color:#fff;
  text-decoration:none;
}


.social-links {
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    padding: 16px;
}

.social-links div {
  display:block;
  width:20%;
  align-self:flex-start;
  text-align:center;
}

.social-links div img {
    width: 100%;
    height: auto;
    max-width: 32px;
}

.social-links div span {
  width:100%;
  display:block;
  color:#fff;
  line-height:1;
  font-size:10px;
}

.social-links div a {
  width:100%;
  display:block;
  color:#fff;
  text-decoration:none !important;
  line-height:1;
  font-size:10px;
}

.hide-overlay {
  background: rgba(0,0,0,0) !important;
}

.hide-overlay img {
  display:none !important;
}

@media all and (max-height:767.5px) {
  .social-links div img {
    max-width:16px;
  }
  .social-links {
    padding: 0 16px;
}
.video-controls {
    padding: 16px 16px 24px 16px;
}
}

.video-thumb > a {
  position:relative;
}

.video-thumb > a img {
  position:relative;
  z-index:1;
}

.video-thumb > a::after {
  content: '';
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(60,112,196,0) 0%,rgba(60,112,196,1) 100%);
}

.video-thumb > a {
  position:relative;
  z-index:10;
}

@media all and (min-width:370px) {
  .video-tumb-container {
    width:50%;
  }
}

@media (orientation: landscape) {
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 50%;
    width: 50%;
    background: #110f19;
    filter: drop-shadow(0px 8px 8px black);
}
header img {
  margin:0 auto 0 16px;
}

.credits {
  left: 0;
  right: 50%;
  width: 50%;
  background: #151220;
  height: 0;
  filter: blur(3px);
}
  .credits span {
    display:none;
  }

  .video-container {
    left: 50vw;
    right: 0;
    width: 50vw;
    height: 28.125vw;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    top: 0;
    z-index:1500;
}
.video-content {
  position: fixed;
  top: 28.125vw;
  left: 50%;
  right: 0;
  width: 50%;
  padding-top: 0;
  background: transparent;
  filter: none;
}
.video-list {
    position: fixed;
    left: 0;
    right: 50%;
    top: 40px;
    bottom: 0px;
    height: calc(100% - 40px);
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 8px;
    display: flex;
    flex-flow: row wrap;
    background: #110f1a;
}
}

body.fullscreen .video-meta,
body.fullscreen .control-button:not(#fullscreen_button),
body.fullscreen .volumeslider,
body.fullscreen .social-links,
body.fullscreen header,
body.fullscreen .video-list,
body.fullscreen .credits {
  display:none !important;
}

body.fullscreen .video-container {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

body.fullscreen .video-content {
    background: transparent;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    top: initial;
    left: initial;
    padding: 0;
    z-index:2000;
}

body.fullscreen .video-controls,
body.fullscreen .small-controls {
    padding: 0 !important;
}


body.fullscreen .fullscreen-button {
    background-image: url('../svg/nofull.svg');
}

a[class="link-tel-mail"] {
  pointer-events: auto !important;
  cursor: auto !important;
}

a.link-canale.canale-attivo {
  background:rgba(0,0,0,.25);
  backdrop-filter: grayscale(1);
  cursor:initial;
}

a.link-canale {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  cursor: pointer;
  background:transparent;
  backdrop-filter: none;
}

.video-list-index {
  display:block;
}

.video-list-content {
  display:flex;
  flex-flow:row wrap;
  width:100%;
}

.popup-window {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 9999999999;
  display: flex;
  flex-flow: row wrap;
  padding: 16px;
}

.popup-content {
  position: relative;
  z-index: 10;
  align-self: center;
  display: block;
  width: 100%;
  text-align: center;
  background: #ffffff;
  min-height: 64px;
  border-radius: 16px;
}

.popup-item {
  display:block;
  padding: 16px;
  width:100%;
}

.popup-item strong {
  display:block;
  width:100%;
  margin-bottom:0px;
  font-size:16px;
  color: #1b3f73;
  font-weight:600;
}

.popup-item span {
  display:block;
  width:100%;
  margin-bottom:0;
}

.popup-item span.info {
  font-size:14px;
  margin-bottom:16px;
}

.popup-item span.data {
  font-size:16px;
  margin-bottom:0;
}

.popup-item a {
  display:block;
  width:100%;
  text-decoration:none;
  font-size:16px;
  color: #363636;
}



.link-close-popup {
  display: block;
  width: 100%;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: rgba(0,0,0,.5);
}

.txt-titolo-thumb {
  font-style:normal;
}

.switch-lingua {
  display: flex;
  text-decoration: none;
  position: absolute;
  top: 0.625rem;
  right: 1rem;
  width: 4rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 1.5rem;
}

.switch-lingua span {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2rem;
  text-align: center;
  text-decoration: none;
  color: #363636;
  line-height: 1;
  padding-top: 0.25rem;
  z-index: 10;
  transition: color .25s linear;
  font-size: .875rem;
}


.switch-lingua span.lang-it {
  left:0;
}
.switch-lingua span.lang-en {
  right:0;
}

#background_lang_selector {
  position:absolute;
  top:-1px;
  bottom:-1px;
  height:calc(100% + 2px);
  width:50%;
  background:#3c70c0;
  transition:left .25s linear;
}

.main-body.lang-it .switch-lingua span.lang-it {
  color:#fff;
}

.main-body.lang-en .switch-lingua span.lang-en {
  color:#fff;
}

.main-body.lang-it .switch-lingua #background_lang_selector {
  left:-1px;
}

.main-body.lang-en .switch-lingua #background_lang_selector {
  left: -webkit-calc(50% + 1px);
  left: -moz-calc(50% + 1px);
  left: calc(50% + 1px);
}


.switch-lingua {
  display:none !important;
}

.switch-ricerca {
  position: absolute;
  top: 0;
  right: 1rem;
  text-decoration: none;
  bottom: 0;
  width: 3.5rem;
  display: flex;
  flex-flow: row wrap;
  cursor: pointer;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 1rem;
  background-image:url('../svg/cerca.svg');
}

.switch-ricerca span {
  display: block;
  color: #fff;
  font-size: .75rem;
  line-height: 1;
  align-self: center;
  text-align: right;
  width: 100%;
}

.frame-ricerca {
  position: fixed;
  width: 100%;
  z-index: 999;
  top: 40px;
  padding: 1rem;
  bottom: 20px;
  height: calc(100% - 60px);
  background: #000;
  transition: left .5s linear;
  left: -100%;
  right: 0;
}


.frame-ricerca.enter-frame {
  left:0%;
}

.box-ricerca {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  position:relative;
}

.chiave-ricerca {
  display: block;
  width: calc(100% - 4rem);
  height: 2rem;
  border: 0;
  background: #fefefe;
}

.pulsante-ricerca {
  display: block;
  width: 4rem;
  height: 2rem;
  border-radius: 0;
  border: 0;
  color: #ffffff;
  background: #3c70c0;
  font-size: .875rem;
}

.risultati-ricerca {
  position: relative;
  border: 0;
  display: flex;
  flex-flow: row wrap;
}

.switch-home {
  position: absolute;
  top: 0;
  left: 1rem;
  text-decoration: none;
  bottom: 0;
  width: 3.5rem;
  display: flex;
  flex-flow: row wrap;
  cursor: pointer;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 1rem;
  background-image: url('../svg/home.svg');
}

.switch-home span {
  display: block;
  color: #fff;
  font-size: .75rem;
  line-height: 1;
  align-self: center;
  text-align: right;
  width: 100%;
}

.dati-ricerca {
  position: absolute;
    border: 0;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    top: 4rem;
    overflow-y: auto;
    display: block;
}