.cc-home-v2 {
  overflow: hidden;
  --cc-home-container: 1180px;
}

/* Todas as áreas de conteúdo da home usam o mesmo container visual.
   Fundos full-width continuam full; apenas o conteúdo interno é limitado. */
.cc-home-hero__columns,
.cc-home-categories-section,
.cc-home-highlights,
.cc-home-recent,
.cc-needs-section > .wp-block-group.alignwide {
  width: min(var(--cc-home-container), calc(100% - 2rem)) !important;
  max-width: var(--cc-home-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cc-home-categories-section,
.cc-home-highlights,
.cc-home-recent {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cc-home-v2__section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 1rem;
}

.cc-home-v2__section > h2,
.cc-needs-section h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.cc-home-v2 .cc-section-intro {
  margin: 0;
  color: #5b6670;
}

.cc-home-hero {
  padding: clamp(4rem, 7vw, 6.5rem) 1rem;
}

.cc-home-hero__columns {
  align-items: center !important;
  gap: clamp(2rem, 6vw, 6rem);
  margin-block: 0;
}

.cc-home-kicker {
  display: inline-flex;
  margin: 0 0 1.1rem;
  padding: .38rem .65rem;
  border-radius: 999px;
  background: #eaf0f5;
  color: var(--cc-primary-2);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .06em;
}

.cc-home-hero__title {
  max-width: 10.5ch;
  margin: 0 0 1.2rem;
  color: var(--cc-text);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.cc-home-hero__lead {
  max-width: 34rem;
  margin: 0 0 1.6rem;
  color: #5b6670;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.cc-home-hero__cta .wp-block-button__link {
  padding: .82rem 1.15rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
}

.cc-home-hero__visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.cc-home-v2 .cc-home-hero__image {
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.cc-home-hero__visual > span {
  position: absolute;
  top: 1.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  color: var(--cc-primary-2);
  font-size: .73rem;
  font-weight: 700;
  text-align: center;
}

.cc-home-hero__monitor {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 58%;
  height: 42%;
  transform: translateX(-50%);
  border: 3px solid var(--cc-primary-2);
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf0f5 0%, #f8fafb 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

.cc-home-hero__monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22%;
  width: 28%;
  height: 20%;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: var(--cc-primary-2);
}

.cc-home-hero__webcam {
  position: absolute;
  left: 50%;
  top: 24%;
  width: 42px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--cc-primary);
  box-shadow: 0 0 0 4px #ffffff;
}

.cc-home-hero__webcam::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #dce6ee;
}

.cc-home-hero__desk {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 13%;
  height: 18px;
  border-radius: 999px;
  background: var(--cc-primary);
}

.cc-home-hero__keyboard {
  position: absolute;
  left: 16%;
  bottom: 18%;
  width: 38%;
  aspect-ratio: 2.8 / 1;
  transform: rotate(3deg);
  border: 2px solid var(--cc-primary-2);
  border-radius: 12px;
  background: #eaf0f5;
  z-index: 2;
}

.cc-home-hero__mouse {
  position: absolute;
  right: 18%;
  bottom: 18%;
  width: 12%;
  aspect-ratio: .72 / 1;
  border: 2px solid var(--cc-positive);
  border-radius: 50%;
  background: #edf4ef;
  z-index: 2;
}

.cc-home-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cc-home-category {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.2rem;
  min-height: 190px;
  padding: 1rem;
  border: 1px solid var(--cc-border);
  border-radius: 18px;
  background: var(--cc-white);
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.cc-home-category:hover {
  border-color: #b9c5ce;
  transform: translateY(-2px);
  text-decoration: none;
}

.cc-home-category__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 158px;
  border-radius: 15px;
  background: #eaf0f5;
  color: var(--cc-primary);
}

.cc-home-category__visual::before,
.cc-home-category__visual::after {
  content: none !important;
  display: none !important;
}

.cc-home-category__visual svg {
  width: min(70%, 86px);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 10px rgba(22, 50, 79, .08));
  transition: transform 160ms ease;
}

.cc-home-category:hover .cc-home-category__visual svg {
  transform: translateY(-2px);
}

.cc-home-category__visual svg * {
  vector-effect: non-scaling-stroke;
}

.cc-home-category__visual svg .cc-icon__surface {
  fill: rgba(255, 255, 255, .58);
}

.cc-home-category__visual svg .cc-icon__accent {
  fill: #c4d6e3;
}

.cc-home-category__visual svg .cc-icon__detail {
  fill: currentColor;
  stroke: none;
}

.cc-home-category__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .65rem;
  min-width: 0;
}

.cc-home-category__body strong {
  color: var(--cc-primary);
  font-size: 1.5rem;
  line-height: 1.15;
}

.cc-home-category__body span {
  color: #5b6670;
  font-size: .9rem;
  line-height: 1.5;
}

.cc-home-category__body em {
  color: var(--cc-primary-2);
  font-size: .8rem;
  font-style: normal;
  font-weight: 700;
}

.cc-home-highlights {
  scroll-margin-top: 6rem;
}

.cc-highlight-grid {
  align-items: stretch !important;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cc-highlight-main-query,
.cc-highlight-secondary-query,
.cc-highlight-main-query .wp-block-post-template,
.cc-highlight-secondary-query .wp-block-post-template {
  height: 100%;
}

.cc-highlight-secondary-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

.cc-highlight-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  border-radius: 18px;
  background: var(--cc-white);
}

.cc-highlight-card__image {
  margin: 0;
}

.cc-highlight-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cc-highlight-card__body {
  padding: 1.15rem;
}

.cc-highlight-card__body > * {
  margin-block-start: 0;
}

.cc-highlight-card__title {
  margin: .4rem 0 .55rem;
  line-height: 1.2;
}

.cc-highlight-card__title a {
  color: var(--cc-text);
  text-decoration: none;
}

.cc-highlight-card__title a:hover {
  text-decoration: underline;
}

.cc-highlight-card--main .cc-highlight-card__title {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.cc-highlight-card--secondary .cc-highlight-card__title {
  font-size: 1.05rem;
}

.cc-highlight-card__excerpt {
  margin: 0;
  color: #5b6670;
  font-size: .9rem;
}

.cc-highlight-card__excerpt .wp-block-post-excerpt__more-text {
  display: none;
}

.cc-card-link {
  margin: .55rem 0 0 !important;
  color: var(--cc-primary-2);
  font-size: .8rem;
  font-weight: 700;
}

.cc-needs-section {
  display: none;
  padding: clamp(3.5rem, 6vw, 5rem) 1rem;
}

.cc-needs-section:has(.cc-need-chips) {
  display: block;
}

.cc-home-v2 .cc-needs-section,
.cc-home-v2 .cc-needs-section.has-primary-background-color {
  background-color: #16324f !important;
}

.cc-home-v2 .cc-needs-section h2,
.cc-home-v2 .cc-needs-section h2.has-white-color {
  color: #ffffff !important;
}

.cc-home-v2 .cc-needs-section .cc-needs-intro,
.cc-home-v2 .cc-needs-section .cc-needs-intro.has-white-color {
  margin: 0;
  color: #dce6ee !important;
}

.cc-need-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.cc-home-v2 .cc-needs-section a.cc-need-chip,
.cc-home-v2 .cc-needs-section a.cc-need-chip:link,
.cc-home-v2 .cc-needs-section a.cc-need-chip:visited {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .55rem .9rem;
  border-radius: 999px;
  background-color: #ffffff !important;
  color: #16324f !important;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none !important;
}

.cc-home-v2 .cc-needs-section a.cc-need-chip:hover,
.cc-home-v2 .cc-needs-section a.cc-need-chip:focus-visible {
  background-color: #edf2f5 !important;
  color: #16324f !important;
  text-decoration: none !important;
}

.cc-home-recent {
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

.cc-post-grid--home {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .cc-home-categories {
    grid-template-columns: 1fr;
  }

  .cc-highlight-grid {
    flex-direction: column;
  }

  .cc-highlight-grid > .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }

  .cc-highlight-secondary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .cc-home-v2__section {
    padding: 3.4rem 1.25rem;
  }

  .cc-home-categories-section,
  .cc-home-highlights,
  .cc-home-recent {
    width: calc(100% - 2rem) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .cc-home-hero {
    padding: 3.4rem 1.25rem !important;
  }

  .cc-home-hero__columns {
    gap: 2.25rem;
  }

  .cc-home-kicker,
  .cc-home-hero__cta {
    display: none;
  }

  .cc-home-hero__title {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .cc-home-hero__visual {
    min-height: 220px;
  }

  .cc-home-v2 .cc-home-hero__image {
    min-height: 220px;
  }

  .cc-home-hero__visual > span {
    top: 1.1rem;
  }

  .cc-home-hero__webcam {
    top: 25%;
    width: 34px;
    height: 13px;
  }

  .cc-home-category {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 140px;
    padding: .8rem;
  }

  .cc-home-category__visual {
    min-height: 112px;
  }

  .cc-home-category__body strong {
    font-size: 1.2rem;
  }

  .cc-home-category__body span {
    font-size: .82rem;
  }

  .cc-home-category__body em {
    display: none;
  }

  .cc-highlight-grid {
    gap: 1rem;
  }

  .cc-highlight-secondary-list {
    grid-template-columns: 1fr !important;
  }

  .cc-highlight-card--main .cc-highlight-card__title,
  .cc-highlight-card--secondary .cc-highlight-card__title {
    font-size: 1.2rem;
  }

  .cc-needs-section {
    padding: 3.2rem 1rem;
  }

  .cc-need-chips {
    gap: .55rem;
  }
}
