:root {
  --c4sp-bg: #0a0a0b;
  --c4sp-surface: #121214;
  --c4sp-surface2: #19191c;
  --c4sp-text: #f7f7f5;
  --c4sp-muted: #a9a9ad;
  --c4sp-line: rgba(255, 255, 255, 0.12);
  --c4sp-orange: #ff6b00;
  --c4sp-orange2: #ff8a2a;
  --c4sp-max: 1240px;
}

html {
  scroll-behavior: smooth;
  background: var(--c4sp-bg);
}

body.c4sp-single {
  margin: 0;
  background: var(--c4sp-bg);
  color: var(--c4sp-text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display',
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.c4sp-single,
body.c4sp-single * {
  box-sizing: border-box;
}
body.c4sp-single a {
  color: inherit;
  text-decoration: none;
}
body.c4sp-single img {
  max-width: 100%;
  display: block;
}
/* A meta viewport usa viewport-fit=cover: as margens respeitam o notch em paisagem. */
body.c4sp-single .wrap {
  width: min(calc(100% - 40px), var(--c4sp-max));
  width: min(
    calc(
      100% - 2 * max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))
    ),
    var(--c4sp-max)
  );
  margin: auto;
}

/* Header — só o logo do site */
body.c4sp-single .header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 66px;
  height: calc(66px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}
body.c4sp-single .brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
body.c4sp-single .brand img {
  height: 40px;
  width: auto;
}

body.c4sp-single .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--c4sp-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: 0.2s;
}
body.c4sp-single .btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--c4sp-line);
}

/* CTA flutuante — "Tenho interesse" */
.c4sp-float-cta {
  position: fixed;
  z-index: 60;
  right: 18px;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: 18px;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
/* Escondido pelo JS enquanto o formulário (#contato) está visível. */
body.c4sp-single .c4sp-float-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/*
 * Hero — sequência de frames.
 * svh = altura da tela com a barra do navegador visível (constante); 100vh no
 * celular é maior que a área visível e corta o rodapé do hero.
 */
body.c4sp-single .sequence {
  height: 560vh;
  height: 560svh;
  position: relative;
  background: #000;
}
body.c4sp-single .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
body.c4sp-single .stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
body.c4sp-single .stage:after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.05) 60%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 55%);
  pointer-events: none;
}
body.c4sp-single .preloader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: #090909;
  transition: 0.4s;
}
body.c4sp-single .preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
body.c4sp-single .preloader span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c4sp-muted);
}
body.c4sp-single .hero-copy {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 72px;
  will-change: opacity, transform, filter;
}
body.c4sp-single .eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--c4sp-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.c4sp-single h1,
body.c4sp-single h2,
body.c4sp-single h3,
body.c4sp-single p {
  margin-top: 0;
  overflow-wrap: break-word;
}
body.c4sp-single h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 9vw, 7.5rem);
  line-height: 0.89;
  letter-spacing: -0.055em;
  font-weight: 620;
}
body.c4sp-single .lead {
  max-width: 680px;
  color: #d5d5d6;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

body.c4sp-single .timeline {
  position: absolute;
  z-index: 7;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 17px;
}
body.c4sp-single .timeline [data-c4sp-step] {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
}
body.c4sp-single .timeline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 6px transparent;
  transition: 0.25s;
}
body.c4sp-single .timeline .active {
  color: #fff;
}
body.c4sp-single .timeline .active i {
  background: var(--c4sp-orange);
  box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.18);
}

body.c4sp-single .progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}
body.c4sp-single .progress span {
  display: block;
  height: 100%;
  background: var(--c4sp-orange);
  transform-origin: left;
  transform: scaleX(0);
}

/*
 * Fallback do hero quando o produto não tem frames: galeria padrão do Woo
 * como carrossel com setas. Mesma altura do hero (svh) e mesmo degradê.
 */
body.c4sp-single .c4sp-slider {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
  outline: 0;
}
body.c4sp-single .c4sp-slides,
body.c4sp-single .c4sp-slide {
  position: absolute;
  inset: 0;
}
body.c4sp-single .c4sp-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}
body.c4sp-single .c4sp-slide.is-active {
  opacity: 1;
  visibility: visible;
}
body.c4sp-single .c4sp-slider:after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.05) 60%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 55%);
  pointer-events: none;
}
body.c4sp-single .c4sp-slider-copy {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 96px;
  pointer-events: none;
}
body.c4sp-single .c4sp-slider-prev,
body.c4sp-single .c4sp-slider-next {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
body.c4sp-single .c4sp-slider-prev {
  left: 18px;
  left: max(18px, env(safe-area-inset-left, 0px));
}
body.c4sp-single .c4sp-slider-next {
  right: 18px;
  right: max(18px, env(safe-area-inset-right, 0px));
}
body.c4sp-single .c4sp-slider-dots {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 36px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
body.c4sp-single .c4sp-slider-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: 0.25s;
}
body.c4sp-single .c4sp-slider-dots i.is-active {
  background: var(--c4sp-orange);
  transform: scale(1.3);
}

/* Seções genéricas */
body.c4sp-single .section {
  padding: 100px 0;
}
body.c4sp-single .section.light {
  background: #e8e2da;
  color: #151515;
}
body.c4sp-single .section-head {
  max-width: 1000px;
  margin-bottom: 48px;
}
body.c4sp-single .section-head.text-center {
  max-width: 100%;
  text-align: center;
}
body.c4sp-single h2 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
body.c4sp-single .muted {
  color: var(--c4sp-muted);
  line-height: 1.65;
}

/* Descrição do projeto — largura total do container + "ver mais" */
body.c4sp-single .c4sp-description {
  width: 100%;
  max-width: none;
  color: #d5d5d6;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  margin-top: 24px;
}
body.c4sp-single .c4sp-description p {
  margin: 0 0 1em;
}
body.c4sp-single .c4sp-description.c4sp-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
body.c4sp-single .c4sp-description.c4sp-clamp.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
/*
 * !important nos botões abaixo (.c4sp-read-more, .visual, .tab-btn,
 * .c4sp-lightbox-*) é necessário porque alguns temas/Elementor aplicam um
 * reset global em <button> com !important, que vence a especificidade
 * normal do CSS do plugin.
 */
body.c4sp-single .c4sp-read-more {
  margin-top: 14px;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--c4sp-orange) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Ambientes */
body.c4sp-single .showcase {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}
body.c4sp-single .showcase > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}
body.c4sp-single .visual {
  display: block !important;
  min-height: 520px !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #131313 !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
body.c4sp-single .visual:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.1) 60%,
    transparent 100%
  );
  z-index: 1;
}
body.c4sp-single .visual.small {
  display: block !important;
  width: 100% !important;
  min-height: 252px !important;
}
body.c4sp-single .visual span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  font-weight: 700;
  z-index: 2;
  color: #fff;
}

body.c4sp-single .video-container {
  max-width: 1000px;
  margin: 40px auto 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--c4sp-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16/9;
  background: #000;
}
body.c4sp-single .video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Lightbox da galeria */
.c4sp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}
.c4sp-lightbox.is-open {
  display: flex !important;
}
.c4sp-lightbox-stage {
  max-width: 90vw;
  max-height: 85vh;
  max-height: 85svh;
}
/*
 * !important aqui pelo mesmo motivo dos botões: algum lazy-load/reset do
 * tema pode estar escondendo a <img> (opacity/visibility) até ela "entrar
 * na viewport" — o que nunca acontece porque ela fica dentro de um
 * container display:none até o lightbox abrir.
 */
.c4sp-lightbox-stage img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 90vw !important;
  max-height: 85vh !important;
  max-height: 85svh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 8px;
  filter: none !important;
}
body.c4sp-single .c4sp-lightbox-close,
body.c4sp-single .c4sp-lightbox-prev,
body.c4sp-single .c4sp-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center;
  cursor: pointer;
  font-size: 20px !important;
  line-height: 1;
  transition: background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.c4sp-lightbox-close {
  top: 18px;
  top: max(18px, env(safe-area-inset-top, 0px));
  right: 18px;
  right: max(18px, env(safe-area-inset-right, 0px));
}
.c4sp-lightbox-prev {
  left: 18px;
  left: max(18px, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
}
.c4sp-lightbox-next {
  right: 18px;
  right: max(18px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
}
.c4sp-lightbox-stage img {
  transition: opacity 0.2s;
}
.c4sp-lightbox.is-loading .c4sp-lightbox-stage img {
  opacity: 0.35 !important;
}
.c4sp-lightbox-counter {
  position: absolute;
  bottom: 18px;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* Ficha Técnica + Planta */
body.c4sp-single .tech-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}
body.c4sp-single .tech-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
body.c4sp-single .tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
body.c4sp-single .tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background: #f7f5f2;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
body.c4sp-single .tech-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  opacity: 0.85;
}
body.c4sp-single .tech-card span {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  display: block;
}
body.c4sp-single .tech-card strong {
  font-size: 16px;
  color: #151515;
  font-weight: 700;
}

body.c4sp-single .plant-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
body.c4sp-single .tab-nav {
  display: inline-flex;
  background: #e8e2da;
  padding: 4px;
  border-radius: 99px;
  gap: 4px;
}
body.c4sp-single .tab-btn {
  background: transparent !important;
  border: 0 !important;
  padding: 8px 24px !important;
  border-radius: 99px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #666 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
body.c4sp-single .tab-btn.active {
  background: #fff !important;
  color: #151515 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
body.c4sp-single .tab-content {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  overflow: hidden;
  border-radius: 16px;
  background: #fafafa;
}
body.c4sp-single .tab-pane {
  display: none;
  width: 100%;
  animation: c4spFadeIn 0.4s ease forwards;
}
body.c4sp-single .tab-pane.active {
  display: block;
}
body.c4sp-single .tab-pane img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

@keyframes c4spFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.c4sp-single .btn-quote {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

/* Detalhes */
body.c4sp-single .details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
body.c4sp-single .details-card {
  background: var(--c4sp-surface);
  border: 1px solid var(--c4sp-line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
body.c4sp-single .details-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--c4sp-line);
  padding-bottom: 14px;
}
body.c4sp-single .details-header svg {
  width: 24px;
  height: 24px;
  color: var(--c4sp-orange);
}
body.c4sp-single .details-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c4sp-text);
  margin: 0;
}
body.c4sp-single .details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.c4sp-single .details-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.c4sp-single .details-item .label {
  font-size: 12px;
  color: var(--c4sp-muted);
}
body.c4sp-single .details-item .value {
  font-size: 15px;
  font-weight: 700;
  color: var(--c4sp-orange);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Projetos Opcionais */
body.c4sp-single .optional-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
body.c4sp-single .optional-card {
  background: linear-gradient(
    145deg,
    var(--c4sp-surface2),
    var(--c4sp-surface)
  );
  border: 1px solid var(--c4sp-line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
body.c4sp-single .optional-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c4sp-text);
  margin: 0;
}
body.c4sp-single .optional-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c4sp-muted);
  margin: 0;
}

/* Projetos Relacionados — card inteiro é o link */
body.c4sp-single .related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
body.c4sp-single .related-card {
  position: relative;
  background: var(--c4sp-surface);
  border: 1px solid var(--c4sp-line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
body.c4sp-single .related-img {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #1b1b1f, #0c0c0e);
  border-bottom: 1px solid var(--c4sp-line);
}
body.c4sp-single .related-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}
body.c4sp-single .related-meta-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 10;
  font-size: 10px;
  font-weight: 700;
  color: var(--c4sp-orange);
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}
body.c4sp-single .related-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
body.c4sp-single .related-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c4sp-text);
  margin: 0 0 14px 0;
}
body.c4sp-single .related-specs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid var(--c4sp-line);
  padding-top: 14px;
  overflow: hidden;
}
body.c4sp-single .related-spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--c4sp-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
body.c4sp-single .related-spec-item svg {
  width: 11px;
  height: 11px;
  color: var(--c4sp-orange);
  flex-shrink: 0;
}

/* Projeto Personalizado */
body.c4sp-single .custom-section {
  background: linear-gradient(145deg, #121214, #0e0e10);
  border-top: 1px solid var(--c4sp-line);
  border-bottom: 1px solid var(--c4sp-line);
}
body.c4sp-single .custom-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c4sp-line);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
body.c4sp-single .custom-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
body.c4sp-single .custom-card p {
  max-width: 700px;
  margin: 0 auto 32px auto;
  line-height: 1.7;
  color: var(--c4sp-muted);
  font-size: 15px;
}
body.c4sp-single .custom-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Contato */
body.c4sp-single .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
body.c4sp-single .contact {
  background: linear-gradient(145deg, #161616, #090909);
}

/* Footer */
body.c4sp-single .footer {
  padding: 30px 0;
  border-top: 1px solid var(--c4sp-line);
  color: #777;
  font-size: 12px;
}

/* Só dispositivos com mouse: no toque o :hover "gruda" no elemento depois do toque. */
@media (hover: hover) {
  body.c4sp-single .btn:hover {
    background: var(--c4sp-orange2);
    transform: translateY(-2px);
    color: #fff !important;
  }
  body.c4sp-single .tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  }
  body.c4sp-single .details-card:hover,
  body.c4sp-single .optional-card:hover,
  body.c4sp-single .related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.4);
  }
  body.c4sp-single .c4sp-slider-prev:hover,
  body.c4sp-single .c4sp-slider-next:hover,
  body.c4sp-single .c4sp-lightbox-close:hover,
  body.c4sp-single .c4sp-lightbox-prev:hover,
  body.c4sp-single .c4sp-lightbox-next:hover {
    background: var(--c4sp-orange) !important;
  }
}

/* Tablet / notebook pequeno: 4 colunas ficam apertadas demais. */
@media (max-width: 1100px) {
  body.c4sp-single .details-grid,
  body.c4sp-single .optional-grid,
  body.c4sp-single .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  body.c4sp-single .wrap {
    width: min(calc(100% - 28px), var(--c4sp-max));
    width: min(
      calc(
        100% - 2 * max(14px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))
      ),
      var(--c4sp-max)
    );
  }
  body.c4sp-single .sequence {
    height: 430vh;
    height: 430svh;
  }
  body.c4sp-single .hero-copy {
    padding-bottom: 62px;
  }
  body.c4sp-single h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
    margin-bottom: 18px;
  }
  body.c4sp-single h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  /* Descrição curta longa não pode cobrir o hero inteiro. */
  body.c4sp-single .hero-copy .lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  body.c4sp-single .timeline {
    right: 10px;
  }
  body.c4sp-single .c4sp-slider-copy {
    padding-bottom: 84px;
  }
  body.c4sp-single .c4sp-slider-prev,
  body.c4sp-single .c4sp-slider-next {
    width: 44px !important;
    height: 44px !important;
  }
  body.c4sp-single .c4sp-slider-prev {
    left: 14px;
  }
  body.c4sp-single .c4sp-slider-next {
    right: 14px;
  }
  body.c4sp-single .c4sp-slider-dots {
    bottom: 34px;
  }
  body.c4sp-single .timeline span {
    display: none;
  }
  body.c4sp-single .showcase,
  body.c4sp-single .contact-grid,
  body.c4sp-single .tech-container,
  body.c4sp-single .details-grid,
  body.c4sp-single .optional-grid,
  body.c4sp-single .related-grid {
    grid-template-columns: 1fr;
  }
  body.c4sp-single .section {
    padding: 74px 0;
  }
  body.c4sp-single .section-head {
    margin-bottom: 32px;
  }
  body.c4sp-single .contact-grid {
    gap: 32px;
  }

  /*
   * As regras desktop de .visual/.showcase usam !important (reset de <button>
   * do tema), então as versões mobile precisam de !important também.
   */
  body.c4sp-single .visual {
    min-height: 340px !important;
    border-radius: 18px;
  }
  body.c4sp-single .visual.small {
    min-height: 170px !important;
  }
  body.c4sp-single .showcase > div {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 1fr !important;
    gap: 12px !important;
  }
  body.c4sp-single .visual span {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 13px;
    line-height: 1.25;
  }
  body.c4sp-single .video-container {
    border-radius: 16px;
    margin-top: 28px;
  }

  /* Alvos de toque de pelo menos ~44px. */
  body.c4sp-single .tab-btn {
    padding: 13px 26px !important;
    font-size: 14px !important;
  }
  body.c4sp-single .c4sp-read-more {
    padding: 12px 0 !important;
  }
  body.c4sp-single .plant-side {
    padding: 14px;
    gap: 14px;
  }
  body.c4sp-single .tab-content {
    min-height: 200px;
  }

  body.c4sp-single .details-card,
  body.c4sp-single .optional-card {
    padding: 22px;
  }
  body.c4sp-single .related-card {
    min-height: 0;
  }
  body.c4sp-single .related-img {
    height: 200px;
  }
  body.c4sp-single .custom-card {
    padding: 30px 20px;
  }
  body.c4sp-single .custom-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Folga no fim da página para o botão flutuante não cobrir o texto do rodapé. */
  body.c4sp-single .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  body.c4sp-single .c4sp-float-cta {
    min-height: 44px;
    padding: 0 18px;
  }
}

@media (max-width: 480px) {
  body.c4sp-single .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body.c4sp-single .sequence {
    height: 100vh;
    height: 100svh;
  }
  body.c4sp-single .hero-copy {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
