* {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
@import url("tabelle.css");

/* Style the body */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
}

/* Header/logo Title */
.header {
  padding: 5px;
  text-align: center;
  background: #1abc9c;
  color: white;
}

/* Increase the font size of the heading */
.header h1 {
  font-size: 150%;
}

/* Style the top navigation bar */
.navbar {
  overflow: hidden;
  background-color: #ddd;
  border-bottom:1px solid #999;
}

/* Style the navigation bar links */
.navbar a {
  float: left;
  display: block;
  color: #00f;
  text-align: center;
  padding: 10px;
  text-decoration: none;
}

/* Right-aligned link */
.navbar a.right {
  float: right;
}

/* Change color on hover */
.navbar a:hover {
  background-color: #ddd;
  color: black;
}

/* Column container */
.row {  
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
  -ms-flex: 20%; /* IE10 */
  flex: 20%;
  background-color: #e0e0eb;
  padding: 20px;
}

.logo{display:block;
margin:0 auto;
}

#main-menu li {margin-top:2px;
}

/* Main column */
.main {   
  -ms-flex: 80%; /* IE10 */
  flex: 80%;
  background-color: #f5f5f5;
  padding: 20px;
  border-left:1px solid #999;
}

/* Il motore di ricerca */
#form{background : transparent;
padding : 3px;
text-align : center;
margin : 0;
}

#form fieldset{border : none;
}

#form input{border : 1px solid #000;
height : 20px;
}
/* Fine motore di ricerca */

#boxmenu{width:100%;
margin:10px;
text-align : left;
border: 1px solid #999;
padding : 2px 10px;
color : #333;
background: #dcdcdc;
}

h1{
border-bottom : 1px solid #333;}

h2{padding : 3px;
margin : 1px 0;
text-align : left;
border-bottom : 1px solid #333;
font-size : 150%;
color:#333;
}

h2.title{border-bottom : none;
font-weight: normal;
}

h3{text-align : left;
padding : 2px;
margin : 2px;
border-bottom : 1px solid #333;
font-size : 140%;
color:#333;
}

h3.menu{border-bottom : none;
}

h4{color:#333;
border-bottom : 1px solid #666;
}

p{text-align : justify;
}

p:first-letter{margin-left : 1%;
font-weight : bold;
font-size:150%;
}
/*Colonne*/
.column {
  flex: 50%;
  border: 1px solid #dcdcdc;
}

/* Clear floats after the columns */
.griglia:after {
  display: flex;
}
/*/Colonne*/

ul{text-align:justify;
}

dl{margin : 3px;
padding : 5px;
background : transparent;
color : #333;
text-align:justify;
}

dt{color : #333;
margin-top : 15px;
font-size : 110%;
font-weight : bold;
padding:5px 10px;
}

dd{font-size : 100%;
}

blockquote{color:#900;
font-style: italic;
text-align: justify;
}

.data{font-size:80%;
color:#666;
font-style:italic;
font-weight:normal;
}

.citazione{margin : 1%;background: #cccccc;
border : 1px solid #999;
border-radius: 5px 5px;
padding : 10px;
font-family : sans-serif;
}

#link{margin:10px 0;
padding:1%;background: #cff;
border-left: 25px solid #9cc;
border-right:1px solid #9cc;
border-top:1px solid #9cc;
border-bottom:1px solid #9cc;
}

img{max-width:100%;
height:auto;
border:1px solid #999;
border-radius: 20px;
}

img.sp{float:right;
}

/*Il box pubblicitario del libro*/
div.polaroid {width: max-width:100%;
height:auto;
text-align: center;
margin:5px;
padding: 0;
background-color: white;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

div.container {padding: 0;
text-align: center;
}

.centrato{text-align : center;
}

.arrotondate{border: 1px solid #999;
border-radius: 10px 10px 10px;
}

.evidenziatored{color:#f33;
font-weight:bold;
font-size:110%;
}
.evidenziatogreen{color:#060;
font-weight:bold;
font-size:110%;
}
.evidenziatoblu{color:#00c;
font-weight:bold;
font-size:110%;
}
.evidenziatoviolet{color:#909;
font-weight:bold;
font-size:110%;
}

/* Fake image, just for this example */
.fakeimg {
  background-color: #aaa;
  width: 100%;
  padding: 20px;
}

/* Footer */
.footer {
  padding: 5px;
  text-align: center;
  background: #ddd;
  border-top:1px solid #666;
}

.strumenti{background: #f5f5f5;
border : 1px solid #999;
margin : 1% 2%;
padding : 5px;
color : #333;
text-align : left;
}

#almodulo{width:40%;
padding:10px;
margin: 0 auto;
border:2px solid #900;
background: #f99;
color:#900;
text-align: center;
}

#next{width:40%;
padding:10px;
margin: 0 auto;
border:2px solid #060;
background: #9c9;
color:#060;
text-align: center;
}

a {color: #009;
text-decoration:none;
}

a:link {color: #009;
text-decoration:none;
}
a:visited {color: #939;
text-decoration:none;
}
a:hover {color: #009;
text-decoration:underline;
}

/* Struttura delle Tabelle */
table{font-size : 95% ;
width : 100%;
margin: 1% 0;
}

th{font-size : 100%;
background : #ccc;
color :#333;
border : 1px solid #000;
padding:10px;
}

tr{width : 100%;
}

td{color : #000;
border : 1px solid #999;
vertical-align: top;
padding:10px;
text-align:justify;
}

/* Avviso importante */
#manifesto{border: 2px solid #c00;
background: #ffc;
padding: 10px;
margin: 10px;
}
#manifesto:before{content:'Attenzione!';
color:#c00;
margin-right:20px;
font-weight:bold;
font-size:130%;
font-family:sans-serif;
}

 #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: red; /* 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 */
}

.alert {
    padding: 20px;
    background-color: #f44336; /* Red */
    color: white;
    margin-bottom: 15px;
}

/* The close button */
.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}
nav{border-left:20px solid #369;
border-top:1px solid #369;
border-right:1px solid #369;
border-bottom:1px solid #369;
background:#ccf;
padding:5px;
margin:10px 0;}

/* When moving the mouse over the close button */
.closebtn:hover {
    color: black;
}

.nota{border-left:10px solid #900;
padding: 20px;
background:#f66;
color:#fff;
margin:5px;
}
.nota:before{content:'Nota :';
color:#fff;
margin-right:20px;
font-weight:bold;
font-size:120%;
font-family:sans-serif;
}

.underline{text-decoration:underline;
}

.primo{ width:auto;
margin:20px;
border:2px solid #060;
border-radius:10px;
background:#3f0;
padding:20px;
float:right;
font-weight:bold;
text-align:center;
color:#030;
}

.secondo{ width:auto;
margin:20px;
border:2px solid #f90;
border-radius:10px;
background:#ff6;
padding:20px;
float:right;
font-weight:bold;
text-align:center;
color:#c60;
}

.terzo{ width:auto;
margin:20px;
border:2px solid #f60;
border-radius:10px;
background:#fc6;
padding:20px;
float:right;
font-weight:bold;
text-align:center;
color:#930;
}

.quarto{ width:auto;
margin:20px;
border:2px solid #900;
border-radius:10px;
background:#f66;
padding:20px;
float:right;
font-weight:bold;
text-align:center;
color:#600;
}

.quinto{ width:auto;
margin:20px;
border:2px solid #009;
border-radius:10px;
background:#3cf;
padding:20px;
float:right;
font-weight:bold;
text-align:center;
color:#009;
}

.iscrizione{width:50%;
margin:0 auto;
padding:5px;
border:2px solid #006;
background:#6cf;
}

.previous:hover,
.next:hover {
  background-color: #ddd;
  color: black;
  text-decoration:none;
}

.previous {
  background-color: #4CAF50;
  padding: 8px 16px;
  font-size:120%;
  float:left;
}

.next {
  background-color: #4CAF50;
  padding: 8px 16px;
  font-size:120%;
  float:right;
}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .row {   
    flex-direction: column;
  }
  .logo{display: none;}
  .navbar a {display:none;
  }
  div.side{text-align:center;
  }
  div.footer{display: none;}
  ul#main-menu{display: none;}
}