@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;
  overflow:hidden;
}

body {
  background-color: #F3F2F8;
  margin: 0;
  padding: 0;
  font-family: 'Roboto',sans-serif;
  font-weight: 400;
  color: #333333;
  background-image: url('../../images/background-b.png');
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  overflow:hidden;
  background-position: top center;
}

.flex-display {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap; 
    flex-flow: row wrap;
}

strong {
  font-weight:500;
}

div {
  display:block;
}

* {
  box-sizing: border-box;
}

.colore-nero {
  color:#333333;
}

.colore-bianco {
  color:#fff;
}

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

.header-content {
  width: 100%;
  padding: 2px 1.5rem 0 1.5rem;
  height: 32px;
}

.main-content {
  display: block;
  margin-top: 40px;
  padding: 16px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.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: #262c4f;
}

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

.bottom-bar > .flex-display {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 40px;
  justify-content: space-between;
}

.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);
}

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

.live-icon {
  display: inline-block;
  position: relative;
  top: -webkit-calc(50% - 5px);
  top: -moz-calc(50% - 5px);
  top: calc(50% - 5px);
  background-color: #666;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border: 1px solid rgba(black, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.live-icon::before {
    content: '';
    display: block;
    position: absolute;
    background-color: #666;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
}

/*
.live-animation.live-icon {
  background-color: red;
}
*/

.live-animation.live-icon::before {
  /*background-color: rgba(255,0,0, 0.6); */
  animation: live .5s infinite;
}

.video-data-container {
  padding: 1rem;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  -webkit-filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
  -moz-filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
  filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
}

@keyframes live {
  0% {
    background-color: rgba(255,0,0, 1);
  }
  100% {
    background-color: rgba(255,0,0, 0);
  }
}

.meta-container {
  display: block;
  width: 100%;
  margin: 8px 0 24px 0;
  text-transform: lowercase;
  font-size: .75rem;
  font-weight: bold;
  background: #fff;
  padding: 16px;
  line-height: 1;
  border-radius: 8px;
  -webkit-filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
  -moz-filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
  filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
}

.data-programma {
  float: right;
  font-weight: normal;
}

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

header img {
  height: auto;
  width: 24px;
  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: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  z-index: 100;
  background: #000;
  border-radius: 8px;
  height: 0;
}

.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;
    -webkit-filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
    -moz-filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
    filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
}

.video-controls {
  flex-flow: row wrap;
  width: 100%;
  padding: 16px 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #fff;
  margin-top: 24px;
  border-radius: 8px;
  -webkit-filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
  -moz-filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
  filter: drop-shadow(0px 0px 4px rgba(0,0,0,.25));
}

.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: 32px;
  height: 32px;
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  background-color: transparent;
  background-image: url('../svg/audio-on.svg');
  align-self:center;
}

.play-button {
  display: block;
  height: 64px;
  border: 0;
  line-height: 1;
  border-radius: 50%;
  overflow: hidden;
  width: 64px;
  align-self: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  background-color: #262c4f;
  background-image: url('../svg/pause.svg');
}

.paused {
  background-image: url('../svg/play.svg');
}

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

.fullscreen-button{
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  background-color: transparent;
  background-image:url('../svg/full.svg');
  align-self:center;
}

.bottom-bar {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: #272E61;
  justify-content: space-between;
  padding: 0 1rem;
}

.link-bottom-bar {
  display: block;
  height: 2rem;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 1.125rem;
  align-self: center;
  font-size: 9px;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  width: calc(33.333% - 16px);
  padding-top: 22px;
}

.link-palinsesto {
  background-image:url('../svg/calendario.svg');
}

.link-live {
  background-image:url('../svg/live.svg');
}

.link-social {
  background-image:url('../svg/social.svg');
}

.sezione-palinsesto {
  position: fixed;
  left: 0;
  right: 0;
  top: 40px;
  bottom: 32px;
  width: 100%;
  z-index: 999;
  background: #fff;
  height: -webkit-calc(100% - 80px);
  height: -moz-calc(100% - 80px);
  height: calc(100% - 80px);
  -webkit-transform: translateX(-120%);
  -moz-transform: translateX(-120%);
  transform: translateX(-120%);
  -webkit-transition: -webkit-transform 1s ease-in-out;
  -moz-transition: -moz-transform 1s ease-in-out;
  transition: transform 1s ease-in-out;
  box-shadow: 1px 0px 16px rgba(0,0,0,.5);
}

.sezione-contatti {
  position: fixed;
  left: 0;
  right: 0;
  top: 40px;
  bottom: 32px;
  width: 100%;
  z-index: 999;
  background: #fff;
  height: -webkit-calc(100% - 80px);
  height: -moz-calc(100% - 80px);
  height: calc(100% - 80px);
  -webkit-transform: translateX(120%);
  -moz-transform: translateX(120%);
  transform: translateX(120%);
  -webkit-transition: -webkit-transform 1s ease-in-out;
  -moz-transition: -moz-transform 1s ease-in-out;
  transition: transform 1s ease-in-out;
  box-shadow: -1px 0px 16px rgba(0,0,0,.5);
}

.dati-contatti {
  width: 100%;
  padding: 1.5rem;
}

.link-contatti {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
}

a.link-contatto {
  display: block;
  width: 100%;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  height: 24px;
  padding-top: 5px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-left: 24px;
}

a.link-contatto:not(:last-child) {
  margin-bottom:8px;
}

.link-contatto.link-mail {
  background-image:url('../svg/mail.svg');
}

.link-contatto.link-telefono {
  background-image:url('../svg/phone.svg');
}

.link-contatto.link-sito {
  background-image:url('../svg/web.svg');
}

.link-contatto.link-place {
  display: block;
  width: 100%;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  height: 24px;
  padding-top: 5px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 16px;
  background-image:url('../svg/place.svg');
  padding-left: 24px;
  margin-bottom: 8px;
}

.mappa {
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  position: relative;
}

.mappa iframe {
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.enter-palinsesto {
  -webkit-transform:translateX(0%);
  -moz-transform:translateX(0%);
  transform:translateX(0%);
}

.enter-contatti {
  -webkit-transform:translateX(0%);
  -moz-transform:translateX(0%);
  transform:translateX(0%);
}

.tab-container {
  height: 40px;
  overflow: hidden;
}

.link-tab {
  display: block;
  line-height: 1;
  padding: 0.5rem 0.25rem;
  height: 40px;
  text-align: center;
  text-decoration: none;
  font-size: .75rem;
  background: #f0f0f0;
  position: relative;
  z-index: 10;
  width: 14.28%;
}

@supports (-webkit-touch-callout: none) {
  #mute_button {
    display:none !important;
  }
}


.giorno-data {
  display: block;
  font-size: .75rem;
  color: #666;
}

.link-tab.tab-attiva {
  background:#fff;
}

.content-dati-palinsesto {
  position: relative;
  display: block;
  width: 100%;
  height: -webkit-calc(100% - 40px);
  height: -moz-calc(100% - 40px);
  height: calc(100% - 40px);
  overflow: hidden;
  z-index: 1;
}

.dati-colonna-palinsesto {
  display:none;
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  height:100%;
  overflow-y:scroll;
}

.dati-colonna-palinsesto.tab-selezionata {
  display: block;
}

.dati-riga-palinsesto {
  font-size: .865rem;
  padding: 0 1rem;
  margin: 0 auto;
  width: 100%;
}

.dati-riga-palinsesto:nth-child(even) {
  background: #f9f9f9;
}

.dati-riga-palinsesto > .flex-display {
  width: 100%;
  padding: 0.5rem 0;
}

.info-programma {
  width:100%;
}

.ora-programma {
  font-size:12px;
  font-weight: bold;
  margin-right: 1rem;
  padding-left: 1.25rem;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 0.865rem;
  background-image: url('../svg/clock.svg');
}

.durata-programma {
  font-size:12px;
  padding-left: 1.125rem;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 0.65rem;
  background-image: url('../svg/durata.svg');
}
.titolo-programma {
  font-size: 14px;
  color: #282e61;
  font-weight: bold;
  margin-top: 0.25rem;
  display: block;
  width: 100%;
}

.descrizione-programma {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 12px;
  line-height: 1.4;
}

.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 24px 16px 24px;
}
}

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

/*

@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-data-container {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9999999;
  padding: 0;
  border-radius: 0;
  filter: none;
  background: #000000;
}
 
body.fullscreen .main-content {
  POSITION:INITIAL;
}

body.fullscreen .video-data-container .video-container {
  border-radius:0;
  width:100%;
  padding:0 !important;
  height:100% !important;
}

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: .25rem !important;
}

body.fullscreen .video-controls {
  position: fixed;
  z-index: 9999999999;
  right: 0.5rem;
  width: 1.5rem;
  bottom: 0.5rem;
}

body.fullscreen .video-controls .muteunmute,
body.fullscreen .video-controls .play-button,
body.fullscreen .video-controls .fullscreen-button {
  width:16px !important;
  height:16px !important;;
}

body.fullscreen .video-controls .muteunmute,
body.fullscreen .video-controls .play-button {
  margin-bottom:.5rem;
}


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);
}