:root {
    --italian-green: #008C45;
    --italian-red: #CD212A;
    --italian-white: #F4F5F0;
    --text-dark: #333;
    --gold: #D4AF37;
}

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

body {
    font-family: 'Lato', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1516483638261-f4dbaf036963?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--text-dark);
    padding: 15px;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    background-color: rgba(255, 255, 255, 0.98);
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    text-align: center;
    border-top: 5px solid var(--italian-green);
    border-bottom: 5px solid var(--italian-red);
    position: relative;
    margin: auto; 
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: var(--italian-red);
    line-height: 1.2;
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    background-color: var(--italian-green);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #006e36;
    transform: translateY(-2px);
}

.btn-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.btn-answer {
    background-color: white;
    color: var(--text-dark);
    border: 3px solid #e0e0e0;
    width: 100%;
    text-align: left;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: normal;
    line-height: 1.4;
}

.btn-answer:not(:disabled):hover {
    background-color: #f5f5f5;
    border-color: #bdbdbd;
}

.btn-answer.selected.correct {
    background-color: var(--italian-green) !important;
    border-color: var(--italian-green) !important;
    color: white !important;
}

.btn-answer.selected.wrong {
    background-color: #ffebee !important;
    border-color: var(--italian-red) !important;
    color: var(--italian-red) !important;
}

.btn-answer.correct-reveal {
    border-color: var(--italian-green) !important;
    background-color: #e8f5e9 !important;
    color: var(--text-dark) !important;
    font-weight: bold;
}

.btn-answer:disabled {
    cursor: default;
    transform: none !important;
}

.hide { display: none; }

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.next-btn {
    margin-top: 20px;
    background-color: var(--text-dark);
    width: 100%;
}
.next-btn:hover {
    background-color: #555;
}

.home-btn {
    position: fixed;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 12px;
    transition: 0.3s;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.home-btn { left: 20px; }

@media (max-width: 600px) {
    
    .container {
        padding: 20px;
        width: 90%;
        margin-top: 50px; 
        margin-bottom: 20px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.3rem; }
    p { font-size: 1rem; }
    
    .btn-answer {
        font-size: 1rem;
        padding: 12px;
    }

    .lang-btn, .home-btn {
        top: 10px;
        padding: 5px 10px;
        font-size: 1.2rem;
    }
    .home-btn { left: 10px; }
    .lang-btn { right: 10px; }
}