/* GOOGLE FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Krub:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); */
/* MY VARIABLES */
:root {
    /* color variables */
    --my-blue: #304674;
    --my-lightest-brand-blue: #e8f0fc;
    --my-brand-grey: #e3edfd;
    --my-white: #f0f4f8;
    --my-dark: #666;
    --my-black: #333;
    --my-gradient: linear-gradient(135deg, 
        #1a2636, /* Blu molto scuro */
        #3b537c, /* Blu chiaro */
        #304674, /* Blu principale */
        #1f334d, /* Blu medio-scuro */
        #304674, /* Blu principale */
        #5a759b  /* Blu più chiaro */
    );
    /* size variables */
    --header-height-desktop: 80px;
    --header-height-mobile: 60px;
    --footer-min-height: 180px;
    /* --main-content-min-height-desktop: calc(100vh - var(--header-height-desktop) - var(--footer-min-height)); */
    /* --main-content-min-height-mobile: calc(100vh - var(--header-height-mobile) - var(--footer-min-height)); */
    --job-card-max-height: 300px;
    /* border variable */
    --border-radius: 8px;
    /* spacing variables */
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-family: "Montserrat", serif;
}

body {
    background-color: var(--my-lightest-brand-blue)!important;
    position: relative;
    min-height: 100vh;
}

a:hover {
    color: var(--my-blue)!important;
}

/* Header style */
header {
    height: var(--header-height-desktop);
    background-color: var(--my-lightest-brand-blue);  
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 16px;
    z-index: 9999;
}

.desktop-nav li {
    margin-left: 3em;
}

.desktop-nav a {
    color: var(--my-blue);
    font-weight: 600;   
}

.desktop-nav i {
    margin-right: .4em;
}

.mobile-nav {
    color: var(--my-blue);
    position: fixed;
    width: 85%;
    max-width: 400px;
    top: 0;
    left: -85%;
    height: 100vh;
    background: var(--my-white);
    border-radius: 0 12px 12px 0;
    z-index: 9999;
    transition: left 0.5s ease-in-out;
}

.mobile-nav-head {
    height: var(--header-height-mobile);
    padding: 0 12px;
}

.mobile-nav-toggle > i {
    font-size: 1.4em;
    color: var(--my-blue);
}

.mobile-nav i {
    font-size: 1.4em;
    margin: 0 .6em;
    display: inline-block;
    width: 20px;    
    color: var(--my-blue);
}

.mobile-nav ul a {
    text-decoration: none;
    color: var(--my-black);
    display: flex;
    align-items: center;
}

.mobile-nav ul li {
    margin-bottom: .8em;    
}

.show-mobile-nav {
    left: 0;
}

.desktop-nav {
    display: none;
}

.aside-nav {
    padding: 12px;
    /* background-color: var(--my-white);
    border-radius: var(--border-radius); */
}

.aside-nav > ul {
    margin: 0;
}

.aside-nav > ul a {
    text-decoration: none;
    color: var(--my-black);
    display: flex;
    align-items: center;
}

.aside-nav > ul a > span {
    font-size: 1em;   
    font-weight: 600;
}

.aside-nav > ul i {
    font-size: 1.2em!important;
    color: var(--my-blue);
    margin-right: .6em;
}

#main-content {
    min-height: calc(100vh + var(--footer-min-height));
    padding-top: var(--header-height-desktop);
    padding-bottom: var(--footer-min-height);
}

/* media query to handle smartphone and desktop nav */
@media all and (max-width: 992px) {
    header {
        height: var(--header-height-mobile);
        background-color: var(--my-white);
        padding: 0;
    }

    #main-content {
        min-height: var(--main-content-min-height-mobile);
        padding-top: var(--header-height-mobile);
    }
}

/* Media Query to show desktop navigation */
@media(min-width: 992px) {
    .desktop-nav {
        display: block;
    }

    .mobile-nav-toggle {
        display: none;
    }
}

/* Homepage search form wrapper */
.jumbotron {
    width: 100%;
    background: var(--my-gradient);
    background-size: 300% 300%; /* Per animazione dinamica */
    animation: metallic-shine 18s infinite linear;
}

@keyframes metallic-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.form-search-wrapper {
    position: relative;
    padding-top: 64px;
    padding-bottom: 40px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    min-height: 270px;
}

.form-search-wrapper > h1.heading {
    margin-bottom: .25em;
    color: var(--my-white);
}

@media all and (max-width: 992px) {
    .form-search-wrapper {
        padding-top: 45px;
    }

    .sticky-search-bar {
        top: var(--header-height-mobile)
    }

    .form-search-wrapper > h1.heading {
        margin-bottom: .8em;
    }

    .form-search-wrapper > h2 {
        display: none;
    }

    section.detail {
        padding-top: 16px;
    }
}

.sticky-search-bar {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--my-gradient);
    animation: metallic-shine 18s infinite linear;
    background-size: 300% 300%; /* Per animazione dinamica */
    max-height: 58px;
}

@media all and (min-width: 576px) {
    .sticky-search-bar {
        max-height: 66px;
    }
}

@media all and (min-width: 992px ) {
    .sticky-search-bar {
        top: var(--header-height-desktop);
    }
}

/* open steet map suggestion list style */
#suggestions, #suggestions-sticky {
    font-size: .6em;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    background: var(--my-white);
    color: var(--my-blue);
    width: 100%;
    z-index: 1000;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    /* display: none; */
}

#suggestions-sticky {
    left: 0;
    right:0;
}

@media all and (min-width: 576px) {
    #suggestions-sticky {
        left: 43%;
        width: 57%;
    }
}
@media all and (min-width: 992px) {
    #suggestions-sticky {
        left: 43%;
        width: 40%;
    }
}

#suggestions {
    left: 10px;
    top: 100%;
}
.suggestion {
    padding: 10px;
    cursor: pointer;
}
.suggestion:hover {
    background-color: var(--my-lightest-brand-blue);
    filter: brightness(.95)
}
.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}



/* Job card style */
.job-card {
    background-color: var(--my-white);
    border-radius: var(--border-radius);
    color: #333;
    margin-bottom: 20px;
    transition: max-height 3s ease-in-out;
    max-width: 100%;
    overflow-x: hidden;
}

.job-card.full {
    position: relative!important;
}

.job-card.sticky-job-head {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: var(--header-height-mobile);
    z-index: 1000;
} 

@media all and (min-width: 992px) {
    .job-card.sticky-job-head {
        top: var(--header-height-desktop);
    }
}

.job-card.sticky-job-head .job-footer {
    margin-bottom: 22px;
}

.job-card.sticky-job-head .company-logo {
    bottom: 68px;
}

@media all and (max-width: 360px) {
    .job-card.sticky-job-head .job-footer {
        margin-bottom: .5em;
    }

    .job-card.sticky-job-head .company-logo {
        margin-bottom: 15px;
    }
}

.job-main-content {
    padding: 15px;
    position: relative;
}

@media all and (max-width: 360px) {
    .job-main-content {
        max-width: 100%;
        overflow-x: hidden;
    }
}

.job-main-content.description {
    padding-top: 7px!important;
}

/* Header della card */
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: .3em;
}

.job-card-header > .favourite-button {
    color: var(--my-blue);
}

.job-title {
    margin:0;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--my-blue);
}

.job-card-link {
    text-decoration: none;
}

.job-card-link:hover {
    text-decoration: underline var(--my-blue);
}

.favorite-button {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #999;
    cursor: pointer;
    position: relative;
    z-index: 100!important;
}

button.favourite-button {
    border: none;
    border-radius: 8px;
    padding: 2px 6px;
    background-color: transparent;
    transition: .3s;
}

button.favourite-button:hover {
    background-color: var(--my-brand-grey);
}

.job-tags {
    margin-bottom: .6em;
}

/* Descrizione del lavoro */
.job-description {
    font-size: 0.9em;
    color: var(--my-dark);
    margin: 10px 0;
    max-height: 30px;
    overflow-y: hidden;
}

/* Informazioni sull'azienda */
.job-company {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.company-logo {
    object-fit: cover;
    mix-blend-mode: multiply;
    height: auto;
    max-height: 40px;
    overflow-y: hidden;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

@media all and (max-width: 360px) {
    .company-logo {
        position: static;
    }

    .job-footer {
        margin-bottom: .5em;
    }

    .job-main-content.description {
        padding-top: 0!important;
    }
}

.company-logo.text {
    font-size: .7em;
    font-weight: 600;
}

.company-name {
    font-weight: bold;
    color: #333;
}

/* Footer della card */
.job-footer {
    align-items: center;
    font-size: 0.8em;
    margin-top: 10px;
    color: var(--my-dark);
}

.location-icon {
    font-size: 1em;
    margin-right: 5px;
}

.report-button {
    background: none;
    border: none;
    font-size: 0.9em;
    color: var(--my-dark);
    cursor: pointer;
}

/* Iscrizion newsletter box style */
.newsletter-container {
    background-color: var(--my-white);
    border-radius: 8px;
    padding: 20px;
    color: var(--my-blue);
}

/* Titolo */
.newsletter-container h2 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--my-blue);
    margin-bottom: 8px;
}

/* Testo introduttivo */
.newsletter-container p {
    font-size: 0.9rem;
    color: var(--my-blue);
    margin-bottom: 16px;
}

/* Form di iscrizione */
.newsletter-form {
    margin-bottom: 16px;
}

/* Disclaimer */
.newsletter-container .disclaimer {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.4;
}

.newsletter-container .disclaimer a {
    text-decoration: none;
}

.newsletter-container .disclaimer a:hover {
    text-decoration: underline;
}

/* CV GENERATOR BANNER */
.cv-generator-banner {
    background-color: var(--my-white);
    color: var(--my-blue);
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
}

.cv-generator-banner i {
    font-size: 1.8em;
}

@keyframes dondolio {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
  }
  
  .swing {
    display: inline-block;
    animation: dondolio 1s infinite ease-in-out;
    transform-origin: center top;
  }


/* PRIVACY POLICY PAGE */
section.privacy-policy p {
    margin: 0; 
    line-height: 25px;
    margin-top: .7em;
}

section.privacy-policy a {
    color: var(--my-blue);
    text-decoration: underline;
}

section.privacy-policy h2 {
    color: var(--my-black);
    font-size: 1.6em;
}

/* FOOTER STYLE */
footer.footer {
    background-color: var(--my-white);
    border-radius: 8px 8px 0 0;
    min-height: var(--footer-min-height);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-content {
    padding: 20px;
}

.footer-section .headings {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

@media all and (min-width: 992px) {
    .footer-content .footer-section:nth-child(1) {
        position: relative;
    }
    
    .footer-content .footer-section:nth-child(1) > p {
        position: absolute;
        bottom: 10px;
    }
}
    

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: var(--my-dark);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.footer-social {
    gap: 10px;
    margin: 20px 0;
}

.footer-social a {
    color: var(--my-dark);
    font-size: 20px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #007bff;
}

.footer p {
    font-size: 14px;
    color: #999;
}