/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand colors landing Adecco */
    --primary-blue: #1a365d;
    --primary-blue-dark: #153450;
    --primary-blue-light: #2c5282;
    --accent-orange: #FF9800;
    --accent-orange-dark: #F57C00;
    --accent-teal: #00a896;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --border-light: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.header-collaboration {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.collaboration-text {
    font-size: 0.75rem;
    font-style: italic;
    font-weight: normal;
    color: var(--text-light);
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.collaboration-separator {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: normal;
}



/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--text-white);
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.badge {
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
    text-align: center;
}

.badge-primary {
    background-color: var(--accent-orange);
    color: var(--text-white);
}

.badge-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: none;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero-image-left {
    margin-top: 2rem;
}

.hero-content--single {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 1.5rem;
}

/* Hero Form */
.hero-form {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    width: 100%;
    overflow: visible;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-intro {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: center;
}

.comune-autocomplete-field {
    position: relative;
}

.comune-autocomplete-field.is-open {
    z-index: 100;
}

.comune-autocomplete-list {
    position: absolute;
    z-index: 101;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

.comune-autocomplete-list[hidden] {
    display: none !important;
}

.comune-autocomplete-list li {
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.35;
    border-bottom: 1px solid var(--bg-light);
}

.comune-autocomplete-list li:last-child {
    border-bottom: none;
}

.comune-autocomplete-list li:hover,
.comune-autocomplete-list li[aria-selected="true"] {
    background-color: rgba(26, 54, 93, 0.08);
    color: var(--primary-blue);
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

.form-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.form-alert.form-alert-warning {
    background: #fff3e0;
    border: 1px solid var(--accent-orange);
    color: #e65100;
}

.form-alert.form-alert-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-input.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.email-validation-msg {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.email-validation-msg:empty {
    display: none;
    margin-top: 0;
}

.email-validation-msg.valid {
    color: #059669;
}

.email-validation-msg.invalid {
    color: #dc2626;
}

.email-validation-msg.checking {
    color: var(--text-light);
}

/* Validazione telefono (stessi stili email) */
.phone-validation-msg {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.phone-validation-msg:empty {
    display: none;
    margin-top: 0;
}

.phone-validation-msg.valid {
    color: #059669;
}

.phone-validation-msg.invalid {
    color: #dc2626;
}

.phone-validation-msg.checking {
    color: var(--text-light);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.checkbox-label span {
    flex: 1;
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-input {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--text-light);
}

.password-toggle:focus {
    outline: none;
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--accent-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Job Details */
.job-details {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.job-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.job-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-blue);
}

.job-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.job-list {
    list-style: none;
    padding-left: 0;
}

.job-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.job-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.location-details {
    color: var(--text-light);
    line-height: 1.6;
}

.job-details-grid {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.detail-label i {
    color: var(--primary-blue);
    width: 20px;
}

.detail-value {
    color: var(--text-light);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.job-cta-section {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sidebar */
.job-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.detail-item i {
    color: var(--primary-blue);
    width: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: rgba(26, 54, 93, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(26, 54, 93, 0.2);
}

.sidebar-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}



.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-collaboration {
        align-items: center;
        width: 100%;
    }

    .partner-logos {
        justify-content: center;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-form {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .job-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .job-sidebar {
        position: static;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-value {
        text-align: left;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-section, .sidebar-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    transition: all 0.3s ease;
} 