:root {
    --primary: #7BC143;
    /* Herbalife Green */
    --primary-hover: #5da02f;
    --secondary: #2C3E50;
    --bg-light: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    /* Più moderno */
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* HEADER & NAV */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* HERO SECTION */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    margin-top: 0;
    padding: 60px 40px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 18px 45px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(123, 193, 67, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 193, 67, 0.4);
}

/* STEPS INDICATOR */
.steps-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 10px;
    position: relative;
    z-index: 1;
}

.step.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(123, 193, 67, 0.3);
}

.step::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 40px;
    background: #eee;
    left: 100%;
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

.step.active+.step::after {
    /* Line between active steps */
    /* background: var(--primary); Optional: color the line too */
}


/* CARDS */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* QUIZ CARD */
.question-title {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 30px;
}

/* ANSWERS GRID */
.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.answer-btn {
    background: white;
    border: 2px solid #f0f0f0;
    padding: 25px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 500;
}

.answer-btn:hover {
    border-color: var(--primary);
    background: #fdfdfd;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.answer-btn:active {
    transform: scale(0.98);
}

/* FORM STYLES */
.form-card {
    max-width: 500px;
    margin: 60px auto;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    /* Rounded inputs */
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .card {
        padding: 30px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .btn-primary {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-link {
        margin: 0 10px;
        font-size: 0.9rem;
    }
}