/**
 * WMA Case History Native
 * Auto elettriche.
 *
 * Avada provides header/footer only.
 * Page body and section geometry are native child-theme code.
 */

.wma-case-history-native .fusion-page-title-bar,
.wma-case-history-native .fusion-page-title-wrapper {
    display:none !important;
}

.wma-case-history-native #main {
    padding:0 !important;
    background:#fff !important;
}

.wma-case-history-native #main > .fusion-row {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
}

.wma-case-history-native #content.wma-case-native {
    float:none !important;
    width:100% !important;
    max-width:none !important;
    padding:0 !important;
    margin:0 !important;
    background:#fff;
    overflow:hidden;
}

.wma-case-native-band {
    position:relative;
    width:100%;
    box-sizing:border-box;
}

.wma-case-native-band-inner {
    width:100%;
    margin:0;
    padding:0;
}

.wma-case-native-band *,
.wma-case-native-band *::before,
.wma-case-native-band *::after {
    box-sizing:border-box;
}


/* =============================================
   APPROVED CASE COMPONENT SYSTEM
   ============================================= */

.wma-ch-wrap{
    --wma-dark:#07140a;
    --wma-dark-2:#10261a;
    --wma-green:#16bf07;
    --wma-green-2:#27c607;
    --wma-blue:#025fff;
    --wma-text:#18212f;
    --wma-muted:#667085;
    --wma-line:#e7ece8;
    --wma-soft:#f6faf7;
    --wma-white:#ffffff;
    --wma-radius:22px;
    --wma-shadow:0 24px 70px rgba(10, 22, 15, .12);
    font-family:Roboto, Arial, sans-serif;
  }
  .wma-ch-wrap *{box-sizing:border-box}
  .wma-ch-kicker{
    display:inline-flex;align-items:center;gap:8px;
    padding:9px 14px;border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.06);border-radius:999px;
    color:#dff9e2;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  }
  .wma-ch-title{
    max-width:980px;margin:26px auto 18px!important;
    color:#fff!important;text-align:center!important;
    font-size:clamp(42px,6vw,76px)!important;line-height:.98!important;
    font-weight:900!important;letter-spacing:-.055em!important;
  }
  .wma-ch-subtitle{
    max-width:860px;margin:0 auto!important;color:rgba(255,255,255,.78)!important;
    text-align:center!important;font-size:20px!important;line-height:1.55!important;font-weight:400!important;
  }
  .wma-ch-hero-actions{
    display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:34px;
  }
  .wma-ch-btn{
    display:inline-flex!important;align-items:center;justify-content:center;gap:10px;
    min-height:52px;padding:15px 24px;border-radius:999px!important;
    text-decoration:none!important;font-weight:800!important;font-size:15px!important;
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .wma-ch-btn:hover{transform:translateY(-2px)}
  .wma-ch-btn-primary{background:linear-gradient(135deg,var(--wma-green),var(--wma-green-2));color:#fff!important;box-shadow:0 18px 40px rgba(22,191,7,.25)}
  .wma-ch-btn-secondary{background:rgba(255,255,255,.08);color:#fff!important;border:1px solid rgba(255,255,255,.18)}
  .wma-ch-hero-metrics{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;
    max-width:1050px;margin:48px auto 0;
  }
  .wma-ch-metric-card{
    background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);
    border-radius:20px;padding:20px;min-height:132px;position:relative;overflow:hidden;
  }
  .wma-ch-metric-card:before{
    content:"";position:absolute;inset:auto -25px -35px auto;width:100px;height:100px;
    background:radial-gradient(circle,rgba(22,191,7,.22),transparent 64%);border-radius:50%;
  }
  .wma-ch-metric-label{display:block;color:rgba(255,255,255,.58);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
  .wma-ch-metric-value{display:block;margin-top:12px;color:#fff;font-size:25px;line-height:1.1;font-weight:900;letter-spacing:-.03em}
  .wma-ch-metric-note{display:block;margin-top:8px;color:rgba(255,255,255,.65);font-size:13px;line-height:1.35}
  .wma-ch-section{
    padding:84px 0;
  }
  .wma-ch-container{
    max-width:1160px;margin:0 auto;padding:0 28px;
  }
  .wma-ch-center{text-align:center}
  .wma-ch-eyebrow{
    display:inline-flex;margin-bottom:14px;color:var(--wma-green);font-weight:900;
    font-size:13px;text-transform:uppercase;letter-spacing:.10em;
  }
  .wma-ch-h2{
    color:var(--wma-text)!important;font-size:clamp(32px,4vw,52px)!important;
    line-height:1.05!important;letter-spacing:-.045em!important;font-weight:900!important;
    margin:0 auto 18px!important;max-width:820px;
  }
  .wma-ch-lead{
    max-width:820px;margin:0 auto;color:var(--wma-muted);font-size:19px;line-height:1.65;
  }
  .wma-ch-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
  .wma-ch-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .wma-ch-card{
    background:#fff;border:1px solid var(--wma-line);border-radius:var(--wma-radius);
    padding:30px;box-shadow:var(--wma-shadow);
  }
  .wma-ch-card-soft{
    background:linear-gradient(180deg,#fff,var(--wma-soft));
    border:1px solid var(--wma-line);border-radius:var(--wma-radius);
    padding:30px;
  }
  .wma-ch-card h3,.wma-ch-card-soft h3{
    color:var(--wma-text)!important;font-size:24px!important;line-height:1.15!important;
    margin:0 0 12px!important;font-weight:900!important;letter-spacing:-.025em!important;
  }
  .wma-ch-card p,.wma-ch-card-soft p{
    color:var(--wma-muted);font-size:16px;line-height:1.65;margin:0 0 16px;
  }
  .wma-ch-card p:last-child,.wma-ch-card-soft p:last-child{margin-bottom:0}
  .wma-ch-list{display:grid;gap:12px;margin:22px 0 0;padding:0;list-style:none}
  .wma-ch-list li{
    display:flex;gap:12px;align-items:flex-start;color:var(--wma-text);font-size:16px;line-height:1.5;
    padding:14px 15px;border:1px solid var(--wma-line);border-radius:15px;background:#fff;
  }
  .wma-ch-list li:before{
    content:"";flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:var(--wma-green);margin-top:7px;
    box-shadow:0 0 0 5px rgba(22,191,7,.10);
  }
  .wma-ch-dark-band{
    background:var(--wma-dark);color:#fff;border-radius:32px;padding:44px;position:relative;overflow:hidden;
  }
  .wma-ch-dark-band:after{
    content:"";position:absolute;inset:-120px -120px auto auto;width:260px;height:260px;border-radius:50%;
    background:radial-gradient(circle,rgba(22,191,7,.24),transparent 66%);
  }
  .wma-ch-dark-band h2{color:#fff!important}
  .wma-ch-dark-band p{color:rgba(255,255,255,.74)}
  .wma-ch-process{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:34px;
  }
  .wma-ch-step{
    background:#fff;border:1px solid var(--wma-line);border-radius:20px;padding:22px;position:relative;
  }
  .wma-ch-step-num{
    width:34px;height:34px;border-radius:12px;background:var(--wma-dark);color:#fff;
    display:flex;align-items:center;justify-content:center;font-weight:900;margin-bottom:18px;
  }
  .wma-ch-step h3{font-size:20px!important}
  .wma-ch-tabs{
    margin-top:38px;background:#fff;border:1px solid var(--wma-line);border-radius:30px;
    padding:16px;box-shadow:var(--wma-shadow);
  }
  .wma-ch-tabs input{display:none}
  .wma-ch-tab-labels{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px;
  }
  .wma-ch-tab-labels label{
    display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px;
    border-radius:17px;background:#f4f7f5;color:var(--wma-muted);font-weight:900;font-size:14px;
    cursor:pointer;text-align:center;transition:all .2s ease;
  }
  #wma-tab-1:checked ~ .wma-ch-tab-labels label[for="wma-tab-1"],
  #wma-tab-2:checked ~ .wma-ch-tab-labels label[for="wma-tab-2"],
  #wma-tab-3:checked ~ .wma-ch-tab-labels label[for="wma-tab-3"],
  #wma-tab-4:checked ~ .wma-ch-tab-labels label[for="wma-tab-4"]{
    background:var(--wma-dark);color:#fff;box-shadow:0 14px 30px rgba(7,20,10,.16);
  }
  .wma-ch-panel{display:none;padding:22px}
  #wma-tab-1:checked ~ .wma-ch-panels .wma-ch-panel-1,
  #wma-tab-2:checked ~ .wma-ch-panels .wma-ch-panel-2,
  #wma-tab-3:checked ~ .wma-ch-panels .wma-ch-panel-3,
  #wma-tab-4:checked ~ .wma-ch-panels .wma-ch-panel-4{display:block}
  .wma-wireframe{
    display:grid;gap:14px;background:#f6f8f7;border:1px solid var(--wma-line);border-radius:24px;padding:22px;
  }
  .wma-wire-row{background:#fff;border:1px dashed #cfd8d2;border-radius:14px;padding:16px;color:var(--wma-muted);font-weight:800;font-size:14px}
  .wma-wire-hero{min-height:120px;display:grid;grid-template-columns:1.4fr .8fr;gap:14px}
  .wma-wire-block{background:#f0f5f1;border-radius:12px;min-height:54px}
  .wma-before-after{
    display:grid;grid-template-columns:1fr 1fr;gap:18px;
  }
  .wma-ba-col{
    border:1px solid var(--wma-line);border-radius:22px;padding:24px;background:#fbfdfb;
  }
  .wma-ba-tag{
    display:inline-flex;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;margin-bottom:14px;
  }
  .wma-ba-before{background:#fff3f1;color:#9b2718}
  .wma-ba-after{background:#effbea;color:#17730d}
  .wma-result-grid{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px;
  }
  .wma-result-item{
    background:#f7faf7;border:1px solid var(--wma-line);border-radius:18px;padding:20px;
  }
  .wma-result-item strong{display:block;color:var(--wma-text);font-size:23px;margin-bottom:7px}
  .wma-result-item span{color:var(--wma-muted);font-size:14px;line-height:1.4}
  .wma-ch-steal{
    background:linear-gradient(135deg,#07140a,#14331f);
    border-radius:32px;padding:44px;color:#fff;position:relative;overflow:hidden;
  }
  .wma-ch-steal:before{
    content:"";position:absolute;inset:auto -60px -90px auto;width:240px;height:240px;border-radius:50%;
    background:radial-gradient(circle,rgba(22,191,7,.32),transparent 65%);
  }
  .wma-ch-steal h2{color:#fff!important;margin:0 0 14px!important}
  .wma-ch-steal p{color:rgba(255,255,255,.78);font-size:18px;line-height:1.65;max-width:760px}
  .wma-ch-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:26px;position:relative;z-index:2}
  .wma-ch-mini{
    background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);
    border-radius:20px;padding:22px;
  }
  .wma-ch-mini strong{display:block;color:#fff;font-size:17px;margin-bottom:8px}
  .wma-ch-mini span{display:block;color:rgba(255,255,255,.70);font-size:15px;line-height:1.55}
  .wma-ch-quote{
    max-width:920px;margin:0 auto;background:#fff;border:1px solid var(--wma-line);
    border-radius:30px;padding:44px;box-shadow:var(--wma-shadow);position:relative;
  }
  .wma-ch-quote:before{
    content:"“";position:absolute;top:18px;left:30px;color:rgba(22,191,7,.16);
    font-size:130px;line-height:1;font-weight:900;
  }
  .wma-ch-quote p{
    position:relative;color:var(--wma-text);font-size:24px;line-height:1.55;
    font-weight:500;margin:0 0 22px;
  }
  .wma-ch-quote cite{
    position:relative;display:block;color:var(--wma-muted);font-style:normal;font-weight:800;
  }
  .wma-ch-faq{
    display:grid;gap:12px;max-width:900px;margin:34px auto 0;
  }
  .wma-ch-faq details{
    background:#fff;border:1px solid var(--wma-line);border-radius:18px;padding:20px 22px;
  }
  .wma-ch-faq summary{
    cursor:pointer;color:var(--wma-text);font-weight:900;font-size:17px;
  }
  .wma-ch-faq p{color:var(--wma-muted);font-size:16px;line-height:1.65;margin:14px 0 0}
  .wma-ch-note{
    margin-top:24px;color:rgba(255,255,255,.55);font-size:13px;text-align:center;line-height:1.5;
  }
  @media (max-width:900px){
    .wma-ch-hero-metrics,.wma-ch-grid-2,.wma-ch-grid-3,.wma-ch-process,.wma-result-grid,.wma-ch-mini-grid,.wma-before-after{
      grid-template-columns:1fr;
    }
    .wma-ch-tab-labels{grid-template-columns:1fr 1fr}
    .wma-wire-hero{grid-template-columns:1fr}
    .wma-ch-section{padding:60px 0}
    .wma-ch-dark-band,.wma-ch-steal{padding:30px}
  }
  @media (max-width:560px){
    .wma-ch-tab-labels{grid-template-columns:1fr}
    .wma-ch-container{padding:0 18px}
    .wma-ch-card,.wma-ch-card-soft{padding:24px}
    .wma-ch-quote{padding:32px 24px}
    .wma-ch-quote p{font-size:20px}
  }

.wma-auto-funnel{
  --funnel-dark:#07140a;
  --funnel-green:#16bf07;
  --funnel-line:#dfe7e1;
  --funnel-soft:#f6faf7;
  --funnel-text:#18212f;
  --funnel-muted:#667085;
}
.wma-auto-funnel *{box-sizing:border-box}

.wma-auto-funnel-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:13px;
  margin-top:42px;
}

.wma-auto-funnel-step{
  position:relative;
  min-height:175px;
  background:#fff;
  border:1px solid var(--funnel-line);
  border-radius:20px;
  padding:22px 18px;
  box-shadow:0 16px 42px rgba(7,20,10,.07);
}

.wma-auto-funnel-step:not(:last-child):after{
  content:"→";
  position:absolute;
  right:-18px;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:23px;
  height:23px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:50%;
  background:var(--funnel-dark);
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.wma-auto-funnel-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  margin-bottom:17px;
  border-radius:11px;
  background:var(--funnel-dark);
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.wma-auto-funnel-step:nth-child(3) .wma-auto-funnel-num,
.wma-auto-funnel-step:nth-child(5) .wma-auto-funnel-num,
.wma-auto-funnel-step:nth-child(7) .wma-auto-funnel-num{
  background:var(--funnel-green);
}

.wma-auto-funnel-step strong{
  display:block;
  color:var(--funnel-text);
  font-size:17px;
  line-height:1.25;
  margin-bottom:8px;
}

.wma-auto-funnel-step span{
  display:block;
  color:var(--funnel-muted);
  font-size:14px;
  line-height:1.5;
}

.wma-auto-funnel-note{
  margin-top:26px;
  padding:20px 24px;
  background:var(--funnel-soft);
  border:1px solid var(--funnel-line);
  border-radius:18px;
  color:var(--funnel-muted);
  font-size:15px;
  line-height:1.6;
  text-align:center;
}

@media(max-width:1050px){
  .wma-auto-funnel-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .wma-auto-funnel-step:after{
    display:none!important;
  }
}

@media(max-width:720px){
  .wma-auto-funnel-grid{
    grid-template-columns:1fr;
  }

  .wma-auto-funnel-step{
    min-height:auto;
  }

  .wma-auto-funnel-step:not(:last-child):after{
    display:flex!important;
    content:"↓";
    top:auto;
    right:50%;
    bottom:-19px;
    transform:translateX(50%);
  }
}


/* WMA CASE QA UI FIX v2 START
   Exploded View + Funnel Operativo
   --------------------------------------------------------- */


/* =========================================================
   EXPLODED VIEW
   ---------------------------------------------------------
   Avada had inserted <br> nodes around hidden radio inputs
   and tab labels. In native rendering those nodes become
   real layout items.
   ========================================================= */

.wma-case-native-auto .wma-ch-tabs > br,
.wma-case-native-auto .wma-ch-tab-labels > br {
    display:none !important;
}

.wma-case-native-auto .wma-ch-tabs {
    max-width:1000px;
    margin:38px auto 0;
    padding:16px;
}

.wma-case-native-auto .wma-ch-tab-labels {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:10px !important;
    margin:0 0 18px !important;
}

.wma-case-native-auto .wma-ch-tab-labels label {
    width:100%;
    min-height:50px;
    margin:0 !important;
    padding:12px 14px !important;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:14px;
    line-height:1.2;
    white-space:normal;

    border-radius:15px;
}

.wma-case-native-auto .wma-ch-panels {
    width:100%;
}

.wma-case-native-auto .wma-ch-panel {
    padding:24px 12px 12px;
}


/* =========================================================
   FUNNEL OPERATIVO
   ---------------------------------------------------------
   Desktop:
   row 1 = 4 steps
   row 2 = 3 steps

   This gives each step enough room for readable copy.
   ========================================================= */

.wma-case-native-auto .wma-auto-funnel-grid {
    display:grid !important;
    grid-template-columns:repeat(12,minmax(0,1fr)) !important;
    gap:16px !important;

    width:100%;
    max-width:1100px;
    margin:42px auto 0;
}

.wma-case-native-auto .wma-auto-funnel-step {
    grid-column:span 3;

    min-width:0;
    min-height:168px;

    padding:22px 20px;
}

.wma-case-native-auto .wma-auto-funnel-step:nth-child(n+5) {
    grid-column:span 4;
}


/*
 * The old arrows were calculated for seven cards
 * in one continuous row. Remove them in the new
 * two-row composition: numbering makes the sequence clear.
 */
.wma-case-native-auto .wma-auto-funnel-step::after {
    display:none !important;
}

.wma-case-native-auto .wma-auto-funnel-num {
    width:36px;
    height:36px;

    margin-bottom:16px;

    font-size:13px;
}

.wma-case-native-auto .wma-auto-funnel-step strong {
    font-size:17px;
    line-height:1.25;
}

.wma-case-native-auto .wma-auto-funnel-step span {
    font-size:14px;
    line-height:1.5;
}

.wma-case-native-auto .wma-auto-funnel-note {
    max-width:1100px;
    margin:24px auto 0;

    padding:18px 24px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:900px) {

    .wma-case-native-auto .wma-ch-tab-labels {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .wma-case-native-auto .wma-auto-funnel-grid {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .wma-case-native-auto .wma-auto-funnel-step,
    .wma-case-native-auto .wma-auto-funnel-step:nth-child(n+5) {
        grid-column:auto !important;
        min-height:auto;
    }
}


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

@media (max-width:560px) {

    .wma-case-native-auto .wma-ch-tabs {
        padding:12px;
        border-radius:22px;
    }

    .wma-case-native-auto .wma-ch-tab-labels {
        grid-template-columns:1fr !important;
        gap:7px !important;
    }

    .wma-case-native-auto .wma-ch-tab-labels label {
        min-height:46px;
    }

    .wma-case-native-auto .wma-ch-panel {
        padding:18px 4px 4px;
    }

    .wma-case-native-auto .wma-auto-funnel-grid {
        grid-template-columns:1fr !important;
        gap:12px !important;
    }

    .wma-case-native-auto .wma-auto-funnel-step {
        min-height:auto;
        padding:20px;
    }
}


/* WMA CASE QA UI FIX v2 END */
