body {
  min-width: 620px;
  margin: 0;
  padding: 0;
}
 /* -- Setting grid column size and location --*/
 #grid {
  display: grid;
  height: 90px;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 100px;
}
#item1 {
  grid-column: 1/8;
  height: 160px;
}
#item1 h1 {
   position: relative;
   margin-top: -80px;
   margin-left: 190px;
}
#item2 {
  grid-column: 2 / 8;
  margin-left: -8%;
  padding-left: 10%;
}
#item3 {
  grid-column: 8 / 9;
  height: 160px;
}
/* ---- */
#fgrid {
  display: grid;
  height: 90px;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 100px;
}
.footl {
  grid-column: 1;
  margin-left: 5px;
  margin-top: -5px;
  width: 70%;
}
.footr{
 grid-column: 2 / 9;
 text-align: left;
 margin-left: -30px;
}
/* -- /Setting grid column size and location --*/
 
.logo {
  width: 180px;
  box-sizing: border-box;
  border-radius: 50% 50%;
  box-shadow: #A00 5px 3px 10px;
}

 .logo-container {
  position: fixed;
  top: 20px;
  left: 22%;
  transform: translateX(-50%);
  z-index: 5;
}

header{
  display: inline;
}

#headline {
  padding: 0.8em;
  color: white;
  font-family: Roboto, helvetica, arial, sans-serif;
  background-color: black;
  /*background-image: url("http://radioftt.on-the-web.tv:9911");*/
  background-size: cover;
  z-index: 5;
}

#headline #blurb {
  font-weight: 300;
  font-size: 18px;
}

#headline #register {
  background-color: #39b1a4;
  background-color: rgba(57,177, 164, 0.7);
  padding: 1em;
}

#headline #register h2 {
  font-weight: 100;
  padding: 0;
  margin: 0;
}

#headline #register label {
  font-size: 1.2em;
  font-weight: 200;
  padding-top: 12px;
  display: block;
}

#headline #register input {
  width: 100%;
  font-size: 18px;
  font-weight: 200;
  padding: 10px;
  box-sizing: border-box;
}

#headline #register input[type=submit] {
  background-color: hsl(8, 70%, 54%);
  color: white;
  margin-top: 20px;
  padding: 10px;
  border: none;
  box-sizing: border-box;
  font-size: 18px;
}

#section1, #section2, #section3 {
  box-sizing: border-box;
  padding: 20px;
}

.linkpdf {
display: flex;
justify-content: space-between;
gap: 10px;
color: white;
background-color: #a00;
font-family: Roboto, sans-serif;
font-weight: 100;
font-size: 36px;
}

.colpdf {
  flex: 1; /* Ogni colonna occupa la stessa larghezza */
  padding: 20px;
  text-align: center;
  border: 1px solid #ddd;
}

a:link {
  color: black;
}

/* visited link */
a:visited {
  color: blue;
}

/* mouse over link */
a:hover {
  color: red;
}

/* selected link */
a:active {
  color: green;
}

#section1 h2, #section2 h2, #section3 h2  {
  margin-top: 0;
  font-size: 32px
}

#section0 {
  padding-block-start: 120px;
  background-color: black;
  padding: 25px;
  padding-top: 160px;
  margin-bottom: -340px;
}
#section1 {
  background-color: white;
  font-family: Roboto, sans-serif;
  font-weight: 100;
  font-size: 18px;
}

#section1 h2 {
  font-weight: 300;
  text-align: center;
  margin-bottom: 0px;
  margin-top: 0px;
}

#section1 video {
  width: 100%;
}
.fb {
  position: relative;
  top: -40px;
}	

.greyfont {
	background-color: #e9e9e9;
}

#section2 {
  background-color: #e9e9e9;
  font-family: Roboto, sans-serif;
  font-weight: 100;
  font-size: 18px;
  /*margin-left: 5%;
  width: 90%;*/
}

#section2 h2 {
  font-weight: 300;
  text-align: center;
  margin-bottom: -20px;
  margin-top: 0px;
}

#section2 h2 + p {
  text-align: center;
}

#section2 div {
  text-align: center;
}

#section2 div img {
  width: 100%
}

#section3 {
  background-color: #f5f5f5;
  font-family: Roboto, sans-serif;
  font-weight: 100;
  text-align: center;
  margin: auto;
}

#section3 h2 {
  font-weight: 300;
  text-align: center;
  margin-bottom: 0px;
  margin-top: 20px;
}

#section3 h2 + p {
  text-align: center;
}

#section3 figure {
  text-align: center;
}

#section3 figure figcaption {
  text-align: center;
  font-weight: 400;
}

table {
  margin-top: 26px;
  width: 100%;
}
thead {
  font-weight: bold;
}

tbody {
  text-align: left;
}

.ply {
  width: 15%;
}
.loc{
  text-align: left;
  width: 60%;
  padding-left:10px;
}
.dat {
  width: 15%;
  text-align: center;
}
.min {
  width: 10%;
  text-align: center;
}

#table-wrapper {
  position:relative;
}
#table-scroll {
  height:300px;
  width: 100%;
  overflow:auto;
  margin-top:20px;
}
#table-wrapper table {
  width:100%;
}
#table-wrapper table * {
  background: #e9e9e9;
  color:black;
}
/*#table-wrapper table thead th .text {
  position:absolute;
  top:-5x;
  z-index:2;
  height:20px;
  width:35%;
  border:1px solid red;
}*/
.tiradio{
  position: relative;
  margin-top: -5%;
}

/* buon 2024 */
.overpos{
  position: absolute;
  z-index: 99;
  margin-top: 10%;
  margin-left: 20%;
  width: 60%;
}

/********** HORIZONTAL SCROLL*****/

#slitta {
  z-index: 5;
  padding-top: 15px;
}

.wrapper {
  max-width: 100%;
  overflow: hidden;
  height: 52px;
}

.wrapperslitta {
  max-width: 100%;
  overflow: hidden;
  height: 52px;
  margin-top: -50px;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: marquee 50s linear infinite;
}

.marquee p {
  display: inline-block;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-weight: 300;
  font-size: x-large;
  }

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
/**********  END SCROLL HOR *****/

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

  #headline {
    padding: 20px 5%;
    overflow: hidden;
    position: fixed;
    z-index: 10;
    }

  #headline h1 {
    text-shadow: 2px 3px 3px #F00;
    font-weight: 200;
    font-size: 30px;
    line-height: 1em;
    margin-bottom: 0;
    padding-top: 10px;
    }
      
  #headline h2 {
    font-weight: 200;
    font-size: 30px;
    margin-top: 5px;
    }
    
  #item1 h1 {
    position: relative;
    margin-top: -60px;
    margin-left: 80px;
    width: 86%;
    }

  .logo {
    width: 70px;
    box-sizing: border-box;
    border-radius: 50% 50%;
    box-shadow: #A00 5px 3px 10px;
    }
  #fgrid {
    display: grid;
    height: 300px;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 100px;
    background-color: #a00;
  }

  #footl {
    grid-column: 1;
    margin-left: 5px;
    margin-top: -5px;
    padding-top: 10px;
  }
  #footr{
    grid-column: 2 / 9;
    text-align: left;
    margin-left: 2px;
    color:#FFF;
  }

  #item3 {
    grid-column: 8 / 9;
    margin-left: -100px;
  }

  .linkpdf {
    color: white;
    background-color: #a00;
    font-family: Roboto, sans-serif;
    font-weight: 70;
    font-size: 12px;
    /*margin-left: 20px;
    width: 90%;*/
  }

  /*iframe {
    border-width: 0;
    width:98%;
    min-height: 210px;
  }*/
  .clock {
    width:98%;
    min-height: 210px;
  }
  .radio {
    width: 98%;
    height: 300px;
  }
  #overview{
    position: relative;
    z-index: 99;
    margin-top: -500px;
    margin-left: 5%;
    width: 90%;
  }
}

@media(min-width: 481px) and (max-width: 850px){

	table thead {
		display: none; 
	  }

  .clock  {
    width:120px;
    }

  .radio  {
    width:98%;
    height: 300px;
    }
  
	.ply {
		padding-left: 0px;
		padding-top:10px;
	  }
	
	.loc{
	  text-align: left;
	  width: 98%;
	  }
	
	.dat{
	  text-align: left;
	  width: 98%;
	  }

  .logo {
    width: 85px;
    box-sizing: border-box;
    border-radius: 50% 50%;
    box-shadow: #A00 5px 3px 10px;
    }
    
  #headline {
    padding: 20px 5%;
    overflow: hidden;
    position: fixed;
    z-index: 10;
    }
  
  #headline h1 {
    text-shadow: 1px 2px 1px #F00;
    font-weight: 200;
    font-size: 30px;
    line-height: 1em;
    margin-bottom: 0;
    }
      
  #headline h2 {
    font-weight: 200;
    font-size: 30px;
    margin-top: 5px;
    }
    
  #item1 h1 {
    position: relative;
    margin-top: -35px;
    margin-left: 95px;
    }
  
  #item2 {
    grid-column: 2 / 7;
    padding-left: 36px;
    padding-top: 18px;
    }
  
  #item3 {
    grid-column: 8 / 9;
    }

  footer {
    font-family: Roboto, sans-serif;
    font-weight: 250;
    font-size: 0.6em;
    background-color: #A00;
    color: white;
    padding-top: 10px;
    }

  #fgrid {
    display: grid;
    height: 52px;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 100px;
    height: 100px;
    }

  #footl {
    grid-column: 1;
    margin-left: 5px;
    margin-top: -5px;
    width: 50%;
    }
  
  #footr{
    grid-column: 2 / 9;
    text-align: left;
    margin-top: -1%;
    margin-left: -5%;
    }

  .linkpdf {
    color: white;
    background-color: #a00;
    font-family: Roboto, sans-serif;
    font-weight: 70;
    font-size: 12px;
    /*margin-left: 20px;
    width: 90%;*/
  }
  #overview{
    position: relative;
    z-index: 99;
    margin-top: -500px;
    margin-left: 5%;
    width: 90%;
  }
}

@media(min-width: 851px) and (max-width: 1057px){

  .clock {
    width: 150px;
  }
  .radio {
    width: 98%;
    height: 200px;
  }
  
  #item1 h1 {
    position: relative;
    margin-top: -60px;
    margin-left: 120px;
  }

  #item2 {
    grid-column: 2 / 7;
  }

  #headline {
    padding: 20px 5%;
    overflow: hidden;
    position: fixed;
    z-index: 10;
  }

  .container {
    margin: auto;
    color: black;
    /*max-width: 800px;*/
  }

	.fb {
	  position: relative;
	  top: -50px;
	}	

  #headline h1 {
    text-shadow: 1px 2px 1px #F00;
    font-weight: 120;
    font-size: 46px;
  }
    
  #headline h2 {
    font-weight: 200;
    font-size: 30px;
    margin-top: 5px;
  }

  #headline #blurb {
    float: left;
    font-weight: 200;
    width: 50%;
    font-size: 18px;
    box-sizing: border-box;
    padding-right: 10px;
  }

  #headline br {
    clear: both;
  }

  #headline #register {
    float:right;
    padding: 20px;
    width: 50%;
    box-sizing: border-box;
    font-weight: 300;
	}

  .logo {
    width: 100px;
    box-sizing: border-box;
    border-radius: 50% 50%;
    box-shadow: #A00 5px 3px 10px;
  }
  
  footer {
    font-family: Roboto, sans-serif;
    font-weight: 250;
    font-size: 0.7em;
    background-color: #A00;
    color: white;
    padding-top: 10px;
  }
  #footl {
    grid-column: 1;
    margin-left: 5px;
    margin-top: -5px;
    width: 80%;
  }
  #footr{
    grid-column: 2 / 9;
    text-align: left;
    margin-left: -2%;
  }
  #overview{
    position: relative;
    z-index: 99;
    margin-top: -500px;
    margin-left: 5%;
    width: 90%;
  }
}

@media screen and (min-width: 1058px){

  .clock {
    width:98%;
    height: 210px;
  }
 
  .radio {
    width:98%;
    height: 210px;
  }
   
  #headline {
	  padding: 20px 5%;
    overflow: hidden;
    position: fixed;
    height: 140px;
    z-index: 10;
	}

	.container {
	  margin: auto;
      color: black;
	  /*max-width: 800px;*/
	}

	.fb {
	  position: relative;
	  top: -80px;
	}	
	#headline h1 {
	  text-shadow: 2px 3px 3px #F00;
	  font-weight: 200;
	  font-size: 62px;
	  line-height: 1em;
	  margin-bottom: 0;
	}
	  
	#headline h2 {
	  font-weight: 200;
	  font-size: 30px;
	  margin-top: 5px;
	}

	#headline #blurb {
	  float: left;
	  font-weight: 200;
	  width: 50%;
	  font-size: 18px;
	  box-sizing: border-box;
	  padding-right: 10px;
	}

	#headline br {
	  clear: both;
	}

	#headline #register {
	  float:right;
	  padding: 20px;
	  width: 50%;
	  box-sizing: border-box;
	  font-weight: 300;
	}

  #item2 {
    grid-column: 2 / 8;
    margin-left: -8%;
    padding-left: 10%;
  }

	#section1 #section2, #section3 {
	  box-sizing: border-box;
	  /*padding: 10px 20% 80px 20%;*/
	}

	#section1 h2, #section2 h2, #section3 h2  {
	  margin-top: 0;
	  font-size: 60px
	}

	#section1 ul {
	  box-sizing: border-box;
	  float: left;
	  width: 100%;
	  padding-right: 1em;
	}

	#section1 video {
	  box-sizing: border-box;
	  width: 50%;
	  float: right;
	}

	#section1 br {
	  clear: both;
	}

	#section2 div img {
	  width: 30%;
	  margin: 1%;
	  box-sizing: border-box;
	  border-radius: 50% 50%;
	  box-shadow: black 0px 0px 5px;
	}
  
  footer {
    font-family: Roboto, sans-serif;
    font-weight: 250;
    font-size: 14px;
    background-color: #A00;
    color: white;
    padding-top: 10px;
    height: 100px;
  }
  #footl {
    grid-column: 1;
    margin-left: 5px;
    width: 80px;
  }
  #footr{
    grid-column: 2 / 9;
    text-align: left;
    margin-top: -0.5%;
    margin-left: -5%;
    margin-right: 2%;
  }
  #overview{
    position: relative;
    z-index: 99;
    margin-top: -500px;
    margin-left: 5%;
  }
}