﻿/* == LAVORA CON NOI — Miletto Green Theme =================== */

/* HERO AREA */
.page-lavora {
    padding-top: 170px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.lavora-hero {
    text-align: center;
    padding: 0 20px 48px;
}

.lavora-eyebrow {
    display: inline-block;
    background: #e8f7ef;
    color: #0B7A3E;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.lavora-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0d1f0d;
    margin-bottom: 12px;
    line-height: 1.2;
}

.lavora-title span {
    color: #0B7A3E;
}

.lavora-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CARD FORM */
.lavora-box {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    padding: 44px 48px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(11,122,62,0.10), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e4f0ea;
}

/* FORM LAYOUT */
.lavora-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0B7A3E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* INPUTS */
.lavora-form input,
.lavora-form textarea,
.lavora-form select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #d4e8dc;
    border-radius: 12px;
    background: #f8fdf9;
    font-size: 0.97rem;
    color: #1a1a1a;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.lavora-form input:focus,
.lavora-form textarea:focus,
.lavora-form select:focus {
    border-color: #0B7A3E;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(11,122,62,0.12);
    outline: none;
}

.lavora-form input::placeholder,
.lavora-form textarea::placeholder {
    color: #aac4b4;
}

.lavora-form textarea {
    height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.lavora-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B7A3E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* DESCRIZIONE UFFICIO */
.ufficio-box {
    padding: 14px 16px;
    background: #f0faf4;
    border-left: 3px solid #0B7A3E;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #2d6647;
    display: none;
    animation: fadeInBox 0.25s ease;
}

@keyframes fadeInBox {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* SECTION DIVIDER LABEL */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0B7A3E;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0efea;
    margin-bottom: -4px;
}

/* UPLOAD CV */
.file-upload-area {
    position: relative;
    border: 2px dashed #a8d5bb;
    border-radius: 14px;
    padding: 28px 20px 22px;
    text-align: center;
    cursor: pointer;
    background: #f8fdf9;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload-area:hover {
    border-color: #0B7A3E;
    background: #edf8f2;
}

.file-upload-area.has-file {
    border-style: solid;
    border-color: #0B7A3E;
    background: #edf8f2;
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.file-upload-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.file-upload-area.has-file .file-upload-icon {
    transform: scale(0.85);
}

.file-upload-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0B7A3E;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: #8aaa97;
    transition: opacity 0.2s;
}

.file-upload-area.has-file .file-upload-hint {
    display: none;
}

.file-upload-name {
    display: none;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0B7A3E;
    background: #c8edd9;
    border-radius: 8px;
    padding: 8px 16px;
}

.file-upload-area.has-file .file-upload-name {
    display: block;
}

/* SUBMIT BUTTON */
.lavora-form button[type="submit"] {
    background: linear-gradient(135deg, #0B7A3E 0%, #0e9e52 100%);
    color: #fff;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(11,122,62,0.3);
}

.lavora-form button[type="submit"]:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(11,122,62,0.38);
}

.lavora-form button[type="submit"]:active {
    transform: translateY(0);
}

/* CHECKBOX PRIVACY */
.checkbox-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.checkbox-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0B7A3E;
    flex-shrink: 0;
    margin-top: 2px;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .lavora-box {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .lavora-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
