/*
Theme Name: WorkOnNet BF
Theme URI: https://www.workonnet.it/
Author: WorkOnNet
Description: Tema dedicato BF Cartongesso Modena, sviluppato per la migrazione 2026.
Version: 0.1.0
Text Domain: workonnet-bf
*/

/* WORKONNET BF - LAYOUT 157 */

:root {
    --won-blue: #4583b8;
    --won-border: #eeeeee;
    --won-text: #444444;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--won-text);
    background: #ffffff;
    font-family: "PT Sans", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.won-container {
    width: min(1170px, calc(100% - 40px));
    margin-inline: auto;
}

.won-topbar {
    padding: 8px 0;
    border-bottom: 1px solid var(--won-border);
    background: #f7f7f7;
}

.won-topbar a,
.won-footer a {
    color: var(--won-blue);
}

.won-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 110px;
}

.won-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.won-menu,
.won-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.won-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.won-menu li { position: relative; }

.won-menu a {
    color: #444;
    text-decoration: none;
    font-weight: 700;
}

.won-menu a:hover,
.won-menu .current-menu-item > a {
    color: var(--won-blue);
}

.won-menu .sub-menu {
    display: none;
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 4px 16px #0002;
}

.won-menu li:hover > .sub-menu,
.won-menu li:focus-within > .sub-menu {
    display: block;
}

.won-menu .sub-menu li { padding: 6px 0; }

.won-services {
    position: relative;
    padding: 55px 0;
    background: #b5b5b5 url("/wp-content/uploads/2014/03/interior6.jpg")
        center / cover no-repeat;
    background-attachment: fixed;
}

.won-services-overlay {
    position: absolute;
    inset: 0;
    background: rgb(181 181 181 / 60%);
    pointer-events: none;
}

.won-services-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    text-align: center;
}

.won-service a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.won-service h2 {
    order: -1;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 24px;
}

.won-service-image {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    border: 5px solid #fff;
}

.won-home-content {
    padding: 35px 0;
}

.won-footer {
    padding: 25px 0;
    border-top: 1px solid var(--won-border);
    text-align: center;
    background: #f7f7f7;
}

@media (max-width: 767px) {
    .won-header-main {
        flex-direction: column;
        padding-block: 18px;
        gap: 20px;
    }

    .won-menu {
        justify-content: center;
        gap: 12px;
    }

    .won-menu .sub-menu {
        position: static;
        box-shadow: none;
    }

    .won-services {
        background-attachment: scroll;
        padding: 35px 0;
    }

    .won-services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* WORKONNET BF - SERVIZI 164 */

.won-services {
    padding: 25px 0 45px;
}

.won-services-grid {
    gap: 30px;
}

.won-service h2 {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    margin: 0 0 25px;
    color: #fff;
}

.won-service-image {
    width: 215px;
    height: 215px;
    max-width: 100%;
    object-fit: cover;
    border: 0;
}

@media (max-width: 767px) {
    .won-services {
        padding: 30px 0;
    }

    .won-services-grid {
        gap: 30px;
    }
}

/* WORKONNET BF - CTA 165 */

.won-home-content {
    width: min(1170px, calc(100% - 40px));
    margin: 0 auto;
    padding: 35px 0 25px;
}

.won-home-content .wpb_call_to_action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 0 0 18px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}

.won-home-content .wpb_call_to_action .wpb_call_text {
    margin: 0;
    color: #666;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.won-home-content .wpb_call_to_action .wpb_button,
.won-home-content .wpb_call_to_action .wpb_call_button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 60px;
    margin: 0;
    padding: 12px 22px;
    border: 0;
    border-radius: 0;
    background: #4583b8;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

.won-home-content .wpb_column:nth-child(2) .wpb_call_to_action .wpb_button,
.won-home-content .wpb_column:nth-child(2) .wpb_call_to_action .wpb_call_button a {
    background: #7bd536;
}

@media (max-width: 767px) {
    .won-home-content .wpb_call_to_action {
        gap: 12px;
        flex-wrap: wrap;
        padding: 12px;
    }
}

/* WORKONNET BF - CTA ORDER 166 */

.won-home-content .wpb_call_to_action .wpb_call_text {
    order: 0;
}

.won-home-content .wpb_call_to_action .wpb_button,
.won-home-content .wpb_call_to_action .wpb_call_button {
    order: 1;
    margin-left: auto;
    flex-shrink: 0;
}

.won-home-content .wpb_call_to_action .wpb_button {
    min-width: 140px;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* WORKONNET BF - CTA FIX 167 */

.won-home-content .wpb_call_to_action {
    flex-direction: row-reverse;
}

.won-home-content .wpb_call_to_action > * {
    order: 0 !important;
}

.won-home-content .wpb_call_to_action .wpb_button,
.won-home-content .wpb_call_to_action .wpb_call_button {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 767px) {
    .won-home-content .wpb_call_to_action {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* WORKONNET BF - HEADER 168 */

.won-header {
    position: relative;
    z-index: 1000;
    background: #fff;
}

.won-topbar {
    background: #fff;
    border-bottom: 1px solid #eeeeee;
    padding: 5px 0;
    font-size: 11px;
    line-height: 1.5;
}

.won-topbar .won-container {
    text-align: left;
}

.won-header-main {
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.won-logo {
    flex: 0 0 300px;
    display: block;
}

.won-logo img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

.won-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.won-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 28px;
}

.won-menu > li > a {
    display: block;
    padding: 15px 0;
    font-family: "PT Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.won-menu .sub-menu {
    top: 100%;
    padding: 10px 0;
    min-width: 220px;
    border-top: 2px solid #4583b8;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.won-menu .sub-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 991px) {
    .won-header-main {
        min-height: 0;
        padding-block: 16px;
        flex-direction: column;
        gap: 12px;
    }

    .won-logo {
        flex: 0 0 auto;
    }

    .won-navigation {
        width: 100%;
        justify-content: center;
    }

    .won-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .won-menu > li > a {
        font-size: 12px;
        padding: 6px 0;
    }
}

/* WORKONNET BF - MOBILE TOGGLE 170 */

/* Desktop: nasconde il pulsante */
.won-menu-toggle {
    display: none;
}

/* Mobile: mostra il pulsante */
@media (max-width: 767px) {
    .won-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 3px;
        background: #fff;
        color: #4583b8;
        font-size: 22px;
        cursor: pointer;
    }
}

/* WORKONNET BF MOBILE 171 */

@media (max-width: 767px) {
    .won-header-main {
        position: relative;
    }

    .won-navigation {
        display: none;
        width: 100%;
    }

    .won-navigation.won-menu-open {
        display: block;
    }

    .won-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .won-menu > li {
        border-bottom: 1px solid #eee;
    }

    .won-menu > li > a {
        display: block;
        padding: 12px;
    }

    .won-menu .sub-menu {
        display: block;
        position: static;
        padding: 0 0 8px 16px;
        box-shadow: none;
        border: 0;
    }
}


/* WORKONNET BF - DECO HEADER 269 */

.mpc-vc-deco-header {
    text-transform: uppercase;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 1.5em;
}

.mpc-vc-deco-header span {
    display: inline-block;
    margin-bottom: -1px;
    border-bottom: 1px solid currentColor;
}

h4.mpc-vc-deco-header span {
    padding-bottom: .751em;
}

h5.mpc-vc-deco-header span {
    padding-bottom: .858em;
}

.mpc-vc-deco-header.vc_txt_align_left {
    text-align: left;
}

.mpc-vc-deco-header.vc_txt_align_center {
    text-align: center;
}

.mpc-vc-deco-header.vc_txt_align_right {
    text-align: right;
}

/* WORKONNET BF - FEDELTA GRAFICA 292 */

/* Tipografia originale Blaszok */
body {
    background-color: #f4f4f4;
    color: #666666;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Lato, Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.5;
}

/* Larghezza originale del layout */
.won-container,
.won-home-content {
    width: min(1200px, calc(100% - 40px));
}

/* Header */
.won-header {
    background: #ffffff;
    border-bottom: 1px solid #4583b8;
}

.won-topbar {
    background: #ffffff;
    color: #444444;
}

.won-topbar a {
    color: #00c800;
    font-weight: 700;
    text-decoration: none;
}

/* Navigazione */
.won-menu > li > a {
    font-family: Lato, Helvetica, Arial, sans-serif;
    color: #666666;
    font-weight: 700;
}

.won-menu > li > a:hover,
.won-menu .current-menu-item > a,
.won-menu .current-menu-ancestor > a {
    color: #4583b8;
}

/* Footer: base cromatica originale */
.won-footer {
    background: #ffffff;
    color: #999999;
}


/* WORKONNET BF - HEADER FIX 293 */

@media (min-width: 992px) {
    .won-header-main {
        min-height: 125px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .won-logo {
        flex: 0 0 300px;
    }

    .won-logo img {
        width: 300px;
        height: auto;
        max-height: 105px;
        object-fit: contain;
    }
}

/* WORKONNET BF - MENU 297 */

@media (min-width: 992px) {
    .won-header-main {
        align-items: stretch;
    }

    .won-logo {
        align-self: center;
    }

    .won-navigation {
        align-self: stretch;
    }

    .won-menu {
        height: 100%;
        align-items: stretch;
    }

    .won-menu > li {
        display: flex;
        align-items: center;
    }

    .won-menu > li > .sub-menu {
        left: 0;
        top: calc(100% + 11px);
        transform: none;
    }
}

/* WORKONNET BF - CTA 303 */

/* Contenitore */
.wpb_call_to_action.cta_align_right,
.won-home-content .wpb_call_to_action.cta_align_right {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: space-between;
    min-height: 86px;
    padding: 0;
    margin-bottom: 20px;
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    border-radius: 0;
    box-shadow: none;
}

/* Titolo a sinistra */
.wpb_call_to_action.cta_align_right .wpb_call_text,
.won-home-content .wpb_call_to_action.cta_align_right .wpb_call_text {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    order: 0;
    margin: 0;
    padding: 15px 22px;
    color: #666;
    font-family: Lato, Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Pulsante a destra */
.wpb_call_to_action.cta_align_right > .wpb_button_a,
.won-home-content .wpb_call_to_action.cta_align_right > .wpb_button_a {
    position: relative;
    display: flex;
    flex: 0 0 32%;
    align-items: stretch;
    justify-content: stretch;
    order: 0;
    min-width: 140px;
    min-height: 86px;
    margin: 0;
    padding: 0;
    background: #4884b6;
    color: #fff;
    text-decoration: none;
}

/* Testo del pulsante */
.wpb_call_to_action.cta_align_right > .wpb_button_a .wpb_button,
.won-home-content .wpb_call_to_action.cta_align_right > .wpb_button_a .wpb_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 100%;
    min-height: 86px;
    min-width: 0;
    margin: 0;
    padding: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font-family: Lato, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Freccia laterale */
.wpb_call_to_action.cta_align_right > .wpb_button_a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid #4884b6;
    transform: translateY(-50%);
}

/* Pulsante telefonico */
.wpb_call_to_action.cta_align_right:has(a[href^="tel:"]) > .wpb_button_a {
    background: #81d742;
}

.wpb_call_to_action.cta_align_right:has(a[href^="tel:"]) > .wpb_button_a::before {
    border-right-color: #81d742;
}

/* Mobile */
@media (max-width: 767px) {
    .wpb_call_to_action.cta_align_right,
    .won-home-content .wpb_call_to_action.cta_align_right {
        flex-direction: column-reverse;
    }

    .wpb_call_to_action.cta_align_right > .wpb_button_a,
    .won-home-content .wpb_call_to_action.cta_align_right > .wpb_button_a {
        flex-basis: auto;
        width: 100%;
        min-height: 56px;
    }

    .wpb_call_to_action.cta_align_right > .wpb_button_a .wpb_button {
        min-height: 56px;
    }

    .wpb_call_to_action.cta_align_right .wpb_call_text {
        font-size: 18px;
    }

    .wpb_call_to_action.cta_align_right > .wpb_button_a::before {
        display: none;
    }
}

/* WORKONNET BF - RECENSIONI GOOGLE */

.won-topbar .won-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.won-google-reviews {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4285f4 !important;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.won-google-reviews:hover {
    color: #4583b8 !important;
}

.won-topbar .won-google-reviews {
    margin-left: auto;
}

.won-footer .won-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

@media (max-width: 480px) {
    .won-footer .won-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}
