/* Template: Tubos Estruturais (page-tubos-estruturais.php)
   Base 1rem = 10px (chlebalize). Classes com prefixo te- e sem "flex" no nome,
   porque o chlebalize aplica display:flex em [class*="flex"]. */

.te-page { color: var(--dark); }
.te-page p, .te-page li, .te-page a, .te-page span, .te-page td, .te-page th { font-size: 1.6rem; line-height: 1.6; }
.te-page [id] { scroll-margin-top: 14rem; }
.te-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botões (complementa .button do tema) */
.te-page .button { font-size: 1.5rem; padding: 1.3rem 2.6rem; display: inline-block; text-align: center; }
.te-page .button:hover { opacity: .88; }
.te-page .button--branco { border-color: #fff; color: #fff; }
.te-page .button--branco-cheio { background-color: #fff; border-color: #fff; color: var(--vermelho); }
.te-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 3.2rem; }
.te-actions--end { justify-content: flex-end; }

/* Hero */
.te-hero { position: relative; min-height: 56rem; display: flex; align-items: center; background-color: var(--dark); overflow: hidden; }
.te-hero picture { position: absolute; inset: 0; }
.te-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.te-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.7) 45%, rgba(20,20,20,.1) 80%); }
.te-hero__content { position: relative; z-index: 1; padding-top: 8rem; padding-bottom: 8rem; }
.te-eyebrow { color: #fff; text-transform: uppercase; letter-spacing: .2rem; font-weight: 500; font-size: 1.4rem !important; display: inline-block; border-left: 4px solid var(--vermelho); padding-left: 1.2rem; margin-bottom: 2rem; }
.te-hero__title { color: #fff; text-transform: uppercase; font-size: 5.2rem; line-height: 1.05; font-weight: 700; max-width: 62rem; }
.te-hero__title span { display: inline-block; margin-top: 1.4rem; background-color: var(--vermelho); color: #fff; font-size: 2.6rem; padding: .6rem 1.6rem; line-height: 1.3; }
.te-hero__lead { color: #fff; font-size: 1.9rem !important; max-width: 56rem; margin-top: 2.4rem; }

/* Navegação de âncoras */
.te-anchors { border-bottom: 1px solid #e3e3e3; background: #fff; }
.te-anchors__list { display: flex; flex-wrap: wrap; gap: 3.6rem; min-height: 6rem; align-items: center; }
.te-anchors__list a { font-weight: 500; font-size: 1.5rem; text-transform: uppercase; padding: 1.8rem 0; border-bottom: 3px solid transparent; }
.te-anchors__list a:hover { color: var(--vermelho); border-bottom-color: var(--vermelho); }

/* Seções */
.te-section { padding: 8.8rem 0; }
.te-section--cinza { background-color: var(--cinza); }
.te-section--dark { background-color: var(--dark); color: #fff; }
.te-head { max-width: 76rem; margin-bottom: 4.8rem; }
.te-title { font-size: 3.2rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--vermelho); }
.te-section--dark .te-title { color: #fff; }
.te-text { margin-top: 1.6rem; font-size: 1.8rem !important; color: #444; }
.te-section--dark .te-text { color: #d6d6d6; }
.te-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6rem; align-items: center; }
.te-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* Grids e cards */
.te-grid { display: grid; gap: 2.4rem; }
.te-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.te-card { background: #fff; padding: 3.2rem; border-top: 4px solid var(--vermelho); }
.te-card__icon { width: 6.4rem; height: 6.4rem; margin-bottom: 2rem; }
.te-card__title { font-size: 1.9rem; font-weight: 700; text-transform: uppercase; color: var(--vermelho); margin-bottom: 1rem; }
.te-card__text { color: #444; }

.te-market { border: 1px solid #e3e3e3; background: #fff; }
.te-market__img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.te-market__body { position: relative; padding: 2.4rem 2.8rem 2.8rem 4.4rem; }
.te-market__body::before { content: ''; position: absolute; left: 2rem; top: 2.6rem; width: 4px; height: 2.6rem; background: var(--vermelho); transform: skewX(-20deg); }
.te-market__title { font-size: 1.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: .8rem; }
.te-market__text { color: #444; }

/* Portfólio */
.te-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-bottom: 4.8rem; }
.te-spec { border: 1px solid #555; padding: 2.4rem; }
.te-spec__label { display: block; color: #c8c8c8; font-size: 1.4rem !important; text-transform: uppercase; letter-spacing: .1rem; }
.te-spec__value { display: block; font-size: 2.4rem; margin-top: .6rem; color: #fff; }

.te-matrices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem; align-items: start; }
.te-matrix__title { font-size: 2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.6rem; }
.te-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.te-table { width: 100%; border-collapse: collapse; background: #fff; color: var(--dark); }
.te-table th, .te-table td { padding: .9rem 1rem; border: 1px solid #d9d9d9; font-size: 1.4rem !important; text-align: center; white-space: nowrap; }
.te-table thead th { background: #23364a; color: #fff; font-weight: 500; border-color: #23364a; }
.te-table tbody tr:nth-child(even) { background: #f3f5f7; }
.te-table tbody th { font-weight: 700; text-align: left; }
.te-table td.is-on { color: var(--vermelho); font-size: 1.2rem !important; }
.te-table--list td:last-child { text-align: left; }
.te-note { margin-top: 1rem; font-size: 1.3rem !important; color: #8a8a8a; font-style: italic; }
.te-section--dark .te-note { color: #bdbdbd; }

.te-details { margin-top: 3.2rem; border: 1px solid #555; }
.te-details summary { cursor: pointer; padding: 1.8rem 2.4rem; font-weight: 500; font-size: 1.6rem; text-transform: uppercase; }
.te-details summary:hover { color: var(--vermelho); }
.te-details[open] summary { border-bottom: 1px solid #555; }
.te-details .te-table-wrap { max-height: 60rem; overflow: auto; }

.te-highlight { margin-top: 4rem; border-left: 4px solid var(--vermelho); padding: 2rem 2.8rem; background: rgba(255,255,255,.06); }
.te-highlight__title { font-size: 1.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: .8rem; }

/* Normas */
.te-spec-item { border-top: 4px solid var(--dark); padding-top: 2rem; }
.te-spec-item__title { font-size: 1.9rem; font-weight: 700; text-transform: uppercase; color: var(--vermelho); margin-bottom: 1rem; }
.te-quality { margin-top: 4.8rem; }

/* Contato */
.te-contact { background-color: var(--vermelho); color: #fff; }
.te-contact .te-title { color: #fff; }
.te-contact__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4.8rem; align-items: center; }
.te-contact__lead { font-size: 2.2rem !important; font-weight: 700; margin: 1.6rem 0 .8rem; }
.te-contact__list { list-style: none; margin-top: 2.4rem; display: grid; gap: .8rem; }
.te-contact__list a { font-size: 2rem; font-weight: 700; color: #fff; }
.te-slogan { margin-top: 3.2rem; font-style: italic; font-weight: 300; font-size: 2rem !important; }
.te-contact__actions { display: grid; gap: 1.2rem; }
.te-contact__actions .button { width: 100%; }

/* Responsivo */
@media screen and (max-width: 1180px) {
    .te-matrices { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 860px) {
    .te-hero { min-height: 48rem; }
    .te-hero::after { background: rgba(20,20,20,.72); }
    .te-hero__title { font-size: 3.4rem; }
    .te-hero__title span { font-size: 1.9rem; }
    .te-anchors__list { gap: 2rem; overflow-x: auto; flex-wrap: nowrap; }
    .te-anchors__list a { white-space: nowrap; font-size: 1.3rem; }
    .te-section { padding: 5.6rem 0; }
    .te-title { font-size: 2.6rem; }
    .te-split, .te-grid--3, .te-contact__inner { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .te-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .te-actions--end { justify-content: flex-start; }
}
@media screen and (max-width: 480px) {
    .te-specs { grid-template-columns: minmax(0, 1fr); }
    .te-page .button { width: 100%; }
}
