/*
 * Acabamento do site público (redesign/front/layout): o que ainda vinha
 * quadrado do template — botão .btn_1, os cartões de passeio, fornecedor e
 * município (.tour-container), os selos sobre a foto — e as peças da home que
 * não tinham estilo próprio: as ações de cada seção, o bloco "O IMA", a
 * newsletter da RD Station e o vídeo.
 *
 * Tokens: os --site-* de paginas-site.css, com o valor de reserva para quem
 * não carrega aquele arquivo (a home). Referência visual: o hero e os cartões
 * de experiência da home (home.css) — raio de 12 a 24px, sombra baixa.
 */

/* ── Botão do template ──────────────────────────────────────────────── */
a.btn_1,
.btn_1 {
    border-radius: 12px;
    font-weight: 700;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.btn_1:hover,
.btn_1:hover {
    background: #006b6f;
    color: #fff;
}
a.btn_1.medium,
.btn_1.medium {
    padding: 13px 24px;
    font-size: 15px;
}
a.btn_1.small,
.btn_1.small {
    border-radius: 8px;
}
a.btn_1:focus-visible,
.btn_1:focus-visible {
    outline: 3px solid rgba(0, 132, 137, .35);
    outline-offset: 2px;
}

/* ── Ações no pé de cada seção da home ──────────────────────────────── */
.secao-acoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}
.secao-bt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 1.5px solid var(--site-azul, #1f3a68);
    border-radius: 12px;
    background: var(--site-azul, #1f3a68);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(31, 58, 104, .45);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.secao-bt:hover {
    border-color: var(--site-azul-escuro, #172d52);
    background: var(--site-azul-escuro, #172d52);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.secao-bt svg {
    flex-shrink: 0;
    transition: transform .15s ease;
}
.secao-bt:hover svg {
    transform: translateX(3px);
}
.secao-bt--contorno {
    background: #fff;
    color: var(--site-azul, #1f3a68);
    box-shadow: none;
}
.secao-bt--contorno:hover {
    border-color: var(--site-azul, #1f3a68);
    background: var(--site-azul, #1f3a68);
    color: #fff;
}
.secao-bt:focus-visible {
    outline: 3px solid rgba(31, 58, 104, .35);
    outline-offset: 2px;
}
@media (max-width: 575.98px) {
    .secao-acoes {
        gap: 10px;
        margin-top: 28px;
    }
    .secao-acoes .secao-bt {
        flex: 1 1 calc(50% - 5px);
        padding: 0 14px;
        font-size: 14px;
    }
    .secao-acoes .secao-bt:first-child {
        flex-basis: 100%;
    }
}

/* ── Cartões (passeio, fornecedor, município) ───────────────────────── */
.tour-container {
    overflow: hidden;
    border: 1px solid rgba(15, 27, 48, .06);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 27, 48, .05), 0 10px 28px -12px rgba(15, 27, 48, .16);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tour-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(15, 27, 48, .06), 0 18px 36px -14px rgba(15, 27, 48, .26);
}
.tour-container .tour-header {
    border-radius: 0;
}
/* Na grade, os cartões da mesma linha têm a mesma altura, com o rodapé no pé. */
.row > [class*="col"] > .tour-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}
.row > [class*="col"] > .tour-container > * {
    flex-shrink: 0;
}
.row > [class*="col"] > .tour-container > .tour-footer {
    margin-top: auto;
}

/* A foto preenche sem deformar, e o zoom do hover é discreto. */
.tour-container .tour-header a img {
    width: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.tour-container .tour-header a:hover img,
.tour-container:hover .tour-header a img {
    transform: scale(1.05);
}

/* Fornecedor e unidade de conservação: a imagem quase sempre é o logo, que o
   corte do cover mutilava. Inteira, com respiro e acima da faixa da cidade. */
.tour-container .tour-header--marca a img {
    padding: 18px 22px 52px;
    background: #fff;
    object-fit: contain;
}
.tour-container .tour-header--marca a:hover img,
.tour-container:hover .tour-header--marca a img {
    transform: scale(1.03);
}

/* Sem foto: um ícone no lugar da câmera riscada do /semfoto.jpg. */
.tour-container .tour-header img[src$="semfoto.jpg"] {
    opacity: 0;
}
.tour-container .tour-header:has(img[src$="semfoto.jpg"])::before {
    content: "";
    position: absolute;
    inset: 0 0 24px;
    width: 56px;
    height: 56px;
    margin: auto;
    background-color: #b9c3d2;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%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='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}

/* A faixa da cidade: degradê suave em vez da barra preta. */
.tour-container .tour-header .tour-location {
    align-items: center;
    padding: 32px 14px 11px;
    background: linear-gradient(to bottom, rgba(10, 18, 32, 0), rgba(10, 18, 32, .72));
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.tour-container .tour-header .tour-location > div {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}
.tour-container .tour-header .tour-location .location {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Selos sobre a foto: pílula afastada da borda, não mais grudada nela. */
.tour-container .tour-header .tour-featured,
.tour-container .tour-header .tour-roteiro,
.tour-container .tour-header .tour-unavailable,
.tour-container .tour-header .tour-whatsapp-only {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(15, 27, 48, .2);
}
.tour-container .tour-header .tour-featured {
    top: 12px;
    left: 12px;
    background: var(--site-vermelho, #b13b27);
}
.tour-container .tour-header .tour-promotion {
    top: 12px;
    right: 12px;
}
.tour-container .tour-header .tour-roteiro {
    bottom: 50px;
    left: 12px;
    background: var(--site-azul, #1f3a68);
}
.tour-container .tour-header .tour-unavailable,
.tour-container .tour-header .tour-whatsapp-only {
    bottom: 50px;
    right: 12px;
}
.tour-container .tour-header .tour-unavailable {
    background: rgba(17, 24, 39, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.tour-container .tour-header .tour-whatsapp-only {
    background: #128c7e;
}

/* Texto do cartão. */
.tour-container .tour-content {
    padding: 16px 16px 10px;
}
.tour-container .tour-content .tour-title h3,
.tour-container .tour-content .tour-title h3 a {
    color: var(--site-tinta, #1b2433);
}
.tour-container .tour-content .tour-title h3 a:hover {
    color: var(--site-vermelho, #b13b27);
}
.tour-container .tour-content .tour-title h6 {
    margin: 4px 0 0;
    color: var(--site-rotulo, #5b6577);
    font-size: 13px;
    font-weight: 500;
}
.tour-container .tour-provider h4 {
    color: var(--site-rotulo, #5b6577);
    font-size: 12.5px;
    font-weight: 600;
}
.tour-container .tour-footer {
    padding: 0 16px 14px;
}

/* ── O IMA (home do IMA) ────────────────────────────────────────────── */
.site-sobre__cartao {
    display: grid;
    grid-template-columns: minmax(180px, 300px) 1fr;
    align-items: center;
    gap: 48px;
    padding: 44px 48px;
    border: 1px solid var(--site-borda, #e3e7ee);
    border-radius: 24px;
    background: linear-gradient(135deg, #f6f9fc 0%, #eef3f8 100%);
}
.site-sobre__logo {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}
.site-sobre__sobretitulo {
    display: block;
    margin-bottom: 6px;
    color: var(--site-vermelho, #b13b27);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.site-sobre__texto h2 {
    margin: 0 0 14px;
    color: var(--site-tinta, #1b2433);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-transform: none;
}
.site-sobre__texto p {
    margin: 0;
    color: var(--site-texto, #3b4556);
    font-size: 16px;
    line-height: 1.7;
}
@media (max-width: 767.98px) {
    .site-sobre__cartao {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 22px;
        border-radius: 20px;
    }
    .site-sobre__logo {
        max-width: 180px;
    }
    .site-sobre__texto h2 {
        font-size: 24px;
    }
    .site-sobre__texto p {
        font-size: 15px;
    }
}

/* ── Newsletter (formulário embutido da RD Station) ─────────────────── */
/* A RD injeta o próprio CSS com id (#rd-form-…): os seletores daqui têm um
   nível a mais para vencer sem !important — só a fonte, que vem inline, pede.
   A fonte é a do site com nome: "inherit" herdaria o Arial que a RD põe no form. */
.site-news {
    padding: 36px 40px 20px;
    border: 1px solid var(--site-borda, #e3e7ee);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 27, 48, .05), 0 10px 28px -12px rgba(15, 27, 48, .16);
}
#newsletter_container .site-news .rd-text h1,
#newsletter_container .site-news .rd-text h1 *,
#newsletter_container .site-news .rd-text p,
#newsletter_container .site-news .rd-text p * {
    font-family: "Montserrat", Arial, sans-serif !important;
}
#newsletter_container .site-news .rd-text h1 {
    color: var(--site-tinta, #1b2433);
    letter-spacing: -.01em;
    text-transform: none;
}
#newsletter_container .site-news .rd-text p span {
    color: var(--site-apagado, #8a93a3) !important;
    font-size: 13px !important;
}
#newsletter_container .site-news .bricks-form .bricks-form__label {
    color: var(--site-rotulo, #5b6577);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}
#newsletter_container .site-news .bricks-form .bricks-form__input {
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--site-borda, #e3e7ee);
    border-radius: 12px;
    background: var(--site-campo, #f4f6fa);
    color: var(--site-tinta, #1b2433);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
#newsletter_container .site-news .bricks-form .bricks-form__input:focus {
    border-color: var(--site-azul, #1f3a68);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(31, 58, 104, .12);
}
#newsletter_container .site-news .bricks-form__submit .rd-button {
    height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: var(--site-azul, #1f3a68);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 24px -8px rgba(31, 58, 104, .45);
    transition: background-color .15s ease;
}
#newsletter_container .site-news .bricks-form__submit .rd-button:hover {
    background: var(--site-azul-escuro, #172d52);
}
@media (max-width: 575.98px) {
    .site-news {
        padding: 24px 16px 12px;
        border-radius: 20px;
    }
    #newsletter_container .site-news .rd-text h1 strong {
        font-size: 22px !important;
    }
    #newsletter_container .site-news .rd-text h1 span {
        font-size: 16px !important;
    }
}

/* ── Vídeo da home ──────────────────────────────────────────────────── */
.site-video {
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #0f1b30;
    box-shadow: 0 24px 48px -16px rgba(15, 27, 48, .35);
}
.site-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 575.98px) {
    .site-video {
        border-radius: 14px;
    }
}
