/* ITQF — Etapa 3 | Ajustes mobile, cartões e estabilidade visual | 19/10/2026
   Apenas apresentação; não modifica WooCommerce, dados ou motores científicos. */
@media(max-width:767px){
 body.page-id-192 .elementor-192 .elementor-element-cac450d{padding:18px 18px 12px!important;min-height:0!important;margin:0!important;}
 body.page-id-192 .elementor-192 .elementor-element-cce328b{padding-top:0!important;margin-top:0!important;}
 body.page-id-192 .elementor-192 .elementor-element-9a24e70{padding:0 18px 28px!important;}
 body.page-id-192 .elementor-192 .elementor-element-04fcfa9{padding:26px 18px 14px!important;}
 body.page-id-192 .elementor-192 .elementor-element-e5ad42c{padding:28px 18px 12px!important;}
 body.page-id-192 .elementor-192 .elementor-element-cac450d .elementor-widget-heading{margin:0!important;}
 body.page-id-192 .elementor-192 .elementor-element-ba68716 .elementor-heading-title,
 body.page-id-192 .elementor-192 .elementor-element-7a6a4d8 .elementor-heading-title{font-size:clamp(24px,6.4vw,28px)!important;line-height:1.23!important;letter-spacing:-.035em!important;overflow-wrap:break-word;}
 body.page-id-192 .elementor-192 .elementor-element-5d21830 .elementor-heading-title{font-size:14px!important;line-height:1.7!important;color:#526d80!important;}
 body.page-id-192 .elementor-192 .elementor-element-326f554{min-height:0!important;}
}
@media(min-width:768px) and (max-width:1024px){
 body.page-id-192 .elementor-192 .elementor-element-cac450d{padding-top:26px!important;}
 body.page-id-192 .elementor-192 .elementor-element-04fcfa9{padding-top:32px!important;}
}
@media(min-width:1025px){
 body.page-id-192 .elementor-192 .elementor-element-cac450d{padding-top:30px!important;}
}
/* Reservar espaço para imagens do catálogo que o Elementor imprime sem width/height. */
body .elementor-1169 .elementor-element-93deeb5,
body .elementor-1169 .elementor-element-93deeb5 .elementor-widget-container,
body .elementor-1169 .elementor-element-93deeb5 a{display:block!important;width:100%!important;min-width:0!important;aspect-ratio:3/2!important;overflow:hidden!important;}
body .elementor-1169 .elementor-element-93deeb5 img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;object-position:center!important;}
body.page-id-192 .elementor-image-carousel .swiper-slide-inner{display:block;aspect-ratio:300/169;overflow:hidden;}
body.page-id-192 .elementor-image-carousel .swiper-slide-image{display:block;width:100%!important;height:100%!important;object-fit:cover;}
body.page-id-192 .itqf-tools-editorial-image{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;}
body.page-id-192 .itqf-partner-logo img{display:block;max-width:100%;max-height:75px;height:auto;object-fit:contain;}
.elementor-location-header .elementor-widget-theme-site-logo img{display:block;height:auto;aspect-ratio:1080/608;object-fit:contain;}
/* Imagens WebP servidas no banner, com URLs relativas para a futura migração. */
@media (min-width:768px) {
 body.page-id-192 .elementor-192 .elementor-element-326f554,
 body.page-id-192 .elementor-192 .elementor-element-326f554:not(.elementor-motion-effects-element-type-background){
   background-image:linear-gradient(90deg,rgba(2,23,44,.96) 0%,rgba(2,23,44,.82) 34%,rgba(2,23,44,.30) 67%,rgba(2,23,44,.02) 100%),url("/wp-content/uploads/2026/10/itqf-home-hero-desktop-optimized.webp")!important;
 }
}
@media (max-width:767px) {
 body.page-id-192 .elementor-192 .elementor-element-326f554,
 body.page-id-192 .elementor-192 .elementor-element-326f554:not(.elementor-motion-effects-element-type-background){
   background-image:linear-gradient(90deg,rgba(2,23,44,.94) 0%,rgba(2,23,44,.88) 52%,rgba(2,23,44,.54) 100%),url("/wp-content/uploads/2026/10/itqf-home-hero-mobile-optimized.webp")!important;
 }
}
/* Etapa 3 — impedir transbordamento de conteúdo nos cursos e no Studio mobile. */
@media(max-width:767px){
 body.single-itqf-programa .itqf-training-hero .itqf-hero-grid,
 body.single-itqf-curso .itqf-training-hero .itqf-hero-grid,
 body .itqf-training .itqf-training-hero .itqf-hero-grid{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;
   min-width:0!important;gap:18px!important;margin-left:auto!important;margin-right:auto!important;
 }
 body .itqf-training .itqf-training-hero .itqf-hero-copy,
 body .itqf-training .itqf-training-hero .itqf-price-card{
   min-width:0!important;max-width:100%!important;width:100%!important;
 }
 body .itqf-training .itqf-training-hero .itqf-hero-sub,
 body .itqf-training .itqf-training-hero h1{
   max-width:100%!important;width:100%!important;
   white-space:normal!important;overflow-wrap:break-word!important;
 }
 body .itqf-training .itqf-training-hero .itqf-price-card .itqf-btn{max-width:100%!important;width:100%!important;white-space:normal!important;}
 body.page-id-2567 #itqf-workspace-nav{display:none!important;}
 body.page-id-2567 #itqf-chrom-workspace{width:calc(100% - 26px)!important;max-width:calc(100% - 26px)!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;}
 body.page-id-2567 #itqf-chrom-workspace,
 body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-top,
 body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-module-panel,
 body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-frame,
 body.page-id-2567 .itqf-cs{
   box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
 }
 body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-top p,
 body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-panel-note{
   max-width:100%!important;white-space:normal!important;overflow-wrap:break-word!important;
 }
 body.page-id-2567 #itqf-chrom-workspace input,
 body.page-id-2567 #itqf-chrom-workspace textarea,
 body.page-id-2567 #itqf-chrom-workspace select{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;}
 body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-module-panel{overflow:hidden!important;}
}
/* Largura mobile baseada no viewport, independente de templates externos. */
@media(max-width:767px){
 html body.single-programa .itqf-training-hero .itqf-wrap.itqf-hero-grid,
 html body.single-curso .itqf-training-hero .itqf-wrap.itqf-hero-grid{
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;
  min-width:0!important;gap:18px!important;margin-left:auto!important;margin-right:auto!important;
 }
 html body.single-programa .itqf-training-hero .itqf-hero-copy,
 html body.single-curso .itqf-training-hero .itqf-hero-copy,
 html body.single-programa .itqf-training-hero .itqf-price-card,
 html body.single-curso .itqf-training-hero .itqf-price-card{
  display:block!important;box-sizing:border-box!important;
  width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;
  min-width:0!important;margin-left:0!important;margin-right:0!important;
 }
 html body.single-programa .itqf-training-hero .itqf-hero-sub,
 html body.single-curso .itqf-training-hero .itqf-hero-sub{
  display:block!important;box-sizing:border-box!important;
  width:calc(100vw - 32px)!important;max-width:calc(100vw - 32px)!important;
  min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;
 }
 html body.single-programa .itqf-training-hero .itqf-price-card,
 html body.single-curso .itqf-training-hero .itqf-price-card{padding:22px 20px!important;}
 html body.page-id-2567 #itqf-chrom-workspace{
  box-sizing:border-box!important;display:block!important;
  width:calc(100vw - 26px)!important;max-width:calc(100vw - 26px)!important;
  min-width:0!important;margin:0 auto!important;
 }
 html body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-top p,
 html body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-top strong{
  width:calc(100vw - 48px)!important;max-width:calc(100vw - 48px)!important;
  min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;
 }
 html body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-tabs,
 html body.page-id-2567 #itqf-chrom-workspace .itqf-chrom-module-panel{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
 }
}
/* Navegação por teclado e legibilidade consistente. */
body .skip-link:focus,body a.skip-link:focus,body .screen-reader-text:focus{clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;position:fixed!important;top:12px!important;left:12px!important;z-index:999999!important;background:#fff!important;color:#083858!important;border:2px solid #149bc3!important;padding:10px 16px!important;border-radius:7px!important;overflow:visible!important;}
.elementor-location-header button:focus-visible,.elementor-location-header a:focus-visible,body.page-id-192 .elementor-button:focus-visible{outline:3px solid #25b9dd!important;outline-offset:3px!important;}
@media(prefers-reduced-motion:reduce){body.page-id-192 *,body.page-id-192 *::before,body.page-id-192 *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important;}}
