/* REVIG v29 — direção visual exclusiva para celular, até 699 px.
   Fora desta faixa, a capa da versão 28 permanece sem alterações. */
.revig-home .revig-mobile-only { display: none; }

@media (max-width: 699px) {
  .revig-home {
    --header-height: 82px;
    --mobile-campaign-gold: #bea15a;
  }
  .revig-home .revig-mobile-only { display: block; }
  .revig-home .revig-desktop-only,
  .revig-home .revig-hero-rule { display: none; }

  /* Cabeçalho integrado à foto; ganha fundo sólido após iniciar a rolagem. */
  .revig-home .header,
  .revig-home .header.is-scrolled {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    gap: 12px;
    border-bottom-color: transparent;
  }
  .revig-home .header:not(.is-scrolled) {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .revig-home .header.is-scrolled { background: rgba(3, 25, 18, .97); }
  .revig-home .header > .brand { width: clamp(124px, 37vw, 184px); }
  .revig-home .header-actions { gap: 10px; }
  .revig-home .header-cta,
  .revig-home .header:not(.is-scrolled) .header-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 44px;
    height: 44px;
    padding-inline: 18px;
    border: 1px solid rgba(202, 178, 108, .62);
    border-radius: 999px;
    background: transparent;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -10px 14px rgba(0, 0, 0, .08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #f5f1df;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    transform: perspective(640px) translateZ(0);
    transition: background .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s ease;
    animation: revigFloatButton 3.8s ease-in-out infinite;
  }
  .revig-home .header-cta::before,
  .revig-home .header:not(.is-scrolled) .header-cta::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: transparent;
    pointer-events: none;
    z-index: -1;
  }
  .revig-home .header-cta:hover,
  .revig-home .header:not(.is-scrolled) .header-cta:hover,
  .revig-home .header-cta:active,
  .revig-home .header:not(.is-scrolled) .header-cta:active {
    color: #fff8e7;
    border-color: rgba(214, 191, 128, .82);
    background: transparent;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -12px 18px rgba(0,0,0,.08);
    transform: perspective(640px) translateY(-1px) translateZ(0) rotateX(2deg);
  }
  .revig-home .menu-toggle { border: 0; border-radius: 0; color: #e9e6d5; }
  .revig-home .menu-toggle span { left: 10px; width: 23px; top: 18px; }
  .revig-home .menu-toggle span + span { top: 24px; }

  .revig-hero {
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    max-height: none;
    margin-top: 0;
    background: #06281b;
  }
  .revig-hero::before {
    top: 14px;
    left: -25%;
    width: 220%;
    z-index: -1;
    border-color: rgba(211, 196, 122, .55);
  }
  .revig-hero-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
  }
  .revig-hero-art img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: 160vw;
    object-fit: cover;
    object-position: 54% top;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 66%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 66%, transparent 100%);
  }
  .revig-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg,
      rgba(2, 18, 11, .56) 0%,
      rgba(2, 18, 12, .73) 25%,
      rgba(2, 18, 12, .78) 63%,
      rgba(2, 20, 14, .93) 100%);
    pointer-events: none;
  }
  .revig-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-height) + 18px) max(21px, 5.6vw) 38px;
    margin-inline: auto;
    text-align: left;
  }
  .revig-mobile-eyebrow {
    margin: 0;
    color: #cfb774;
    font-size: clamp(9px, 2.65vw, 13px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .revig-mobile-eyebrow span { padding-inline: .35em; opacity: .72; }
  .revig-hero-title {
    margin: 25px 0 0;
    font-family: RevigSerif, Georgia, serif;
    font-weight: 400;
    font-size: clamp(29px, 9.2vw, 51px);
    line-height: 1.18;
    letter-spacing: .006em;
    text-wrap: balance;
    color: #f5f4ec;
  }
  .revig-mobile-title-line { font: inherit; }
  .revig-mobile-title-gold { color: #c7ac69; margin-top: 7px; }
  .revig-mobile-intro,
  .revig-mobile-note {
    max-width: 100%;
    font-size: clamp(14px, 3.8vw, 18px);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -.025em;
  }
  .revig-mobile-intro { margin-top: 25px; color: #edf0e7; }
  .revig-mobile-note { margin-top: 19px; color: #bdc5b9; }
  .revig-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 15px;
    width: 100%;
    margin: 30px 0 30px;
    animation: none;
  }
  .revig-hero-actions .revig-hero-consult {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 46px;
    width: auto;
    max-width: 100%;
    padding: 12px 22px;
    border: 1px solid rgba(202, 178, 108, .7);
    border-radius: 999px;
    background: transparent;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -12px 14px rgba(0,0,0,.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #f5f1df;
    font-size: clamp(13px, 3.45vw, 15px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .005em;
    text-align: center;
    white-space: normal;
    transition: background .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s ease;
    animation: revigFloatButton 4.2s ease-in-out infinite .15s;
  }
  .revig-hero-actions .revig-hero-consult::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: transparent;
    pointer-events: none;
    z-index: -1;
  }
  .revig-hero-actions .revig-hero-consult:hover,
  .revig-hero-actions .revig-hero-consult:active {
    background: transparent;
    border-color: rgba(218, 194, 132, .88);
    color: #fff8e7;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -14px 18px rgba(0,0,0,.08);
    transform: perspective(700px) translateY(-2px) rotateX(2.5deg);
  }
  .revig-hero-about {
    align-self: flex-start;
    justify-content: flex-start;
    gap: 0;
    min-height: 44px;
    width: fit-content;
    padding: 6px 0;
    border-bottom-color: #dddccd;
    color: #f3f4eb;
    font-size: clamp(16px, 4.3vw, 20px);
    line-height: 1.5;
  }
  .revig-hero-about .icon { display: none; }
  .revig-home .revig-hero-scroll {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    min-height: 44px;
    padding-left: 0;
    margin-top: auto;
    border-left: 0;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #bac3b6;
  }
  .revig-home .revig-hero-scroll::before {
    content: "";
    display: block;
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, rgba(175,154,96,.35) 0%, rgba(207,183,116,.98) 50%, rgba(175,154,96,.35) 100%);
    box-shadow: 0 0 14px rgba(207,183,116,.16);
    transform-origin: center top;
    animation: revigScrollLine 1.6s ease-in-out infinite;
  }

  @keyframes revigFloatButton {
    0%, 100% { transform: perspective(640px) translateY(0) rotateX(0deg); }
    50% { transform: perspective(640px) translateY(-1.5px) rotateX(1.6deg); }
  }

  @keyframes revigScrollLine {
    0%, 100% { transform: translateY(-2px) scaleY(.82); opacity: .72; }
    50% { transform: translateY(3px) scaleY(1.08); opacity: 1; }
  }
}

@media (max-width: 359px) {
  .revig-home .header,
  .revig-home .header.is-scrolled { padding-inline: 16px; gap: 8px; }
  .revig-home .header > .brand { width: 122px; }
  .revig-home .header-actions { gap: 4px; }
  .revig-home .header-cta,
  .revig-home .header:not(.is-scrolled) .header-cta { padding-inline: 14px; }
  .revig-hero-copy { padding-inline: 19px; }
  .revig-hero-title { font-size: 9.1vw; }
  .revig-mobile-eyebrow { font-size: 9px; letter-spacing: .055em; }
}
