@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/roboto-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/roboto-bold.woff2') format('woff2');
}

.header-container {
	display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 1);
    border: 2px green;
}

.sondaggio {
	color:#005500;
    font-size: 45px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    padding-right: 65px;
}

table {
    border-collapse: collapse;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: #2E8B57;
    color: white;
    font-weight: bold;
    padding: 12px;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #000;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #002469;
    background-image: url('sfondo2.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

#myChart {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: auto;
    float: left;
    width: 100%;
    max-width: 900px;
    height: 800px;
}

.boxs-hidden,
.hidden {
    display: none;
}

.testo-rosso {
    color: #aa0000;
}

.domanda-errore {
    color: red;
}

#mess.mess-visible {
    display: block;
}

.domanda {
	background-color: #f7f2f0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	border-radius: 5px;
	padding: 20px;
    margin: 0px 0px 20px 0px;
    
}
.boxsall {
	background-color: white;
    color: #002469;
    border-radius: 10px;
    padding: 20px;
    width: 70%;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 1);
    opacity: 0.9;	
}
    
h1 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}


.logo {
    width: 100px;
    height: auto;
    position: absolute;
    right: 75px;
}

 h2 {
	font-size: 35px;
	color:#9f8003; 
	border-bottom: 1px solid #ccc;
	
}

 h4 {
	font-size: 25px;
	color:#1b781c; 
	
}

#mess{
	color:#cb0000;
	font-weight: bold;
	margin-top:15px;
	display: none;
}

h5 {
	
	font-size: 18px;
	color:#1f1f1f; 
	max-width: 550px;
	margin: 0px auto;
	margin-bottom: 15px;
	text-align: center;
	
}


h3 {

    color: #000000;
    text-align: left;
	padding: 0px 10px;
}

.domanda label {
	color: black;
	display: inline-block;
    align-items: center;
    background-color: #99b978;
    padding: 10px;
    margin: 5px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    width: 130px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
    
}

.domanda label:hover {
	background-color: #005500;
	color: #ffffff;
}
.domandalabelsel{
	background-color: orange !important;
	color: #ffffff !important;
}

.avanti {
    background-color: #164626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.avanti:hover {
    background-color: darkgreen;
}

input[type="radio"] {
	display: none;
}

input[type="radio"]:checked + label {
    background-color: #005500 !important;
    color: white !important;
}

.report{
	color: #000;
	margin: 5px auto;
}

.report thead{
	font-weight: bold;
}

.report td{
	border: 1px solid #000;	
	padding: 10px;
}

.evidenziato {
	background-color: #e2ffe9;
}
@media screen and (max-width:1000px) {

	.boxsall {
	width: 90%;
	}
  
  h1 {
    font-size: 28px;
    }
    
    .domanda label {
    width: 220px;
    font-size:30px;	
	}
	
	.avanti {
    font-size: 22px;
	}
	
	.domanda{
	padding:20px 20px 40px 20px;
	margin: 0px 0px 30px 0px;
	}
	.domanda h3{
	font-size:14px;
	margin: 20px 20px 40px 20px;
	}
	
}