/* Ohm Tech – Team: carousel del team (pagina Chi siamo). Figma: "Card slider dipendenti" */
.ohm-team{--_w:280px;--_h:391px;--_gap:24px;--_pad:32px;position:relative;width:100%;min-width:0;}
.ohm-team--bleed{width:100vw;margin-left:calc(50% - 50vw);}
.ohm-team__track{position:relative;display:flex;gap:var(--_gap);margin:0 !important;padding:0 calc(50% - var(--_w) / 2) !important;list-style:none !important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain;cursor:grab;-webkit-tap-highlight-color:transparent;}
.ohm-team__track::-webkit-scrollbar{display:none;}
.ohm-team__track.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none;}
.ohm-team__track.is-jumping{scroll-snap-type:none;}
.ohm-team__slide{flex:0 0 var(--_w);width:var(--_w);margin:0 !important;padding:0 !important;scroll-snap-align:center;list-style:none !important;}
.ohm-team__slide::before,.ohm-team__slide::marker{content:none !important;}

/* Card: stato normale = foto a colori + sfumatura; hover = foto in bianco e nero scurita + nome e ruolo */
.ohm-team-card{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:8px;width:100%;height:var(--_h);margin:0;padding:var(--_pad);border:1px solid rgb(255 255 255 / .13);border-radius:var(--ohm-radius-l,16px);overflow:hidden;isolation:isolate;background:#fff;outline:0;user-select:none;-webkit-user-select:none;}
.ohm-team-card .ohm-team-card__img{position:absolute;inset:0;z-index:-2;display:block;width:100% !important;height:100% !important;max-width:none !important;margin:0 !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;object-fit:cover;object-position:50% 25%;pointer-events:none;-webkit-user-drag:none;transition:filter .35s ease;}
.ohm-team-card::before,.ohm-team-card::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;}
.ohm-team-card::before{background:linear-gradient(180deg,rgb(0 0 0 / 0) 33.142%,var(--ohm-gray-950,#121017) 100%);}
.ohm-team-card::after{background:rgb(0 0 0 / .52);opacity:0;transition:opacity .35s ease;}
.ohm-team-card .ohm-team-card__info,.ohm-team-card .ohm-team-card__info *{font-style:normal !important;}
.ohm-team-card__info{display:flex;flex-direction:column;gap:8px;margin:0;text-align:center;opacity:0;transform:translateY(12px);transition:opacity .35s ease,transform .35s ease;}
.ohm-team-card .ohm-team-card__name{margin:0 !important;padding:0;color:#fff !important;font-family:var(--ohm-font-heading,"Sora"),sans-serif;font-size:var(--ohm-fs-h4,25px);font-weight:700;line-height:1.1;letter-spacing:0;text-transform:none;word-break:break-word;}
.ohm-team-card .ohm-team-card__role{margin:0 !important;padding:0;color:#fff !important;font-family:var(--ohm-font-body,"Mulish"),sans-serif;font-size:var(--ohm-fs-large,20px);font-weight:400;line-height:1.4;word-break:break-word;}
.ohm-team-card.is-on .ohm-team-card__img,.ohm-team-card:focus-visible .ohm-team-card__img{filter:grayscale(1);}
.ohm-team-card.is-on::after,.ohm-team-card:focus-visible::after{opacity:1;}
.ohm-team-card.is-on .ohm-team-card__info,.ohm-team-card:focus-visible .ohm-team-card__info{opacity:1;transform:none;}
.ohm-team-card:focus-visible{border-color:#fff;}
@media (hover:hover){
 .ohm-team-card:hover .ohm-team-card__img{filter:grayscale(1);}
 .ohm-team-card:hover::after{opacity:1;}
 .ohm-team-card:hover .ohm-team-card__info{opacity:1;transform:none;}
}

/* Frecce (spostate dallo script nello slot .ohm-team-nav-slot, se presente nella pagina) */
.ohm-team__nav,.ohm-team-nav-slot{display:flex;align-items:center;justify-content:center;gap:8px;}
.ohm-team__nav{margin-bottom:32px;}
.ohm-team__nav:empty,.ohm-team-nav-slot:empty{display:none;}
body .ohm-team__prev,body .ohm-team__next,body .ohm-team__prev:focus,body .ohm-team__next:focus,body .ohm-team__prev:active,body .ohm-team__next:active{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;margin:0;padding:8px;border:1px solid #fff !important;border-radius:999px;background:transparent !important;color:#fff !important;box-shadow:none !important;outline:0;cursor:pointer;transition:background-color .2s,color .2s;}
body .ohm-team__prev::before,body .ohm-team__next::before{content:"";width:24px;height:24px;background:currentColor;-webkit-mask:var(--_ico) center/contain no-repeat;mask:var(--_ico) center/contain no-repeat;}
.ohm-team__prev{--_ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");}
.ohm-team__next{--_ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");}
@media (hover:hover){body .ohm-team__prev:hover,body .ohm-team__next:hover{background:#fff !important;color:var(--ohm-gray-800,#353040) !important;}}
body .ohm-team__prev:focus-visible,body .ohm-team__next:focus-visible{outline:2px solid #fff;outline-offset:2px;}

@media (max-width:767.98px){
 .ohm-team{--_w:240px;--_h:335px;--_gap:16px;--_pad:24px;}
 .ohm-team-card .ohm-team-card__name{font-size:20px;}
 .ohm-team-card .ohm-team-card__role{font-size:16px;}
}
@media (prefers-reduced-motion:reduce){.ohm-team-card__img,.ohm-team-card::after,.ohm-team-card__info{transition:none;}}
