/* Telas Imperial: páginas de segmento (template-segmento.php) */

.timp-sg { background: var(--ti-bg); }
.timp-sg .timp-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 0 18px; font-size: 13.5px; color: var(--ti-muted); }
.timp-sg .timp-bc a { color: var(--ti-muted); }
.timp-sg .timp-bc a:hover { color: var(--ti-ink); text-decoration: underline; text-underline-offset: 3px; }
.timp-sg .timp-bc__sep { color: #B4BAC2; }
.timp-ico--flip { transform: rotate(180deg); }

.timp-scope .timp-sg-h2 {
	font-weight: 800; font-stretch: var(--ti-cond); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05;
	text-transform: uppercase; color: var(--ti-ink);
}
.timp-sg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.timp-sg-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ti-accent); }
.timp-sg-link:hover { color: var(--ti-ink); }
.timp-sg-link .timp-ico { width: 18px; height: 18px; }
.timp-scope .timp-sg-btn--ghost { background: #fff; border: 2px solid var(--ti-ink); color: var(--ti-ink); }
.timp-scope .timp-sg-btn--ghost:hover { background: var(--ti-ink); color: #fff; }
.timp-scope .timp-sg-btn--outline { background: transparent; border: 2px solid var(--ti-ink); color: var(--ti-ink); }
.timp-scope .timp-sg-btn--outline:hover { background: var(--ti-ink); color: #fff; }

/* Topo */
.timp-sg-hero { background: #fff; border-bottom: 1px solid var(--ti-line); padding: 26px 0 56px; }
.timp-sg-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.timp-scope .timp-sg-hero__title {
	font-weight: 800; font-stretch: var(--ti-cond); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.005em;
	text-transform: uppercase; color: var(--ti-ink);
}
.timp-scope .timp-sg-hero__lead { margin-top: 18px; max-width: 58ch; font-size: 18px; line-height: 1.6; color: var(--ti-muted); }
.timp-sg-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.timp-scope .timp-sg-hero__terms { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; padding: 0; list-style: none; font-size: 14.5px; color: var(--ti-muted); }
.timp-sg-hero__terms li { display: inline-flex; align-items: center; gap: 8px; }
.timp-sg-hero__terms .timp-ico { width: 20px; height: 20px; color: var(--ti-accent); }
.timp-sg-hero__terms strong { color: var(--ti-ink); }
.timp-sg-hero__media { margin: 0; overflow: hidden; border-radius: var(--ti-r); background: #D9DDE2; aspect-ratio: 4 / 3; box-shadow: 0 18px 40px rgba(22, 24, 27, .12); }
.timp-sg-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Conteúdo */
.timp-sg-body { padding: 64px 0; }
.timp-sg-body__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.timp-sg-prose { padding: 36px 40px; background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-r); font-size: 17px; line-height: 1.75; color: #2B3036; }
.timp-sg-prose > * + * { margin-top: 1em; }
.timp-scope .timp-sg-prose h2 {
	margin-top: 1.8em; font-weight: 800; font-stretch: var(--ti-cond); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12;
	text-transform: uppercase; color: var(--ti-ink);
}
.timp-scope .timp-sg-prose h2:first-child { margin-top: 0; }
.timp-scope .timp-sg-prose h3 { margin-top: 1.4em; font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--ti-ink); }
.timp-scope .timp-sg-prose p { padding: 0; }
.timp-sg-prose strong { color: var(--ti-ink); }
.timp-sg-prose a { color: var(--ti-accent); text-decoration: underline; text-underline-offset: 3px; }
.timp-scope .timp-sg-prose ul, .timp-scope .timp-sg-prose ol { padding: 0; list-style: none; display: grid; gap: 8px; }
.timp-sg-prose ul li { position: relative; padding-left: 28px; }
.timp-sg-prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--ti-accent); transform: rotate(45deg); }
.timp-sg-prose ol { counter-reset: timp-ol; }
.timp-sg-prose ol li { position: relative; padding-left: 40px; counter-increment: timp-ol; }
.timp-sg-prose ol li::before {
	content: counter(timp-ol); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--ti-ink); color: #fff; font-weight: 700; font-size: 14px; line-height: 1;
}
.timp-sg-prose img { max-width: 100%; height: auto; border-radius: var(--ti-r); }

.timp-sg-aside { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 92px); display: grid; gap: 16px; }
.timp-sg-card { padding: 24px; background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-r); }
.timp-scope .timp-sg-card__title { margin-bottom: 14px; font-weight: 800; font-stretch: var(--ti-cond); font-size: 22px; line-height: 1.1; text-transform: uppercase; color: var(--ti-ink); }
.timp-scope .timp-sg-points { display: grid; gap: 12px; padding: 0; list-style: none; }
.timp-sg-points li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.timp-sg-points .timp-ico { width: 20px; height: 20px; margin-top: 1px; color: var(--ti-whatsapp-btn); }
.timp-sg-card--dark { background: var(--ti-steel); border-color: var(--ti-steel); color: var(--ti-on-dark); }
.timp-scope .timp-sg-card--dark .timp-sg-card__title { color: #fff; }
.timp-scope .timp-sg-card--dark p { font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.timp-sg-card--dark .timp-btn { width: 100%; }
.timp-sg-card__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-weight: 700; color: #fff; }
.timp-sg-card__phone:hover { color: var(--ti-crown); }
.timp-sg-card__phone .timp-ico { color: var(--ti-crown); }

/* Galeria */
.timp-sg-gal { padding: 8px 0 64px; }
.timp-sg-gal .timp-sg-h2 { margin-bottom: 26px; }
.timp-scope .timp-sg-gal__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.timp-sg-gal__grid li[hidden] { display: none; }
.timp-sg-gal__grid a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--ti-r); background: #D9DDE2; cursor: zoom-in; }
.timp-sg-gal__grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ti-ease); }
.timp-sg-gal__grid a:hover img { transform: scale(1.05); }
.timp-sg-gal__more { margin-top: 22px; text-align: center; }

/* Foto ampliada */
.timp-lb { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(10, 11, 13, .94); }
.timp-lb[open] { display: flex; align-items: center; justify-content: center; }
.timp-lb::backdrop { background: rgba(10, 11, 13, .6); }
.timp-lb img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); object-fit: contain; border-radius: var(--ti-r-sm); }
.timp-lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.timp-lb__btn:hover { background: rgba(255,255,255,.24); }
.timp-lb__btn .timp-ico { width: 24px; height: 24px; }
.timp-lb__close { top: 16px; right: 16px; }
.timp-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.timp-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Produtos */
.timp-sg-prod { padding: 64px 0; background: #fff; border-top: 1px solid var(--ti-line); border-bottom: 1px solid var(--ti-line); }
.timp-scope .timp-sg-prod__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.timp-sg-pcard a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-r); color: var(--ti-ink); transition: border-color .2s; }
.timp-sg-pcard a:hover { border-color: var(--ti-ink); }
.timp-sg-pcard figure { margin: 0; aspect-ratio: 1; border-bottom: 1px solid var(--ti-line); background: #fff; }
.timp-sg-pcard figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.timp-sg-pcard__name { padding: 14px 16px 0; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.timp-sg-pcard__price { padding: 8px 16px 0; font-weight: 800; font-size: 18px; }
.timp-sg-pcard__price small, .timp-sg-pcard__price .wc-measurement-price-calculator-price { font-weight: 500; font-size: 13px; color: var(--ti-muted); }
.timp-sg-pcard__price del { font-weight: 400; font-size: 14px; color: var(--ti-muted); }
.timp-sg-pcard__price ins { text-decoration: none; }
.timp-sg-pcard__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 14px 16px 16px; font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--ti-accent); }
.timp-sg-pcard__cta .timp-ico { width: 16px; height: 16px; }

/* Outros segmentos */
.timp-sg-more { padding: 64px 0; }
.timp-sg-more .timp-sg-h2 { margin-bottom: 26px; }
.timp-scope .timp-sg-more__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.timp-sg-more__item { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px; background: #fff; border: 1px solid var(--ti-line); border-radius: var(--ti-r); color: var(--ti-ink); transition: border-color .2s; }
.timp-sg-more__item:hover { border-color: var(--ti-ink); color: var(--ti-ink); }
.timp-sg-more__item figure { flex: none; width: 68px; height: 68px; margin: 0; overflow: hidden; border-radius: var(--ti-r-sm); background: #D9DDE2; }
.timp-sg-more__item figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.timp-sg-more__item span { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; font-weight: 700; font-stretch: 88%; font-size: 15.5px; line-height: 1.2; text-transform: uppercase; }
.timp-sg-more__item .timp-ico { width: 18px; height: 18px; flex: none; color: var(--ti-accent); }

/* CTA final */
.timp-sg-cta { padding: 56px 0; background: var(--ti-steel); color: var(--ti-on-dark); }
.timp-sg-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.timp-scope .timp-sg-cta .timp-sg-h2 { color: #fff; }
.timp-scope .timp-sg-cta p { margin-top: 10px; max-width: 60ch; font-size: 16.5px; }
.timp-sg-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.timp-sg-cta__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: #fff; }
.timp-sg-cta__phone:hover { color: var(--ti-crown); }
.timp-sg-cta__phone .timp-ico { color: var(--ti-crown); }

@media (max-width: 1080px) {
	.timp-sg-body__in { grid-template-columns: 1fr; }
	.timp-sg-aside { position: static; grid-template-columns: 1fr 1fr; }
	.timp-scope .timp-sg-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.timp-scope .timp-sg-prod__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.timp-sg-hero { padding: 20px 0 36px; }
	.timp-sg-hero__in { grid-template-columns: 1fr; gap: 28px; }
	.timp-sg-hero__media { order: -1; }
	.timp-sg-body { padding: 36px 0; }
	.timp-sg-prose { padding: 24px 18px; font-size: 16.5px; }
	.timp-sg-aside { grid-template-columns: 1fr; }
	.timp-scope .timp-sg-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.timp-scope .timp-sg-prod__grid, .timp-scope .timp-sg-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.timp-sg-gal, .timp-sg-prod, .timp-sg-more { padding-top: 40px; padding-bottom: 40px; }
	.timp-lb img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
	.timp-lb__prev, .timp-lb__next { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 560px) {
	.timp-sg-hero__cta .timp-btn { width: 100%; }
	.timp-scope .timp-sg-more__grid { grid-template-columns: 1fr; }
	.timp-sg-pcard__name { padding: 10px 10px 0; font-size: 14px; }
	.timp-sg-pcard__price { padding: 6px 10px 0; font-size: 16px; }
	.timp-sg-pcard__cta { padding: 10px; font-size: 12.5px; }
	.timp-sg-cta__actions, .timp-sg-cta__actions .timp-btn { width: 100%; }
}
