/* Theming */


:root{
    --white: hsl(0, 0%, 86%);
    --black: #36383F;
    --gray: #85888C;
} /* variables*/

/* Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}
ul{
    list-style: none;
}


/* Header */
.header{
    background-color: var(--black);
    box-shadow: 1px 1px 5px 0px var(--gray);
    position: absolute;
    top: 0;
    width: 100%;
}
/* Logo */
.logo{
    display: inline-block;
    color: var(--white);
    font-size: 60px;
    
}

/* Nav menu */
.nav{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--black);
    overflow: hidden;

}
.menu a{
    display: block;
    padding: 10px;
    color: var(--white);
}
.menu a:hover{
    background-color: var(--gray);
}
.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Menu Icon */
.hamb{
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}/* Style label tag */

.hamb-line {
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

} /* Style span tag */

.hamb-line::before,
.hamb-line::after{
    background: var(--white);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 5px;
}
.hamb-line::after{
    top: -5px;
}

.side-menu {
    display: none;
} /* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked ~ nav{
    max-height: 100%;
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}



main{
    padding-top: 15%;
    
}

body {
  background-color: hsl(0, 0%, 86%);
  
}

img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width:100%;

}

.img_vicende{
  width:100%;
}
h1{
  text-align:center;
  font-size: 55px;
  color:hsl(0, 80%, 30%);
   font-family: "Kalnia", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:"wdth" 100;
  
}
h2, h2,h3,h4{
  font-family: "Kalnia", serif;
  font-weight: 300;
  font-style: normal;
  text-align:center;
  color:hsl(0, 80%, 30%);
  font-variation-settings:"wdth" 100;
}
p{
  text-align: justify;
  font-size:calc(12px + 1vw);
    line-height:calc(10px + 1.5vw);
    padding:10px;

}

h3{
    font-size:calc(10px +2vw);

}
h2{
    font-size:calc(20px + 3vw);
}

h4{
    font-size:2vw;
}
/*table, td {
  border: 1px solid white;
  border: 2px solid black;    
  width: 70%;
  height: 80%;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
    
}*/


.cadiry{
  display: block; 
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}


.prima_col{
    width:50%;
}
.seconda.col {
    width:50%;
}

table{
    width:90%;
    margin-left: auto;
    margin-right: auto;
}

td,th{
    padding:10px;
}

video{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width:60%;
}

.list{
    text-align: justify;
  font-size:1.5vw;
    line-height: 2vw;
    padding: 10px;
    margin-left: 10px;
}

/* Responsiveness */
@media (min-width: 568px) {

    main{
      padding-top: 25%;
  
    }

    p{
       font-size:calc(12px + 1vw);
    }
    


img{
    min-width: 30%;
    max-width: 80%;
}
    
    img_vicende{
    min-width: 40%;
}
    .header{
    position: absolute;
    }
    .nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
        z-index: 999;
    }
    .menu li{
        float: left;
    }
    .menu a:hover{
        background-color: transparent;
        color: var(--gray);

    }

    .hamb{
        display: none;
    }
}
