/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, #0066B3 0%, #1d4ed8 100%);
    color: white;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    opacity: 0.3;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-hero .lead {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #0f70b7;
}

.intro-text {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.highlight-box i {
    font-size: 2.5rem;
    margin-right: 20px;
}

.highlight-box p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Image Box */
.image-box {
	margin-top:20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Value Boxes */
.value-box {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.value-box i {
    font-size: 3rem;
    color: #f97316;
    margin-bottom: 20px;
}

.value-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.value-box p {
    color: #6c757d;
    margin: 0;
}

/* Job Cards */
.job-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid #f97316;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.job-icon {
    font-size: 3rem;
    color: #0066B3;
    margin-bottom: 20px;
}

.job-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF8C00;
    margin-bottom: 20px;
}

.job-requirements {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.job-requirements li {
    padding: 8px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.job-requirements li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
    margin-right: 8px;
}

.job-type {
    display: inline-block;
    background-color: #e3f2fd;
    color: #0066B3;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, #0066B3 0%, #1d4ed8 100%);
    color: white;
}

.benefits-section .section-title {
    color: white;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-item i {
    font-size: 2.5rem;
    color: #f97316;
    margin-bottom: 15px;
}

.benefit-item h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.benefit-item p {
    color: rgba(255,255,255,0.9);
    margin: 0;
}


/* =====================================================
   CANDIDATURA FORM - CSS CON CLASSI UNICHE
   ===================================================== */

/* Form Container */
.application-form-container {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Form Wrapper */
.candidatura-form-wrapper {
    width: 100%;
}

/* Row Layout */
.candidatura-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.candidatura-col-half {
    flex: 1;
    min-width: 0;
}

/* Field Spacing */
.candidatura-field {
    margin-bottom: 1.5rem;
}

.candidatura-field-large {
    margin-bottom: 2rem;
}

/* Labels */
.candidatura-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Input Fields */
.candidatura-input {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    background-color: #fff;
}

.candidatura-input:focus {
    outline: none;
    border-color: #0066B3;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 179, 0.1);
}

/* Select Dropdown */
.candidatura-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none;
}

/* Textarea */
.candidatura-textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

/* Hints */
.candidatura-hint {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.875rem;
}

/* File Upload */
.candidatura-file-wrapper {
    position: relative;
    border: 2px dashed #0066B3;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
}

.candidatura-file-wrapper:hover {
    border-color: #f97316;
    background-color: #fff3e0;
}

.candidatura-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    padding: 0;
    border: none;
}

.candidatura-file-info {
    pointer-events: none;
}

.candidatura-file-info i {
    font-size: 2.5rem;
    color: #0066B3;
    margin-bottom: 10px;
    display: block;
}

.candidatura-file-info span {
    color: #6c757d;
    font-size: 1rem;
}

/* Checkbox */
.candidatura-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.candidatura-checkbox-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.25em;
    cursor: pointer;
    flex-shrink: 0;
}

.candidatura-checkbox-input:checked {
    accent-color: #0066B3;
}

.candidatura-checkbox-label {
    color: #6c757d;
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.6;
}

.candidatura-checkbox-label a {
    color: #0066B3;
    text-decoration: underline;
}

.candidatura-checkbox-label a:hover {
    color: #f97316;
}

/* Submit Button */
.candidatura-submit-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.candidatura-submit-btn {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    padding: 15px 50px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.candidatura-submit-btn:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.candidatura-submit-btn:active {
    transform: translateY(0);
}

.candidatura-submit-btn i {
    margin-right: 10px;
}

.candidatura-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.candidatura-message {
    padding: 15px 20px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
    margin-top: 1.5rem;
}

.candidatura-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.candidatura-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .application-form-container {
        padding: 30px 20px;
    }
    
    .candidatura-row {
        flex-direction: column;
        gap: 0;
    }
    
    .candidatura-col-half {
        width: 100%;
    }
    
    .candidatura-submit-btn {
        width: 100%;
        padding: 15px 30px;
    }
    
    .candidatura-file-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .application-form-container {
        padding: 25px 15px;
    }
    
    .candidatura-label {
        font-size: 0.95rem;
    }
    
    .candidatura-input {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
}

/* Contact Info Box */
.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.contact-info-box h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info-box p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-info-box i {
    color: #f97316;
    margin-right: 10px;
    width: 20px;
}

.contact-info-box a {
    color: #0066B3;
    text-decoration: none;
    font-weight: 500;
}

.contact-info-box a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .application-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero .lead {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .highlight-box {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-box i {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .application-form-container {
        padding: 30px 20px;
    }
    
}

@media (max-width: 576px) {
    .page-hero {
        padding: 60px 0 40px;
    }
    
    .job-card {
        padding: 25px 20px;
    }
    
    .job-icon {
        font-size: 2.5rem;
    }
    
    .value-box {
        padding: 25px 15px;
    }
}

.benefits-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: nowrap; /* 🔥 blocca tutto in orizzontale */

}

.benefit-item {

    padding: 25px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    color: #2c3e50;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.benefit-item i {
    font-size: 2.3rem;
    color: #f97316;
    margin-bottom: 15px;
}
@media (max-width: 992px) {
    .benefits-row {
        flex-wrap: wrap; /* torna la griglia responsive */
        gap: 15px;
    }
}

/* Valori – Layout orizzontale */
.values-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px; /* spazio tra le card */
    flex-wrap: nowrap; /* 🔥 blocca tutto in orizzontale */
}

.value-box {
    flex: 1;
    max-width: 260px;
}
@media (max-width: 992px) {
    .values-row {
        flex-wrap: wrap; /* torna responsive */
        gap: 20px;
    }
}
/* --- POSIZIONI CHIUSE --- */
.job-card.closed {
    opacity: 0.45;
    filter: grayscale(100%);
    pointer-events: none; /* non cliccabile */
    cursor: not-allowed;
    position: relative;
}

/* Etichetta "CHIUSA" */
.job-card.closed::after {
    content: "Posizione Chiusa";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
/* --- POSIZIONI APERTE --- */
.job-card:not(.closed)::after {
    content: "Posizione Aperta";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745; /* verde */
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.job-card {
    position: relative;
}