/*BODY*/
body{
	margin: auto;
	font-family: Abel; 
  background-color: rgb(250, 250, 210);
}
/*STILE Titoli */
h3{
  color: black;
}
h2{
  color: rgb(65, 105, 225);
}



/*HEADER CON LOGO*/
header{
	height: 160px;
	width: 100%;
	text-align: center;
  overflow: hidden;
}
img{
	height: 150px;
}

/*BARRA DI NAVIGAZIONE PRINCIPALE*/
nav {
  position: absolute;
  width: 100%;
  position: sticky;
  top: 0;
  z-index:  99;
}
nav ul{
 	list-style-type: none;
 	margin:0;
 	padding: 0; 
  overflow: hidden;
 	background-color: rgb(65, 105, 225, 0.75);
 }
nav li{
	float: left;
}

nav li a{
 	color: white;
 	display: block;
 	float: left;
 	padding: 14px 16px;
 	text-align: center;
 	text-decoration: none;
 }

nav li a:hover:not(.active){
 	background-color: white;
 	color:rgb(65, 105, 225);
 }

nav .active{
	color:black;
	background-color:rgb(65, 105, 225) ;
}


/*LOGIN FORM*/
.topnav .login-container {
  float: right;
}

.topnav input[type=text] {
  padding: 6px;
  margin-top: 8px;
  font-size: 17px;
  border: none;
  width: 150px;
}

.topnav .login-container button {
  float: right;
  padding: 6px;
  margin-top: 8px;
  margin-right: 16px;
  background: #ddd;
  font-size: 17px;
  border: none;
  cursor: pointer;
}

.topnav .login-container button:hover {
  background: #ccc;
}

/*responsive login form*/
@media screen and (max-width: 600px) {
  .topnav .login-container {
    float: none;
  }
  .topnav a, .topnav input[type=text], .topnav .login-container button {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 14px;
  }
  .topnav input[type=text] {
    border: 1px solid #ccc;
  }
}


/*SISTEMA A COLONNE HOMEPAGE*/

/*1a riga homepage*/
.row1:after{
  content: "";
  display: table;
  clear: both;
}
.column1 {
  margin: 1%;
  padding: 10px;
  width: 31%;
  float:left;
}

@media screen and (max-width: 600px) {
  .column1 {
    width: 100%;
  }
}
/*div per fare bordo esterno*/
.ilprogetto{
  border-style: solid;
  border-width: medium;
  border-color: rgb(65, 105, 225);
  padding: 10px;
  margin: 1%;
  background-color: white;
}

/*FLIPCARD CONTAINER*/
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  border: 1px solid #f1f1f1;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: transparent;
  color: black;
}

.flip-card-back {
  background-color:rgb(65, 105, 225);
  color: white;
  transform: rotateY(180deg);
  font-size: 20px;
}
i.material-icons {
  font-size: 130px;
  color:rgb(65, 105, 225) ;
}


/*2a RIGA homepage*/
.row2:after{
  content: "";
  display: table;
  clear: both;

}
.column2 {
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  margin: 1%;
  float: left;
  width: 17.8%;
  cursor: pointer;

}
@media screen and (max-width: 600px) {
  .column2 {
    width: 100%;
  }
}


/*CATALOGO*/
.catalogo{
  border-style: solid;
  border-width: medium;
  border-color: rgb(65, 105, 225);
  padding: 10px;
  margin: 1%;
  background-color: white;
}


/*EXPANDING GRID*/
.containerTab {
  padding: 20px;
  color:white;
  display: none;
  margin: 0.1% 1%;
}
.closebtn {
  float: right;
  color:white;
  font-size: 15px;
  cursor: pointer;
}


/*3a RIGA homepage*/

.row:after{
	content: "";
	display: table;
	clear: both;
}
.column {
	border-style: solid;
	border-width: medium;
	border-color: rgb(65, 105, 225);
	margin: 1%;
	padding: 10px;
  background-color: white;
}


/*IMAGE CAROUSEL*/
.slideshow-container img{
  width: 100%;
  height: auto;
}
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 30px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}



/*TOP button*/
#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: rgb(65, 105, 225, 0.75) ; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}



/*FOOTER*/
.contatti{
	background-color: rgb(65, 105, 225, 0.75);
	text-align: center;
  text-color: white;
}
.contatti a:visited{
  color:  white;
}
.copyrights{
	background-color: white;
	text-align: center;
}
/*social media button*/
.socialmedia{
  text-align: center;
  padding-top: 10px;
}
.fa {
  padding: 20px;
  font-size: 30px;
  width: 50px;
  text-align: center;
  text-decoration: none;
}

.fa:hover {
  opacity: 0.7;
}

/* Set a specific color for each brand */


.fa-facebook {
  background: #3B5998;
  color: white;
}

.fa-twitter {
  background: #55ACEE;
  color: white;
}

.fa-linkedin {
  background: #007bb5;
  color: white;
}

.fa-youtube {
  background: #bb0000;
  color: white;
}

.fa-instagram {
  background: #E1306C;
  color: white;
}


/*PAGINA CATALOGO e ESERCIZI e ITEM*/
/*sistema a colonne*/
.row3:after {
  content: "";
  display: grid;
  clear: both;
}
.column3 {
  float: left;
  border-style: solid;
  border-width: medium;
  border-color: rgb(65, 105, 225);
  margin: 1%;
  padding: 10px;
  background-color: white;
}
.left{
  width: 18%;
}
.right{
  width: 78%;
}
@media screen and (max-width: 600px) {
  .column3 {
    width: 98%;
  }
}

/*colonna a dx*/
/*breadcrumbs*/
ul.breadcrumb {
  list-style: none;
}

ul.breadcrumb li {
  display: inline;
}

ul.breadcrumb li+li:before {
  padding: 8px;
  color: black;
  content: "/\00a0";
}

ul.breadcrumb li a {
  color: #0275d8;
  text-decoration: none;
}

ul.breadcrumb li a:hover {
  color: #01447e;
  text-decoration: underline;
}

/*colonna a sx*/
/*horizontal tabs*/
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: rgb(65, 105, 225, 0.75);
}

.tab button {
  background-color: rgb(65, 105, 225, 0);
  font: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

.tab button:hover {
  background-color: rgb(250, 250, 210);
}

.tab button.active {
  background-color:rgb(250, 250, 210);
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/*riga interno tab*/
.row4:after {
  content: "";
  display: table;
  clear: both;
}
.column4 {
  margin: 1%;
  padding: 10px;
  background-color: white;
}

/*card con item*/
.card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  padding:10px;
}

/* On mouse-over, add a deeper shadow */
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* Add some padding inside the card container */
.container {
  padding: 2px 16px;
}
img.coris{
  width: 100%;
  height: auto;
  display: block;
}

/*barra ricerca animata*/
.row3 input[type=text] {
  width: 130px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  background-image: url('https://www.w3schools.com/css/searchicon.png');
  background-position: 10px 10px; 
  background-repeat: no-repeat;
  padding: 12px 20px 12px 40px;
  -webkit-transition: width 0.4s ease-in-out;
  transition: width 0.4s ease-in-out;
}

input[type=text]:focus {
  width: 100%;
}

/* PAGINATION links */
.center{
  text-align: center;
}
.pagination {
  display: inline-block;
}
.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
}

/* Style the active/current link */
.pagination a.active {
  background-color: dodgerblue;
  color: white;
}

/* Add a grey background color on mouse-over */
.pagination a:hover:not(.active) {background-color: #ddd;}


/*PAGINA ITEM*/
/*ESERCIZI CORRELATI*/
.esercizicorrelati{
  background-color: rgb(250, 250, 210);
}
.esercizi{
  color: rgb(65, 105, 225);
  padding: 10px;
}
/* accordion */
.accordion {
  background-color: transparent;
  color: rgb(65, 105, 225);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

.active, .accordion:hover {
  background-color:rgb(65, 105, 225, 0.25);
}

.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

/*Tabella Metadati zebra striped*/
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
}

th, td {
  text-align: left;
  padding: 16px;
}

tr:nth-child(even) {
  background-color: rgb(65, 105, 225, 0.15);
}

/*VIDEO*/
video{
  width: 100%;
  height: auto;
}

/*WEBPROJECT PAGE*/
.containerPDF {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}