/*
Theme Name: Ciamed
Author: Empório Adamantis
Author URI: https://emporioadamantis.com.br
Description: Website desenvolvido exclusivamente para Ciamed, baseado no layout montado via Claude AI.
Version: 1.3.1
Template: hello-elementor
*/

:root {
    --teal: #00b3b2;
    --teal-deep: #0a6b6a;
    --teal-dark: #04403f;
    --mint: #8af0ef;
    --ink: #0a2b2a;
    --gray: #6e6e6e;
    --line: #e3edeb;
    --mist: #f1f8f6;
    --sage: #9db5b1;
    --paper: #fff;
    --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --fdisplay: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

/**
 * Cabeçalho e menus
 */
.botao > a {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 9px 18px;
    border-radius: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}
.botao:hover > a {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
#logo {
	filter: brightness(0) invert(1);
	height: 26px;
	transition: 0.3s;
}
#header {
    transition: all 0.3s ease;
  	top: 0;
}
#header.header-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 24px -14px rgba(0, 0, 0, 0.25);
  	padding: 5px;
}
#header:not(.header-scrolled) .elementor-menu-toggle svg {
    fill: white;
}
.header-scrolled > .e-con-inner {
  	padding: 0;
}
.header-scrolled #logo {
  filter: none;
}
.header-scrolled #menu .menu-item a {
  color: #0a2b2a;
}
.header-scrolled #menu .current-menu-item a {
    color: var(--e-global-color-secondary);
}
.header-scrolled #menu .menu-item:hover > a {
  color: #00b3b2;
}
.header-scrolled #menu .menu-item.botao > a {
  border-color: #0a2b2a;
}
.header-scrolled #menu .menu-item.botao a svg {
  fill: #0a2b2a;
}
.header-scrolled #menu .menu-item.botao:hover > a {
  color: #fff;
}
.header-scrolled #menu .menu-item.botao:hover a svg {
  fill: #fff;
}

.inovacao a {
    font-weight: 700 !important;
    background: linear-gradient(90deg, #00b3b2, #8af0ef, #2ee6c4, #00b3b2, #8af0ef);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 1;
    animation: inoFlow 9s linear infinite;
}
.inovacao:hover a {
	animation-duration: 5s;
}
@keyframes inoFlow {
	to {
		background-position: 300% 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	nav.main a.nav-ino {
		animation: none;
	}
}

/**
 * Cards de setores
 */
.acard {
    border: 1px solid #eaf2f0;
    transition: 0.3s;
  	position: relative;
  	display: block;
}
.acard::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--teal);
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.35s;
}
.acard:hover::after {
    transform: scaleY(1);
}
.acard:hover {
    border-color: var(--teal);
    box-shadow: 0 30px 54px -30px rgba(0, 179, 178, 0.45);
    transform: translateY(-5px);
}
.acard .ic {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--e-global-color-6db6c46);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.acard .link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

@media (max-width:768px) {
  .elementor-nav-menu--dropdown {
    padding: 20px;
    border-radius: 0 0 18px 18px;
  }
  .botao {
    display: table !important;
  }
  .botao > a {
    color: #33373d;
    border-color: #33373d !important;
  }
}

/**
 * Seção de parceiros/marcas
 */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: brandscroll 80s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.brand-chip {
  position: relative;
  flex: 0 0 auto;
  width: 210px;
  height: 112px;
  margin-right: 24px;
  background: #fff;
  border: 1px solid #e3edeb;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 32px;
  box-shadow: 0 18px 36px -28px rgba(4, 64, 63, 0.5) !important;
  transition:
    transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.32s,
    border-color 0.32s;
}
.brand-chip[href] {
  cursor: pointer;
}
.brand-chip:hover {
  transform: translateY(-12px) scale(1.07);
  box-shadow:
    0 24px 50px -28px rgba(4, 64, 63, 0.26),
    0 10px 26px -16px rgba(4, 64, 63, 0.13);
  border-color: var(--teal);
  z-index: 3;
}
.brand-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition:
    filter 0.35s,
    opacity 0.35s;
}
.brand-chip:hover img {
  filter: none;
  opacity: 1;
}
@keyframes brandscroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .brand-chip:hover {
    transform: none;
  }
}

/* mapa do Brasil */
.cov-map {
  position: relative;
}
.cov-map svg {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  filter: drop-shadow(0 24px 44px rgba(4, 64, 63, 0.14));
}
.cov-map .st {
  fill: #e7edeb;
  stroke: #fff;
  stroke-width: 1;
  transition: fill 0.3s;
}
.cov-map .st.hi {
  fill: url(#covg);
}
.cov-map .mk {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-box: fill-box;
  transform-origin: center;
}
.cov-map .mk .bg {
  fill: #fff;
}
.cov-map .mk .tri {
  fill: var(--teal);
}
.cov-map .mk.hq .bg {
  fill: var(--teal);
}
.cov-map .mk.hq .tri {
  fill: #fff;
}
.cov-map .mk:hover,
.cov-map .mk.hot {
  transform: scale(1.22);
}
.unit-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	margin: 6px 0 30px;
	padding-left: 0;
}
.unit-list li {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--line);
	transition: all .2s;
	border-radius: 8px;
	font-family: var(--fdisplay);
}
.unit-list li:hover,
.unit-list li.hot {
	background: #f0f8f6;
	padding-left: 12px;
}
.unit-list .tri {
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 11px solid var(--teal);
	flex: 0 0 auto;
}
.unit-list li:hover .tri,
.unit-list li.hot .tri {
	border-bottom-color: var(--teal-deep);
}
.unit-list .nm {
	font-weight: 700;
	color: var(--ink);
}
.unit-list .nm .uf {
	color: var(--gray);
}
.unit-list .badge {
	margin-left: auto;
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	font-weight: 700;
	text-transform: uppercase;
	padding: 5px 13px;
	border-radius: 999px;
	white-space: nowrap;
}
.unit-list .badge.matriz {
	background: var(--teal);
	color: #fff;
}
.unit-list .badge.filial {
	border: 1.4px solid var(--line);
	color: var(--gray);
}

/* laboratórios parceiros */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.lab-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  min-height: 96px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.lab-chip img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease;
}
.lab-chip:hover {
  transform: translateY(-4px);
  border-color: #cfe6e2;
  box-shadow: 0 24px 44px -30px rgba(4, 64, 63, 0.45);
}
.lab-chip:hover img {
  filter: none;
  opacity: 1;
}
.lab-note {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--gray);
}
@media (max-width: 900px) {
  .lab-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .vgrid,
  .cgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .lab-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .vgrid,
  .cgrid {
    grid-template-columns: 1fr;
  }
}

/* blog - home */
@keyframes destWordIn {
	from {
		opacity: 0;
		transform: translateY(0.55em) rotate(1.5deg);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes destMetaIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes destRingFill {
	from {
		stroke-dashoffset: 163;
	}
	to {
		stroke-dashoffset: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.destaques * {
		animation: none !important;
		transition: none !important;
	}
}
/* reseta o elementor */
.destaques,
.destaques * {
	box-sizing: border-box;
}

.destaques button,
.destaques a {
	-webkit-appearance: none;
	appearance: none;
}

.destaques button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
	outline: none;
}

.destaques button:focus,
.destaques button:focus-visible {
	outline: none;
	box-shadow: none;
}

.destaques a {
	color: inherit;
	text-decoration: none;
}

.destaques svg,
.destaques circle,
.destaques path {
	border: 0;
	outline: 0;
	box-shadow: none;
}
.destaques .dest-ctrl .arrow {
	border: 1.6px solid var(--line);
	background: #fff;
	color: var(--teal-deep);
}

.destaques .dest-ctrl .arrow.next {
	border: 0;
}

.destaques .dest-q {
	border: 0;
	border-left: 1px solid var(--line);
	background: transparent;
}

.destaques .dest-cta {
	border: 0;
	background: var(--teal-dark);
	color: #fff;
}
.destaques {
	background: #fbfdfd;
	font-family: var(--font);
}
.dest-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 64px;
	align-items: stretch;
}
/* coluna editorial */
.dest-text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 520px;
	padding: 8px 0;
}
.dest-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--teal-deep);
	font-weight: 600;
	margin-bottom: 22px;
	animation: destMetaIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.dest-kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--teal);
}
.dest-title {
	font-family: var(--fdisplay);
	font-weight: 800;
	font-size: clamp(2.1rem, 3.9vw, 3.3rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
	color: var(--ink);
	margin-bottom: 24px;
	max-width: 15ch;
}
.dest-title .w {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
	padding-bottom: 0.08em;
	margin-right: 0.28ch;
}
.dest-title .w > span {
	display: inline-block;
	animation: destWordIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.dest-meta2 {
	animation: destMetaIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}
.dest-excerpt {
	color: var(--gray);
	font-size: 1.04rem;
	max-width: 46ch;
	margin-bottom: 32px;
}
.dest-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--teal-dark);
	color: #fff;
	transition: 0.25s;
	white-space: nowrap;
}
.dest-cta:hover {
	background: var(--teal);
	gap: 16px;
}
/* controles */
.dest-ctrl {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 48px;
}
.dest-ctrl .arrow {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 1.6px solid var(--line);
	background: #fff;
	color: var(--teal-deep);
	font-size: 1.1rem;
	font-family: inherit;
	cursor: pointer;
	transition: 0.25s;
	display: grid;
	place-items: center;
}
.dest-ctrl .arrow:hover {
	border-color: var(--teal);
	color: var(--teal);
}
.dest-ctrl .arrow.next {
	position: relative;
	border: none;
	box-shadow: 0 8px 20px -10px rgba(4, 64, 63, 0.3);
}
.dest-ctrl .arrow.next svg {
	position: absolute;
	inset: 0;
	transform: rotate(-90deg);
	pointer-events: none;
}
.dest-ctrl .arrow.next .ring {
	stroke-dasharray: 163;
	animation: destRingFill var(--dest-secs, 7s) linear forwards;
}
.destaques:hover .dest-ctrl .arrow.next .ring {
	animation-play-state: paused;
}
.dest-count {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.82rem;
	color: var(--sage);
	letter-spacing: 0.08em;
	white-space: nowrap;
}
/* visual: moldura adaptativa em arco */
.dest-visual {
	position: relative;
	display: grid;
	place-items: center;
}
.dest-deco {
	position: absolute;
	left: -34px;
	bottom: -26px;
	width: 132px;
	height: 150px;
	background-image: radial-gradient(var(--teal) 1.6px, transparent 1.7px);
	background-size: 15px 15px;
	opacity: 0.4;
	z-index: 1;
}
.dest-frame {
	position: relative;
	z-index: 2;
	border-radius: 200px 200px 22px 22px;
	overflow: hidden;
	box-shadow: 0 60px 100px -50px rgba(4, 64, 63, 0.5);
	background: #dfeeeb;
	transition:
		transform 0.35s ease-out,
		width 0.9s cubic-bezier(0.7, 0, 0.2, 1),
		height 0.9s cubic-bezier(0.7, 0, 0.2, 1),
		border-radius 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}
.dest-frame .layer {
	position: absolute;
	inset: 0;
	background: #dfeeeb center/cover no-repeat;
	clip-path: inset(0 0 0 100%);
	z-index: 1;
	transition: clip-path 0s 0.9s;
}
.dest-frame .layer.on {
	clip-path: inset(0 0 0 0);
	z-index: 2;
	transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}
.dest-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(4, 64, 63, 0.3),
		transparent 40%
	);
	pointer-events: none;
	z-index: 3;
}
/* fila "a seguir" */
.dest-queue {
	margin-top: 84px;
	border-top: 1px solid var(--line);
	padding-top: 10px;
}
.dest-queue-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.dest-q {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 22px 18px 20px;
	background: none;
	border: none;
	border-left: 1px solid var(--line);
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.3s;
	min-width: 0;
}
.dest-q:hover {
	background: var(--mist);
}
.dest-q::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 2px;
	background: transparent;
}
.dest-q.on::before {
	background: var(--teal);
}
.dest-q .n {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.74rem;
	color: var(--sage);
	letter-spacing: 0.08em;
}
.dest-q .t {
	font-family: var(--fdisplay);
	font-weight: 700;
	font-size: 0.94rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--sage);
	transition: color 0.3s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dest-q.on .t {
	color: var(--ink);
}
.dest-q .d {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sage);
	font-weight: 600;
}
@media (max-width: 900px) {
	.dest-grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}
	.dest-text {
		min-height: 0;
	}
	.dest-frame {
		border-radius: 90px 90px 18px 18px !important;
	}
	.dest-deco {
		display: none;
	}
	.dest-queue-grid {
		grid-template-columns: 1fr 1fr;
	}
	.dest-q {
		border-left: none;
		border-bottom: 1px solid var(--line);
	}
}
.dest-slides-text {
	position: relative;
}

.dest-item {
	display: none;
}

.dest-item.on {
	display: block;
}

.news-card .elementor-post__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 64px -40px rgba(4, 64, 63, 0.45);
  border-color: #cfe6e2;
}
.news-card .elementor-post__thumbnail {
  overflow: hidden;
}

/* galeria do post */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  cursor: zoom-in;
  position: relative;
}
.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 64, 63, 0) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3M11 8v6M8 11h6'/></svg>")
    center no-repeat;
  opacity: 0;
  transition: 0.28s;
  pointer-events: none;
}
.gallery-grid figure:hover::after {
  opacity: 1;
  background-color: rgba(4, 64, 63, 0.32);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-grid figure:hover img {
  transform: scale(1.05);
}
.gallery-grid figcaption {
  font-size: 0.8rem;
  color: var(--gray);
  padding: 10px 12px;
}
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* inovacao - ia */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.ai-card {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.ai-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition:
    filter 0.35s ease,
    opacity 0.35s ease;
}
.ai-card:hover img {
  filter: none;
  opacity: 1;
}
.ai-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: var(--brand, var(--teal));
  box-shadow:
    0 24px 50px -28px rgba(4, 64, 63, 0.26),
    0 10px 26px -16px rgba(4, 64, 63, 0.13);
}
@media (prefers-reduced-motion: reduce) {
  .ai-card:hover {
    transform: none;
  }
}

.gov {
    background: #ffffff0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 28px 24px 30px;
    transition: 0.28s;
}

.gov .ic {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(138, 240, 239, 0.14);
    margin-bottom: 16px;
}

.gov:hover {
    border-color: var(--mint);
    background: rgba(138, 240, 239, 0.08);
    transform: translateY(-4px);
}