/* ============================================================
   POWERFIT — CSS personalizzato
   Elementor > Impostazioni Sito > CSS Personalizzato
   ============================================================ */

/* ── BASE ──────────────────────────────────────────────────── */

body {
    font-family: 'Barlow', sans-serif;
}


/* ── HERO ──────────────────────────────────────────────────── */

.jes-hero {
    min-height: 88vh !important;
    position: relative;
}

.jes-hero > .e-con-inner {
    align-items: flex-end !important;
    padding-bottom: 56px !important;
}


/* ── TICKER ARANCIONE ──────────────────────────────────────── */

.jes-ticker {
    overflow: hidden !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

.jes-ticker > .e-con-inner {
    overflow: hidden !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.jes-ticker-text,
.jes-ticker-text .elementor-heading-title {
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 48px !important;
    animation: jes-marquee 60s linear infinite !important;
}

.jes-ticker:hover .jes-ticker-text,
.jes-ticker:hover .jes-ticker-text .elementor-heading-title {
    animation-play-state: paused !important;
}


/* ── STRIP BIANCA SCORREVOLE ───────────────────────────────── */

.jes-strip {
    overflow: hidden !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
}

.jes-strip > .e-con-inner {
    overflow: hidden !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.jes-strip-text .elementor-heading-title {
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 50px !important;
    animation: jes-marquee 80s linear infinite !important;
}

.jes-strip:hover .jes-strip-text .elementor-heading-title {
    animation-play-state: paused !important;
}

@keyframes jes-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* ── CHI SIAMO — stats overlay ─────────────────────────────── */

.jes-about-stats {
    position: relative !important;
}

.jes-about-stats > .e-con {
    flex: 1 !important;
}


/* ── TITOLONE PIENO ────────────────────────────────────────── */

.jes-bigtext-img img {
    width: 200px !important;
    height: 160px !important;
    object-fit: cover !important;
}


/* ── HOVER CARD — linea arancione top ─────────────────────── */

.jes-card-hover {
    position: relative !important;
    overflow: hidden !important;
    transition: background 0.2s ease !important;
}

.jes-card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e86e09;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 10;
}

.jes-card-hover:hover::before {
    transform: scaleX(1);
}

.jes-card-hover:hover {
    background-color: #fafafa !important;
}


/* ── BOTTONE FRECCIA → ─────────────────────────────────────── */

.jes-arrow-btn .elementor-button {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
}

.jes-card-hover:hover .jes-arrow-btn .elementor-button {
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}


/* ── SEZIONE TOORX — watermark di sfondo ──────────────────── */

.jes-toorx {
    position: relative !important;
    overflow: hidden !important;
}

.jes-toorx::before {
    content: 'TOORX';
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.025);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.jes-toorx > .e-con-inner {
    position: relative;
    z-index: 2;
}


/* ── SOLUZIONI — 3 pannelli affiancati ────────────────────── */

.jes-solutions {
    min-height: 400px !important;
}

.jes-solutions > .e-con {
    flex: 1 !important;
}

.jes-sol-panel {
    position: relative !important;
    overflow: hidden !important;
    min-height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.jes-sol-01::after {
    content: '01';
}

.jes-sol-02::after {
    content: '02';
}

.jes-sol-03::after {
    content: '03';
}

.jes-sol-01::after,
.jes-sol-02::after,
.jes-sol-03::after {
    position: absolute;
    top: -20px;
    right: -10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.jes-sol-01::after,
.jes-sol-03::after {
    color: rgba(0, 0, 0, 0.04);
}

.jes-sol-02::after {
    color: rgba(255, 255, 255, 0.1);
}


/* ── CTA BAR ───────────────────────────────────────────────── */

.jes-ctabar > .e-con-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
}


/* ── SHOWROOM — badge posizionato in basso ────────────────── */

.jes-showroom-photo {
    position: relative !important;
}

.jes-show-badge {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
}


/* ── GRIGLIA WHY ───────────────────────────────────────────── */

.jes-why-grid {
    border-left: 1px solid #dddddd !important;
}

.jes-why-grid > .e-con {
    flex: 1 !important;
}

.jes-why-item {
    transition: background 0.2s ease !important;
}

.jes-why-item:hover {
    background-color: #ffffff !important;
}


/* ── GRIGLIA FAQ ───────────────────────────────────────────── */

.jes-faq-grid > .e-con {
    border-top: 1px solid #dddddd !important;
}

.jes-faq-item {
    transition: background 0.2s ease !important;
}

.jes-faq-item:hover {
    background-color: #fafafa !important;
}


/* ── SCROLL REVEAL ─────────────────────────────────────────── */

.jes-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.jes-reveal.jes-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── MEGA WORD FOOTER ──────────────────────────────────────── */

.jes-megaword {
    overflow: hidden !important;
    padding: 0 !important;
    line-height: 0.82 !important;
}

.jes-megaword > .e-con-inner {
    padding: 0 !important;
    max-width: 100% !important;
}

.jes-megaword-text {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    line-height: 0.82 !important;
}

.jes-megaword-text .elementor-heading-title {
    display: block !important;
    white-space: nowrap !important;
    line-height: 0.82 !important;
    font-size: 21.5vw !important;
}


/* ── FOOTER ────────────────────────────────────────────────── */

.jes-footer a {
    color: #888888;
    text-decoration: none;
    transition: color 0.15s;
}

.jes-footer a:hover {
    color: #e86e09;
}


/* ── SLOT MACHINE — rullo verticale ────────────────────────── */

.jes-slot-block {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1 !important;
    gap: 0 !important;
    margin: 0 !important;
}

.jes-slot-static {
    font-size: 7vw !important;
    color: #fdfdfd !important;
    display: block !important;
    line-height: 1 !important;
}

.jes-slot-wrap {
    display: block !important;
    overflow: hidden !important;
    position: relative !important;
}

.jes-slot-reel {
    display: flex !important;
    flex-direction: column !important;
    will-change: transform !important;
}

.jes-slot-word {
    display: block !important;
    color: #e86e09 !important;
    white-space: nowrap !important;
    font-size: 7vw !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

@media (max-width: 767px) {

    .jes-slot-static {
        font-size: 9vw !important;
    }

    .jes-slot-word {
        font-size: 12vw !important;
    }
}


/* ── CARD ATTREZZATURE — widget HTML puro ──────────────────── */

.jes-eq-row {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 16px !important;
}

.jes-eq-row > .e-con {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.jes-card {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    border-radius: 8px !important;
}

.jes-card img {
    display: block !important;
    width: 100% !important;
    height: 420px !important;
    object-fit: cover !important;
    object-position: center top !important;
    transition: transform 0.5s ease !important;
}

.jes-card-box {
    background: #ffffff !important;
    padding: 0 !important;
}

.jes-card-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 20px !important;
}

.jes-card-name {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: #111111 !important;
    line-height: 1 !important;
}

.jes-card-ico {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #111111 !important;
    line-height: 1 !important;
    display: inline-block !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
}

.jes-card-txt {
    font-family: 'Barlow', sans-serif !important;
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    padding: 0 20px 20px !important;
    display: block !important;
}

@media (max-width: 900px) {

    .jes-eq-row {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .jes-eq-row > .e-con {
        flex: 0 0 calc(50% - 6px) !important;
    }

    .jes-card img {
        height: 300px !important;
    }
}

@media (max-width: 540px) {

    .jes-eq-row > .e-con {
        flex: 0 0 100% !important;
    }
}


/* ninja frase campi obbligatori */

.nf-form-fields-required {
    display: none;
}


/* ================================================================
   HOVER BUTTON SU CARD PRODOTTO
   ================================================================ */

.card-hover-wrap {
    position: relative;
    overflow: hidden;
}

.card-hover-wrap .e-con-inner,
.card-hover-wrap .elementor-widget-html,
.card-hover-wrap .elementor-widget-container {
    position: static !important;
    height: auto !important;
}

.card-hover-wrap .card-hover-btn {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: 10 !important;
    text-align: center;

    opacity: 1;
    transition: none;

    background-color: var(--e-global-color-accent);

    font-family:
        var(--e-global-typography-accent-font-family),
        Sans-serif;

    font-size:
        var(--e-global-typography-accent-font-size);

    font-weight:
        var(--e-global-typography-accent-font-weight);

    text-transform:
        var(--e-global-typography-accent-text-transform);

    line-height:
        var(--e-global-typography-accent-line-height);

    color:
        var(--e-global-color-secondary);

    fill:
        var(--e-global-color-secondary);

    border-style: solid;
    border-width: 0px;
    border-radius: 0px;

    padding: 14px 30px;
}

@media (hover: hover) and (pointer: fine) {

    .card-hover-wrap .card-hover-btn {
        opacity: 0;
        transition: opacity 0.6s ease 0.2s;
    }

    .card-hover-wrap:hover .card-hover-btn {
        opacity: 1;
        transition: opacity 0.6s ease 0s;
    }
}

@media (hover: hover) and (pointer: fine) {

    .card-hover-btn:hover {
        background-color: var(--e-global-color-3efdc89);
        color: var(--e-global-color-secondary);
    }
}


/* ==========================================================
   GUIDA ALLA SCELTA
   Shortcode: [j_guida_scelta]
   ========================================================== */

.j-guida-scelta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.j-guida-scelta__card {
    display: flex;
    flex-direction: column;
    min-width: 0;

    background: #ffffff;
    border-radius: 10px;

    padding: 20px;
}

.j-guida-scelta__numero {
    font-family:
        var(--e-global-typography-f2d1d9d-font-family);

    font-size:
        var(--e-global-typography-f2d1d9d-font-size);

    font-weight:
        var(--e-global-typography-f2d1d9d-font-weight);

    text-transform:
        var(--e-global-typography-f2d1d9d-text-transform);

    font-style:
        var(--e-global-typography-f2d1d9d-font-style);

    line-height:
        var(--e-global-typography-f2d1d9d-line-height);

    letter-spacing:
        var(--e-global-typography-f2d1d9d-letter-spacing);

    color:
        var(--e-global-color-accent);

    margin: 0 0 40px 0;
    padding: 0;
}

.j-guida-scelta__domanda {
    font-family:
        var(--e-global-typography-bc0d33d-font-family);

    font-size:
        var(--e-global-typography-bc0d33d-font-size);

    font-weight:
        var(--e-global-typography-bc0d33d-font-weight);

    text-transform:
        var(--e-global-typography-bc0d33d-text-transform);

    font-style:
        var(--e-global-typography-bc0d33d-font-style);

    line-height:
        var(--e-global-typography-bc0d33d-line-height);

    letter-spacing:
        var(--e-global-typography-bc0d33d-letter-spacing);

    color:
        var(--e-global-color-primary);

    margin: 0 0 20px 0;
    padding: 0;
}

.j-guida-scelta__risposta {
    font-family:
        var(--e-global-typography-4a4aef3-font-family);

    font-size:
        var(--e-global-typography-4a4aef3-font-size);

    font-weight:
        var(--e-global-typography-4a4aef3-font-weight);

    line-height:
        var(--e-global-typography-4a4aef3-line-height);

    color:
        var(--e-global-color-text);

    margin: 0;
    padding: 0;
}

.j-guida-scelta__risposta p {
    margin-top: 0;
    margin-bottom: 16px;
}

.j-guida-scelta__risposta p:last-child {
    margin-bottom: 0;
}

.j-guida-scelta__risposta ul,
.j-guida-scelta__risposta ol {
    margin-top: 16px;
    margin-bottom: 0;
}

@media (max-width: 1024px) {

    .j-guida-scelta {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }
}

@media (max-width: 767px) {

    .j-guida-scelta {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* ==========================================================
   VOCI SOTTOCATEGORIE
   Shortcode: [j_sottocategorie_cards]
   ========================================================== */

.j-sottocategorie-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    width: 100%;
}

.j-sottocategoria {
    position: relative;

    width: 100%;
    height: 70vh;
    min-width: 0;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}

.j-sottocategoria__link {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    color: inherit;
    text-decoration: none;
}

.j-sottocategoria__box {
    position: absolute;

    left: 7%;
    right: 7%;
    bottom: 4%;

    z-index: 2;

    background: #ffffff;

    padding: 24px 26px;

    overflow: hidden;
}

.j-sottocategoria__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;
}

.j-sottocategoria__nome {
    flex: 1 1 auto;
    min-width: 0;

    font-family:
        var(--e-global-typography-bc0d33d-font-family),
        Sans-serif;

    font-size:
        var(--e-global-typography-bc0d33d-font-size);

    font-weight:
        var(--e-global-typography-bc0d33d-font-weight);

    text-transform:
        var(--e-global-typography-bc0d33d-text-transform);

    line-height:
        var(--e-global-typography-bc0d33d-line-height);

    letter-spacing:
        var(--e-global-typography-bc0d33d-letter-spacing);

    color:
        var(--e-global-color-primary);

    margin: 0;
    padding: 0;
}

.j-sottocategoria__freccia {
    display: block !important;

    width: 18px !important;
    height: auto !important;

    max-width: 18px !important;
    max-height: none !important;

    flex: 0 0 18px;

    object-fit: contain;

    margin: 0 !important;
    padding: 0 !important;

    transition:
        transform 0.5s ease;
}

.j-sottocategoria:hover
.j-sottocategoria__freccia {
    transform: translateX(4px);
}

.j-sottocategoria__testo-wrap {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height 1s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.8s ease 0.2s;
}

.j-sottocategoria:hover
.j-sottocategoria__testo-wrap {
    max-height: 300px;
    opacity: 1;
}

.j-sottocategoria__testo {
    padding-top: 20px;

    font-family:
        var(--e-global-typography-text-font-family),
        Sans-serif;

    font-size:
        var(--e-global-typography-text-font-size);

    font-weight:
        var(--e-global-typography-text-font-weight);

    line-height:
        var(--e-global-typography-text-line-height);

    color:
        var(--e-global-color-text);
}

.j-sottocategoria__testo p {
    margin: 0 0 12px 0;
}

.j-sottocategoria__testo p:last-child {
    margin-bottom: 0;
}

.j-sottocategoria__testo ul,
.j-sottocategoria__testo ol {
    margin-top: 12px;
    margin-bottom: 0;
}

@media (max-width: 1024px) {

    .j-sottocategorie-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

    .j-sottocategoria {
        height: 40vh;
    }

    .j-sottocategoria__box {
        left: 6%;
        right: 6%;
        bottom: 4%;
    }

    .j-sottocategoria__testo-wrap {
        max-height: none;
        opacity: 1;
        transition: none;
    }

    .j-sottocategoria:hover
    .j-sottocategoria__freccia {
        transform: none;
    }
}

@media (max-width: 767px) {

    .j-sottocategorie-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .j-sottocategoria {
        height: 50vh;
    }

    .j-sottocategoria__box {
        left: 5%;
        right: 5%;
        bottom: 4%;

        padding: 22px 24px;
    }

    .j-sottocategoria__freccia {
        width: 16px !important;
        max-width: 16px !important;
        flex-basis: 16px;
    }

    .j-sottocategoria__testo {
        padding-top: 18px;
    }
}


/* ==========================================================
   FAQ CUSTOM
   Shortcode: [j_faq]
   ========================================================== */

.j-faq {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 14px;
}

.j-faq__item {
    width: 100%;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border-radius: 20px;

    overflow: hidden;
}

.j-faq .j-faq__domanda {
    -webkit-appearance: none !important;
    appearance: none !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: row !important;

    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    gap: 34px !important;

    margin: 0 !important;

    padding: 14px 34px !important;

    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;

    border-radius: 20px !important;

    outline: none !important;
    box-shadow: none !important;

    background: #ffffff !important;
    background-color: #ffffff !important;

    cursor: pointer;

    text-align: left !important;
    text-decoration: none !important;

    font-family:
        var(--e-global-typography-bc0d33d-font-family),
        Sans-serif !important;

    font-size:
        var(--e-global-typography-bc0d33d-font-size) !important;

    font-weight:
        var(--e-global-typography-bc0d33d-font-weight) !important;

    text-transform:
        var(--e-global-typography-bc0d33d-text-transform) !important;

    line-height:
        var(--e-global-typography-bc0d33d-line-height) !important;

    letter-spacing:
        var(--e-global-typography-bc0d33d-letter-spacing) !important;

    color:
        var(--e-global-color-primary) !important;
}

.j-faq .j-faq__domanda:hover,
.j-faq .j-faq__domanda:focus,
.j-faq .j-faq__domanda:active {
    background: #ffffff !important;
    background-color: #ffffff !important;

    color:
        var(--e-global-color-primary) !important;

    border: 0 !important;

    outline: none !important;
    box-shadow: none !important;

    text-decoration: none !important;
}

.j-faq__domanda-testo {
    display: block !important;

    flex: 1 1 auto !important;

    width: auto !important;

    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    white-space: normal !important;

    overflow: visible !important;

    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;

    text-overflow: clip !important;

    color: inherit !important;

    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}


/* Icona + / - */

.j-faq__icona {
    --faq-icon-size: 22px;
    --faq-icon-thickness: 3px;

    position: relative;

    display: block !important;

    flex:
        0 0 var(--faq-icon-size) !important;

    width:
        var(--faq-icon-size) !important;

    height:
        var(--faq-icon-size) !important;

    min-width:
        var(--faq-icon-size) !important;

    min-height:
        var(--faq-icon-size) !important;

    margin: 0 !important;
    padding: 0 !important;

    color:
        var(--e-global-color-accent);
}

.j-faq__icona::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width:
        var(--faq-icon-size);

    height:
        var(--faq-icon-thickness);

    background:
        currentColor;

    border-radius: 999px;

    transform:
        translate(-50%, -50%);
}

.j-faq__icona::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width:
        var(--faq-icon-thickness);

    height:
        var(--faq-icon-size);

    background:
        currentColor;

    border-radius: 999px;

    transform:
        translate(-50%, -50%);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.j-faq__item.is-open
.j-faq__icona::after {
    opacity: 0;

    transform:
        translate(-50%, -50%)
        scaleY(0);
}

.j-faq__content {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    background: #ffffff;

    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

.j-faq__item.is-open
.j-faq__content {
    opacity: 1;
}

.j-faq__item.is-open
.j-faq__domanda {
    border-radius:
        20px 20px 0 0 !important;
}

.j-faq__risposta {
    box-sizing: border-box;

    width: 100%;

    padding:
        14px 34px 28px;

    background: #ffffff;

    font-family:
        var(--e-global-typography-text-font-family),
        Sans-serif;

    font-size:
        var(--e-global-typography-text-font-size);

    font-weight:
        var(--e-global-typography-text-font-weight);

    line-height:
        var(--e-global-typography-text-line-height);

    color:
        var(--e-global-color-text);
}

.j-faq__risposta p {
    margin:
        0 0 14px 0;
}

.j-faq__risposta p:last-child {
    margin-bottom: 0;
}

.j-faq__risposta ul,
.j-faq__risposta ol {
    margin-top: 14px;
    margin-bottom: 0;
}

@media (max-width: 1024px) {

    .j-faq .j-faq__domanda {
        padding:
            14px 28px !important;

        gap:
            28px !important;
    }

    .j-faq__risposta {
        padding:
            14px 28px 26px;
    }
}

@media (max-width: 767px) {

    .j-faq {
        gap: 10px;
    }

    .j-faq__item {
        border-radius: 16px;
    }

    .j-faq .j-faq__domanda {
        height: auto !important;
        min-height: 0 !important;

        padding:
            14px 22px !important;

        gap:
            18px !important;

        border-radius:
            16px !important;
    }

    .j-faq__item.is-open
    .j-faq__domanda {
        border-radius:
            16px 16px 0 0 !important;
    }

    .j-faq__risposta {
        padding:
            12px 22px 22px;
    }

    .j-faq__icona {
        --faq-icon-size: 20px;
        --faq-icon-thickness: 3px;
    }
}


/* ==========================================================
   VISIBILITÀ SEZIONI SPECIFICHE PER MARCHIO

   Funziona sia su:
   - archivio /marchio/...
   - singola scheda prodotto

   Classi Elementor:
   solo-toorx
   solo-powerfit

   Nell'editor Elementor restano sempre visibili.
   ========================================================== */


/* ----------------------------------------------------------
   TOORX — NASCOSTO DI DEFAULT NEL FRONTEND
   ---------------------------------------------------------- */

body:not(.elementor-editor-active):not(.elementor-editor-preview)
.solo-toorx {
    display: none !important;
}


/* TOORX — VISIBILE SE IL CONTESTO È TOORX */

body:not(.elementor-editor-active):not(.elementor-editor-preview).brand-toorx
.solo-toorx {
    display: flex !important;
}


/* ----------------------------------------------------------
   POWERFIT — NASCOSTO DI DEFAULT NEL FRONTEND
   ---------------------------------------------------------- */

body:not(.elementor-editor-active):not(.elementor-editor-preview)
.solo-powerfit {
    display: none !important;
}


/* POWERFIT — VISIBILE SE IL CONTESTO È POWERFIT */

body:not(.elementor-editor-active):not(.elementor-editor-preview).brand-powerfit
.solo-powerfit {
    display: flex !important;
}


/* ----------------------------------------------------------
   EDITOR ELEMENTOR
   Tutto visibile mentre lavori
   ---------------------------------------------------------- */

body.elementor-editor-active
.solo-toorx,

body.elementor-editor-active
.solo-powerfit,

body.elementor-editor-preview
.solo-toorx,

body.elementor-editor-preview
.solo-powerfit {
    display: flex !important;
}


/* ==========================================================
   SEZIONI ACF DINAMICHE

   Frontend:
   la sezione appare solo se il relativo campo ACF è compilato.

   Editor Elementor:
   tutte le sezioni rimangono visibili.
   ========================================================== */


/* ----------------------------------------------------------
   NASCOSTE DI DEFAULT NEL FRONTEND
   ---------------------------------------------------------- */

body:not(.elementor-editor-active):not(.elementor-editor-preview)
.sezione-guida,

body:not(.elementor-editor-active):not(.elementor-editor-preview)
.sezione-sottocategorie,

body:not(.elementor-editor-active):not(.elementor-editor-preview)
.sezione-brand,

body:not(.elementor-editor-active):not(.elementor-editor-preview)
.sezione-faq,

body:not(.elementor-editor-active):not(.elementor-editor-preview)
.sezione-prova {
    display: none !important;
}


/* ----------------------------------------------------------
   GUIDA ALLA SCELTA
   Mostra se j_titolo_guida è compilato
   ---------------------------------------------------------- */

body:not(.elementor-editor-active):not(.elementor-editor-preview).has-j-titolo-guida
.sezione-guida {
    display: flex !important;
}


/* ----------------------------------------------------------
   SOTTOCATEGORIE
   Mostra se j_titolo_sottocategorie è compilato
   ---------------------------------------------------------- */

body:not(.elementor-editor-active):not(.elementor-editor-preview).has-j-titolo-sottocategorie
.sezione-sottocategorie {
    display: flex !important;
}


/* ----------------------------------------------------------
   BRAND
   Mostra se j_titolo_brand è compilato
   ---------------------------------------------------------- */

body:not(.elementor-editor-active):not(.elementor-editor-preview).has-j-titolo-brand
.sezione-brand {
    display: flex !important;
}


/* ----------------------------------------------------------
   FAQ
   Mostra se j_titolo_faq è compilato
   ---------------------------------------------------------- */

body:not(.elementor-editor-active):not(.elementor-editor-preview).has-j-titolo-faq
.sezione-faq {
    display: flex !important;
}


/* ----------------------------------------------------------
   PROVA
   Mostra se j_titolo_prova è compilato
   ---------------------------------------------------------- */

body:not(.elementor-editor-active):not(.elementor-editor-preview).has-j-titolo-prova
.sezione-prova {
    display: flex !important;
}


/* ----------------------------------------------------------
   EDITOR ELEMENTOR
   Tutte le sezioni ACF sempre visibili
   ---------------------------------------------------------- */

body.elementor-editor-active
.sezione-guida,

body.elementor-editor-active
.sezione-sottocategorie,

body.elementor-editor-active
.sezione-brand,

body.elementor-editor-active
.sezione-faq,

body.elementor-editor-active
.sezione-prova,

body.elementor-editor-preview
.sezione-guida,

body.elementor-editor-preview
.sezione-sottocategorie,

body.elementor-editor-preview
.sezione-brand,

body.elementor-editor-preview
.sezione-faq,

body.elementor-editor-preview
.sezione-prova {
    display: flex !important;
}



/*nascosto modulo stampabile per diritto recesso*/

details#ayudawp-euw-annex-b {
    display: none;
}


/*personalizzazione pulsante recesso form*/

button.ayudawp-euw-button{
	background-color: var(--e-global-color-accent) !important;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-accent-font-size) !important;
    font-weight: var(--e-global-typography-accent-font-weight) !important;
    text-transform: var(--e-global-typography-accent-text-transform) !important;
    line-height: var(--e-global-typography-accent-line-height) !important;
    fill: var(--e-global-color-secondary) !important;
    color: var(--e-global-color-secondary) !important;
    border-style: solid !important;
    border-width: 0px !important;
    border-radius: 0px !important;
    padding: 14px 30px !important;
}

button.ayudawp-euw-button:hover{
	background-color: var(--e-global-color-3efdc89) !important;
    color: var(--e-global-color-secondary) !important;
}


/*pagina order-received*/
body.woocommerce-order-received main#content {
    padding: 15vh 10vw;
}




/* ==========================================================
   CARD PRODOTTO ESAURITO
   Classe da mettere sul contenitore principale Elementor:
   jes-product-card
   ========================================================== */

.jes-product-card {
    position: relative !important;
    overflow: hidden !important;
}


/* ==========================================================
   OVERLAY GRIGIO SU TUTTA LA CARD
   ========================================================== */

.jes-product-card:has(.jes-prodotto-esaurito)::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(190, 190, 190, 0.42);

    z-index: 50;

    pointer-events: none;
}


/* ==========================================================
   WIDGET SHORTCODE ESAURITO
   Fuori dal flusso: non crea altezza extra
   ========================================================== */

.jes-product-card
.elementor-widget-shortcode:has(.jes-prodotto-esaurito) {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 100 !important;
}


/* ==========================================================
   WRAPPER INTERNI GENERATI DA ELEMENTOR
   ========================================================== */

.jes-product-card
.elementor-widget-shortcode:has(.jes-prodotto-esaurito)
.elementor-widget-container,

.jes-product-card
.elementor-widget-shortcode:has(.jes-prodotto-esaurito)
.elementor-shortcode {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    height: auto !important;
    min-height: 0 !important;
}


/* ==========================================================
   WRAPPER SHORTCODE CUSTOM
   ========================================================== */

.jes-prodotto-esaurito {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    position: relative;

    z-index: 100;
}


/* ==========================================================
   BADGE ESAURITO
   ========================================================== */

.jes-badge-esaurito {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50%;

    background-color: #CF2626;

    padding: 7px 10px;

    margin: 0 !important;

    box-sizing: border-box;

    text-align: center;

    font-family:
        var(--e-global-typography-eda947d-font-family),
        Sans-serif;

    font-size:
        var(--e-global-typography-eda947d-font-size);

    font-weight:
        var(--e-global-typography-eda947d-font-weight);

    text-transform:
        var(--e-global-typography-eda947d-text-transform);

    line-height:
        var(--e-global-typography-eda947d-line-height);

    letter-spacing:
        var(--e-global-typography-eda947d-letter-spacing);

    color:
        var(--e-global-color-secondary);

    position: relative;

    z-index: 101;
}


/* ==========================================================
   SICUREZZA:
   IL BADGE RESTA SOPRA ALL'OVERLAY
   ========================================================== */

.jes-product-card:has(.jes-prodotto-esaurito)
.elementor-widget-shortcode,

.jes-product-card:has(.jes-prodotto-esaurito)
.jes-prodotto-esaurito,

.jes-product-card:has(.jes-prodotto-esaurito)
.jes-badge-esaurito {
    z-index: 100 !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .jes-badge-esaurito {
        width: 50%;
    }

}


/* ==========================================================
   BADGE ESAURITO - SCHEDA PRODOTTO SINGOLO
   Classe widget Elementor: jes-badge-singolo
   ========================================================== */

.jes-badge-singolo .jes-badge-esaurito {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto !important;

    padding: 5px 20px !important;

    text-align: center;

    font-family: "Barlow", Sans-serif !important;
    font-size: 1vw !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    line-height: 1.2em !important;

    background-color: #CF2626;
    color: var(--e-global-color-secondary);
	border:solid 2px #CF2626;
    box-sizing: border-box;
}


/* TABLET */
@media (max-width: 1024px) {

    .jes-badge-singolo .jes-badge-esaurito {
        font-size: 1.8vw !important;
    }

}


/* MOBILE */
@media (max-width: 767px) {

    .jes-badge-singolo .jes-badge-esaurito {
        font-size: 3.5vw !important;
    }

}

/* Shortcode custom filtri */
.sf-filters-desktop-container,
.sf-filters-mobile-container 
{
	  display: flex;
	  flex-direction: column;
	  gap: 1em;
}
