/* Nex8 premium Services Home carousel, based on supplied visual reference.
   One editorial feature at a time. Only the public Home opts in to this sheet.
   Service images are still managed exclusively in Admin > Serviços. */
.nex8-home .nex8-services-carousel--premium {
    --nex8-premium-orange:#ff7009;
    --nex8-premium-ink:#0b1829;
    --nex8-premium-gap:20px;
    --nex8-carousel-gap:0px;
    min-width:0;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-viewport{
    border-radius:27px;
    background:#f9fafb;
    box-shadow:0 23px 60px #10263812;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-track{
    gap:0;
    align-items:stretch;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-card{
    position:relative;
    isolation:isolate;
    display:grid;
    grid-template-columns:minmax(0,49%) minmax(0,51%);
    align-items:stretch;
    flex:0 0 100%;
    width:100%;
    min-width:0;
    /* Content sets the final height. A fixed 590px clipped benefits and CTA. */
    height:auto;
    min-height:clamp(540px,43vw,590px);
    border:1px solid #e3e4e5;
    border-radius:27px;
    overflow:hidden;
    background:linear-gradient(110deg,#fff 0%,#f9f8f6 48%,#dedbd6 100%);
    box-shadow:none;
    color:var(--nex8-premium-ink);
    text-decoration:none;
    transition:box-shadow .25s ease;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-card:hover{
    transform:none;
    box-shadow:inset 0 0 0 1px #ff8a3c40;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-info{
    position:relative;
    z-index:3;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    min-width:0;
    padding:clamp(26px,3.15vw,46px);
    background:linear-gradient(106deg,#fffffff5 0%,#fffdfaf0 72%,#fffdfab8 100%);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-kicker{
    display:inline-flex;
    align-items:center;
    gap:12px;
    color:#33404e;
    font-size:clamp(.65rem,.85vw,.86rem);
    font-weight:720;
    letter-spacing:.28em;
    text-transform:uppercase;
    line-height:1.35;
    margin-bottom:14px;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-kicker:before{
    content:"";
    flex:none;
    display:block;
    width:33px;
    height:4px;
    border-radius:4px;
    background:var(--nex8-premium-orange);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-info h3{
    margin:0;
    font-size:clamp(2.05rem,3.55vw,4.05rem);
    font-weight:870;
    letter-spacing:-.069em;
    line-height:1.02;
    color:var(--nex8-premium-ink);
    overflow-wrap:break-word;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 span,
.nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 em{
    display:block;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 em{
    color:var(--nex8-premium-orange);
    font-style:normal;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-info p{
    max-width:530px;
    margin:18px 0 0;
    color:#535d69;
    font-size:clamp(.98rem,1.16vw,1.13rem);
    line-height:1.52;
    letter-spacing:-.013em;
    display:block;
    overflow:visible;
    -webkit-line-clamp:unset;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefits{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(72px,1fr));
    gap:15px;
    width:100%;
    max-width:550px;
    margin:21px 0 0;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefit{
    display:flex;
    flex-direction:column;
    gap:7px;
    align-items:center;
    min-width:0;
    text-align:center;
    color:#182435;
    font-size:clamp(.7rem,.9vw,.86rem);
    line-height:1.28;
    font-weight:600;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefit-icon{
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    color:var(--nex8-premium-orange);
    font-size:2.1rem;
    line-height:1;
    font-weight:400;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-more{
    margin:20px 0 0;
    padding:13px 21px;
    min-height:52px;
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
    border-radius:100px;
    background:linear-gradient(105deg,#ff6800,#ff8b10);
    box-shadow:0 12px 24px #f7660038;
    color:#fff;
    font-size:1rem;
    font-weight:790;
    text-decoration:none;
    transition:transform .2s ease,box-shadow .2s ease;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-card:hover .nex8-featured-more{
    transform:translateY(-2px);
    box-shadow:0 17px 29px #f766004f;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-more>span{
    font-size:1.65rem;
    line-height:1;
    font-weight:500;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-demo{
    display:inline-block;
    margin-top:11px;
    font-size:.7rem;
    letter-spacing:.03em;
    color:#6c7581;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-media{
    position:relative;
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    min-height:0;
    padding:0;
    flex:initial;
    overflow:hidden;
    background:
       radial-gradient(ellipse at 63% 50%,#ffffffaa 0%,transparent 51%),
       radial-gradient(ellipse at 74% 10%,#ff9a404c 0%,transparent 37%),
       linear-gradient(135deg,#dfd7cd 0%,#968b81 58%,#383735 100%);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-media:before{
    content:"";
    position:absolute;
    z-index:0;
    inset:0;
    background:
      linear-gradient(127deg,transparent 0 38%,#ffffff20 38.15% 38.45%,transparent 38.65% 100%),
      radial-gradient(ellipse at 80% 91%,#00000064,transparent 49%);
    pointer-events:none;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-media:after{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:16%;
    background:linear-gradient(90deg,#fffdfabe,transparent);
    pointer-events:none;
    z-index:3;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-media img{
    position:absolute;
    inset:0;
    z-index:2;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:cover;
    object-position:center;
    filter:drop-shadow(0 18px 22px #0006);
    transition:transform .55s ease;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-card:hover .nex8-featured-media img{
    transform:scale(1.025);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-product-photo{
    position:relative;
    z-index:2;
    display:block;
    width:min(100%,590px);
    height:auto;
    aspect-ratio:1/1;
    background-size:200% 200%;
    background-repeat:no-repeat;
    filter:drop-shadow(0 19px 24px #0007);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-product-backup{
    position:absolute;
    z-index:1;
    top:50%;
    left:50%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    width:min(57%,350px);
    height:clamp(125px,15vw,210px);
    padding:25px 29px;
    border-radius:10px;
    background:linear-gradient(135deg,#122a45 0%,#071420 70%);
    border:1px solid #fdfdfd39;
    box-shadow:0 24px 45px #0008,12px 20px 0 #ffffff70,19px 30px 0 #ffffff3d;
    transform:translate(-50%,-50%) rotate(-9deg);
    color:#fff;
    opacity:.88;
    pointer-events:none;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-product-backup strong{
    font-size:clamp(2.3rem,5vw,4rem);
    color:#ff7814;
    line-height:1;
    letter-spacing:-.12em;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-product-backup small{
    font-size:.65rem;
    letter-spacing:.2em;
    font-weight:800;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-controls{
    display:none;
    grid-template-columns:auto minmax(80px,1fr) auto;
    align-items:center;
    gap:clamp(20px,3.3vw,54px);
    margin:21px 2px 8px;
}
.nex8-home .nex8-services-carousel--premium.is-ready .nex8-services-controls{
    display:grid;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-steps{
    display:flex;
    flex-wrap:nowrap;
    gap:9px;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-dot{
    min-width:31px;
    min-height:34px;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-dot:before{
    width:11px;
    height:11px;
    background:#bfc7d0;
    transition:width .2s ease,background .2s ease;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-dot.is-active:before{
    width:15px;
    background:var(--nex8-premium-orange);
}
.nex8-home .nex8-services-carousel--premium .nex8-services-progress{
    display:none;
    height:7px;
    width:100%;
    border-radius:20px;
    background:#dfe5eb;
    overflow:hidden;
}
.nex8-home .nex8-services-carousel--premium.is-ready .nex8-services-progress{
    display:block;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-progress-fill{
    background:linear-gradient(90deg,#f96300,#ff8b14);
    border-radius:20px;
    box-shadow:0 0 9px #ff760055;
    transform-origin:left center;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-buttons{
    display:flex;
    align-items:center;
    gap:9px;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-icon,
.nex8-home .nex8-services-carousel--premium .nex8-services-pause{
    min-height:52px;
    min-width:52px;
    border-radius:15px;
    background:#fff;
    border:1px solid #dde2e7;
    color:#13283b;
    box-shadow:0 5px 15px #1628390a;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-pause{
    font-size:.96rem;
    min-width:98px;
    padding:0 16px;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-icon:hover,
.nex8-home .nex8-services-carousel--premium .nex8-services-pause:hover{
    color:#ed5d00;
    background:#fff6ec;
    border-color:#ffae6d;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-controls [hidden],
.nex8-home .nex8-services-carousel--premium .nex8-services-progress[hidden]{
    display:none!important;
}
.nex8-home .nex8-services-carousel--premium.is-static .nex8-services-controls{
    display:none!important;
}
@media(max-width:1120px){
    .nex8-home .nex8-services-carousel--premium .nex8-featured-card{
        grid-template-columns:minmax(0,51%) minmax(0,49%);
        height:auto;
        min-height:clamp(500px,47vw,550px);
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-media{min-height:0}
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info{
        padding:clamp(24px,3.4vw,42px)
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info h3{
        font-size:clamp(2.05rem,4vw,3.8rem)
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-benefits{gap:8px}
}
@media(max-width:900px){
    .nex8-home .nex8-services-carousel--premium .nex8-services-viewport{
        border-radius:20px;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-card{
        flex-basis:100%;
        display:flex;
        flex-direction:column;
        height:auto;
        min-height:0;
        border-radius:20px;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-media{
        order:0;
        flex:none;
        height:clamp(225px,59vw,360px);
        min-height:0;
        width:100%;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-media:after{
        width:100%;
        height:14%;
        inset:auto 0 0;
        background:linear-gradient(0deg,#fffdfaba,transparent);
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-product-photo{
        width:min(100%,440px);
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-product-backup{
        width:min(60%,280px);
        height:clamp(120px,24vw,175px);
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info{
        order:1;
        flex:none;
        padding:24px 25px 29px;
        background:#fff;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-kicker{
        margin-bottom:11px;
        font-size:.7rem;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info h3{
        font-size:clamp(2.05rem,6.1vw,3.4rem);
        line-height:1.08;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info p{
        margin:14px 0 0;
        font-size:.93rem;
        line-height:1.56;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-benefits{
        margin:19px 0 0;
        gap:8px;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-benefit{
        font-size:.72rem;
        line-height:1.26;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-benefit-icon{
        font-size:1.95rem;
        height:31px;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-more{
        width:100%;
        max-width:360px;
        min-height:51px;
        margin-top:23px;
        padding:12px 19px;
        font-size:.93rem;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-services-controls{
        grid-template-columns:1fr auto;
        gap:8px 10px;
        margin:14px 0 0;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-services-progress{
        grid-column:1/-1;
        grid-row:2;
        margin-top:8px;
        height:6px;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-services-buttons{
        grid-column:2;
        grid-row:1;
        gap:6px;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-services-icon,
    .nex8-home .nex8-services-carousel--premium .nex8-services-pause{
        min-height:43px;
        min-width:43px;
        border-radius:12px;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-services-pause{
        min-width:77px;
        font-size:.79rem;
        padding:0 11px;
    }
}
@media(max-width:390px){
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info{padding:19px 19px 24px}
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info h3{
        font-size:clamp(1.92rem,7.5vw,2.45rem);
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-benefit{font-size:.66rem}
    .nex8-home .nex8-services-carousel--premium .nex8-featured-more{margin-top:17px}
    .nex8-home .nex8-services-carousel--premium .nex8-services-steps{gap:0}
    .nex8-home .nex8-services-carousel--premium .nex8-services-dot{
        min-width:23px;
    }
}
@media(prefers-reduced-motion:reduce){
    .nex8-home .nex8-services-carousel--premium .nex8-featured-card,
    .nex8-home .nex8-services-carousel--premium .nex8-featured-media img,
    .nex8-home .nex8-services-carousel--premium .nex8-featured-more{
        transition:none!important;
    }
}

/* MEDIA-FOCAL-02: long unbroken CMS titles cannot flow across into the image. */
.nex8-home .nex8-services-carousel--premium .nex8-featured-info h3,
.nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 span,
.nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 em{
  min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal;hyphens:auto;
}

/* Benefit icons: up to five, preserving readable labels at all widths. */
.nex8-home .nex8-featured-benefit-icon .nex8-benefit-icon-svg,
.nex8-home .nex8-featured-benefit-icon .nex8-benefit-icon-image{display:block;width:30px;height:30px;max-width:100%;object-fit:contain}
@media(max-width:900px){
  .nex8-home .nex8-services-carousel--premium .nex8-featured-benefits{grid-template-columns:repeat(auto-fit,minmax(83px,1fr))}
}
@media(max-width:480px){
  .nex8-home .nex8-services-carousel--premium .nex8-featured-benefits{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nex8-home .nex8-services-carousel--premium .nex8-featured-benefit{overflow-wrap:anywhere}
}

/* HOME-SERVICES-PC-HEIGHT-01 (31/10/2026): make the featured service
   photo taller on desktop only. Preserve the editor's saved object-position
   and object-fit cover; tablet (<=1024px) and mobile retain original sizes. */
@media (min-width: 1025px) {
    .nex8-home .nex8-services-carousel--premium .nex8-featured-card {
        min-height: clamp(600px, 46vw, 650px);
    }
}
/* Compact desktops inherit the base <=1120px rules unless overridden here. */
@media (min-width: 1025px) and (max-width: 1120px) {
    .nex8-home .nex8-services-carousel--premium .nex8-featured-card {
        min-height: clamp(560px, 50vw, 605px);
    }
}

/* HOME-CAROUSEL-TITLE-03 (31/10/2026):
   On phones, keep the final highlighted word in the natural text flow.
   Forced display:block on <em> previously orphaned "Externa" on a new
   line even when "Interna e Externa" fit in the same row. */
@media (max-width: 680px) {
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 {
        text-wrap: balance;
    }
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 span,
    .nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 em {
        display: inline;
    }
}
