/********************************/
/*****      HOME PAGE       *****/
/********************************/

/* Hero CTAs */
.hero-cta-group {
  height: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  #header-ally-plus .mobile-image {
    display: none;
  }

  #header-ally-plus .w-40 {
    width: 100%;
  }

  #header-ally-plus .hero-cta-group a {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* School partner section */
.school-logo-grid {
  margin-top: 24px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.school-logo-item {
  width: 120px;
  max-width: 100%;
  height: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.school-logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

#school-partner {
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

#school-partner .school-partner-image {
  margin-left: auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.school-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.school-service-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid #E7ECF7;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--color-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-service-card:hover {
  border-color: var(--as-primary-purple);
  box-shadow: var(--shadow-md);
}

.school-service-card svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--as-primary-purple);
}

@media (max-width: 768px) {
  #school-partner .mobile-image {
    display: none;
  }

  #school-partner .school-partner-text {
    display: contents;
  }

  #school-partner h3,
  #school-partner .school-partner-text > p,
  #school-partner .school-logo-grid {
    width: 100%;
    order: 1;
  }

  #school-partner .school-partner-image {
    width: 100%;
    margin-left: 0;
    align-items: stretch;
    order: 2;
  }

  #school-partner .school-partner-image > img {
    display: none;
  }

  #school-partner .school-partner-cta {
    width: 100%;
    order: 3;
  }

  .school-services-grid {
    grid-template-columns: 1fr;
  }

  .school-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .school-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Overview tabs (offerings summary) */
.overview-subtitle {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-secondary);
}

#overview-main.home {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 56px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--color-white);
}

#overview-options.home {
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  gap: 4px;
  padding: 28px 16px;
  background: linear-gradient(180deg, #F8FAFF 0%, #F1F5FE 100%);
  border-right: 1px solid #E7ECF7;
}

.functionabilities-type.home {
  --overview-accent: var(--bo-primary-blue);
  --overview-accent-tint: rgba(3, 70, 218, 0.08);
  width: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: none;
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--color-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

#overview-backoffice.functionabilities-type.home {
  --overview-accent: var(--bo-primary-blue);
  --overview-accent-tint: rgba(3, 70, 218, 0.08);
}

#overview-financial.functionabilities-type.home {
  --overview-accent: #059669;
  --overview-accent-tint: rgba(5, 150, 105, 0.08);
}

#overview-ai.functionabilities-type.home {
  --overview-accent: var(--as-primary-purple);
  --overview-accent-tint: rgba(149, 3, 218, 0.08);
}

#overview-benefits.functionabilities-type.home {
  --overview-accent: #D97706;
  --overview-accent-tint: rgba(217, 119, 6, 0.08);
}

.functionabilities-type.home:hover {
  background: var(--overview-accent-tint);
  color: var(--overview-accent);
}

#overview .active.home,
#overview .active.home:hover {
  background: var(--overview-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.overview-tab-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-tab-icon svg {
  width: 100%;
  height: 100%;
}

.overview-tab-label {
  line-height: 1.3;
}

.overview-panel-wrap {
  flex: 1;
  min-width: 0;
  padding: 48px 56px;
}

.overview-panel {
  --overview-accent: var(--bo-primary-blue);
  --overview-accent-tint: rgba(3, 70, 218, 0.08);
}

.overview-panel.overview-financial {
  --overview-accent: #059669;
  --overview-accent-tint: rgba(5, 150, 105, 0.08);
}

.overview-panel.overview-ai {
  --overview-accent: var(--as-primary-purple);
  --overview-accent-tint: rgba(149, 3, 218, 0.08);
}

.overview-panel.overview-benefits {
  --overview-accent: #D97706;
  --overview-accent-tint: rgba(217, 119, 6, 0.08);
}

.overview-panel-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.overview-panel-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overview-accent-tint);
  color: var(--overview-accent);
}

.overview-panel-icon svg {
  width: 26px;
  height: 26px;
}

.overview-panel h4 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.overview-panel-desc {
  color: var(--color-secondary);
  max-width: 560px;
  margin-top: 18px;
}

.overview-items {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  list-style: none;
  padding: 0;
}

.overview-items li {
  align-items: flex-start;
  height: auto;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--overview-accent-tint);
  border-radius: 10px;
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.overview-item-wide {
  grid-column: 1 / -1;
}

.overview-item-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overview-accent);
  color: var(--color-white);
  margin-top: 1px;
}

.overview-item-icon svg {
  width: 11px;
  height: 11px;
}

/* Partner cards (Parcerias e Benefícios) */
.partner-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.partner-card {
  position: relative;
  grid-column: span 1;
  background: var(--color-white);
  border: 1px solid #E7ECF7;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  border-color: var(--overview-accent);
  box-shadow: var(--shadow-md);
}

.partner-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.partner-card-tag {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--overview-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 20px;
}

.partner-card-logo {
  flex: 0 0 auto;
  max-width: 140px;
  max-height: 40px;
  object-fit: contain;
}

.partner-card--featured .partner-card-logo {
  max-width: 160px;
  max-height: 44px;
}

.partner-card-benefits {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.partner-card-benefits li {
  position: relative;
  padding-left: 16px;
  color: var(--color-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.partner-card-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--overview-accent);
}

.partner-card-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--overview-accent);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: filter 0.2s ease;
}

.partner-card-cta:hover {
  filter: brightness(0.9);
}

.partner-card:not(.partner-card--featured) .partner-card-cta {
  align-self: flex-start;
}

@media (max-width: 700px) {
  .partner-card--featured {
    flex-direction: column;
    align-items: flex-start;
  }
}

.overview-select {
  display: none;
}

@media (max-width: 900px) {
  #overview-main.home {
    flex-direction: column;
    border-radius: 16px;
  }

  #overview-options.home {
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E7ECF7;
    padding: 16px;
  }

  .overview-select {
    display: block;
    width: 100%;
    height: auto;
    line-height: normal;
    padding: 14px 40px 14px 16px;
    border: 1px solid #E7ECF7;
    border-radius: 10px;
    background-color: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23334155' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
  }

  .functionabilities-type.home {
    display: none;
  }

  .overview-panel-wrap {
    padding: 32px 24px;
  }

  .overview-items {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    grid-column: 1 / -1;
  }
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote-mark {
  width: 34px;
  height: 26px;
  color: var(--bo-primary-blue-light);
  margin-bottom: 12px;
}

.testimonial-quote-mark svg {
  width: 100%;
  height: 100%;
}

.testimonial-quote {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 28px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #EEF1F6;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid var(--bo-primary-blue-light);
}

.testimonial-name {
  margin: 0;
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-company {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

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

/* Contact */
.desktop-image--contact {
  max-width: 700px;
}


/* Home banners (IA + PagBank + parceiros) */
.hb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block: 20px;
}

.hb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 280px;
  padding: 28px;
  border-radius: 16px;
  overflow: hidden;
  color: var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hb-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
}

.hb-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
}

.hb-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: inherit;
}

.hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
}

.hb-badge svg {
  width: 13px;
  height: 13px;
}

.hb-badge--dark {
  background: rgba(15, 23, 42, 0.08);
}

/* IA */
.hb-card--ai {
  background: linear-gradient(135deg, var(--bo-primary-blue-light) 0%, var(--bo-primary-blue) 100%);
  color: #fff;
}

.hb-decor {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hb-decor--top {
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
}

.hb-decor--bottom {
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
}

.hb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
}

.hb-chip svg {
  width: 16px;
  height: 16px;
}

/* PagBank */
.hb-card--pagbank {
  background: linear-gradient(135deg, #FFE72D 0%, #DDE05B 55%, #9ED5D6 100%);
}

.hb-card--pagbank:hover {
  color: var(--color-primary);
}

.hb-pagbank-logo {
  height: 30px;
  margin-bottom: 4px;
}

/* Parceiros (carrossel) */
.hb-card--carousel {
  display: grid;
  grid-template-rows: 1fr;
  align-items: stretch;
  justify-items: stretch;
  padding: 0;
}

.hb-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 28px 52px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hb-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hb-slide-logo {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hb-slide-logo img {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.hb-slide--qualy {
  background: linear-gradient(135deg, #FDE7F3 0%, #F9C4E1 100%);
  color: #0A1E2D;
}

.hb-slide--clicksign {
  background: linear-gradient(135deg, #FFF0EA 0%, #FDD0BF 100%);
  color: #5A1C06;
}

.hb-slide--ollara {
  background: linear-gradient(135deg, #1A2F4F 0%, #0B6E72 100%);
  color: #fff;
}

.hb-slide--ollara .hb-badge--dark {
  background: rgba(255, 255, 255, 0.15);
}

.hb-slide--aussie {
  background: linear-gradient(135deg, #FFF4E0 0%, #FFD8A8 100%);
  color: #5C2A00;
}

.hb-dots {
  position: absolute;
  left: 28px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hb-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hb-dot.is-active {
  width: 22px;
  background: rgba(15, 23, 42, 0.7);
}

.hb-dot:focus {
  background: rgba(15, 23, 42, 0.7);
}

.hb-card--carousel:has(.hb-slide--ollara.is-active) .hb-dot {
  background: rgba(255, 255, 255, 0.35);
}

.hb-card--carousel:has(.hb-slide--ollara.is-active) .hb-dot.is-active {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hb-slide {
    transition: none;
  }
}

@media (max-width: 992px) {
  .hb-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hb-card--carousel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hb-grid {
    grid-template-columns: 1fr;
  }

  .hb-card {
    min-height: 0;
    padding: 24px;
  }

  .hb-card--carousel {
    padding: 0;
    min-height: 260px;
  }

  .hb-slide {
    padding: 24px 24px 48px;
  }
}

/* Hero logo abaixo dos banners: respiro menor que o padrão (90px) */
#home-banners + #header-ally-plus {
  padding-top: 30px;
}
