/* Ajustes proprios da versao estatica (nao existiam no Elementor original) */

.imtech-lang-switch {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 999998;
	background: rgba(10, 30, 60, 0.65);
	color: #fff;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	font-family: inherit;
	backdrop-filter: blur(2px);
	transition: background-color 0.2s ease;
}

.imtech-lang-switch:hover,
.imtech-lang-switch:focus {
	background: rgba(10, 30, 60, 0.9);
	color: #fff;
}

@media (max-width: 767px) {
	.imtech-lang-switch {
		top: auto;
		bottom: 16px;
		right: 16px;
	}
}

.imtech-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.imtech-form-message {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.4;
	display: none;
}

.imtech-form-message.is-visible {
	display: block;
}

.imtech-form-message.is-success {
	color: #1e7e34;
}

.imtech-form-message.is-error {
	color: #c0392b;
}

.imtech-form button[type="submit"][disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.imtech-instagram-embed-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.imtech-instagram-embed-grid .instagram-media {
	margin: 0 !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

@media (max-width: 900px) {
	.imtech-instagram-embed-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.imtech-instagram-embed-grid {
		grid-template-columns: 1fr;
	}
}

.imtech-instagram-note {
	display: none;
}

#to_top_scrollup svg {
	position: relative;
	top: -1px;
}

/* Widget "Gallery" do Elementor (grid de logos de clientes): o layout original usa
   position:absolute com variaveis --row/--column/--item-width calculadas pelo
   e-gallery.min.js, que nao carregamos. Substitui por um grid CSS simples e estatico. */
.elementor-gallery__container {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 23px;
}

.elementor-widget-gallery .e-gallery-item {
	/* relative (nao static): mantem contexto de posicionamento para o
	   .elementor-gallery-item__overlay (position:absolute) interno de cada item,
	   senao os overlays de todos os itens empilham no mesmo lugar e roubam o clique */
	position: relative !important;
	inset: auto !important;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	transform: none !important;
	opacity: 1 !important;
}

.elementor-widget-gallery .e-gallery-image {
	aspect-ratio: 4 / 3;
	width: 100%;
}

@media (max-width: 1024px) {
	.elementor-gallery__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

/* Lightbox proprio pra galeria (substitui o lightbox do Elementor, que dependia do
   frontend.min.js que nao carregamos) */
.imtech-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
}

.imtech-lightbox.is-open {
	display: flex;
}

.imtech-lightbox__figure {
	position: relative;
	max-width: 88vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.imtech-lightbox__img {
	max-width: 88vw;
	max-height: 88vh;
	background: #fff;
	border-radius: 4px;
	padding: 24px;
	box-sizing: border-box;
	object-fit: contain;
}

.imtech-lightbox__counter {
	position: absolute;
	top: -34px;
	left: 0;
	color: #fff;
	font-size: 14px;
	letter-spacing: 0.05em;
}

.imtech-lightbox__close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.imtech-lightbox__nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 12px 18px;
	border-radius: 4px;
}

.imtech-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.imtech-lightbox__nav--prev {
	left: 16px;
}

.imtech-lightbox__nav--next {
	right: 16px;
}

@media (max-width: 600px) {
	.imtech-lightbox__nav {
		font-size: 24px;
		padding: 8px 12px;
	}
}

/* Hero da pagina Switches: o texto "Is your SLOW, UNSTABLE network..." (EN) e mais largo
   que o original em PT e, sem essa trava, seu box (alinhado a direita) passa da faixa azul
   diagonal e cai sobre o fundo branco, ficando ilegivel. Trava a largura no mesmo tamanho
   do PT para o texto quebrar mais uma linha em vez de vazar pra fora da faixa azul. */
.elementor-element-c6f064d .elementor-widget-text-editor p {
	max-width: 495px;
	margin-left: auto;
}

/* "LOCACAO DE SWITCH EXTREME" / "A Solucao Perfeita..." estao desenhados dentro do proprio
   slide_switch.png (nao sao texto HTML), entao a versao em ingles nao tinha como traduzir
   isso. O fundo atras desse texto na imagem e branco solido, entao da pra "remendar":
   cobrir a area com um retangulo branco e escrever o texto em ingles por cima, so na
   pagina /switches/en/ (a pagina em portugues continua usando a imagem original, intacta). */
.elementor-element-0275b19 .elementor-widget-container {
	position: relative;
}

.imtech-slide-switch-patch {
	display: none;
}

html[lang="en"] .imtech-slide-switch-patch {
	display: flex;
	position: absolute;
	left: 0;
	top: 21%;
	width: 44%;
	height: 62%;
	background: #fff;
	flex-direction: column;
	justify-content: center;
}

.imtech-slide-switch-patch .imtech-ssp-small {
	font-size: 1.6vw;
	color: #1b3f6e;
	font-weight: 600;
	line-height: 1.2;
}

.imtech-slide-switch-patch .imtech-ssp-big {
	font-size: 2.3vw;
	color: #f0793c;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 0.5em;
}

.imtech-slide-switch-patch .imtech-ssp-sep {
	width: 45%;
	height: 2px;
	background: #fad300;
	margin: 0.3em 0 0.5em;
}

.imtech-slide-switch-patch .imtech-ssp-text {
	font-size: 1.25vw;
	color: #1b3f6e;
	line-height: 1.3;
}

.imtech-slide-switch-patch .imtech-ssp-text strong {
	font-weight: 700;
}
