/* =====================================================
   HERO CENTRATO
   ===================================================== */
.lcn-hero {
    background-color: #ebe7e7;
    width: 100%;
    padding: 160px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.lcn-hero .preTitle {
    align-self: center;
}

.lcn-hero__title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin: 12px 0 0;
    max-width: 800px;
}

.lcn-hero__desc {
    font-size: 18px;
    color: #3c3c3c;
    max-width: 560px;
    line-height: 1.7;
    margin: 24px 0 0;
}

@media screen and (max-width: 800px) {
    .lcn-hero {
        padding: 120px 24px 60px;
    }

    .lcn-hero__title {
        font-size: 38px;
    }
}

/* =====================================================
   MAIN CONTAINER
   ===================================================== */
.lcn-container {
    width: 80%;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* =====================================================
   POSITION CARDS
   ===================================================== */
.lcn-position-card {
    width: 100%;
    border: 1px solid #e0dada;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.lcn-position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.lcn-position-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lcn-position-title img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.lcn-position-title strong {
    font-size: 24px;
}

.lcn-position-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0ecec;
}

.lcn-section-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #E41925;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}

.lcn-section-body {
    font-size: 16px;
    color: #3c3c3c;
    line-height: 1.6;
}

/* =====================================================
   FORM AREA
   ===================================================== */
.lcn-form {
    background-color: #1c1c1e;
    color: white;
    border-radius: 32px;
    padding: 64px;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 60px auto 80px;
    gap: 8px;
}

/* griglia 2 colonne per nome/cognome ed email/posizione */
#formbuilder_2_row1_0,
#formbuilder_2_row2_0 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

#formbuilder_2_row1_0 .formbuilder-row,
#formbuilder_2_row2_0 .formbuilder-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* label */
.lcn-form label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

/* input testo */
.lcn-form input:not([type="checkbox"]) {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    outline: none;
    color: white;
    font-size: 16px;
    padding: 10px 0;
    margin: 0;
    transition: border-color 0.2s ease;
}

.lcn-form input:not([type="checkbox"]):focus {
    border-bottom-color: #E41925;
}

/* select posizione */
#formbuilder_2_row2_0_position {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    outline: none;
    color: white;
    font-size: 15px;
    padding: 12px 40px 12px 14px;
    margin: 0;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    transition: border-color 0.2s ease;
}

#formbuilder_2_row2_0_position:focus {
    border-color: #E41925;
}

/* textarea messaggio */
.lcn-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    outline: none;
    color: white;
    font-size: 16px;
    padding: 16px;
    margin: 0;
    height: 160px;
    resize: none;
    transition: border-color 0.2s ease;
}

.lcn-form textarea:focus {
    border-color: #E41925;
}

/* dropzone CV */
.dropzone {
    background-color: rgba(255,255,255,0.04) !important;
    border: 1px dashed rgba(255,255,255,0.25) !important;
    border-radius: 12px !important;
    color: rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 120px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.dropzone:hover {
    border-color: #E41925 !important;
}

.dropzone button { all: unset; }

/* bottone invio */
.lcn-form button:not(.dz-remove) {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #E41925;
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 20px 6px 6px;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s ease;
}

.lcn-form button:not(.dz-remove):hover {
    opacity: 0.88;
}

.lcn-form button:not(.dz-remove) i {
    height: 38px;
    width: 38px;
    background-color: white;
    color: #E41925;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#formbuilder_2_container_invia .formbuilder-row div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* privacy checkbox */
#formbuilder_2_privacy_0 .formbuilder-row div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

#formbuilder_2_privacy_0 .formbuilder-row input {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.4);
    background-color: transparent;
    cursor: pointer;
    outline: none;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

#formbuilder_2_privacy_0 .formbuilder-row input:checked {
    background-color: #E41925;
    border-color: #E41925;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
}

/* varie */
.required:after { content: ' *'; }
.message-success { text-align: center; margin-bottom: 50px; }
.error-message { order: 1; color: #ff6b6b; font-size: 12px; margin-top: 4px; }
.flex-privacy { display: flex; flex-direction: column !important; }
.privacy-container { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; }

.dz-remove { color: rgba(255,255,255,0.6); font-size: 12px; }
.dz-image { border: 1px solid rgba(255,255,255,0.2); background: transparent !important; }
.dz-details span { background-color: transparent !important; color: white; }

select option { color: black; }

.lcn-form input:-webkit-autofill,
.lcn-form input:-webkit-autofill:hover,
.lcn-form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1c1c1e inset !important;
    box-shadow: 0 0 0 1000px #1c1c1e inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

label[for="formbuilder_2_privacy_0_field_4331"] p { margin: 0; display: inline-block; font-size: 14px; color: rgba(255,255,255,0.7); }
label[for="formbuilder_2_privacy_0_field_4331"] a { all: unset; text-decoration: underline; cursor: pointer; color: rgba(255,255,255,0.7); }
label[for="formbuilder_2_privacy_0_field_4331"]:after { all: unset; }
label[for="formbuilder_2_privacy_0_field_4331"] > p::after { content: ' *'; }

/* =====================================================
   MOBILE
   ===================================================== */
@media screen and (max-width: 800px) {
    .lcn-intro {
        flex-direction: column;
        gap: 0;
    }

    .lcn-container {
        width: 90%;
        margin-top: 40px;
    }

    .lcn-position-card {
        padding: 20px;
    }

    .lcn-position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .lcn-position-title strong {
        font-size: 18px;
    }

    .lcn-form {
        padding: 32px 24px;
        border-radius: 20px;
        gap: 16px;
    }

    #formbuilder_2_row1_0,
    #formbuilder_2_row2_0 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dropzone {
        height: 80px !important;
    }
}
