/* =========================================================
   MENTOVA LP — MODELO EDITORIAL
   Campanha de aniversário · Eco Adventure Tour

   Linguagem de revista de viagem: imagem em primeiro lugar,
   respiro, uma ideia por dobra. Paleta tirada da paisagem:
   branco das dunas (base), azul-turquesa das lagoas (apoio),
   laranja do pôr do sol (botões). O verde do WhatsApp só
   aparece no botão de WhatsApp.
   ========================================================= */

@font-face {
    font-family: "Newsreader";
    src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Hanken Grotesk";
    src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Fallbacks com métrica próxima para reduzir o salto de layout. */
@font-face {
    font-family: "Newsreader Fallback";
    src: local("Georgia"), local("Times New Roman");
    size-adjust: 96%;
    ascent-override: 92%;
}

:root {
    /* Cor */
    --ed-duna:        #FAFAF7;   /* base: branco das dunas */
    --ed-areia:       #EEEBE3;   /* blocos alternados */
    --ed-lagoa-tinta: #0D3A43;   /* texto: azul profundo da lagoa */
    --ed-lagoa-suave: #46646B;   /* texto secundário */
    --ed-lagoa:       #0E7D86;   /* apoio: turquesa (AA sobre branco) */
    --ed-lagoa-clara: #9ED8D6;   /* turquesa sobre foto/escuro */
    --ed-sol:         #BF4F17;   /* botões: laranja do pôr do sol */
    --ed-sol-escuro:  #9F3F10;
    --ed-whatsapp:    #25D366;
    --ed-whatsapp-tinta: #05301A;
    --ed-linha:       #D6DEDC;
    --ed-branco:      #FFFFFF;

    /* Tipo */
    --ed-serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
    --ed-sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Ritmo */
    --ed-gutter: 16px;
    --ed-max: 1180px;
    --ed-secao: clamp(72px, 12vw, 152px);
    --ed-raio: 14px;

}

/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */

.ed,
.ed *,
.ed *::before,
.ed *::after {
    box-sizing: border-box;
}

html:has(body.ed) {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.ed {
    margin: 0;
    background: var(--ed-duna);
    color: var(--ed-lagoa-tinta);
    font-family: var(--ed-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

:where(.ed) :where(img, video) {
    display: block;
    max-width: 100%;
}

/* Reset com especificidade zero (:where) para não
   sobrescrever as margens das classes abaixo. */
:where(.ed) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
    margin: 0;
    padding: 0;
}

:where(.ed) :where(ul, ol) {
    list-style: none;
}

:where(.ed) a {
    color: inherit;
}

.ed :focus-visible {
    outline: 3px solid var(--ed-lagoa);
    outline-offset: 3px;
    border-radius: 4px;
}

.ed-wrap {
    width: 100%;
    max-width: var(--ed-max);
    margin-inline: auto;
    padding-inline: var(--ed-gutter);
}

/* Cabeçalho à esquerda e conteúdo à direita no desktop
   (roteiro e perguntas). No celular, empilhado. */
.ed-split__body {
    max-width: 780px;
}

@media (min-width: 1024px) {
    .ed-split {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(48px, 6vw, 112px);
        align-items: start;
    }

    .ed-split__head {
        position: sticky;
        top: 48px;
    }

    .ed-split__body {
        max-width: none;
    }

    .ed-split .ed-acordeao {
        margin-top: 0;
    }

    .ed-split .ed-ctas {
        flex-wrap: wrap;
    }
}

.ed-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   TIPOGRAFIA
   --------------------------------------------------------- */

.ed-h2 {
    font-family: var(--ed-serif);
    font-weight: 400;
    font-optical-sizing: auto;
    font-size: clamp(2rem, 1.35rem + 3.2vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.012em;
    text-wrap: balance;
    max-width: 18ch;
}

.ed-h3 {
    font-family: var(--ed-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ed-lagoa-suave);
}

.ed-lead {
    margin-top: 20px;
    max-width: 34em;
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.65;
    color: var(--ed-lagoa-suave);
    text-wrap: pretty;
}

/* ---------------------------------------------------------
   BOTÕES
   --------------------------------------------------------- */

.ed-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    max-width: 420px;
}

.ed-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: var(--ed-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.ed-btn--whatsapp {
    background: var(--ed-whatsapp);
    color: var(--ed-whatsapp-tinta);
}

.ed-btn--whatsapp:hover {
    background: #1EBE5A;
}

.ed-btn--form {
    background: var(--ed-sol);
    color: var(--ed-branco);
}

.ed-btn--form:hover {
    background: var(--ed-sol-escuro);
}

@media (min-width: 640px) {
    .ed-ctas {
        flex-direction: row;
        max-width: none;
    }

    .ed-ctas .ed-btn {
        min-width: 248px;
    }
}

/* ---------------------------------------------------------
   1. HERO
   O título é o elemento memorável da página: três frases
   curtas empilhadas, grandes, sobre o vídeo.
   --------------------------------------------------------- */

.ed-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100svh;
    min-height: 100vh;
    color: var(--ed-branco);
    overflow: hidden;
    isolation: isolate;
    background: #3A5A60;
}

@supports (min-height: 100svh) {
    .ed-hero {
        min-height: 100svh;
    }
}

.ed-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ed-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgb(4 26 31 / 0.38) 0%, rgb(4 26 31 / 0) 22%),
        linear-gradient(0deg, rgb(4 26 31 / 0.86) 0%, rgb(4 26 31 / 0.55) 38%, rgb(4 26 31 / 0) 68%);
}

.ed-hero__video {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.ed-hero__video.is-playing {
    opacity: 1;
}

.ed-hero__logo {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    left: var(--ed-gutter);
    width: 76px;
    height: auto;
    filter: drop-shadow(0 6px 18px rgb(0 0 0 / 0.45));
}

.ed-hero__content {
    padding-top: 140px;
    padding-bottom: clamp(36px, min(7vw, 8vh), 88px);
}

.ed-selo {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid rgb(255 255 255 / 0.55);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    background: rgb(255 255 255 / 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.ed-hero__title {
    margin-top: 28px;
    font-family: var(--ed-serif);
    font-weight: 300;
    font-optical-sizing: auto;
    font-size: clamp(2.6rem, min(1.3rem + 7.2vw, 10.5vh), 7.25rem);
    line-height: 0.98;
    letter-spacing: -0.022em;
}

.ed-hero__title span {
    display: block;
}

.ed-hero__sub {
    margin-top: 24px;
    max-width: 30em;
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
    line-height: 1.55;
    color: rgb(255 255 255 / 0.92);
    text-wrap: pretty;
}

/* Pessoa em destaque (recorte): só no computador. */
.ed-hero__pessoa {
    display: none;
}

@media (min-width: 900px) {
    .ed-hero__pessoa {
        display: block;
        position: absolute;
        z-index: 0;
        right: max(0px, calc((100% - var(--ed-max)) / 2));
        bottom: 0;
        width: auto;
        height: min(88%, 920px);
        max-width: 44%;
        object-fit: contain;
        object-position: right bottom;
        pointer-events: none;
    }

    .ed-hero--pessoa .ed-hero__content {
        position: relative;
        z-index: 1;
    }

    .ed-hero--pessoa .ed-hero__content > * {
        max-width: min(100%, 58vw);
    }

    .ed-hero--pessoa .ed-hero__title {
        font-size: clamp(2.6rem, min(1rem + 5.6vw, 10.5vh), 6.5rem);
    }
}

/* Preço sereno: "a partir de" e "aéreo não incluso"
   na mesma linha de leitura. */
.ed-preco {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 2px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgb(255 255 255 / 0.28);
    max-width: 42em;
    font-size: 1rem;
    color: rgb(255 255 255 / 0.86);
}

.ed-preco__valor {
    font-family: var(--ed-serif);
    font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--ed-branco);
    font-variant-numeric: lining-nums;
}

.ed-preco__nota::before {
    content: "·";
    margin-right: 8px;
    color: rgb(255 255 255 / 0.6);
}

.ed-hero .ed-ctas {
    margin-top: 28px;
}

@media (min-width: 900px) {
    .ed-hero__content {
        padding-top: max(150px, 20vh);
    }

    .ed-hero__logo {
        top: 28px;
        left: max(var(--ed-gutter), calc((100% - var(--ed-max)) / 2 + var(--ed-gutter)));
        width: 92px;
    }
}

/* ---------------------------------------------------------
   SEÇÕES
   --------------------------------------------------------- */

.ed-section {
    padding-block: var(--ed-secao);
}

/* ---------------------------------------------------------
   2. CONDIÇÃO + NÚMEROS
   --------------------------------------------------------- */

.ed-condicao {
    background: var(--ed-duna);
}

.ed-numeros {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(48px, 8vw, 88px);
    border-top: 1px solid var(--ed-linha);
}

.ed-numero {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 26px 12px 26px 0;
    border-bottom: 1px solid var(--ed-linha);
}

.ed-numero:nth-child(odd) {
    border-right: 1px solid var(--ed-linha);
}

.ed-numero:nth-child(even) {
    padding-left: 18px;
}

.ed-numero dd {
    font-family: var(--ed-serif);
    font-weight: 300;
    font-optical-sizing: auto;
    font-size: clamp(2rem, 0.9rem + 3.2vw, 3.5rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.02em;
    color: var(--ed-lagoa);
    font-variant-numeric: lining-nums;
}

.ed-numero dt {
    font-size: 0.9375rem;
    color: var(--ed-lagoa-suave);
}

@media (min-width: 1024px) {
    .ed-condicao__texto {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(48px, 6vw, 112px);
        align-items: end;
    }

    .ed-condicao__texto .ed-lead {
        margin-top: 0;
    }
}

@media (min-width: 1100px) {
    .ed-numeros {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ed-numero,
    .ed-numero:nth-child(even) {
        padding: 32px 24px;
        border-right: 1px solid var(--ed-linha);
    }

    .ed-numero:first-child {
        padding-left: 0;
    }

    .ed-numero:last-child {
        border-right: 0;
    }
}

/* ---------------------------------------------------------
   3. DESTINOS — cards verticais 9:16
   --------------------------------------------------------- */

.ed-destinos {
    background: var(--ed-areia);
}

.ed-destinos__lista {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 340px);
    gap: 14px;
    margin-top: 40px;
    padding-inline: var(--ed-gutter);
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--ed-gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.ed-destinos__lista::-webkit-scrollbar {
    display: none;
}

.ed-destino {
    scroll-snap-align: start;
}

.ed-destino__foto {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--ed-raio);
    overflow: hidden;
    background: #9FB8B9;
    color: var(--ed-branco);
}

.ed-destino__foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(4 26 31 / 0.7) 0%, rgb(4 26 31 / 0) 42%);
}

.ed-destino__foto figcaption {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ed-destino__nome {
    font-family: var(--ed-serif);
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.ed-destino__uf {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.85;
}

.ed-destino__texto {
    margin-top: 16px;
    padding-right: 8px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ed-lagoa-suave);
}

.ed-destinos .ed-ctas {
    margin-top: 56px;
}

@media (min-width: 1024px) {
    .ed-destinos__lista {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-columns: auto;
        gap: 24px;
        max-width: var(--ed-max);
        margin-inline: auto;
        overflow: visible;
    }
}

/* ---------------------------------------------------------
   ACORDEÃO (roteiro e perguntas)
   --------------------------------------------------------- */

.ed-acordeao {
    margin-top: 40px;
    border-top: 1px solid var(--ed-linha);
}

.ed-item {
    border-bottom: 1px solid var(--ed-linha);
}

.ed-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding-block: 18px;
    cursor: pointer;
    list-style: none;
}

.ed-item summary::-webkit-details-marker {
    display: none;
}

.ed-item summary .ed-icon {
    margin-left: auto;
    color: var(--ed-lagoa);
    transition: transform 0.2s ease;
}

.ed-item[open] summary .ed-icon {
    transform: rotate(180deg);
}

.ed-item__titulo {
    font-family: var(--ed-serif);
    font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    line-height: 1.25;
}

.ed-item__dia {
    flex: 0 0 56px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ed-lagoa);
    font-variant-numeric: tabular-nums;
}

.ed-item p {
    padding-bottom: 24px;
    max-width: 36em;
    color: var(--ed-lagoa-suave);
}

.ed-acordeao--dias .ed-item p {
    padding-left: 72px;
}

@media (max-width: 420px) {
    .ed-acordeao--dias .ed-item p {
        padding-left: 0;
    }
}

/* ---------------------------------------------------------
   5. INCLUSO / NÃO INCLUSO
   --------------------------------------------------------- */

.ed-inclusos {
    background: var(--ed-branco);
}

.ed-inclusos__colunas {
    display: grid;
    gap: 48px;
    margin-top: 48px;
}

.ed-lista ul {
    margin-top: 16px;
}

.ed-lista li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-block: 14px;
    border-bottom: 1px solid var(--ed-linha);
}

.ed-lista li .ed-icon {
    margin-top: 1px;
}

.ed-lista--sim .ed-icon {
    color: var(--ed-lagoa);
}

.ed-lista--nao li {
    color: var(--ed-lagoa-suave);
}

.ed-lista--nao .ed-icon {
    color: #8FA3A6;
}

@media (min-width: 800px) {
    .ed-inclusos__colunas {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* ---------------------------------------------------------
   6. QUEM LEVA VOCÊ
   --------------------------------------------------------- */

.ed-quem {
    background: var(--ed-areia);
}

.ed-quem__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.ed-quem__media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--ed-raio);
    overflow: hidden;
    background: #9FB8B9;
    max-width: 520px;
}

/* Legenda sobre a foto: nome e cargo */
.ed-quem__media::after {
    content: "";
    position: absolute;
    inset: 55% 0 0 0;
    background: linear-gradient(0deg, rgb(4 26 31 / 0.72) 0%, rgb(4 26 31 / 0) 100%);
    pointer-events: none;
}

.ed-quem__media.is-playing::after,
.ed-quem__media.is-playing .ed-quem__legenda {
    display: none;
}

.ed-quem__legenda {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--ed-branco);
    line-height: 1.3;
    pointer-events: none;
}

.ed-quem__legenda strong {
    font-family: var(--ed-serif);
    font-size: 1.375rem;
    font-weight: 400;
}

.ed-quem__legenda span {
    font-size: 0.9375rem;
    color: rgb(255 255 255 / 0.85);
}

.ed-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.92);
    color: var(--ed-lagoa-tinta);
    cursor: pointer;
}

.ed-play .ed-icon {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.ed-quem__media.is-playing .ed-play {
    display: none;
}

.ed-avaliacoes {
    margin-top: 64px;
}

@media (min-width: 900px) {
    .ed-quem__grid--com-media {
        grid-template-columns: 5fr 6fr;
        gap: 80px;
    }
}

/* ---------------------------------------------------------
   7. PERGUNTAS
   --------------------------------------------------------- */

.ed-faq {
    background: var(--ed-duna);
}

.ed-faq .ed-ctas {
    margin-top: 56px;
}

/* ---------------------------------------------------------
   FORMULÁRIO — card sobre foto
   --------------------------------------------------------- */

.ed-form {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(96px, 16vw, 180px) var(--ed-gutter);
    background: #3A5A60;
    isolation: isolate;
    scroll-margin-top: 0;
}

.ed-form__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ed-form__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(4 26 31 / 0.35);
}

.ed-form__card {
    width: 100%;
    max-width: 480px;
    padding: 32px 22px 26px;
    border-radius: 20px;
    background: var(--ed-branco);
    box-shadow: 0 30px 80px -30px rgb(4 26 31 / 0.55);
}

.ed-form__card .ed-h2 {
    font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);
}

.ed-form__texto {
    margin-top: 10px;
    color: var(--ed-lagoa-suave);
}

@media (min-width: 640px) {
    .ed-form__card {
        padding: 44px 40px 36px;
    }
}

/* ---- RD Station: harmoniza o formulário incorporado ---- */

.ed-rd {
    margin-top: 24px;
    min-height: 360px;
}

.ed-rd section,
.ed-rd form,
.ed-rd .bricks--section,
.ed-rd .bricks--row,
.ed-rd .bricks--column,
.ed-rd .bricks-form,
.ed-rd [class*="bricks--component"] {
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: none !important;
}

.ed-rd label,
.ed-rd .bricks-form__label {
    display: block !important;
    margin: 0 0 6px !important;
    font-family: var(--ed-sans) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: var(--ed-lagoa-tinta) !important;
}

.ed-rd .bricks-form__field,
.ed-rd .bricks-form__fieldset {
    margin-bottom: 16px !important;
}

.ed-rd input[type="text"],
.ed-rd input[type="email"],
.ed-rd input[type="tel"],
.ed-rd input[type="number"],
.ed-rd input[type="date"],
.ed-rd select,
.ed-rd textarea {
    width: 100% !important;
    min-height: 52px !important;
    padding: 12px 14px !important;
    border: 1.5px solid var(--ed-linha) !important;
    border-radius: 10px !important;
    background: var(--ed-duna) !important;
    font-family: var(--ed-sans) !important;
    font-size: 1rem !important;
    color: var(--ed-lagoa-tinta) !important;
    box-shadow: none !important;
}

.ed-rd input:focus,
.ed-rd select:focus,
.ed-rd textarea:focus {
    outline: none !important;
    border-color: var(--ed-lagoa) !important;
    background: var(--ed-branco) !important;
    box-shadow: 0 0 0 3px rgb(14 125 134 / 0.18) !important;
}

.ed-rd input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: var(--ed-lagoa);
}

.ed-rd .bricks-form__field__option,
.ed-rd .checkbox,
.ed-rd .legal-bases__label,
.ed-rd [class*="legal"] {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: var(--ed-lagoa-suave) !important;
}

.ed-rd button,
.ed-rd .bricks--component-button,
.ed-rd input[type="submit"] {
    width: 100% !important;
    min-height: 56px !important;
    padding: 14px 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--ed-sol) !important;
    color: var(--ed-branco) !important;
    font-family: var(--ed-sans) !important;
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.ed-rd button:hover,
.ed-rd input[type="submit"]:hover {
    background: var(--ed-sol-escuro) !important;
}

.ed-rd .error,
.ed-rd label.error,
.ed-rd .bricks-form__field__error {
    margin-top: 6px !important;
    font-size: 0.875rem !important;
    color: #A3311A !important;
}

.ed-rd input.error,
.ed-rd select.error {
    border-color: #A3311A !important;
}

/* ---- Modal do formulário de WhatsApp (RD) ---- */

#mentova-rd-whatsapp-modal[hidden] {
    display: none !important;
}

#mentova-rd-whatsapp-modal {
    position: fixed;
    inset: 0;
    z-index: 999990;
    overflow-y: auto;
    padding: 16px;
    background: rgb(4 26 31 / 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mentova-rd-whatsapp-overlay-inner {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 48px auto;
    padding: 40px 22px 26px;
    border-radius: 20px;
    background: var(--ed-branco);
    box-shadow: 0 30px 80px -30px rgb(4 26 31 / 0.55);
    font-family: var(--ed-sans);
    color: var(--ed-lagoa-tinta);
}

.mentova-rd-whatsapp-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ed-lagoa-tinta);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.mentova-rd-whatsapp-close:hover {
    background: var(--ed-areia);
}

@media (min-width: 640px) {
    .mentova-rd-whatsapp-overlay-inner {
        padding: 44px 40px 32px;
    }
}

/* Seletor − / + do número de pessoas */
.ed-stepper {
    display: flex !important;
    align-items: stretch;
    gap: 8px;
}

.ed-stepper input {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.ed-stepper button {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border: 1.5px solid var(--ed-linha) !important;
    border-radius: 10px !important;
    background: var(--ed-branco) !important;
    color: var(--ed-lagoa-tinta) !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.ed-stepper button:hover {
    border-color: var(--ed-lagoa) !important;
    background: var(--ed-branco) !important;
}

/* ---------------------------------------------------------
   8. FECHAMENTO
   --------------------------------------------------------- */

.ed-fechamento {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 92svh;
    min-height: 92vh;
    color: var(--ed-branco);
    background: #6B4A36;
    isolation: isolate;
    overflow: hidden;
}

@supports (min-height: 100svh) {
    .ed-fechamento {
        min-height: 92svh;
    }
}

.ed-fechamento__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ed-fechamento__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(31 14 4 / 0.78) 0%, rgb(31 14 4 / 0.35) 45%, rgb(31 14 4 / 0) 75%);
}

.ed-fechamento__content {
    padding-block: clamp(72px, 12vw, 140px);
}

.ed-fechamento__title {
    font-family: var(--ed-serif);
    font-weight: 300;
    font-optical-sizing: auto;
    font-size: clamp(2.375rem, 1.5rem + 4.6vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: 14ch;
    text-wrap: balance;
}

/* ---------------------------------------------------------
   RODAPÉ
   --------------------------------------------------------- */

.ed-rodape {
    padding-block: 48px 40px;
    background: var(--ed-lagoa-tinta);
    color: rgb(255 255 255 / 0.78);
    font-size: 0.875rem;
    line-height: 1.7;
}

.ed-rodape__empresa {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    color: var(--ed-branco);
}

.ed-rodape__empresa span {
    color: rgb(255 255 255 / 0.78);
}

.ed-rodape__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-top: 14px;
}

.ed-rodape__links a {
    display: inline-block;
    padding-block: 10px;
    text-underline-offset: 3px;
}

.ed-rodape__copy {
    margin-top: 18px;
    color: rgb(255 255 255 / 0.6);
}

/* ---------------------------------------------------------
   BARRA FIXA — só no celular, após a primeira rolagem
   --------------------------------------------------------- */

.ed-barra {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px var(--ed-gutter) max(10px, env(safe-area-inset-bottom));
    background: rgb(250 250 247 / 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ed-linha);
    transform: translateY(110%);
    transition: transform 0.28s ease;
}

.ed-barra.is-visivel {
    transform: translateY(0);
}

.ed-barra .ed-btn {
    width: 100%;
    min-height: 52px;
    padding-inline: 16px;
    gap: 8px;
    font-size: 0.96875rem;
}

@media (min-width: 900px) {
    .ed-barra {
        display: none !important;
    }
}

/* Reserva espaço no fim da página para a barra não cobrir o rodapé. */
@media (max-width: 899px) {
    body.ed:has(.ed-barra) .ed-rodape {
        padding-bottom: 112px;
    }
}

/* ---------------------------------------------------------
   OBRIGADO
   --------------------------------------------------------- */

.ed-obrigado {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    min-height: 100vh;
    padding: 48px var(--ed-gutter);
    background: var(--ed-areia);
    isolation: isolate;
}

.ed-obrigado__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ed-obrigado__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(4 26 31 / 0.4);
}

.ed-obrigado__card {
    width: 100%;
    max-width: 520px;
    padding: 40px 28px;
    border-radius: 20px;
    background: var(--ed-branco);
    box-shadow: 0 30px 80px -30px rgb(4 26 31 / 0.55);
}

.ed-obrigado__logo {
    width: 72px;
    height: auto;
    margin-bottom: 28px;
}

/* ---------------------------------------------------------
   MOVIMENTO REDUZIDO
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html:has(body.ed) {
        scroll-behavior: auto;
    }

    .ed *,
    .ed *::before,
    .ed *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ---------------------------------------------------------
   BOTÕES FLUTUANTES DE TERCEIROS
   O popup de WhatsApp do RD fica sempre visível. Se a barra
   fixa for ligada, o botão de cookies sobe acima dela.
   --------------------------------------------------------- */

@media (max-width: 899px) {
    body.ed.ed-barra-ativa #daextlwcnf-revisit-cookie-consent-container {
        bottom: calc(88px + env(safe-area-inset-bottom)) !important;
        transition: bottom 0.28s ease;
    }
}


/* Pessoa no celular: no alto, à direita do logo, sem cobrir o texto */
@media (max-width: 899px) {
    .ed-hero--pessoa .ed-hero__pessoa {
        display: block;
        position: absolute;
        z-index: 0;
        top: 14px;
        right: 10px;
        bottom: auto;
        height: 170px;
        width: auto;
        max-width: 42%;
        object-fit: contain;
        object-position: right top;
        pointer-events: none;
        -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
                mask-image: linear-gradient(to bottom, #000 75%, transparent);
    }
    .ed-hero--pessoa .ed-hero__content { position: relative; z-index: 1; }
}
/* Desktop: não ampliar o recorte (447x559) e suavizar as bordas retas */
@media (min-width: 900px) {
    .ed-hero__pessoa {
        height: min(88%, 620px);
        -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent), linear-gradient(to left, transparent, #000 14%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to bottom, #000 82%, transparent), linear-gradient(to left, transparent, #000 14%);
        mask-composite: intersect;
    }
    .ed-hero--pessoa .ed-hero__sub,
    .ed-hero--pessoa .ed-hero__content hr { max-width: min(100%, 46vw); }
}
/* Botão Reserva imediata (Bókun) no topo direito do hero */
.ed-hero__reserva { position: absolute; z-index: 3; top: 32px; right: max(16px, calc((100% - var(--ed-max)) / 2)); }
.ed-btn--reserva { background: #fff; color: #0f3d3e; border: 0; cursor: pointer; }
.ed-btn--reserva:disabled { opacity: .75; cursor: progress; }
@media (max-width: 899px) {
    .ed-hero__reserva { top: 18px; right: 12px; }
    .ed-hero__reserva .ed-btn { padding: .55rem 1rem; font-size: .9rem; }
    .ed-hero--pessoa .ed-hero__pessoa { top: 70px; height: 140px; }
}
/* Celular mais limpo */
@media (max-width: 899px) {
    .ed-hero--pessoa .ed-hero__pessoa { top: 100px; right: 10px; height: 130px; -webkit-mask-image: none; mask-image: none; }
    .ed-hero--pessoa .ed-hero__title,
    .ed-hero--pessoa .ed-hero__sub { text-shadow: none; }
    .ed-hero__title { font-weight: 400; }
}
/* Ícone de cronômetro no botão do formulário */
.ed-btn--form::before {
    content: ""; display: inline-block; flex: none;
    width: 1.3em; height: 1.3em; margin-right: .55em; vertical-align: -0.3em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2.5M10 2h4M12 2v3'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2.5M10 2h4M12 2v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Pop-up WhatsApp do RD fechado: sem fundo branco atrás do ícone */
.floating-button.floating-button--close,
.floating-button.floating-button--close .bricks--component-popup { background: transparent !important; }
/* Capa com versão em retrato: o <picture> não interfere no layout */
.ed-hero picture { display: contents; }
/* Reserva imediata junto dos demais botões */
.ed-ctas .ed-btn--reserva { background: #fff; color: #0f3d3e; border: 2px solid #0f3d3e; cursor: pointer; }
.ed-ctas .ed-btn--reserva:disabled { opacity: .8; cursor: progress; }
@media (max-width: 899px) {
    .ed-ctas:has(.ed-btn--reserva) .ed-btn--form { display: none; }
}
/* Hierarquia: WhatsApp (cheio) > Reservar online (contorno azul) ; sem o "5 minutos" nos CTAs */
:root { --eco-azul: var(--ed-lagoa-tinta); }
.ed-ctas .ed-btn--reserva,
.ed-ctas .ed-btn--reserva:disabled { background: #fff; color: var(--eco-azul); border: 2px solid var(--eco-azul); opacity: 1; font-weight: 600; }
.ed-ctas .ed-btn--reserva:not(:disabled):hover { background: var(--eco-azul); color: #fff; }
.ed-ctas:has(.ed-btn--reserva) .ed-btn--form { display: none; }
