/*
 * CONV-01F R3 — regressões LOCAL-002 (4)/(5).
 * A referência aprovada usa previews laterais como controles, sem setas
 * circulares separadas. Refino da grade Gutenberg e hero responsivo.
 */
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-arrow {
  display:none !important;
}
@media (min-width:1180px) {
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-stage {
    grid-template-columns:minmax(0,224px) minmax(0,1fr) minmax(0,224px);
    gap:24px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview {
    min-height:332px;
    padding:28px 24px;
  }
}

/* O Gutenberg salva as features e mensagem como filhos irmãos do details.
 * A R1 ordenou a mensagem antes das features e criou falsa margem inferior.
 * Recuperar ordem: cabeçalho > subtítulo > 4 features > fechamento. */
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open] {
  display:flex;
  flex-direction:column;
  height:auto;
  min-height:520px;
  padding:0;
  overflow:hidden;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail > summary {
  flex:0 0 auto;
  padding:28px 34px 14px;
  min-height:0;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-top.wp-block-group {
  flex:0 0 auto;
  width:auto;
  min-width:0;
  margin:0 !important;
  padding:0 34px 22px;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature-grid.wp-block-group {
  order:0;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-content:start;
  flex:0 0 auto;
  margin:0 34px !important;
  padding:22px 0 0;
  border-top:1px solid rgba(58,67,134,.1);
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature.wp-block-group,
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature.wp-block-group:first-child {
  box-sizing:border-box;
  min-height:118px;
  padding:18px 20px;
  margin:0 !important;
  border:1px solid rgba(58,67,134,.09);
  border-radius:12px;
  background:#f7f9fd;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature :is(h4,h3).tl-ti-feature-title {
  margin:0 0 9px !important;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature p.tl-ti-feature-desc {
  margin:0 !important;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-closing {
  box-sizing:border-box;
  order:1;
  flex:0 0 auto;
  width:auto;
  margin:22px 34px 32px !important;
  padding:17px 20px;
  border-radius:10px;
  line-height:1.55;
}

/* Previews saem do fluxo da linha ativa apenas no desktop.
 * No tablet/mobile ficam em 2 colunas abaixo da ficha central e
 * permanecem acionáveis com touch, sem as antigas setas. */
@media (min-width:768px) and (max-width:959px) {
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-stage {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:auto auto;
    column-gap:14px;
    row-gap:18px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-details-list.wp-block-group {
    grid-column:1/-1;
    grid-row:1;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview-prev {
    grid-column:1;
    grid-row:2;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview-next {
    grid-column:2;
    grid-row:2;
  }
}

@media (max-width:767px) {
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-stage {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:auto auto;
    align-items:stretch;
    column-gap:12px;
    row-gap:14px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-details-list.wp-block-group {
    grid-column:1/-1;
    grid-row:1;
    min-width:0;
    min-height:0;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open] {
    min-height:0;
    border-radius:16px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail > summary {
    padding:22px 20px 12px;
    font-size:19px;
    line-height:1.3;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-top.wp-block-group {
    padding:0 20px 18px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature-grid.wp-block-group {
    grid-template-columns:minmax(0,1fr);
    margin:0 18px !important;
    padding-top:14px;
    gap:9px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature.wp-block-group,
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature.wp-block-group:first-child {
    min-height:0;
    padding:14px 16px;
    border-radius:10px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-closing {
    margin:16px 18px 22px !important;
    padding:15px 16px;
    font-size:13.5px;
    line-height:1.55;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview {
    display:flex;
    grid-row:2;
    min-width:0;
    min-height:148px;
    align-self:stretch;
    padding:17px 15px;
    border-radius:13px;
    opacity:1;
    transform:none;
    touch-action:manipulation;
    overflow-wrap:anywhere;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview-prev {
    grid-column:1;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview-next {
    grid-column:2;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview img {
    width:36px;
    height:36px;
    padding:9px;
    margin-bottom:10px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview strong {
    font-size:13px;
    line-height:1.3;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview small {
    font-size:11px;
    line-height:1.4;
    margin-top:6px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview:is(:hover,:focus-visible) {
    transform:translateY(-2px);
  }
}
@media (max-width:380px) {
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-stage {
    gap:9px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview {
    padding:13px 11px;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-carousel-preview small {
    display:none;
  }
}

/* Assistência: prova/indicadores NÃO devem sobrepor os CTAs. A sombra leve
 * substitui o contorno externo escuro que aparecia em 1110px. */
@media (min-width:768px) and (max-width:1179px) {
  body.wp-theme-technolife .tl-a-main .tl-a-hero.wp-block-group {
    display:flex;
    flex-direction:column;
    height:auto;
    min-height:0;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-hero .tl-a-proof.wp-block-group {
    position:relative;
    inset:auto;
    z-index:4;
    align-self:center;
    width:min(100%,760px);
    max-width:760px;
    margin:42px auto 0 !important;
    border:1px solid rgba(58,67,134,.1);
    box-shadow:0 12px 28px rgba(28,40,91,.07);
    outline:0;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-proof > .tl-a-proof-item.wp-block-group {
    box-shadow:none;
    outline:0;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-proof > .tl-a-proof-item.wp-block-group::before {
    display:none;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-hero-actions.wp-block-buttons {
    position:relative;
    z-index:3;
  }
}
@media (max-width:767px) {
  body.wp-theme-technolife .tl-a-main .tl-a-hero.wp-block-group {
    display:flex;
    flex-direction:column;
    min-height:0;
    height:auto;
    padding-bottom:40px;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-hero .tl-a-proof.wp-block-group {
    position:relative;
    inset:auto;
    display:grid;
    align-self:center;
    order:2;
    width:100%;
    max-width:460px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0;
    margin:28px auto 0 !important;
    border:1px solid rgba(58,67,134,.1);
    box-shadow:0 12px 28px rgba(28,40,91,.07);
    outline:0;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-hero > .tl-a-hero-copy.wp-block-group {
    order:1;
    align-self:center;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-hero-actions.wp-block-buttons {
    position:relative;
    z-index:3;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-proof > .tl-a-proof-item.wp-block-group {
    box-shadow:none;
    outline:0;
    min-width:0;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-proof > .tl-a-proof-item.wp-block-group::before {
    display:none;
  }
}

/* CONV-01F R4 / LOCAL-002(1) #1: alinhar cada indicador ao centro
 * em mobile, com quebra de linha e altura uniforme no grid 2×2. */
@media (max-width:767px) {
  body.wp-theme-technolife .tl-a-main .tl-a-hero .tl-a-proof.wp-block-group {
    align-items:stretch;
    justify-items:stretch;
    grid-auto-rows:minmax(136px,auto);
  }
  body.wp-theme-technolife .tl-a-main .tl-a-proof > .tl-a-proof-item.wp-block-group {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    width:100%;
    min-width:0;
    min-height:136px;
    padding:18px 12px;
    gap:12px;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-proof-item > .tl-a-proof-icon.wp-block-image {
    flex:0 0 44px;
    align-self:center;
    margin:0 auto !important;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-proof p.tl-a-proof-label {
    display:block;
    width:100%;
    max-width:100%;
    margin:0 auto !important;
    color:#252e58;
    font-size:13px;
    line-height:1.4;
    font-weight:720;
    white-space:normal;
    overflow-wrap:break-word;
    text-align:center;
  }
}
@media (max-width:380px) {
  body.wp-theme-technolife .tl-a-main .tl-a-proof > .tl-a-proof-item.wp-block-group {
    padding-inline:9px;
  }
  body.wp-theme-technolife .tl-a-main .tl-a-proof p.tl-a-proof-label {
    font-size:12px;
  }
}
