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

        :root {
            --primary: #1e3a8a;
            --secondary: #3b82f6;
            --accent: #f59e0b;
            --success: #10b981;
            --danger: #ef4444;
            --purple: #8b5cf6;
            --teal: #14b8a6;
            --bg: #f8fafc;
            --card: #ffffff;
            --text: #0C0A09;
            --text-light: #64748b;
            --border: #e2e8f0;
        }

        body {
            font-family: 'Fira code', 'Segoe UI',Georgia, 'Segoe UI', serif;
            background: #f5f3f0;
            color: #0C0A09;
            line-height: 1.6;
            padding: 2rem 1rem;
        }

        .container {
            max-width: 950px;
            margin: 0 auto;
			background-color: #fafafa;
			border: 5px solid #C8BFE7;
            padding: 2.8rem 2.8rem;
            border-radius: 28px;
			box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }
		
        /* Navigation */
        nav {
            background: #CBFBF1;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
			border-radius: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        nav ul {
            list-style: none;
            display: flex;
            gap: 0.3rem;
            padding: 0.8rem 0;
            overflow-x: auto;
            justify-content: center;
        }

        nav a {
            text-decoration: none;
            color: var(--text-light);
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            transition: all 0.3s;
            white-space: nowrap;
            font-size: 0.9rem;
        }

        nav a:hover, nav a.active {
            background: var(--secondary);
            color: white;
        }		

        h1 {
            font-size: 2.2rem;
            font-weight: 600;
            color: #1e3d5b;
            font-family: 'Segoe UI', serif;
        /*    margin-bottom: 0.25rem;
            border-left: 8px solid #b4977b;
            padding-left: 1.2rem;*/
        }

        .sottotitolo {
            font-size: 1.05rem;
            color: #62676b;
            margin-bottom: 2rem;
            font-style: italic;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .badge {
            background: #e8e0d7;
            padding: 0.3rem 1.2rem;
            border-radius: 40px;
            font-style: normal;
            font-weight: 500;
            color: #2a4d5e;
            font-size: 0.9rem;
        }

        .quiz-item {
            background: #fefcf9;
            border-radius: 24px;
            padding: 1.8rem 2rem;
            margin-bottom: 1.8rem;
            border: 1px solid #e4dbd2;
            transition: all 0.15s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.01);
        }

        .quiz-item:hover {
            border-color: #bba78e;
            background: #fffdfb;
        }

        .quiz-num {
            display: inline-block;
            font-weight: 700;
            color: #6a4e3a;
            background: #f0eae4;
            border-radius: 50px;
            padding: 0.15rem 1rem;
            font-size: 0.9rem;
            letter-spacing: 1px;
            margin-bottom: 0.9rem;
            border: 1px solid #dacbc1;
        }

        .domanda {
            font-size: 1.2rem;
            font-weight: 500;
            margin-bottom: 1.2rem;
            color: #2a4053;
        }

        .opzioni {
            display: flex;
            flex-direction: column;
            gap: 0.7rem;
            margin-bottom: 0.8rem;
        }

        .opzione {
            display: flex;
            align-items: baseline;
            gap: 12px;
            padding: 0.5rem 0.8rem;
            background: white;
            border-radius: 14px;
            border: 1px solid transparent;
            transition: background 0.1s;
        }

        .opzione:hover {
            background: #f9f6f2;
            border-color: #d6c3b3;
        }

        input[type="radio"] {
            accent-color: #7a5b4a;
            width: 1.1rem;
            height: 1.1rem;
            margin-top: 0.2rem;
            flex-shrink: 0;
        }

        .opzione.corretta-evidenza {
            background: #e4f0e4;
            border-left: 6px solid #2a7a5c;
            border-radius: 12px;
        }

        .feedback {
            margin-top: 1rem;
            padding: 0.9rem 1.4rem;
            border-radius: 18px;
            font-size: 0.98rem;
            background: #f8f2ec;
            border-left: 6px solid #a48469;
            color: #2a3e4c;
            display: block;
        }

        .feedback.correct {
            background: #eaf4e8;
            border-left-color: #3c7a5e;
        }

        .feedback.incorrect {
            background: #fceeea;
            border-left-color: #b35e5a;
        }

        .btn-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1.2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .btn {
            background: #fff;
            border: 1.5px solid #9b7b5e;
            color: #3a4e5e;
            padding: 0.7rem 1.7rem;
            border-radius: 60px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: 0.12s;
            font-family: 'Merriweather', serif;
            letter-spacing: 0.3px;
        }

        .btn:hover {
            background: #9b7b5e;
            color: white;
            border-color: #7f6248;
        }

        .btn.primario {
            background: #2f5c6b;
            border-color: #1f414e;
            color: white;
        }

        .btn.primario:hover {
            background: #1d4652;
        }

        .punteggio-box {
            background: #f4f0eb;
            padding: 1.2rem 2rem;
            border-radius: 60px;
            font-size: 1.25rem;
            font-weight: 600;
            color: #2c4c5c;
            text-align: center;
            margin: 2rem 0 0.5rem;
            border: 1px solid #cfc1b6;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #resetBtn {
            background: transparent;
            border: 1.5px solid #a39081;
            color: #3a4a53;
        }

        .corpo-test {
            margin-top: 1rem;
        }

        .footer-math {
            margin-top: 2.8rem;
            border-top: 1px solid #e0d6ce;
            padding-top: 1.4rem;
            text-align: center;
            color: #6b6e76;
            font-size: 0.9rem;
        }

        .autore {
            color: #6a4e3a;
            background: #f8f1ea;
            border-radius: 12px;
            padding: 0.3rem 1.2rem;
            font-size: 0.9rem;
        }

        @media (max-width: 700px) {
            .container { padding: 1.8rem; }
            h1 { font-size: 1.8rem; }
            .quiz-item { padding: 1.5rem; }
        }
		