:root {
    --lunaria-blue: #0a1c4e;
    --lunaria-yellow: #FFD500;
    --lunaria-pink: #cc3366;
    --lunaria-green: #228b22;
}

body, .site-container, .site-inner, .content-sidebar-wrap, .content, .entry-content, .wp-site-blocks, .wp-block-html {
    margin: 0 !important; padding: 0 !important; max-width: 100% !important; width: 100% !important;
}

.lunaria-volunteer-vef {
    box-sizing: border-box !important; width: 100vw !important; position: relative; left: 50%;
    margin-left: -50vw !important; margin-right: -50vw !important; margin-top: 0 !important; margin-bottom: 0 !important;
    padding: 0 !important; background: var(--lunaria-blue); font-family: 'Fira Sans Condensed', sans-serif; overflow-x: hidden;
}

.vef-hero {
    background: linear-gradient(135deg, var(--lunaria-blue) 0%, #1a3c7e 100%); color: #fff;
    padding: 150px 20px 80px; position: relative; overflow: hidden; text-align: center;
}
.vef-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('https://www.lunaria.org/wp-content/uploads/2016/09/ibg-triaining-memigrationcc-900x675-1.jpg') center/cover;
    opacity: 0.15; z-index: 0;
}
.vef-hero-content { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; }
.vef-badge {
    display: inline-block; background: var(--lunaria-yellow); color: var(--lunaria-blue);
    padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px;
}
.vef-hero h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin: 0 0 15px 0; }
.vef-hero h1 .text-white { color: white; }
.vef-hero h1 .text-yellow { color: var(--lunaria-yellow); }
.vef-hero h1 .text-pink { color: var(--lunaria-pink); }
.vef-hero p { font-size: 1.2rem; line-height: 1.6; max-width: 800px; margin: 0 auto; color: #ffffff !important; }
.vef-hero strong { color: var(--lunaria-yellow); font-weight: 700; }

.vef-info-bar { background: var(--lunaria-yellow); padding: 20px; text-align: center; }
.vef-info-bar p { font-size: 1.1rem; font-weight: 700; color: var(--lunaria-blue); text-transform: uppercase; margin: 0; }

.vef-form-section { background: #fff; padding: 80px 20px; }
.vef-container { max-width: 1000px; margin: 0 auto; }
.vef-form-wrapper { background: white; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); overflow: hidden; }

.vef-progress { background: #f9f9f9; padding: 2rem 1.5rem; border-bottom: 2px solid var(--lunaria-yellow); }
.vef-progress-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 1rem; }
.vef-progress-line { position: absolute; top: 20px; left: 0; right: 0; height: 4px; background: #e5e7eb; z-index: 0; }
.vef-progress-fill { height: 100%; background: var(--lunaria-blue); transition: width 0.3s ease; width: 0%; }
.vef-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.vef-step-circle {
    width: 40px; height: 40px; border-radius: 50%; background: white; border: 4px solid #e5e7eb;
    margin: 0 auto 0.5rem; display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #9ca3af; transition: all 0.3s;
}
.vef-step.active .vef-step-circle { border-color: var(--lunaria-blue); background: var(--lunaria-blue); color: white; transform: scale(1.15); }
.vef-step.completed .vef-step-circle { border-color: var(--lunaria-green); background: var(--lunaria-green); color: white; }
.vef-step-label { font-size: 0.875rem; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.vef-step.active .vef-step-label { color: var(--lunaria-blue); font-weight: 800; }

.vef-form-content { padding: 3rem 2rem; }
.vef-form-step { display: none; }
.vef-form-step.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.vef-section-title {
    font-size: 2.5rem; font-weight: 800; color: var(--lunaria-blue);
    margin: 0 0 0.5rem 0; text-transform: uppercase;
}
.vef-section-title .highlight { color: var(--lunaria-pink); }
.vef-section-desc { color: #6b7280; margin: 0 0 2rem 0; font-size: 1.2rem; }
.vef-section-desc-small { color: #6b7280; margin: 0 0 2rem 0; font-size: 1.2rem; }

.vef-alert {
    background: #fff3cd; border-left: 4px solid #ffc107; padding: 1rem 1.5rem;
    margin-bottom: 2rem; border-radius: 8px;
}
.vef-alert strong { color: #856404; }
.vef-alert p { margin: 0.5rem 0 0 0; color: #856404; font-size: 0.95rem; }

.vef-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.vef-form-group { margin-bottom: 1.5rem; }
.vef-form-group.full { grid-column: 1 / -1; }

.vef-form-group label {
    display: block; font-weight: 700; color: var(--lunaria-blue); margin-bottom: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.5px; font-size: 1rem;
}
.vef-form-group label .req { color: var(--lunaria-pink); }
.vef-form-group label .opt { color: #6b7280; font-weight: 400; font-size: 0.85rem; text-transform: none; }

.vef-form-group input, .vef-form-group select, .vef-form-group textarea {
    width: 100%; padding: 1rem; border: 2px solid #e5e7eb; border-radius: 8px;
    font-family: 'Fira Sans Condensed', sans-serif; font-size: 1rem; transition: all 0.15s;
}
.vef-form-group input:focus, .vef-form-group select:focus, .vef-form-group textarea:focus {
    outline: none; border-color: var(--lunaria-blue); box-shadow: 0 0 0 3px rgba(10, 28, 78, 0.1);
}
.vef-form-group input.error, .vef-form-group select.error, .vef-form-group textarea.error {
    border-color: var(--lunaria-pink);
}
.vef-form-group textarea { min-height: 120px; resize: vertical; }

.vef-error-msg {
    color: var(--lunaria-pink); font-size: 0.875rem; margin-top: 0.5rem;
    display: none; font-weight: 600;
}
.vef-error-msg.show { display: block; }

.vef-subsection { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid #f3f4f6; }
.vef-subsection-title {
    font-size: 1.5rem; font-weight: 800; color: var(--lunaria-blue);
    margin: 0 0 1.5rem 0; text-transform: uppercase;
}

.vef-language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vef-language-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem; background: #f9f9f9; border-radius: 8px; }

.vef-workcamp-list { display: flex; flex-direction: column; gap: 1rem; }
.vef-workcamp-row {
    display: grid; grid-template-columns: auto 1fr 1.5fr 1fr auto auto; gap: 1rem;
    padding: 1rem; background: #f9f9f9; border-radius: 8px; align-items: center;
    border-left: 4px solid var(--lunaria-blue);
}
.vef-workcamp-num {
    width: 35px; height: 35px; border-radius: 50%; background: var(--lunaria-yellow);
    color: var(--lunaria-blue); font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.vef-workcamp-row input { margin: 0; padding: 0.75rem; }
.vef-workcamp-row input:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.vef-icon-btn {
    width: 35px; height: 35px; border: none; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.vef-icon-search { background: var(--lunaria-blue); color: white; }
.vef-icon-search:hover { background: #1a3c7e; }
.vef-icon-remove { background: var(--lunaria-pink); color: white; }
.vef-icon-remove:hover { background: #a82850; }

.vef-btn-open-search {
    width: 100%; padding: 20px; background: var(--lunaria-blue); color: white; border: none;
    border-radius: 8px; font-size: 1.3rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s; display: flex;
    align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2rem;
}
.vef-btn-open-search:hover { background: #1a3c7e; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(10, 28, 78, 0.4); }

.vef-form-actions {
    display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem;
    padding-top: 2rem; border-top: 2px solid var(--lunaria-yellow);
}
.vef-btn {
    padding: 18px 50px; border: none; border-radius: 8px; font-family: 'Fira Sans Condensed', sans-serif;
    font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.vef-btn-primary { background: var(--lunaria-blue); color: white; box-shadow: 0 4px 12px rgba(10, 28, 78, 0.3); }
.vef-btn-primary:hover { background: #1a3c7e; transform: translateY(-3px); }
.vef-btn-secondary { background: #e5e7eb; color: var(--lunaria-blue); }
.vef-btn-success { background: var(--lunaria-yellow); color: var(--lunaria-blue); }

.vef-modal { display: none; position: fixed; inset: 0; z-index: 10000; }
.vef-modal.active { display: block; }
.vef-modal-overlay { position: absolute; inset: 0; background: rgba(10, 28, 78, 0.9); backdrop-filter: blur(4px); }
.vef-modal-content {
    position: relative; width: 90%; max-width: 1400px; max-height: 90vh; margin: 5vh auto;
    background: white; border-radius: 16px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex; flex-direction: column; animation: modalSlide 0.3s ease;
}
@keyframes modalSlide { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.vef-modal-header {
    display: flex; justify-content: space-between; align-items: center; padding: 2rem;
    border-bottom: 2px solid var(--lunaria-yellow); background: #f9f9f9;
}
.vef-modal-header h2 { margin: 0; font-size: 2rem; font-weight: 800; color: var(--lunaria-blue); text-transform: uppercase; }
.vef-modal-close {
    width: 100px; height: 40px; border: none; background: var(--lunaria-pink); color: white;
    border-radius: 10%; cursor: pointer; font-size: 1.2rem; transition: all 0.15s;
}
.vef-modal-close:hover { background: #a82850; opacity: 50%; }
.vef-modal-body { padding: 2rem; overflow-y: auto; flex: 1; }

.vef-search-filters { background: #f9f9f9; padding: 2rem; border-radius: 12px; margin-bottom: 2rem; }
.vef-filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.vef-filter-group label { display: block; font-size: 0.9rem; font-weight: 700; color: #374151; margin-bottom: 0.5rem; }
.vef-filter-group input, .vef-filter-group select {
    width: 100%; padding: 0.75rem; border: 2px solid #e5e7eb; border-radius: 6px;
    font-family: 'Fira Sans Condensed', sans-serif;
}
.vef-btn-search { width: 100%; padding: 20px; font-size: 1.3rem; }

.vef-results { display: flex; flex-direction: column; /* gap: 1rem; */ }
.vef-result-item {
    display: grid; grid-template-columns: auto 2fr 1.5fr auto 1fr 1fr auto; gap: 1rem;
    padding: 1.5rem; background: white; border-radius: 12px; border-left: 5px solid var(--lunaria-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); align-items: center; transition: all 0.3s;
}
.vef-result-item:hover { transform: translateX(5px); box-shadow: 0 10px 15px rgba(0,0,0,0.15); }
.vef-camp-code { font-weight: 800; color: var(--lunaria-blue); font-size: 0.9rem; }
.vef-camp-name { font-weight: 600; color: #1f2937; }
.vef-camp-location { color: #6b7280; font-size: 0.9rem; }
.vef-camp-flag { font-size: 1.5rem; }
.vef-camp-dates { font-size: 0.85rem; color: #6b7280; }
.vef-btn-select {
    background: var(--lunaria-green); color: white; border: none; padding: 0.5rem 1.5rem; height: 2.5rem;
    border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.vef-btn-select:hover { background: #1a6b1a; transform: scale(1.05); }
.vef-btn-select.selected { background: #9ca3af; cursor: not-allowed; }

.vef-show-camp-info {
    background: var(--lunaria-blue); color: white; border: none; padding: 0.6rem;
    border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.15s; white-space: nowrap;    
    text-align: center;
    font-size: 1rem;
    width: 5rem;    
}

.vef-camp-info-btn {
    text-align: right;
}

.camp-info {
    grid-column: 1 / -1;
    padding: 2rem;
    padding-top: 1.5rem;
}

.camp-info p.camp_info_desc_header {
    font-size: 1rem;
    font-weight: bold !important;    
    margin-bottom: 0px;
}

.camp-info p.camp_info_desc_text {
    font-size: 1rem;
    text-align: justify;
}


.vef-country {
        grid-column: 1 / 3;
}

.vef-work {
        grid-column: 3 / -1;
}

.vef-modal div.lbjs {
        width: 100%;
}

.camp-info {
    border-bottom: 1px solid var(--lunaria-blue);
    border-left: 4px solid var(--lunaria-blue);
    margin-bottom: 0.6rem;
}

#display_birthdate {
    width: 90px;
}

#eps_countrylist, #eps_worklist {
    text-overflow: ellipsis;
}

input.langlevel {
    width: 10em;
}

#display_country {
    width: 25em;
}

span.text_subtitle {
    margin-top: 0.4em;
    font-size: 11pt;
    display: inline-block;
    padding-left: 0.4em;
}

#vef_submitted li {
    margin-left: 5rem;
    margin-bottom: 1rem;
}

div.vef-btn-container {
    display: inline;
}

div.vef-btn-container button {
    display: inline;
}

@media (max-width: 768px) {
    .vef-hero { padding-top: 120px; padding-bottom: 60px; padding-left: 15px; padding-right: 15px; }
    .vef-hero h1 { font-size: 2.5rem; }
    .vef-form-section { padding: 40px 10px; }
    .vef-form-wrapper { margin: 0 5px; }
    .vef-form-content { padding: 2rem 1rem; }
    .vef-form-grid, .vef-language-grid, .vef-language-row { grid-template-columns: 1fr; }
    .vef-filter-grid { grid-template-columns: 1fr; }
    .vef-result-item, .vef-workcamp-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .vef-form-actions { flex-direction: column; }
    .vef-btn { width: 100%; justify-content: center; }
    .vef-info-bar { padding: 15px 10px; }
    .vef-info-bar p { font-size: 0.9rem; }
    
    button.vef-show-camp-info {
        width: 100%;
    }    
    
    button.vef-icon-remove {
        float: right;
    }
    
    div.vef-work {
        grid-column: 1 / 3 !important;
    }    
    
    .vef-modal-search-workcamps .vef-modal-body { padding: 0rem; }

    .vef-search-filters { padding: 1rem; }
    
    div.vef-age-gender { 

    }
    
    .camp-info {
        padding: 0.8em;
        padding-bottom: 0;
    }
    
    #eps_age { width:4rem; }
    #eps_gender { width:10rem; }
}
@media (max-width: 480px) { 
    .vef-hero h1 { font-size: 2rem; } 
    .vef-step-label { font-size: 0.55rem; }
    .vef-form-section { padding: 30px 5px; }
    .vef-form-content { padding: 1.5rem 0.75rem; }
}

#postSubmissionInfo {
    border-top: 4px solid var(--lunaria-yellow);
}

/* schede progetto */

        .project-card {
            display: flex;
            flex-direction: row;
            background: #fff;
            border-left: 4px solid var(--brand-primary);
            border-top-left-radius: 8px;
            margin-bottom: 0;
            margin-top: 0.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
            transition: box-shadow 0.3s ease;
            overflow: hidden;
            /* max-width: 1200px; */
        }

        .project-card:hover {
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        /* Badge paese */
        .project-country {
            background: var(--brand-yellow);
            color: var(--brand-primary);
            padding: 30px 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 70px;
            max-width: 70px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            text-align: center;
            line-height: 1.2;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        /* Contenuto centrale */
        .project-content {
            flex: 1;
            padding: 18px 24px;
        }

        .project-categories {
            margin-bottom: 10px;
        }

        .project-work {
            display: inline-block;
            background: var(--accent-pink);
            color: #fff;
            padding: 4px 10px;
            border-radius: 3px;
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            margin-right: 3px;
            letter-spacing: 0.3px;
        }

        .project-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--brand-primary);
            margin: 6px 0;
            line-height: 1.3;
        }

        .project-meta {
            font-size: 0.82rem;
            color: #333;
            margin: 3px 0;
        }

        .project-code {
            color: var(--accent-pink);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.78rem;
        }

        /* Info laterale */
        .project-info {
            background: #fff;
            border-left: 3px solid var(--accent-pink);
            padding: 18px 22px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .project-details {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .project-detail-item {
            font-size: 0.78rem;
            line-height: 1.5;
        }

        .project-detail-label {
            color: var(--accent-pink);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.68rem;
            display: inline;
        }

        .project-detail-value {
            color: var(--brand-primary);
            font-weight: 600;
        }

        /* Sezione bottone */
        .project-actions {
            display: flex;
            align-items: center;
            padding: 18px 22px;
        }

        .project-btn {
            display: block;
            min-width: 120px;
            padding: 0.5rem 1.5rem;
            border: none;
            border-radius: 6px;
            background: var(--brand-primary);
            color: var(--brand-yellow);
            font-size: 1.15rem;
            font-weight: 700;
            cursor: pointer;
            text-transform: uppercase;
            text-align: center;
            transition: all 0.3s ease;
            letter-spacing: 0.5px;
            height: 2.5rem;
            
/* background: var(--lunaria-green); */
    /* color: white; */
    /* border: none; */
    /* padding: 0.5rem 1.5rem; */
    /* border-radius: 8px; */
    /* font-weight: 700; */
    /* cursor: pointer; */
    /* transition: all 0.15s; */
    /* white-space: nowrap;             */
        }

        .project-btn:hover {
            background: var(--accent-pink);
            color: #fff;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .project-card {
                flex-direction: column;
                border-left: unset;
            }

            .project-country {
                min-width: 100%;
                max-width: 100%;
                padding: 12px;
            }

            .project-info {
                border-left: none;
                border-top: 3px solid var(--accent-pink);
            }

            .project-actions {
                width: 100%;
                padding-bottom: 0;
            }

            .project-btn {
                width: 100%;
            }
            
            .vef-modal-close {
                margin-top: -28px;
                margin-right: -24px;
                width: 5rem;
                font-size: 9pt;
            }
        }
        
/* schede progetto (fine) */