/* ═══ PAGINA LAVORA CON NOI ══════════════════════════════════════════ */

/* Hero */
.lavora-hero {
    background: linear-gradient(135deg, var(--blu) 0%, var(--blu-mid) 100%);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}
.lavora-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--verde), #5bc25f, var(--verde));
}

/* Valori */
.valori { background: var(--white); }
.valori-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.valore-card {
    padding: 28px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.valore-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--verde);
}
.valore-card__icon {
    width: 48px;
    height: 48px;
    background: var(--vd-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde);
}
.valore-card h3 { font-size: 1.1rem; margin: 0; }
.valore-card p  { font-size: 0.875rem; color: var(--text-soft); margin: 0; }

/* Posizioni */
.posizioni { background: var(--bg); }
.posizioni-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.posizione-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    gap: 20px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.posizione-item:hover {
    border-color: var(--azzurro);
    box-shadow: var(--shadow-md);
}
.posizione-item__info { flex: 1; }
.posizione-item__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blu);
    margin-bottom: 4px;
}
.posizione-item__desc { font-size: 0.875rem; color: var(--text-soft); }
.posizione-item__badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    background: var(--vd-light);
    color: #2d7a30;
    white-space: nowrap;
}

/* Form candidatura */
.candidatura-form-section {
    background: var(--white);
    padding: 80px 0;
    scroll-margin-top: 80px;
}
.candidatura-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}
.candidatura-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-stack { display: flex; flex-direction: column; gap: 18px; }

/* Upload file */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
}
.file-upload-label:hover { border-color: var(--azzurro); background: var(--az-light); }
.file-upload-label input[type="file"] { display: none; }
.file-upload-label span { font-size: 0.875rem; color: var(--text-soft); }
.file-upload-label strong { font-size: 0.9rem; color: var(--text-mid); }
.file-name-display { font-size: 0.8rem; color: var(--azzurro); margin-top: 4px; min-height: 18px; }

/* Privacy checkbox */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-mid);
    cursor: pointer;
}
.privacy-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--azzurro);
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
}
.privacy-check a { color: var(--azzurro); text-decoration: underline; }

/* Form feedback */
.form-feedback {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    margin-top: 16px;
}
.form-feedback.success { background: var(--vd-light); color: #2d7a30; display: block; }
.form-feedback.error   { background: #ffeaeb; color: #c0392b; display: block; }

/* Form loading */
.btn--loading { opacity: 0.7; pointer-events: none; }

@media (max-width: 1024px) {
    .valori-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .valori-grid { grid-template-columns: 1fr; }
    .posizione-item { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .candidatura-form { padding: 24px; }
}
