/* ==========================================================================
   Page Lavora con Noi — Lindhaus custom template
   ========================================================================== */

/* ---------- Design tokens (shared) ---------- */
:root {
    --lh-blue: #4992BB;
    --lh-blue-light: #DCEBF3;
    --lh-gray-bg: #EBEBEB;
    --lh-text: #565656;
    --lh-text-dark: #333;
    --lh-footer-gray: #777474;
    --lh-white: #fff;
    --lh-green: #27ae60;
    --lh-green-dark: #1e8449;
    --lh-radius: 10px;
    --lh-container: 1140px;
    --lh-gap: 32px;
    --lh-section-spacing: 60px;
    --lh-font-heading: 'Inter', sans-serif;
    --lh-font-body: 'Inter', sans-serif;
    --lh-font-btn: 'Roboto', sans-serif;
}

/* ---------- Base ---------- */
.lh-lcn-page {
    color: var(--lh-text);
    font-family: var(--lh-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    overflow-x: hidden;
    overflow-x: clip;
}

.lh-lcn-page *,
.lh-lcn-page *::before,
.lh-lcn-page *::after {
    box-sizing: border-box;
}

.lh-lcn-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- 1. Hero ---------- */
.lh-lcn-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--lh-white);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 60vh;
    min-height: 60dvh;
}

/* Diagonal white overlay */
.lh-lcn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--lh-white);
    clip-path: polygon(0 0, 55% 0, 50% 100%, 0 100%);
    z-index: 1;
}

.lh-lcn-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
    min-height: 60vh;
    min-height: 60dvh;
    display: flex;
    align-items: center;
}

.lh-lcn-hero__text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 400px;
}

.lh-lcn-hero__title {
    font-family: var(--lh-font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--lh-blue);
    text-transform: uppercase;
}

.lh-lcn-hero__subtitle {
    font-family: var(--lh-font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    color: #000;
}

.lh-lcn-hero__text {
    font-size: 14px;
    line-height: 1.3;
    color: #000;
}

.lh-lcn-hero__text p:last-child {
    margin-bottom: 0;
}

/* ---------- 2. Breadcrumb ---------- */
.lh-lcn-breadcrumb {
    background: #ebebeb;
    padding: 60px 0;
    font-size: 13px;
    color: var(--lh-footer-gray);
}

.lh-lcn-breadcrumb__inner {
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
}

.lh-lcn-breadcrumb__inner p {
    margin: 0;
}

.lh-lcn-breadcrumb__inner span:last-child {
    color: var(--lh-text-dark);
}

.lh-lcn-breadcrumb a {
    color: var(--lh-blue);
    text-decoration: none;
}

.lh-lcn-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- 3. Positions Section ---------- */
.lh-lcn-positions {
    background: #ebebeb;
    padding: 0 0 60px;
}

.lh-lcn-positions__inner {
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
}

.lh-lcn-positions__title {
    font-family: var(--lh-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--lh-text-dark);
    margin: 0 0 40px;
}

/* Positions grid */
.lh-lcn-positions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: start;
}

/* ========== Position Card ========== */
.lh-lcn-card {
    background: var(--lh-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.lh-lcn-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lh-lcn-card--closed {
    opacity: 0.55;
}

.lh-lcn-card--closed:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Card header: title left, badge right */
.lh-lcn-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.lh-lcn-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--lh-blue);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

/* Badge */
.lh-lcn-card__badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    white-space: nowrap;
}

.lh-lcn-card__badge--open {
    background: var(--lh-blue-light);
    color: var(--lh-blue);
}

.lh-lcn-card__badge--closed {
    background: #eee;
    color: #999;
}

/* Expand row */
.lh-lcn-card__expand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 12px;
}

.lh-lcn-card__expand-label {
    font-size: 14px;
    color: var(--lh-text-dark);
}

/* Toggle button */
.lh-lcn-card__toggle {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--lh-text);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lh-lcn-card__toggle:hover {
    color: var(--lh-blue);
}

.lh-lcn-card__toggle--disabled {
    cursor: default;
    opacity: 0.4;
}

.lh-lcn-card__toggle--disabled:hover {
    color: var(--lh-text);
}

.lh-lcn-card__toggle-icon {
    display: block;
    line-height: 1;
}

/* Details (expandable) */
.lh-lcn-card__details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.lh-lcn-card__details--expanded {
    max-height: 2000px;
    transition: max-height 0.6s ease-in;
}

.lh-lcn-card__details-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Card description (the_content) */
.lh-lcn-card__description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--lh-text);
    margin-bottom: 20px;
    padding: 16px;
    background: #f7f9fb;
    border-left: 3px solid var(--lh-blue);
    border-radius: 0 6px 6px 0;
}

.lh-lcn-card__description p:first-child {
    margin-top: 0;
}

.lh-lcn-card__description p:last-child {
    margin-bottom: 0;
}

.lh-lcn-card__description ul,
.lh-lcn-card__description ol {
    padding-left: 1.4em;
    margin: 8px 0;
}

.lh-lcn-card__description li {
    margin-bottom: 3px;
}

/* Section inside details (Hard Skills / Nice to have) */
.lh-lcn-card__section {
    margin-bottom: 20px;
}

.lh-lcn-card__section-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--lh-blue);
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--lh-blue);
    display: inline-block;
}

.lh-lcn-card__section-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--lh-text);
    padding-top: 10px;
}

.lh-lcn-card__section-content ul,
.lh-lcn-card__section-content ol {
    margin: 0;
    padding-left: 1.4em;
}

.lh-lcn-card__section-content li {
    margin-bottom: 3px;
}

.lh-lcn-card__section-content p:last-child {
    margin-bottom: 0;
}

/* Apply button — always visible */
.lh-lcn-card__apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--lh-blue);
    color: var(--lh-white);
    border: none;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lh-lcn-card__apply-btn:hover {
    background: #3a7a9a;
}

.lh-lcn-card__apply-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========== 4. Form Section ========== */
.lh-lcn-form-section {
    background: #dcebf3;
    padding: var(--lh-section-spacing) 0 calc(var(--lh-section-spacing) * 1.2);
}

.lh-lcn-form-section__inner {
    max-width: var(--lh-container);
    margin: 0 auto;
    padding: 0 20px;
}

.lh-lcn-form__intro {
    font-size: 15px;
    color: var(--lh-text);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Form grid */
.lh-lcn-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.lh-lcn-form__field {
    margin-bottom: 0;
}

.lh-lcn-form__field--full {
    margin-bottom: 18px;
}

/* Labels */
.lh-lcn-form__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--lh-text-dark);
    margin-bottom: 6px;
}

.lh-lcn-form__field label .required {
    color: #c0392b;
}

/* Inputs */
.lh-lcn-form__field input[type="text"],
.lh-lcn-form__field input[type="email"],
.lh-lcn-form__field input[type="tel"],
.lh-lcn-form__field select,
.lh-lcn-form__field textarea,
.lh-lcn-form__field input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--lh-font-body);
    font-size: 14px;
    color: var(--lh-text-dark);
    background: var(--lh-white);
    transition: border-color 0.2s;
    outline: none;
}

.lh-lcn-form__field input::placeholder,
.lh-lcn-form__field textarea::placeholder {
    color: #aaa;
    font-weight: 400;
}

.lh-lcn-form__field input:focus,
.lh-lcn-form__field select:focus,
.lh-lcn-form__field textarea:focus {
    border-color: var(--lh-blue);
}

.lh-lcn-form__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23565656' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.lh-lcn-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.lh-lcn-form__field input[type="file"] {
    padding: 10px 12px;
    cursor: pointer;
    background: var(--lh-white);
}

/* Margin below the grid */
.lh-lcn-form__grid + .lh-lcn-form__field {
    margin-top: 18px;
}

/* Error state */
.lh-lcn-form__input--error,
input.lh-lcn-form__input--error,
select.lh-lcn-form__input--error,
textarea.lh-lcn-form__input--error {
    border-color: #c0392b !important;
}

/* Checkbox field */
.lh-lcn-form__field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: var(--lh-text);
}

.lh-lcn-form__field--checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.lh-lcn-form__field--checkbox a {
    color: var(--lh-blue);
    text-decoration: underline;
}

/* Submit row: button left, privacy link right */
.lh-lcn-form__submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 20px;
}

.lh-lcn-form__submit {
    position: relative;
    padding: 12px 36px;
    background: var(--lh-blue);
    color: var(--lh-white);
    border: none;
    border-radius: 6px;
    font-family: var(--lh-font-btn);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.lh-lcn-form__submit:hover {
    background: #3a7a9a;
}

.lh-lcn-form__submit:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
}

.lh-lcn-form__submit-text {
    transition: opacity 0.2s;
}

.lh-lcn-form__privacy-link {
    font-size: 14px;
    color: var(--lh-blue);
    text-decoration: underline;
}

.lh-lcn-form__privacy-link:hover {
    color: #3a7a9a;
}

/* Spinner */
.lh-lcn-form__spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--lh-white);
    border-radius: 50%;
    animation: lh-spinner-rotate 0.6s linear infinite;
}

@keyframes lh-spinner-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Feedback messages */
.lh-lcn-form__feedback {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.lh-lcn-form__feedback--success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lh-lcn-form__feedback--error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .lh-lcn-hero {
        background-size: cover;
        background-position: center center;
    }

    .lh-lcn-hero::before {
        display: none;
    }

    .lh-lcn-hero__text-col {
        max-width: 100%;
        padding: 20px;
        background: rgba(255,255,255,0.95);
        border-radius: var(--lh-radius);
    }
}

@media (max-width: 768px) {
    .lh-lcn-hero__title {
        font-size: 30px;
    }

    .lh-lcn-positions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lh-lcn-form__grid {
        grid-template-columns: 1fr;
    }

    .lh-lcn-form__submit-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .lh-lcn-form__submit {
        width: 100%;
    }

    .lh-lcn-form__privacy-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lh-lcn-hero {
        min-height: 300px;
    }

    .lh-lcn-hero__title {
        font-size: 26px;
    }

    .lh-lcn-positions__title {
        font-size: 20px;
    }

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

    .lh-lcn-card__title {
        font-size: 18px;
    }
}
