/* 1. RESET E REGOLE BASE (Valide per tutto il sito) */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* 2. NAVBAR (Presa da index.html) */
.navbar {
    background-color: #2c3e50;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { color: white; font-weight: bold; font-size: 1.5rem; }

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    background: rgba(255, 255, 255, 0.1);
}

/* 3. LAYOUT GENERALE E CONTAINER */
.container {
    max-width: 900px; /* Mediazione tra 800 e 900 */
    margin: 20px auto;
    background: white; /* Sfondo bianco per informatica.html */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 4. TITOLI E TESTI */
h1 {
	margin-bottom: 15px;
}

.hero-section h1 {
	color: white;
}

.container h1 {
	color: #2c3e50;
}

h2 {
	color: #2c3e50;
	border-bottom: 2px solid #3498db;
	margin-bottom: 15px;
}

/* 5. ELEMENTI SPECIFICI (Informatica e Index) */
.hero-section {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.info-box {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Liste di informatica.html */
ul { list-style-type: none; padding: 0; }

.container li {
    background-color: #ecf0f1;
    margin: 10px 0;
    padding: 15px;
    border-left: 5px solid #3498db;
    border-radius: 4px;
    list-style: none; /* Rimuove pallini se presenti */
}

/* Immagini */
.main-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 5px solid #2c3e50;
    display: black;
    margin: 10px auto;
}

/* Sezione Esercizio JS */
.esercizio-js {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

input { padding: 8px; margin: 5px; width: 80px; }
button { padding: 8px 15px; cursor: pointer; background: #3498db; color: white; border: none; border-radius: 4px; }
button:hover { background: #2980b9; }

@keyframes pop{
	0% { transform: scale(0.9); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

#risultato {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    display: inline-block;
}

.risultato-ok {
    background-color: #e74c3c; /* Rosso matematica */
    color: white;
    border: 2px solid #c0392b;
}

.risultato-errore {
    background-color: #fce4e4;
    color: #cc0000;
    border: 1px solid #cc0000;
}

/* FOOTER */
footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #ccc;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

/* Liste di matematica.html */
.math-section {
	margin-bottom: 25px;
	padding: 15px;
	background: #fff;
	border-left: 5px solid #e74c3c; /* Rosso per defferenziarla da informatica */
	border-radius: 4px;
	transition: transform 0.2s;
}

.math-section:hover{
	transform: translateX(10px);
}

.highlight{
	color: #e74c3c;
	font-weight: bold;
}

/* Liste di inglese.html */
.english-section {
	border-left: 5px solid #27ae60;
	background: #fff;
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 4px;
}

.vocabulary-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.vocabulary-table th {
	background-color: #27ae60;
	color: white;
	padding: 12px;
	text-align: left;
}

.vocabulary-table td {
	padding: 10px;
	border-bottom: 1px solid #eee;
}

.vocabulary-table tr: hover{
	background-color: #f1f9f4;
}

.lang-tag {
	font-size: 0.8rem;
	text-transform: uppercase;
	color: #27ae60;
	font-weight: bold;
}

.vocabulary-table{
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.vocabulary-table th, .vocabulary-table td{
	padding: 12px;
	border-bottom: 1px solid #ddd;
	text-align: left;
}

.lang-tag{
	background: #eee;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.8em;
	margin-right: 5px;
}

.quiz-container button {
    background-color: #00cc99;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.quiz-container button:hover {
    background-color: #009973;
}

.image-container {
	text-align: center;
	margin: 20px 0;
}

.image-container img {
	max-width: 100%;
	height: auto;
	border: 2px solid #00cc99;
	border-radius: 8px;
}
