﻿/* Página inicial: ajustes para tablet e celular (o notebook/desktop mantém o layout original) */

/* Selos da capa: só aparecem no tablet e no celular */
.hero-trust {
  display: none;
}

@media (max-width: 1100px) {
  /* Capa editorial: texto direto sobre a foto clareada, alinhado à esquerda, sem caixa */
  html body.home-theme .editorial-hero {
    display: block;
    min-height: 0;
    padding: 136px clamp(20px, 5vw, 48px) clamp(56px, 8vw, 88px);
  }

  html body.home-theme .editorial-hero::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 55%, rgba(255, 255, 255, .62) 100%),
      linear-gradient(0deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 45%);
  }

  html body.home-theme .editorial-hero-copy {
    display: block;
    width: min(100%, 680px);
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    text-align: left;
  }

  html body.home-theme .editorial-hero-copy::before {
    display: none;
  }

  html body.home-theme .editorial-hero-copy > *,
  html body.home-theme .editorial-hero-copy > p:not(.kicker) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  html body.home-theme .editorial-hero .kicker {
    margin-bottom: 18px;
  }

  html body.home-theme .editorial-hero h1 {
    max-width: 640px;
    font-size: clamp(2.6rem, 7.4vw, 4.2rem);
    letter-spacing: -.035em;
    line-height: 1.02;
    text-wrap: balance;
  }

  html body.home-theme .editorial-hero-copy > p:not(.kicker) {
    max-width: 520px;
    margin: 22px 0 30px;
    font-size: 1rem;
    line-height: 1.65;
  }

  html body.home-theme .editorial-hero .button-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px 28px;
  }

  html body.home-theme .editorial-hero .button-row .button {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-height: 50px;
    padding-inline: 30px;
  }

  /* Segundo botão vira link sublinhado, como ação secundária */
  html body.home-theme .editorial-hero .button-row .brown-outline-button {
    min-width: 0;
    min-height: 0;
    padding: 10px 2px 8px;
    border: 0;
    border-bottom: 1px solid #4b2c24;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #21170c;
  }

  html body.home-theme .editorial-hero .button-row .brown-outline-button::after {
    content: " \2197";
    color: var(--gold-500);
  }

  html body.home-theme .editorial-hero .button-row .brown-outline-button:hover {
    border-color: var(--gold-500);
    background: transparent;
    color: #21170c;
  }

  html body.home-theme .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 34px 0 0;
    padding: 0;
    border: 0;
    list-style: none;
  }

  html body.home-theme .hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(23, 22, 20, .78);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  html body.home-theme .hero-trust li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    transform: rotate(45deg);
  }

  /* Escolha o seu caminho: título e subtítulo juntos, cards lado a lado */
  html body.home-theme .journey-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html body.home-theme .journey-heading > p {
    margin: 0;
  }

  html body.home-theme .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
  }

  html body.home-theme .journey-card {
    grid-template-rows: 220px auto;
  }

  /* Do primeiro modelo à entrega: passos compactos em 3 colunas */
  html body.home-theme .process-story {
    min-height: 0;
  }

  html body.home-theme .process-story-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 64px;
  }

  html body.home-theme .process-story-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html body.home-theme .process-story-steps li {
    display: block;
    min-height: 0;
    padding: 20px;
  }

  html body.home-theme .process-story-steps li > span {
    display: block;
    margin-bottom: 14px;
  }

  /* Nossa história: texto e foto lado a lado; a foto aparece inteira (quadrada, sem corte) */
  html body.home-theme .home-story {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
    padding: clamp(56px, 7vw, 80px) clamp(20px, 5vw, 48px);
  }

  html body.home-theme .home-story-copy {
    justify-self: stretch;
    max-width: none;
    padding: 0;
  }

  html body.home-theme .home-story-copy h2 {
    font-size: clamp(2.1rem, 4.4vw, 3rem);
  }

  html body.home-theme .home-story-copy p:not(.kicker) {
    margin: 20px 0 24px;
  }

  html body.home-theme .home-story-photo {
    justify-self: center;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
    border: 1px solid rgba(218, 165, 32, .38);
    border-radius: 6px;
    box-shadow: 9px 9px 0 rgba(218, 165, 32, .11), 0 22px 50px rgba(77, 59, 24, .12);
  }

  html body.home-theme .home-story-photo img {
    display: block;
    object-position: center;
  }
}

@media (max-width: 640px) {
  /* Capa no celular */
  html body.home-theme .editorial-hero {
    padding: 124px 20px 52px;
  }

  html body.home-theme .editorial-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .94) 60%, rgba(255, 255, 255, .98));
  }

  html body.home-theme .editorial-hero .kicker {
    margin-bottom: 14px;
    font-size: .68rem;
    letter-spacing: .16em;
  }

  html body.home-theme .editorial-hero h1 {
    font-size: clamp(2.3rem, 10.6vw, 3rem);
    line-height: 1.04;
  }

  html body.home-theme .editorial-hero-copy > p:not(.kicker) {
    margin: 18px 0 26px;
    font-size: .94rem;
    line-height: 1.62;
  }

  html body.home-theme .editorial-hero .button-row {
    gap: 12px 22px;
  }

  html body.home-theme .editorial-hero .button-row .gold-button {
    min-height: 48px;
    padding-inline: 24px;
  }

  html body.home-theme .hero-trust {
    gap: 10px 18px;
    margin-top: 28px;
  }

  html body.home-theme .hero-trust li {
    font-size: .64rem;
    letter-spacing: .12em;
  }

  html body.home-theme .journey-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  html body.home-theme .journey-card {
    grid-template-rows: 190px auto;
  }

  html body.home-theme .process-story-inner {
    gap: 22px;
    padding-block: 48px;
  }

  html body.home-theme .process-story-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body.home-theme .process-story-steps li {
    padding: 16px 14px;
  }

  html body.home-theme .process-story-steps li > span {
    margin-bottom: 8px;
  }

  html body.home-theme .process-story-steps h3 {
    font-size: 1.25rem;
  }

  /* Nossa história no celular: foto inteira, menor e centralizada abaixo do texto */
  html body.home-theme .home-story {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 20px 56px;
  }

  html body.home-theme .home-story-copy {
    padding: 0;
  }

  html body.home-theme .home-story-photo {
    max-width: 320px;
    aspect-ratio: 1 / 1;
    max-height: none;
  }
}
