/* Home v2 — TI Comunicações */

:root {
	--tiv2-ink: #16181a;
	--tiv2-ink-2: #3d403e;
	--tiv2-ink-3: #4a4d4b;
	--tiv2-muted: #5e615f;
	--tiv2-muted-2: #6f726f;
	--tiv2-muted-3: #9a9a95;
	--tiv2-soft: #faf9f7;
	--tiv2-line: #ecebe7;
	--tiv2-line-2: #e2e1dd;
	--tiv2-line-3: #d8d7d2;
	--tiv2-white: #ffffff;
	--tiv2-green: #14a05a;
	--tiv2-green-dark: #0d7e46;
	--tiv2-red: #e4342b;
	--tiv2-error: #c2231b;
	--tiv2-dark-bg: #3a3d3c;
	--tiv2-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tiv2-script: "Caveat", cursive;
	--tiv2-max: 1400px;
	--tiv2-gutter: 44px;
	--tiv2-radius: 14px;
	--tiv2-pill: 999px;
	--tiv2-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 767px) {
	:root { --tiv2-gutter: 20px; }
}

.tiv2 *,
.tiv2 *::before,
.tiv2 *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.tiv2 {
	margin: 0;
	background: var(--tiv2-white);
	color: var(--tiv2-ink);
	font-family: var(--tiv2-font);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Reset com especificidade zero para não sobrescrever os componentes */
:where(.tiv2) img { max-width: 100%; height: auto; }
:where(.tiv2) a { color: inherit; text-decoration: none; transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
:where(.tiv2) ul { margin: 0; padding: 0; list-style: none; }
:where(.tiv2) :is(h1, h2, h3, p) { margin: 0; }
:where(.tiv2) address { font-style: normal; }
.tiv2 .grecaptcha-badge { visibility: hidden; }
.tiv2 :focus-visible { outline: 2px solid var(--tiv2-green); outline-offset: 3px; }

.tiv2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tiv2-skip { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 10px 16px; background: var(--tiv2-white); color: var(--tiv2-ink); border-radius: 8px; font-weight: 700; }
.tiv2-skip:focus { top: 16px; }

.tiv2-wrap { width: 100%; max-width: var(--tiv2-max); margin: 0 auto; padding-left: var(--tiv2-gutter); padding-right: var(--tiv2-gutter); }
.tiv2-center { text-align: center; }
.tiv2-break { overflow-wrap: anywhere; }

/* ---------- Tipografia ---------- */
.tiv2-eyebrow { margin-bottom: 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tiv2-muted-3); }
.tiv2-eyebrow--strong { margin-bottom: 36px; font-size: 11px; letter-spacing: 0.28em; color: var(--tiv2-muted-2); }
.tiv2-eyebrow--light { color: rgba(255, 255, 255, 0.7); margin-bottom: 0; }
.tiv2-h2 { font-size: clamp(27px, 3vw, 40px); line-height: 1.14; font-weight: 700; letter-spacing: -0.015em; max-width: 22ch; text-wrap: pretty; }
.tiv2-h2--lead { margin: 0 auto; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.4; font-weight: 600; max-width: 46ch; color: var(--tiv2-ink-2); letter-spacing: 0; }
.tiv2-h2--xl { max-width: 20ch; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--tiv2-white); }
.tiv2-h3 { font-size: clamp(17px, 1.7vw, 22px); font-weight: 600; line-height: 1.35; color: var(--tiv2-ink-2); }
.tiv2-script { font-family: var(--tiv2-script); font-weight: 500; }
.tiv2-prose { font-size: 14px; line-height: 1.75; color: var(--tiv2-muted); max-width: 52ch; }
.tiv2-prose p + p { margin-top: 1em; }
.tiv2-prose a { color: var(--tiv2-green); text-decoration: underline; }

/* ---------- Botões ---------- */
.tiv2-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 30px; border: 1px solid transparent; border-radius: var(--tiv2-pill);
	font: 700 10px/1.2 var(--tiv2-font); letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
	cursor: pointer; background: none;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.tiv2-btn span { transition: transform 200ms ease; }
.tiv2-btn:hover span { transform: translateX(3px); }
.tiv2-btn--sm { padding: 12px 22px; font-size: 9px; }
.tiv2-btn--outline { border-color: #c9c9c3; color: var(--tiv2-ink); }
.tiv2-btn--outline:hover { border-color: var(--tiv2-ink); background: var(--tiv2-ink); color: var(--tiv2-white); }
.tiv2-btn--green { background: var(--tiv2-green); color: var(--tiv2-white); }
.tiv2-btn--green:hover { background: var(--tiv2-green-dark); color: var(--tiv2-white); }
.tiv2-btn--brand { background: var(--btn); color: var(--btn-text); }
.tiv2-btn--brand:hover { background: var(--btn-hover); color: var(--btn-text); }
.tiv2-btn--white { background: var(--tiv2-white); color: var(--tiv2-ink); padding: 14px 26px; letter-spacing: 0.16em; }
.tiv2-btn--white:hover { background: var(--tiv2-red); color: var(--tiv2-white); }
.tiv2-btn--light { border-color: rgba(255, 255, 255, 0.5); color: var(--tiv2-white); }
.tiv2-btn--light:hover { background: var(--tiv2-white); color: var(--tiv2-ink); }

/* ---------- Header ---------- */
.tiv2-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; transition: background-color 300ms ease, box-shadow 300ms ease, transform 300ms ease; }
.tiv2-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 26px; padding-bottom: 26px; transition: padding 300ms ease; }
.tiv2-header__logo { display: flex; align-items: center; flex: 0 0 auto; color: var(--tiv2-white); font-weight: 700; }
.tiv2-logo { display: block; height: 62px; width: auto; transition: height 300ms ease; }
.tiv2-header.is-fixed { position: fixed; background: rgba(22, 24, 26, 0.94); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); animation: tiv2-drop 320ms var(--tiv2-ease); }
.tiv2-header.is-fixed .tiv2-header__inner { padding-top: 12px; padding-bottom: 12px; }
.tiv2-header.is-fixed .tiv2-logo { height: 42px; }
@keyframes tiv2-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.tiv2-nav { display: flex; align-items: center; gap: 22px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.tiv2-nav__list { display: flex; align-items: center; gap: 22px; }
.tiv2-nav__list a { white-space: nowrap; color: rgba(255, 255, 255, 0.86); padding: 6px 0; position: relative; }
.tiv2-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 250ms ease; }
.tiv2-nav__list a:hover { color: var(--tiv2-white); }
.tiv2-nav__list a:hover::after { transform: scaleX(1); }
.tiv2-langs { display: flex; align-items: center; gap: 0; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.7); }
.tiv2-langs li + li::before { content: "|"; padding: 0 8px; color: rgba(255, 255, 255, 0.4); }
.tiv2-langs span[aria-current] { color: var(--tiv2-white); }
.tiv2-langs a { color: rgba(255, 255, 255, 0.6); }
.tiv2-langs a:hover { color: var(--tiv2-white); }

.tiv2-burger { display: none; position: relative; z-index: 3; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--tiv2-pill); background: transparent; cursor: pointer; }
.tiv2-burger span[aria-hidden] { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--tiv2-white); border-radius: 2px; transition: transform 250ms ease, opacity 200ms ease; }
.tiv2-burger span[aria-hidden]:nth-of-type(2) { top: 15px; }
.tiv2-burger span[aria-hidden]:nth-of-type(3) { top: 21px; }
.tiv2-burger span[aria-hidden]:nth-of-type(4) { top: 27px; }
.tiv2-burger[aria-expanded="true"] span[aria-hidden]:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.tiv2-burger[aria-expanded="true"] span[aria-hidden]:nth-of-type(3) { opacity: 0; }
.tiv2-burger[aria-expanded="true"] span[aria-hidden]:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.tiv2-burger { display: block; }
	.tiv2-logo { height: 48px; }
	.tiv2-nav {
		position: fixed; inset: 0; z-index: 2; flex-direction: column; justify-content: center; gap: 36px;
		background: rgba(14, 16, 17, 0.97); font-size: 14px;
		opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms;
	}
	.tiv2-nav.is-open { opacity: 1; visibility: visible; transition: opacity 250ms ease; }
	.tiv2-nav__list { flex-direction: column; gap: 22px; }
	.tiv2-langs { border-left: 0; padding-left: 0; font-size: 13px; }
	.tiv2-nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.tiv2-hero { position: relative; min-height: 700px; min-height: max(700px, 88vh); display: flex; flex-direction: column; justify-content: center; background: var(--tiv2-ink); overflow: hidden; color: var(--tiv2-white); }
.tiv2-hero__media { position: absolute; inset: 0; background: var(--tiv2-dark-bg); }
.tiv2-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.tiv2-hero__slide.is-active { opacity: 1; }
.tiv2-hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, center); }
.tiv2-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(10, 12, 13, 0.86) 0%, rgba(10, 12, 13, 0.62) 42%, rgba(10, 12, 13, 0.1) 78%, rgba(10, 12, 13, 0.02) 100%); }
.tiv2-hero__content { position: relative; z-index: 1; padding-top: 150px; padding-bottom: 110px; }
.tiv2-hero__title { max-width: 17ch; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; text-wrap: pretty; }
.tiv2-hero__sub { margin-top: 28px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.tiv2-hero__cta { margin-top: 32px; }
.tiv2-hero__dots { position: absolute; left: max(var(--tiv2-gutter), calc((100% - var(--tiv2-max)) / 2 + var(--tiv2-gutter))); bottom: 34px; z-index: 3; display: flex; gap: 10px; }
.tiv2-hero__dot { width: 34px; height: 20px; border: 0; padding: 8px 0; cursor: pointer; background: transparent; }
.tiv2-hero__dot::before { content: ""; display: block; height: 4px; border-radius: var(--tiv2-pill); background: rgba(255, 255, 255, 0.35); transition: background 300ms ease; }
.tiv2-hero__dot.is-active::before, .tiv2-hero__dot:hover::before { background: var(--tiv2-white); }
.tiv2-hero__script { position: absolute; right: max(56px, calc((100% - var(--tiv2-max)) / 2 + 56px)); bottom: 74px; z-index: 2; font-size: 34px; line-height: 1.05; text-align: center; opacity: 0.95; pointer-events: none; }

@media (max-width: 767px) {
	.tiv2-hero { min-height: 100svh; min-height: max(620px, 100svh); justify-content: flex-end; }
	.tiv2-hero__slide img { object-position: var(--foco-m, center); }
	.tiv2-hero::after { background: linear-gradient(180deg, rgba(10, 12, 13, 0.55) 0%, rgba(10, 12, 13, 0.15) 30%, rgba(10, 12, 13, 0.6) 62%, rgba(10, 12, 13, 0.92) 100%); }
	.tiv2-hero__content { padding-top: 140px; padding-bottom: 96px; }
	.tiv2-hero__sub { margin-top: 20px; font-size: 10px; }
	.tiv2-hero__script { right: var(--tiv2-gutter); bottom: 26px; font-size: 24px; text-align: right; }
}
@media (max-width: 479px) {
	.tiv2-hero__script { display: none; }
}

/* ---------- Seções ---------- */
.tiv2-section { background: var(--tiv2-white); padding: 84px 0; }
.tiv2-section--soft { background: var(--tiv2-soft); }
.tiv2-section--line { border-top: 1px solid var(--tiv2-line); }
.tiv2-head { margin-bottom: 40px; }
@media (max-width: 767px) { .tiv2-section { padding: 60px 0; } }

.tiv2-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.tiv2-about__body { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
@media (max-width: 767px) { .tiv2-about { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Cards de serviços ---------- */
.tiv2-cards { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1199px) { .tiv2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tiv2-cards { grid-template-columns: 1fr; } }
.tiv2-card { position: relative; isolation: isolate; min-height: 420px; border-radius: var(--tiv2-radius); overflow: hidden; background: var(--tiv2-dark-bg); display: flex; flex-direction: column; justify-content: flex-end; color: var(--tiv2-white); }
.tiv2-card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, center); transition: transform 900ms var(--tiv2-ease); }
.tiv2-card:hover .tiv2-card__bg { transform: scale(1.05); }
.tiv2-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 13, 0.35) 0%, rgba(10, 12, 13, 0.04) 28%, rgba(10, 12, 13, 0.55) 52%, rgba(10, 12, 13, 0.88) 78%, rgba(8, 9, 10, 0.96) 100%); }
.tiv2-card__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tiv2-card__title { font-size: 18px; font-weight: 700; line-height: 1; }
.tiv2-card__logo { display: block; height: 58px; width: auto; max-width: 100%; }
.tiv2-card__text { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); max-width: 26ch; }
.tiv2-card__cta { margin-top: 6px; }
.tiv2-card__cta::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Números ---------- */
#numeros.tiv2-section { padding: 56px 0 64px; }
.tiv2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 0; }
.tiv2-stat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 24px; text-align: center; border-right: 1px solid var(--tiv2-line-2); }
.tiv2-stat:last-child { border-right: 0; }
.tiv2-stat__value { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--tiv2-ink); }
.tiv2-stat__desc { font-size: 15px; line-height: 1.5; color: var(--tiv2-ink-3); max-width: 28ch; }
.tiv2-stat__note { font-size: 14px; line-height: 1.5; color: var(--tiv2-muted-2); }
@media (max-width: 960px) {
	.tiv2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiv2-stat:nth-child(2n) { border-right: 0; }
}
@media (max-width: 479px) {
	.tiv2-stats { grid-template-columns: 1fr; gap: 0; }
	.tiv2-stat { border-right: 0; border-bottom: 1px solid var(--tiv2-line-2); padding: 22px 8px; }
	.tiv2-stat:last-child { border-bottom: 0; }
}

/* ---------- Case ---------- */
.tiv2-case { position: relative; isolation: isolate; min-height: 460px; display: flex; align-items: center; background: var(--tiv2-ink); overflow: hidden; color: var(--tiv2-white); }
.tiv2-case__media { position: absolute; inset: 0; z-index: -2; background: var(--tiv2-dark-bg); }
.tiv2-case__media img { width: 100%; height: 100%; object-fit: cover; }
.tiv2-case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 12, 13, 0.84) 0%, rgba(10, 12, 13, 0.55) 46%, rgba(10, 12, 13, 0.1) 82%); }
.tiv2-case__content { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.tiv2-case__text { max-width: 46ch; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); }
.tiv2-case__script { position: absolute; right: max(56px, calc((100% - var(--tiv2-max)) / 2 + 56px)); bottom: 70px; font-size: 32px; line-height: 1.05; text-align: center; pointer-events: none; }
@media (max-width: 767px) {
	.tiv2-case { min-height: 0; align-items: flex-end; }
	.tiv2-case::before { background: linear-gradient(180deg, rgba(10, 12, 13, 0.1) 0%, rgba(10, 12, 13, 0.55) 45%, rgba(10, 12, 13, 0.92) 100%); }
	.tiv2-case__content { padding-top: 184px; padding-bottom: 48px; gap: 16px; }
	.tiv2-case__script { top: 24px; bottom: auto; right: var(--tiv2-gutter); font-size: 22px; }
}

/* ---------- Clientes ---------- */
#clientes.tiv2-section { padding: 72px 0; }
.tiv2-clients { display: flex; align-items: center; gap: 16px; }
.tiv2-clients__viewport { flex: 1; min-width: 0; overflow: hidden; touch-action: pan-y; }
.tiv2-clients__track { display: flex; transition: transform 460ms var(--tiv2-ease); will-change: transform; }
.tiv2-client { flex: 0 0 calc(100% / var(--per, 4)); height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-right: 1px solid #e7e6e2; padding: 0 22px; text-align: center; user-select: none; }
.tiv2-client:last-child { border-right: 0; }
.tiv2-client > a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tiv2-client__name { font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tiv2-ink-3); line-height: 1.4; }
.tiv2-client__caption { font-size: 10px; color: var(--tiv2-muted-3); }
.tiv2-client__logo { max-height: 64px; width: auto; max-width: 160px; object-fit: contain; transition: filter 300ms ease, opacity 300ms ease, transform 300ms ease; pointer-events: none; }
.tiv2-client:hover .tiv2-client__logo { transform: scale(1.06); }
.is-pb .tiv2-client__logo { filter: grayscale(1); opacity: 0.8; }
.is-pb .tiv2-client:hover .tiv2-client__logo { filter: none; opacity: 1; }
.tiv2-client--more .tiv2-script { font-size: 26px; color: var(--tiv2-muted-2); }
.tiv2-arrow { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--tiv2-line-3); border-radius: var(--tiv2-pill); background: var(--tiv2-white); color: var(--tiv2-ink); font-size: 15px; cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease; }
.tiv2-arrow:hover { border-color: var(--tiv2-ink); background: var(--tiv2-ink); color: var(--tiv2-white); }
.tiv2-clients.is-static .tiv2-arrow { visibility: hidden; }
@media (max-width: 639px) {
	.tiv2-clients { gap: 8px; }
	.tiv2-client { padding: 0 12px; height: 100px; }
	.tiv2-client__name { font-size: 12px; letter-spacing: 0.1em; }
	.tiv2-arrow { width: 34px; height: 34px; }
}

/* ---------- Notícias ---------- */
#blog.tiv2-section { padding: 80px 0; }
.tiv2-blog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.tiv2-blog__head .tiv2-eyebrow { margin-bottom: 12px; }
.tiv2-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 380px) { .tiv2-news { grid-template-columns: 1fr; } }
.tiv2-news__item { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--tiv2-line); border-radius: var(--tiv2-radius); background: var(--tiv2-white); transition: border-color 200ms ease, box-shadow 200ms ease; }
.tiv2-news__item:hover { border-color: var(--tiv2-ink); box-shadow: 0 10px 30px rgba(22, 24, 26, 0.06); }
.tiv2-news__thumb { width: 116px; height: 116px; border-radius: 10px; overflow: hidden; background: var(--tiv2-line); }
.tiv2-news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tiv2-news__body { display: flex; flex-direction: column; gap: 8px; }
.tiv2-news__cat { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cat); }
.tiv2-news__title { font-size: 15px; line-height: 1.35; font-weight: 700; }
.tiv2-news__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tiv2-news__date { font-size: 11px; color: var(--tiv2-muted-3); }
.tiv2-empty { padding: 32px; border: 1px dashed var(--tiv2-line-3); border-radius: var(--tiv2-radius); text-align: center; color: var(--tiv2-muted-2); }
@media (max-width: 479px) {
	.tiv2-news__item { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px; }
	.tiv2-news__thumb { width: 88px; height: 88px; }
}

/* ---------- Rodapé ---------- */
.tiv2-footer { background: var(--tiv2-ink); color: rgba(255, 255, 255, 0.75); font-size: 14px; line-height: 1.5; }
.tiv2-footer__grid { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: 1.1fr 0.8fr 1fr 1fr; gap: 30px; align-items: start; }
.tiv2-footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.tiv2-footer__brand p { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); max-width: 26ch; }
.tiv2-footer__logo { display: block; height: 40px; width: auto; }
.tiv2-footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tiv2-footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.tiv2-footer__col a:hover { color: var(--tiv2-white); }
.tiv2-footer__label { margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.tiv2-footer__cta { gap: 16px; align-items: flex-start; }
.tiv2-footer__title { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.22; font-weight: 700; letter-spacing: -0.01em; color: var(--tiv2-white); text-wrap: pretty; }
.tiv2-social { display: flex; gap: 10px; flex-wrap: wrap; }
.tiv2-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--tiv2-pill); border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.8); }
.tiv2-social a:hover { background: var(--tiv2-white); color: #0e1011; border-color: var(--tiv2-white); }
.tiv2-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 30px; font-size: 11px; color: rgba(255, 255, 255, 0.45); position: relative; }
.tiv2-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--tiv2-gutter); right: var(--tiv2-gutter); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tiv2-footer__bottom a { letter-spacing: 0.12em; }
.tiv2-footer__bottom a:hover { color: var(--tiv2-white); }
@media (max-width: 1080px) { .tiv2-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; } }
@media (max-width: 539px) { .tiv2-footer__grid { grid-template-columns: 1fr; padding-top: 52px; } }

/* ---------- Modal de contato ---------- */
.tiv2-modal { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 18px; background: var(--tiv2-white); color: var(--tiv2-ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); overflow: auto; overscroll-behavior: contain; }
.tiv2-modal::backdrop { background: rgba(10, 12, 13, 0.72); backdrop-filter: blur(4px); }
.tiv2-modal[open] { animation: tiv2-modal-in 280ms var(--tiv2-ease); }
.tiv2-modal[open]::backdrop { animation: tiv2-fade 280ms ease; }
@keyframes tiv2-modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes tiv2-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tiv2-modal[open], .tiv2-modal[open]::backdrop, .tiv2-header.is-fixed { animation: none; } }
.tiv2-modal__box { position: relative; padding: 44px 44px 36px; }
.tiv2-modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tiv2-line-3); border-radius: var(--tiv2-pill); background: var(--tiv2-white); color: var(--tiv2-ink); cursor: pointer; }
.tiv2-modal__close:hover { background: var(--tiv2-ink); color: var(--tiv2-white); border-color: var(--tiv2-ink); }
.tiv2-modal__title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; padding-right: 40px; }
.tiv2-modal__text { margin-top: 10px; font-size: 14px; color: var(--tiv2-muted); }
@media (max-width: 539px) {
	.tiv2-modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
	.tiv2-modal__box { padding: 28px 20px 28px; }
	.tiv2-modal__close { top: 12px; right: 12px; }
}
.tiv2-modal-open { overflow: hidden; }

/* Formulário (markup do CF7) */
.tiv2-form { margin-top: 28px; }
.tiv2-form .tiv2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.tiv2-form .tiv2-field--full { grid-column: 1 / -1; }
@media (max-width: 539px) { .tiv2-form .tiv2-grid { grid-template-columns: 1fr; } }
.tiv2-form label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tiv2-ink-3); }
.tiv2-form .wpcf7-form-control-wrap { position: relative; display: block; }
.tiv2-form input[type="text"],
.tiv2-form input[type="email"],
.tiv2-form input[type="tel"],
.tiv2-form textarea {
	display: block; width: 100%; padding: 13px 16px; border: 1px solid var(--tiv2-line-3); border-radius: 10px;
	background: var(--tiv2-white); color: var(--tiv2-ink); font: 500 15px/1.4 var(--tiv2-font);
	transition: border-color 200ms ease, box-shadow 200ms ease;
	-webkit-appearance: none; appearance: none;
}
.tiv2-form textarea { min-height: 128px; resize: vertical; }
.tiv2-form input::placeholder, .tiv2-form textarea::placeholder { color: #b0b0aa; }
.tiv2-form input:focus, .tiv2-form textarea:focus { outline: 0; border-color: var(--tiv2-ink); box-shadow: 0 0 0 3px rgba(22, 24, 26, 0.08); }
.tiv2-form .is-invalid input, .tiv2-form .is-invalid textarea, .tiv2-form .wpcf7-not-valid { border-color: var(--tiv2-error) !important; }
.tiv2-form .is-invalid input:focus, .tiv2-form .is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(194, 35, 27, 0.12); }
.tiv2-form .wpcf7-not-valid-tip, .tiv2-form .tiv2-error { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--tiv2-error); }
.tiv2-form .tiv2-field:has(.tiv2-error:not(:empty)) .wpcf7-not-valid-tip { display: none; }
.tiv2-form .tiv2-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--tiv2-muted); }
.tiv2-form .tiv2-hint button { padding: 0; border: 0; background: none; color: var(--tiv2-green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.tiv2-form .tiv2-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tiv2-form .tiv2-actions small { display: block; font-size: 12px; color: var(--tiv2-muted-2); line-height: 1.6; }
.tiv2-form .wpcf7-submit { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border: 0; border-radius: var(--tiv2-pill); background: var(--tiv2-ink); color: var(--tiv2-white); font: 700 11px/1.2 var(--tiv2-font); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: background-color 200ms ease; }
.tiv2-form .wpcf7-submit:hover { background: var(--tiv2-green); }
.tiv2-form .wpcf7-submit:disabled { opacity: 0.6; cursor: progress; }
.tiv2-form .wpcf7-spinner { margin: 0; background-color: var(--tiv2-ink-2); }
.tiv2-form .wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; border-width: 1px; }
.tiv2-form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--tiv2-green); background: #eef8f2; color: var(--tiv2-green-dark); }
.tiv2-form .wpcf7 form.invalid .wpcf7-response-output,
.tiv2-form .wpcf7 form.failed .wpcf7-response-output,
.tiv2-form .wpcf7 form.spam .wpcf7-response-output { border-color: var(--tiv2-error); background: #fdf1f0; color: var(--tiv2-error); }

/* Sugestão de provedores de e-mail */
.tiv2-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; padding: 6px; border: 1px solid var(--tiv2-line-3); border-radius: 10px; background: var(--tiv2-white); box-shadow: 0 14px 34px rgba(22, 24, 26, 0.14); max-height: 236px; overflow-y: auto; }
.tiv2-suggest[hidden] { display: none; }
.tiv2-suggest li { padding: 9px 12px; border-radius: 7px; font-size: 14px; cursor: pointer; color: var(--tiv2-ink-3); }
.tiv2-suggest li b { color: var(--tiv2-ink); font-weight: 700; }
.tiv2-suggest li[aria-selected="true"], .tiv2-suggest li:hover { background: var(--tiv2-soft); color: var(--tiv2-ink); }

/* intl-tel-input */
.tiv2-form .iti { display: block; width: 100%; --iti-hover-color: var(--tiv2-soft); --iti-border-color: var(--tiv2-line-3); --iti-dialcode-color: var(--tiv2-ink-3); --iti-dropdown-bg: var(--tiv2-white); --iti-spacer-horizontal: 12px; }
.tiv2-form .iti input[type="tel"] { padding-right: 16px; }
.tiv2-form .iti__dropdown-content { border-radius: 10px; box-shadow: 0 14px 34px rgba(22, 24, 26, 0.14); }
.tiv2-form .iti__search-input { font: 500 14px var(--tiv2-font); }
.tiv2-form .iti__country { font-size: 14px; }
.tiv2-form .tiv2-actions small a { color: inherit; text-decoration: underline; }

/* Checkboxes (aceite de privacidade e "receber novidades") */
.tiv2-form .tiv2-check .wpcf7-list-item { display: block; margin: 0; }
.tiv2-form .tiv2-check label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--tiv2-ink-3); cursor: pointer; }
.tiv2-form .tiv2-check input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--tiv2-green); cursor: pointer; }
.tiv2-form .tiv2-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--tiv2-ink); outline-offset: 2px; }
.tiv2-form .tiv2-check a { color: inherit; text-decoration: underline; }
.tiv2-form .tiv2-check.is-invalid label { color: var(--tiv2-error); }
.tiv2-form .tiv2-check .tiv2-error { margin-left: 28px; }

/* Newsletter */
.tiv2-modal--news { width: min(520px, calc(100% - 32px)); }
.tiv2-modal--news .tiv2-form .tiv2-grid { grid-template-columns: 1fr; }
/* No celular a newsletter é um painel que sobe da base, do tamanho do conteúdo */
@media (max-width: 539px) {
	.tiv2-modal--news { width: 100%; max-width: 100%; height: fit-content; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: 18px 18px 0 0; }
	.tiv2-modal--news[open] { animation: tiv2-sheet-in 320ms var(--tiv2-ease); }
	.tiv2-modal--news .tiv2-modal__box { padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); }
	.tiv2-modal--news .tiv2-form { margin-top: 20px; }
	.tiv2-modal--news .tiv2-form .tiv2-grid { gap: 14px; }
	.tiv2-modal--news .wpcf7-submit { width: 100%; justify-content: center; }
}
@keyframes tiv2-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tiv2-modal--news[open] { animation: none; } }
.tiv2-modal__box:focus { outline: none; }
.tiv2-footer__news { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--tiv2-white); font-weight: 600; }
.tiv2-footer__news svg { flex: 0 0 auto; opacity: 0.8; }
.tiv2-footer__news:hover { color: var(--tiv2-green); }

/* Faixa de logos (marquee) */
.tiv2-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tiv2-marquee__track { flex: 0 0 auto; display: flex; align-items: center; animation: tiv2-marquee var(--duracao, 120s) linear infinite; }
@media (hover: hover) { .tiv2-marquee:hover .tiv2-marquee__track { animation-play-state: paused; } }
.tiv2-marquee:has(:focus-visible) .tiv2-marquee__track { animation-play-state: paused; }
.tiv2-marquee { -webkit-touch-callout: none; }
.tiv2-marquee .tiv2-client { flex: 0 0 auto; width: auto; height: 120px; padding: 0 34px; border-right: 0; }
@keyframes tiv2-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.tiv2-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.tiv2-marquee__track { animation: none; }
	.tiv2-marquee__track[aria-hidden] { display: none; }
}
@media (max-width: 639px) { .tiv2-marquee .tiv2-client { height: 96px; padding: 0 22px; } }
.tiv2-client--logo .tiv2-client__logo { flex: none; max-width: none; max-height: none; contain-intrinsic-size: none; mix-blend-mode: multiply; }

/* Modal "Sobre a TI" */
.tiv2-modal--sobre { width: min(1280px, calc(100% - 48px)); }
.tiv2-modal--sobre .tiv2-modal__box { padding: 56px 64px 48px; }
@media (max-width: 860px) { .tiv2-modal--sobre .tiv2-modal__box { padding: 44px 24px 32px; } }
.tiv2-about-modal { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.tiv2-about-modal__media { margin: 0; position: sticky; top: 0; }
.tiv2-about-modal__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tiv2-radius); background: var(--tiv2-line); }
.tiv2-about-modal__media figcaption { margin-top: 10px; font-size: 12px; color: var(--tiv2-muted-2); }
.tiv2-about-modal__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 8px; }
.tiv2-about-modal__text { margin: 14px 0 24px; max-width: none; font-size: 15px; line-height: 1.8; }
@media (max-width: 860px) {
	.tiv2-about-modal { grid-template-columns: 1fr; gap: 24px; }
	.tiv2-about-modal__media { position: static; max-width: 420px; }
	.tiv2-about-modal__media img { aspect-ratio: 16 / 11; }
}
.tiv2-ae { display: inline-flex; align-items: center; opacity: 0.6; transition: opacity 200ms ease; }
.tiv2-ae:hover { opacity: 1; }
.tiv2-ae img { display: block; width: 86px; height: 16px; }

/* Modal de vídeo */
.tiv2-modal--video { width: min(1100px, calc(100% - 32px)); background: #000; overflow: visible; border-radius: 14px; }
.tiv2-modal--video .tiv2-modal__close { top: -52px; right: 0; background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--tiv2-white); }
.tiv2-modal--video .tiv2-modal__close:hover { background: var(--tiv2-white); color: var(--tiv2-ink); border-color: var(--tiv2-white); }
.tiv2-video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.tiv2-video iframe { display: block; width: 100%; height: 100%; border: 0; }
/* O vídeo é horizontal: o modal tem a altura do player e fica centralizado (inclusive no mobile) */
.tiv2-modal--video { height: fit-content; max-height: calc(100dvh - 120px); margin: auto; }
@media (max-width: 539px) {
	.tiv2-modal--video { width: calc(100% - 24px); max-width: calc(100% - 24px); height: fit-content; max-height: calc(100dvh - 120px); border-radius: 10px; }
	.tiv2-modal--video .tiv2-modal__close { top: -56px; right: 0; width: 44px; height: 44px; }
	.tiv2-modal--video .tiv2-video { border-radius: 10px; }
}

.tiv2-stat__value { font-variant-numeric: tabular-nums; }

/* Envio do formulário: loading próprio e tela de sucesso */
.tiv2-form .wpcf7-spinner { display: none !important; }
.tiv2-form .wpcf7-form.submitting .wpcf7-submit {
	padding-left: 54px; cursor: progress; opacity: 1; background-color: var(--tiv2-ink-2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23ffffff' stroke-opacity='.25' stroke-width='3'/%3E%3Cpath d='M21 12a9 9 0 0 0-9-9' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: 24px center;
}
.tiv2-form .wpcf7-form.submitting input, .tiv2-form .wpcf7-form.submitting textarea { opacity: 0.6; pointer-events: none; }
.tiv2-form .wpcf7 form.sent .wpcf7-response-output { display: none; }
.tiv2-modal.is-sent .tiv2-form .wpcf7, .tiv2-modal.is-sent .tiv2-modal__text { display: none; }
.tiv2-success { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0 4px; outline: 0; animation: tiv2-fade 360ms ease; }
.tiv2-success[hidden] { display: none; }
.tiv2-success:focus, .tiv2-success:focus-visible { outline: none; }
.tiv2-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 999px; background: #eef8f2; color: var(--tiv2-green); margin-bottom: 6px; }
.tiv2-success__title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.tiv2-success__text { font-size: 15px; line-height: 1.7; color: var(--tiv2-muted); max-width: 46ch; }
.tiv2-success__actions { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.tiv2-btn--dark { background: var(--tiv2-ink); color: var(--tiv2-white); }
.tiv2-btn--dark:hover { background: var(--tiv2-green); color: var(--tiv2-white); }

/* Arraste (mouse/dedo) no banner e nos logos */
.tiv2-hero, .tiv2-marquee, .tiv2-clients__viewport { touch-action: pan-y; }
.tiv2-marquee, .tiv2-clients__viewport { cursor: grab; user-select: none; -webkit-user-select: none; }
.tiv2-marquee.is-dragging, .tiv2-clients__viewport.is-dragging { cursor: grabbing; }
.tiv2-hero.is-dragging { cursor: grabbing; user-select: none; }
.tiv2-marquee.is-js .tiv2-marquee__track { animation: none; will-change: transform; }
.tiv2-marquee img, .tiv2-hero img { -webkit-user-drag: none; user-select: none; }

/* Voltar ao topo */
.tiv2-topo { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--tiv2-pill); background: rgba(255, 255, 255, 0.72); color: var(--tiv2-ink) !important; border: 1px solid rgba(22, 24, 26, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 250ms ease, transform 250ms ease, visibility 0s linear 250ms, background-color 200ms ease; }
.tiv2-topo.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 250ms ease, transform 250ms ease, background-color 200ms ease; }
.tiv2-topo:hover { background: var(--tiv2-ink); color: var(--tiv2-white) !important; border-color: var(--tiv2-ink); }
.tiv2-topo:hover svg { transform: translateY(-2px); }
.tiv2-topo svg { transition: transform 200ms ease; }
@media (max-width: 600px) { .tiv2-topo { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
.tiv2-modal-open .tiv2-topo, .tiv2-nav-open .tiv2-topo { opacity: 0; visibility: hidden; }
