/* Stili generali */
body {
    padding-top: 70px;
}

/* Navbar */
.navbar {
    background-color: #2ba2e6;
}

.navbar a,
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-nav .nav-link {
    color: white !important;
}

.navbar a:hover,
.navbar .navbar-brand:hover,
.navbar .nav-link:hover,
.navbar .navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
    text-decoration: none;
}

.navbar .nav-item.active .nav-link {
    color: white !important;
    font-weight: bold;
    text-decoration: underline;
}

.navbar-brand {
    padding: 5px 15px;
}

.navbar-brand img {
    height: 40px;
}

.nav-emoji {
    filter: brightness(0) invert(1);
    display: inline-block;
    margin-right: 5px;
}

/* Dropdown menu */
.navbar-nav {
    margin: 0;
}

.navbar-nav > li > a {
    padding: 15px;
    color: #333;
    display: block;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background-color: #f8f8f8;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    background-clip: padding-box;
}

.dropdown-menu > li > a {
    padding: 8px 20px;
    color: #333 !important;
    display: block;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    white-space: nowrap;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    color: #262626 !important;
    text-decoration: none;
    background-color: #f5f5f5;
}

.navbar-nav > li:hover > .dropdown-menu {
    display: block;
}

/* Hero section */
.homepage-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    text-align: center;
}

.homepage-hero h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
}

.homepage-hero-mod {
    background-color: #f5f7fa;
    padding: 40px 0;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 95%;
    border: 1px solid #e1e5eb;
}

.hero-title {
    color: #2a7bd6;
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    color: #4a90e2;
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-search-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-field {
    border: 2px solid #dbe5f1;
    border-radius: 6px;
    height: 50px;
}

.search-field:focus {
    border-color: #2a7bd6;
    box-shadow: 0 0 0 0.2rem rgba(42, 123, 214, 0.25);
}

.btn-cta {
    background-color: #2a7bd6;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #1c6bc5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.job-search-form {
    margin-top: 30px;
}

/* Sezioni */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #337ab7;
    margin: 15px auto 0;
}

/* Categorie lavoro */
.category-box {
    background: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 180px;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-box i {
    font-size: 40px;
    color: #337ab7;
    margin-bottom: 15px;
}

.category-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Città popolari */
.popular-cities {
    padding: 40px 0;
    background-color: #f9f9f9;
    margin-bottom: 30px;
}

.popular-cities .section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-list li {
    margin-bottom: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

.city-list a {
    color: #337ab7;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.city-list a:hover {
    color: #23527c;
    text-decoration: underline;
    padding-left: 5px;
}

.city-list .demo-icon {
    margin-right: 8px;
    color: #337ab7;
    font-size: 18px;
    vertical-align: middle;
}

/* Offerte di lavoro */
.job-listing {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.job-listing h3 {
    margin-top: 0;
}

.featured-job-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.featured-job-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.company-logo {
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-height: 100%;
    max-width: 100%;
}

.no-logo {
    width: 60px;
    height: 60px;
    background: #337ab7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: #2ba2e6;
    color: white;
    padding: 30px 0;
}

.footer a {
    color: white !important;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer h4::before,
.footer a::before,
.footer address::before {
    filter: brightness(0) invert(1);
    display: inline-block;
    margin-right: 8px;
}

/* Alert */
.alert {
    margin-top: 20px;
}

/* Stili responsive */
@media (max-width: 767px) {
    .popular-cities .col-sm-6 {
        margin-bottom: 20px;
    }
    
    .city-list a {
        font-size: 15px;
    }

    .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    
    .navbar-nav .open .dropdown-menu > li > a {
        padding: 5px 15px 5px 25px;
        color: #333;
    }
    
    .navbar-nav .open .dropdown-menu > li > a:hover {
        background-color: #f8f8f8;
    }

    /* Menu mobile migliorato */
    .navbar-collapse {
        background-color: #2ba2e6;
        padding: 15px;
    }
    
    .navbar-toggle {
        margin-right: 0;
    }
    
    .navbar-nav {
        margin: 7.5px -15px;
    }
    
    .navbar-nav > li > a {
        padding: 10px 15px;
    }
}