@font-face {
    font-family: "Job Camere Brands";
    src: url("./wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-brands-400.woff2") format("woff2");
    font-display: block;
}

.jc-footer,
.jc-footer-band {
    --jc-calendar-mosaic:
        linear-gradient(var(--jc-square-strong), var(--jc-square-strong)) 100% 0 / 23% 46% no-repeat,
        linear-gradient(var(--jc-square-soft), var(--jc-square-soft)) 80% 56% / 17% 34% no-repeat,
        linear-gradient(var(--jc-square-strong), var(--jc-square-strong)) 59% 21% / 12% 24% no-repeat,
        linear-gradient(var(--jc-square-soft), var(--jc-square-soft)) 31% 42% / 9% 18% no-repeat,
        linear-gradient(var(--jc-square-strong), var(--jc-square-strong)) 100% 100% / 10% 20% no-repeat;
}

.jc-footer-band {
    --jc-square-strong: #3030304d;
    --jc-square-soft: #fff3;
    height: 56px;
    margin: 0;
    background: #dd0731;
}

.jc-footer-band::after,
.jc-footer::after {
    content: "";
    display: block;
    pointer-events: none;
    background: var(--jc-calendar-mosaic);
}

/* Firma grafica anche nelle pagine che usano il footer compatto. */
.jc-footer-band::after {
    width: 112px;
    height: 56px;
    margin-inline-start: auto;
    margin-inline-end: clamp(12px, 5vw, 72px);
}

.jc-footer-band:has(+ .jc-footer)::after {
    display: none;
}

.jc-footer-band + footer {
    margin-top: 0;
}

/* Footer Job Camere: compatto, quattro colonne, palette bianco / grigio scuro / rosso. */
.jc-footer {
    --jc-square-strong: #dd073125;
    --jc-square-soft: #3030301c;
    position: relative;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    color: #303030;
    font-size: 14px;
    line-height: 1.6;
}

.jc-footer::after {
    position: absolute;
    inset: 0 clamp(12px, 5vw, 72px) auto auto;
    width: 84px;
    height: 42px;
}

.jc-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}

.jc-footer a:hover,
.jc-footer a:focus-visible {
    color: #dd0731;
}

.jc-footer a:focus-visible,
.jc-footer button:focus-visible,
.jc-footer input:focus-visible,
.jc-footer select:focus-visible {
    outline: 2px solid #dd0731;
    outline-offset: 3px;
}

.jc-footer__main {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 48px;
    display: grid;
    grid-template-columns: 1.1fr .85fr .85fr 1.7fr;
    gap: 40px;
}

/* Footer senza modulo newsletter (JobCamereFooter::NEWSLETTER_ENABLED = false). */
.jc-footer__main--no-news {
    grid-template-columns: 1.6fr 1fr 1fr;
}

.jc-footer__logo img {
    display: block;
    width: 168px;
    height: auto;
}

.jc-footer__contacts {
    margin-top: 20px;
    display: grid;
    gap: 6px;
    font-style: normal;
    color: #303030;
}

.jc-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 16px;
}

.jc-footer__social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    color: #dd0731;
}

.jc-footer__social a:hover {
    background: #fdecef;
}

.jc-footer__social span {
    font-family: "Job Camere Brands";
    font-size: 17px;
    line-height: 1;
}

.jc-footer h2 {
    margin: 0 0 16px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #303030;
}

.jc-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.jc-footer__col a {
    display: inline-block;
    padding: 2px 0;
}

.jc-footer__news p {
    margin: 0 0 16px;
    color: #666;
}

/* Neutralizza le regole globali del vecchio modulo newsletter (form, label, input, select). */
.jc-footer .jc-footer__form {
    max-width: none;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

.jc-footer__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.jc-footer__input--wide {
    grid-column: 1 / -1;
}

/* Ragione sociale visibile solo per il tipo contatto «Azienda»: senza, il tipo contatto occupa la riga. */
.jc-footer__input[hidden] {
    display: none;
}

.jc-footer__input:has(select):has(+ .jc-footer__input[hidden]) {
    grid-column: 1 / -1;
}

.jc-footer .jc-footer__input input,
.jc-footer .jc-footer__input select {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #dddddd !important;
    border-radius: 8px;
    box-shadow: none !important;
    background-color: #fff;
    font: inherit;
    font-size: 14px;
    color: #303030;
    transition: border-color .15s ease;
}

.jc-footer .jc-footer__input input:focus,
.jc-footer .jc-footer__input select:focus {
    border-color: #303030 !important;
    outline: none;
}

.jc-footer .jc-footer__input input::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.jc-footer .jc-footer__input select {
    appearance: none;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, #303030 50%), linear-gradient(135deg, #303030 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.jc-footer .jc-footer__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
}

.jc-footer__consent input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #dd0731;
}

.jc-footer__consent a {
    text-decoration: underline;
}

.jc-footer__submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #666;
}

.jc-footer__submit button {
    border: 0;
    padding: 0 26px;
    min-height: 42px;
    border-radius: 999px;
    background: #dd0731;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease;
}

.jc-footer__sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Fascia legale in grigio scuro, separata dal contenuto da un filo rosso. */
.jc-footer__legal {
    background: #303030;
    border-top: 3px solid #dd0731;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
}

.jc-footer__legal > * {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.jc-footer__legal p {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 22px;
    padding-bottom: 8px;
}

.jc-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-bottom: 20px;
}

.jc-footer__links a {
    display: inline-block;
    padding: 6px 0;
    color: #fff;
}

.jc-footer__legal a:hover,
.jc-footer__legal a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.jc-footer__legal a:focus-visible {
    outline-color: #fff;
}

.jc-footer__links .jc-footer__credit {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    margin-left: auto;
    white-space: nowrap;
    color: rgba(255, 255, 255, .72) !important;
}

.jc-footer__credit img {
    display: block;
    width: auto;
    height: 16px;
}

@media (max-width: 1024px) {
    .jc-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }

    .jc-footer__main--no-news {
        grid-template-columns: 1.3fr 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .jc-footer__main {
        grid-template-columns: 1fr 1fr;
        padding: 40px 16px 32px;
        gap: 32px 20px;
    }

    .jc-footer__brand,
    .jc-footer__news {
        grid-column: 1 / -1;
    }

    .jc-footer__legal > * {
        padding-left: 16px;
        padding-right: 16px;
    }

    .jc-footer__links .jc-footer__credit {
        margin-left: 0;
    }
}

@media (max-width: 359px) {
    .jc-footer__fields {
        grid-template-columns: 1fr;
    }
}
