/*
Theme Name: Caltta Tianxing
Theme URI: https://caltta.cloud.localinfra.com.br
Description: Clone fiel e nativo do front-end original de en.caltta.com para WordPress com catálogo profissional DMR, PoC e ATEX da Caltta Brasil.
Author: Localinfra
Author URI: https://localinfra.com.br
Version: 1.0.0
Text Domain: caltta-tianxing
*/

/* Reset & WordPress Core Compatibility */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Microsoft Yahei", sans-serif;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* Fix WP admin bar if active */
body.admin-bar header.no_home {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header.no_home {
        top: 46px;
    }
}

/* Internal pages generic container */
.sep-main-content {
    min-height: 55vh;
    padding: 50px 0 80px;
}
.sep-main-content .entry-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #131d26;
}
.sep-main-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Ensure fontawesome webfonts render */
.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Mega menu dropdown fixes */
.sec_nav {
    display: none;
}
.nav_href:hover .sec_nav {
    display: block;
}

/* Section Two: Hot PMR Radios product cards */
.sep_section_two .swiper-slide {
    text-decoration: none;
}
.sep_section_two .swiper-slide .block.gtj-img {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}
.sep_section_two .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}
.sep_section_two .swiper-slide .title {
    padding: 10px 12px;
    line-height: 1.3;
}

/* Section One and Three Tabs */
.sep_section_one .one_thumb .item,
.sep_section_three .two_thumb .item {
    text-decoration: none;
    cursor: pointer;
}
.sep_section_one .one_thumb .item span,
.sep_section_three .two_thumb .item span {
    text-decoration: none;
}


/* Stage 1: footer, article compatibility and narrow-screen repairs. */
footer .footer_up { grid-template-columns:repeat(5,minmax(0,1fr)); gap:30px; }
footer .footer_up > div { min-width:0; }
footer .footer_up .height_light ~ a { line-height:1.6; margin-bottom:8px; }
footer .footer_center > .grid { grid-template-columns:minmax(220px,1fr) minmax(285px,1.2fr) minmax(0,1.6fr); height:auto; gap:24px; padding:16px 0 36px; }
footer .footer_center > .grid > .flex { align-items:flex-start; min-width:0; }
footer .footer_center > .grid .flex .iconfont { flex-shrink:0; margin-right:14px; }
footer .footer_center > .grid .flex div { min-width:0; overflow-wrap:anywhere; }
footer .footer_bottom .sep-container { height:auto; min-height:70px; gap:12px; flex-wrap:wrap; padding-top:12px; padding-bottom:12px; }
footer .footer_bottom .privacy-pending { color:rgba(255,255,255,.6); font-size:15px; }
.mc_footer .mp_contact .mp_text { overflow-wrap:anywhere; }
.mc_footer .mp_contact .frend { gap:16px; padding-bottom:16px; }
.mc_footer .mp_contact .frend .iconfont { width:44px; height:44px; line-height:44px; margin:0; }
.mc_footer .mp_footer_nav .so_title_box a { white-space:normal; line-height:1.6; padding:10px 0; }
.mc_footer .under_footer { padding-bottom:80px; }
.nav_href:focus-within .sec_nav { display:block !important; }
#solucoes, #segmentos { scroll-margin-top:90px; }
.sep-main-content .entry-header { position:static; display:block; width:auto; height:auto; background:none; }
.sep-main-content .entry-content { overflow-wrap:anywhere; }
.sep-main-content .caltta-section { --c-primary:#0b8dd7; --c-dark:#1e2c39; --c-white:#fff; --c-gray-50:#f7f8fa; --c-gray-200:#e0e4e8; --c-gray-600:#555; --c-radius-lg:8px; --c-shadow-sm:0 2px 8px rgba(0,0,0,.04); }
.sep-main-content .caltta-sec-header { margin-bottom:28px; }
.sep-main-content .caltta-sec-title { font-size:28px; line-height:1.4; margin:12px 0; color:#1e2c39; }
.sep-main-content .caltta-container { max-width:100%; }
.sep-main-content .caltta-btn-accent, .sep-main-content .caltta-btn-secondary { display:inline-block; padding:12px 18px; border:1px solid #0b8dd7; color:#0877b7; line-height:1.5; }
.sep-main-content .caltta-btn-accent { background:#0b8dd7; color:#fff; }
.caltta-download-pending { display:block; padding:12px; color:#555; }
.sep-home-fixed-boxs1 iframe { width:100%; height:min(56.25vw,70vh); display:block; }
.sep-home-fixed-boxs1 .fixed-boxs { max-width:1000px; width:90%; }
.sep-home-fixed-boxs1 .i-boxs { cursor:pointer; }
a:focus-visible, [role="button"]:focus-visible, button:focus-visible { outline:2px solid #0b8dd7; outline-offset:4px; }
@media (max-width:1024px) {
  footer .footer_center > .grid { grid-template-columns:1fr 1fr; }
  footer .footer_center > .grid > :last-child { grid-column:1 / -1; }
}
@media (max-width:812px) {
  .sep-main-content { padding:20px 0 40px; }
  .sep-main-content > .sep-container { padding:24px 20px !important; }
  .sep-main-content .entry-content .caltta-container > div[style*="grid-template-columns"] { grid-template-columns:minmax(0,1fr) !important; gap:24px !important; }
  .sep-main-content .entry-content .caltta-container > div[style*="grid-template-columns"] > div { min-width:0; padding:24px !important; }
  .sep-main-content .entry-title { font-size:28px !important; }
  .sep_section_one .swiper_box .swiper-slide { height:auto; min-height:650px; padding:40px 0 110px; background:#02072a; }
  .sep_section_one .swiper_box .swiper-slide > img { width:100%; height:100%; min-height:0; object-fit:cover; object-position:right; opacity:.32; }
  .sep_section_one .swiper .swiper-slide .sep-container.up p { font-size:16px; line-height:1.7; }
  .sep_section_one .swiper .swiper-slide .sep-container.up .title { margin-bottom:20px; }
  .sep_section_one .swiper .swiper-slide .sep-container.up .flex { margin:24px 0; }
  .sep_section_three .swiper-slide { height:auto; min-height:650px; padding:45px 0 120px; background:#02072a; }
  .sep_section_three .swiper-slide > img { height:100%; object-fit:cover; opacity:.45; }
  .sep_section_three .swiper .sep-container::before { display:none; }
  .sep_section_three .swiper .sep-container .title { font-size:28px; margin-bottom:24px; }
  .sep_section_three .swiper .sep-container p { font-size:16px; line-height:1.7; }
  .sep_section_three .swiper .sep-container .last_btn { margin-top:30px; }
  .sep_section_three .boxs.sep-container { width:100%; }
  .sep-menu-box .bottom { overscroll-behavior:contain; }
}

@media (max-width:812px) {
  body.caltta-menu-open { overflow:hidden; }
  body.caltta-menu-open .sep-onlineservice { visibility:hidden; }
}

/* Native catalogue and inquiry — Caltta Tianxing */
.caltta-catalog{padding-top:40px;padding-bottom:70px;color:#1e2c39}.catalog-breadcrumb{font-size:13px;margin-bottom:28px;line-height:1.8}.caltta-catalog h1{font-size:34px;line-height:1.3;margin-bottom:28px;font-weight:600}.catalog-lines{display:flex;flex-wrap:wrap;gap:12px 24px;padding:20px 0 32px;border-top:1px solid #ddd}.catalog-lines a{font-size:14px;padding:6px 0}.catalog-lines a:hover,.catalog-lines [aria-current]{color:#0875b4;text-decoration:underline}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.catalog-card{background:#f7f8fa;min-width:0}.catalog-card a{display:block;padding:20px;height:100%}.catalog-card img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff}.catalog-card h2{font-size:16px;line-height:1.4;margin:18px 0 4px;font-weight:600}.catalog-card-subtitle{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5;color:#55606b;margin:0 0 10px}.catalog-card-cta{color:#0875b4;font-size:14px}.catalog-card:hover{background:#eef4f8}.caltta-family-intro{margin-bottom:28px}.caltta-family-intro img{width:100%;max-height:280px;object-fit:cover;border-radius:4px;margin-bottom:20px;display:block}.caltta-family-intro-text p{font-size:16px;line-height:1.8;color:#444;max-width:900px;margin:0}.caltta-catalog .caltta-landing-index-grid{max-width:none;margin:0;padding:0 0 36px}.product-intro{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}.product-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.product-gallery a:first-child{grid-column:1/-1}.product-gallery img{width:100%;max-height:480px;object-fit:contain}.product-summary{line-height:1.8;margin:24px 0}.catalog-button{display:inline-block;background:#0875b4;color:#fff!important;padding:15px 28px;border:0;cursor:pointer;font:inherit;line-height:1.5}.catalog-button:hover{background:#075d8d}.catalog-pdf{display:block;margin-top:24px;text-decoration:underline;color:#0875b4}.product-description{margin:60px 0;line-height:1.8;overflow-wrap:anywhere}.product-description h2,.caltta-inquiry h2{font-size:28px;font-weight:600;margin:0 0 20px}.product-description table{width:100%;border-collapse:collapse;font-size:14px}.product-description th,.product-description td{padding:12px;text-align:left;border-bottom:1px solid #ddd}.product-description h3{margin:30px 0 16px}.caltta-inquiry{margin-top:60px;padding:40px;background:#f5f7f9;scroll-margin-top:110px;color:#1e2c39}.caltta-inquiry p{line-height:1.7;margin-bottom:24px}.inquiry-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.inquiry-grid label{display:block;font-size:14px;line-height:1.7}.inquiry-grid input:not([type=checkbox]),.inquiry-grid textarea{display:block;width:100%;min-width:0;background:#fff;border:1px solid #89939c;padding:12px;color:#1e2c39;font:inherit;margin-top:6px;border-radius:0}.inquiry-wide{grid-column:1/-1}.inquiry-grid .inquiry-consent{display:flex;gap:12px;align-items:start}.inquiry-consent input{width:20px;height:20px;flex-shrink:0;margin-top:3px}.inquiry-trap{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}.inquiry-note{font-size:12px;margin:12px 0 0!important}.inquiry-error{color:#9b1c1c}.inquiry-status{color:#166534}.caltta-catalog :focus-visible,.caltta-inquiry :focus-visible{outline:3px solid #0875b4;outline-offset:4px}
@media(max-width:900px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-intro{gap:28px}.caltta-catalog h1{font-size:28px}}
@media(max-width:600px){.caltta-catalog{padding:24px 20px 48px}.product-intro,.inquiry-grid{grid-template-columns:1fr}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.catalog-card a{padding:10px}.catalog-card h2{font-size:14px;margin:12px 0 4px}.catalog-card-subtitle{font-size:12px;-webkit-line-clamp:2}.caltta-inquiry{padding:24px 18px;margin-top:36px}.caltta-catalog h1{font-size:25px}.product-description{margin:36px 0}.product-description th,.product-description td{padding:8px;font-size:12px}.catalog-lines{gap:8px 18px}.product-gallery img{max-height:330px}.caltta-family-intro img{max-height:180px}.caltta-catalog .caltta-landing-index-grid{grid-template-columns:1fr}.inquiry-grid input:not([type=checkbox]),.inquiry-grid textarea{font-size:16px}}

/* Setores & Soluções landing pages (Etapa 3a) */
.caltta-landing-banner{position:relative;height:420px;overflow:hidden;background:#1e2c39}
.caltta-landing-banner img{width:100%;height:100%;object-fit:cover;display:block}
.caltta-landing-banner .caltta-landing-caption{position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,20,32,.15) 0%,rgba(11,20,32,.72) 100%);display:flex;flex-direction:column;justify-content:center;padding:0 60px;color:#fff}
.caltta-landing-caption .catalog-breadcrumb{color:#d7e4ee;margin-bottom:14px}
.caltta-landing-caption .catalog-breadcrumb a{color:#d7e4ee}
.caltta-landing-caption h1{font-size:40px;font-weight:700;margin:0 0 14px;max-width:780px;line-height:1.25;color:#fff}
.caltta-landing-caption p{font-size:17px;max-width:640px;line-height:1.6;color:#e7edf2}
.caltta-landing-body{max-width:1100px;margin:0 auto;padding:56px 20px}
.caltta-landing-index .caltta-landing-body{padding-bottom:0}
.caltta-landing-products>h2{font-size:24px;font-weight:600;margin:0 0 24px}
.caltta-landing-cta{text-align:center;padding:50px 20px;background:#f5f7f9;margin-top:50px}
.caltta-landing-index-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;max-width:1200px;margin:0 auto;padding:40px 20px 70px}
.caltta-landing-index-card{position:relative;overflow:hidden;min-height:220px;display:block;background:#1e2c39}
.caltta-landing-index-card img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.caltta-landing-index-card span{position:relative;z-index:1;display:flex;align-items:flex-end;height:100%;min-height:220px;padding:18px;color:#fff;font-weight:600;font-size:16px;line-height:1.3;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.68) 100%)}
.caltta-landing-index-card:hover span{background:linear-gradient(180deg,rgba(0,0,0,0) 20%,rgba(8,117,180,.75) 100%)}
@media(max-width:900px){.caltta-landing-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.caltta-landing-caption{padding:0 36px}}
@media(max-width:600px){.caltta-landing-banner{height:300px}.caltta-landing-caption{padding:0 22px}.caltta-landing-caption h1{font-size:26px}.caltta-landing-caption p{font-size:15px}.caltta-landing-body{padding:36px 20px}.caltta-landing-index-grid{grid-template-columns:1fr;padding:12px 20px 48px;gap:16px}.caltta-landing-index-card,.caltta-landing-index-card span{min-height:180px}.caltta-landing-cta{padding:36px 20px}}

/* Lote A: original navigation hierarchy and product classes, scoped WP adapters. */
header .nav_href.pro .sec_nav .grid{grid-template-columns:32% 22% 46%}
header .nav_href.pro .sec_nav{max-height:calc(100vh - 100px);overflow-y:auto}
header .nav_href.pro .sec_nav a{white-space:normal;overflow-wrap:anywhere}
.sep-menu-box .menu-item li>.box{display:flex;align-items:center;justify-content:space-between}
.sep-menu-box .menu-item li>.box>a{flex:1;min-width:0;white-space:normal}
.sep-menu-box .menu-item li>.box>i{flex:none;min-width:36px;min-height:36px;cursor:pointer}
.sep-menu-box .menu-item li>ul{display:none;padding-left:12px}
.sep-menu-box .menu-item li.active>ul{display:block}
.sep-menu-box .menu-item li>.box>i:before{content:'\f107';font-family:FontAwesome}
.sep-menu-box .menu-item li.active>.box>i:before{content:'\f106'}
.caltta-product-detail .catalog-breadcrumb{padding-top:24px}
.caltta-product-detail .detail_swiper .lt_swiper{min-width:0;max-width:55%}
.caltta-product-detail .detail_swiper .gallery{min-width:0;flex:1}
.caltta-product-detail .detail_swiper img{height:100%;object-fit:contain}
.caltta-product-detail .detail_swiper .thumb{flex:none;margin-right:20px}
.caltta-product-detail .sep_content.wids{width:100%;min-width:0}
.caltta-product-detail .detail_type{position:sticky;top:80px;z-index:10;background:#f6f6f6}
.caltta-product-detail .detail_type .flex{font-size:20px;padding:10px}
.caltta-product-detail .item>h2{font-size:30px;margin-bottom:30px;line-height:1.3}
.caltta-product-detail .caltta-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.caltta-product-detail .caltta-feature-grid h3{font-size:20px;margin:12px 0}
.caltta-product-detail .caltta-feature-grid p{line-height:1.7}
.caltta-product-detail .caltta-feature-grid img{max-width:100%;max-height:180px;object-fit:contain}
.caltta-product-detail .caltta-feature-grid .feature-icon{width:48px;height:48px}
.caltta-product-detail .over-tabs{overflow:auto}
.caltta-product-detail table{width:100%;border-collapse:collapse}
.caltta-product-detail th,.caltta-product-detail td{border:1px solid #ddd;text-align:left;padding:14px;vertical-align:top;overflow-wrap:anywhere}
.caltta-product-detail .firstRow th{background:#f6f6f6}
.caltta-product-detail .caltta-pending{color:#555;line-height:1.7}
.total_contact .consent-row{color:#fff;font-size:14px;line-height:1.6;align-items:flex-start;gap:10px;background:transparent}
.total_contact .consent-row input{width:18px;height:18px;margin-top:3px;flex:none}
.total_contact .inquiry-status{color:#9ee6a8;margin-top:10px}
.total_contact .inquiry-error{color:#ffb4b4;margin-top:10px}
@media(max-width:1024px){header .header_down>.nav_href>.re{font-size:14px}.caltta-product-detail .detail_type{top:65px}}
@media(max-width:768px){
.caltta-product-detail .detail_swiper{display:block;padding:30px 0}
.caltta-product-detail .detail_swiper .lt_swiper{width:100%;max-width:100%;height:320px}
.caltta-product-detail .detail_swiper .thumb{width:75px;margin-right:12px}
.caltta-product-detail .detail_swiper .text{padding:30px 0 0}
.caltta-product-detail .detail_swiper h1{font-size:28px;line-height:1.3}
.caltta-product-detail .detail_type{top:60px;overflow-x:auto;flex-wrap:nowrap}
.caltta-product-detail .detail_type .flex{font-size:15px;min-width:120px}
.caltta-product-detail .type_box{margin-top:30px}
.caltta-product-detail .caltta-feature-grid{grid-template-columns:1fr}
.caltta-product-detail .item>h2{font-size:24px}
.caltta-product-detail .detail_pdf .title{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.caltta-product-detail .detail_pdf{padding-left:60px}
}

/* Lote A3: desktop top-nav single-line fix — nowrap keeps each label on one line inside the fixed 80px header; font-size restored to the theme default (20px) now that the PT-BR labels are literal translations, same length as the EN originals. */
header .header_down{flex-wrap:nowrap}
header .header_down>.nav_href>a.re{white-space:nowrap}
header .header_down #top-partner a.ccc{white-space:nowrap}
/* Lote B (2026-10-07): coluna 1 do mega-menu Produtos (.scdone) com 6 itens -
   "Comunicacoes de Emergencia" e "Comunicacoes Unificadas" quebram em 2 linhas
   em PT-BR; altura nativa de 300px cortava os 2 ultimos itens (Unificadas/5G). */
header .sep-container .header_down .nav_href .sec_nav .grid .scdone{max-height:370px;overflow-y:visible}
/* Lote B2 (2026-10-08): coluna 1 (.scdone) alargada de 24% para 32% (col2 28%->22%, col3 48%->46%) para caber "Comunicacoes de Emergencia"/"Comunicacoes Unificadas" em uma linha sem quebra, medido via Playwright (scrollWidth<=width nos 6 itens, col2/col3 sem overflow). */
header .sep-container .header_down .nav_href .sec_nav .grid .scdone a{white-space:nowrap}
