/* ================================================================
   home.css — Conecta Bueno — REDESIGN COMPLETO
   ================================================================ */

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

/* shared-components.css trava html/body em height:100% para o padrão de
   rodapé fixo (pensado para páginas com <main>). Nesta página as seções
   não usam <main>, e essa altura fixa fazia o flexbox ESPREMER o hero
   dentro de 1 viewport em vez de deixá-lo ocupar a tela inteira.
   Restauramos a altura natural aqui, mantendo o piso de 100vh. */
html, body {
    height: auto;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body);
}

/* ── Variáveis ────────────────────────────────────────────────── */
:root {
    --green-900: #0f2419;
    --green-800: #1a3a2e;
    --green-700: #2d5a3d;
    --green-600: #3d7a52;
    --green-500: #4a9060;
    --green-400: #6aad80;
    --green-300: #9dcfb0;
    --green-200: #c8e6d4;
    --green-100: #e8f5ee;
    --green-50: #f4faf7;

    /* Verde folha vibrante — mesma identidade da tela de acesso */
    --leaf-400: #4cc177;
    --leaf-500: #2f9e52;
    --leaf-700: #1f7a41;
    --leaf-900: #145c30;

    /* Terracota — identidade da cidade, uso pontual em selos e eyebrows */
    --clay-400: #e08a52;
    --clay-600: #c2703c;
    --clay-800: #96502a;

    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-300: #d1d5db;
    --grey-400: #9ca3af;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-700: #374151;
    --grey-900: #111827;

    --font-display: 'Poppins', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --shadow-soft: 0 10px 26px rgba(20, 45, 30, 0.12);
    --shadow-card: 0 20px 50px rgba(20, 45, 30, 0.14);
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* Estado de acesso limitado para contas anonimas. */
.visitor-account-note {
    margin: 12px 16px;
    padding: 12px;
    border: 1px solid rgba(106, 173, 128, .35);
    border-radius: 10px;
    background: rgba(232, 245, 238, .8);
    color: var(--green-800);
    font-size: calc(.78rem * var(--a11y-text-scale, 1));
    line-height: 1.4;
}

.visitor-account-note strong,
.visitor-account-note p {
    display: block;
}

.visitor-account-note p {
    margin: 3px 0 9px;
}

.visitor-account-note button {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--green-700);
    color: #fff;
    font: inherit;
    font-size: calc(.76rem * var(--a11y-text-scale, 1));
    font-weight: 700;
    cursor: pointer;
}

.visitor-account-note button:hover,
.visitor-account-note button:focus-visible {
    background: var(--green-600);
}

.visitor-account-note button:focus-visible {
    outline: 3px solid rgba(106, 173, 128, .45);
    outline-offset: 2px;
}

body.visitor-mode #menuAdminPanel {
    display: none !important;
}

/* ================================================================
   LOADING OVERLAY
   ================================================================ */
.loading-overlay {
    position: fixed; 
    inset: 0; 
    z-index: 10000;
    background: linear-gradient(145deg, var(--green-900), var(--green-700));
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    gap: 18px; 
    color: white;
    transition: opacity 0.35s;
}

.loading-spinner {
    width: 46px; 
    height: 46px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Vinheta: escurece em foco atrás do texto (centro) e deixa o vídeo
   respirar nas bordas — sem caixa "colada" sobre a imagem. */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 920px 640px at 50% 46%, rgba(5,16,10,.66) 0%, rgba(5,16,10,.32) 52%, transparent 78%),
        linear-gradient(180deg, rgba(5,16,10,.22) 0%, rgba(5,16,10,.1) 34%, rgba(5,16,10,.4) 78%, rgba(5,16,10,.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    text-align: center;
    padding: 96px 24px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Pequeno detalhe de clima — canto superior direito do hero */
.hero-weather-corner {
    position: absolute;
    top: 84px;
    right: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.26);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
    color: #ffffff;
    cursor: default;
    animation: heroRise .85s .45s cubic-bezier(.22,1,.36,1) both;
}

.hero-weather-icon {
    font-size: calc(18px * var(--a11y-text-scale, 1));
    line-height: 1;
}

.hero-weather-temp {
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 800;
    letter-spacing: -0.02em;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
    animation: heroRise .85s cubic-bezier(.22,1,.36,1) both;
}

.hero-content > *:nth-child(1) { animation-delay: .08s; }
.hero-content > *:nth-child(2) { animation-delay: .26s; }

.hero-title {
    font-family: var(--font-body);
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    text-shadow: 0 3px 14px rgba(0,0,0,.6);
}

.hero-title strong {
    display: block;
    font-family: var(--font-display);
    font-size: calc(clamp(48px, 8.4vw, 96px) * var(--a11y-text-scale, 1));
    font-weight: 800;
    line-height: .96;
    letter-spacing: -0.03em;
    margin-top: 10px;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0,0,0,.55);
}

.hero-title strong::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 24px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--leaf-400), var(--leaf-700));
    box-shadow: 0 0 18px rgba(76,193,119,.55);
}

.hero-subtitle {
    font-size: calc(17px * var(--a11y-text-scale, 1));
    line-height: 1.65;
    color: rgba(255,255,255,.9);
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
    margin-top: 26px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn svg {
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.hero-btn span {
    position: relative;
    z-index: 1;
}

.hero-btn:hover svg {
    transform: translateX(4px);
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,.2);
    box-shadow: 0 10px 26px rgba(20,92,48,.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(20,92,48,.5);
    filter: brightness(1.06);
    color: #ffffff;
}

.hero-btn-primary::before {
    background: rgba(255,255,255,.12);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,.7);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,.14);
    border-color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    color: white;
}

.hero-btn-secondary::before {
    background: rgba(255,255,255,.16);
}

.hero-stat-link {
    appearance: none;
    font: inherit;
    text-align: left;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounce 2s ease-in-out infinite;
    opacity: .8;
    cursor: pointer;
    color: white;
}

.hero-scroll-indicator span {
    font-size: calc(11px * var(--a11y-text-scale, 1));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

@media (max-height: 520px) {
    .hero-scroll-indicator { display: none; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
    padding: clamp(64px, 7vw, 104px) 0;
    /* O header é fixed: sem isto, links de âncora param com o título
       escondido atrás dele. */
    scroll-margin-top: 80px;
    position: relative;
    z-index: 10;
    background: white;
    flex-shrink: 0;
}

.bg-off {
    /* Mais profundo que --green-50: em branco puro a diferença ficava
       quase imperceptível e as seções pareciam um bloco único. */
    background: var(--green-100);
}

/* Linha fina entre seções consecutivas — mesma linguagem visual
   usada em eventos.html (.ev-news-section) para separar os blocos. */
.section + .section {
    border-top: 1px solid var(--grey-200);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
    flex-wrap: wrap;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clay-600);
    margin-bottom: 8px;
}

/* Marca de "início de capítulo" — mesma linguagem do traço sob o
   título do hero, repetida aqui para separar claramente cada seção
   independentemente da cor de fundo. */
.section-tag::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 3px;
    margin-right: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--leaf-400), var(--leaf-700));
    flex-shrink: 0;
}

.section-header-text h2 {
    font-family: var(--font-display);
    font-size: calc(clamp(28px, 3.5vw, 42px) * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
    letter-spacing: -.02em;
    margin-bottom: 8px;
    line-height: 1.15;
}

.section-header-text p {
    font-size: calc(15px * var(--a11y-text-scale, 1));
    color: var(--grey-500);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--leaf-700);
    white-space: nowrap;
    transition: gap 0.15s, color 0.15s;
    text-decoration: none;
}

.section-link:hover {
    gap: 10px;
    color: var(--leaf-900);
}

/* ================================================================
   EVENT CARDS
   ================================================================ */
.eventos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.event-card { flex: 1 1 300px; max-width: 380px; }

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--grey-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.event-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
    border-color: var(--leaf-500);
}

.ev-date-badge {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: white;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ev-date-badge .day {
    font-size: calc(32px * var(--a11y-text-scale, 1));
    font-weight: 900;
    line-height: 1;
}

.ev-date-badge .month {
    font-size: calc(11px * var(--a11y-text-scale, 1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .9;
}

.ev-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ev-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--leaf-700);
    background: var(--green-50);
    padding: 4px 12px;
    border-radius: 999px;
}

.ev-badge {
    font-size: calc(11px * var(--a11y-text-scale, 1));
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-today {
    background: #fee2e2;
    color: #991b1b;
}

.badge-soon {
    background: #fef3c7;
    color: #92400e;
}

.ev-title {
    font-family: var(--font-display);
    font-size: calc(18px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.3;
}

.ev-desc {
    font-size: calc(14px * var(--a11y-text-scale, 1));
    color: var(--grey-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.ev-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: calc(13px * var(--a11y-text-scale, 1));
    color: var(--grey-600);
}

.ev-meta-item svg {
    flex-shrink: 0;
    color: var(--grey-400);
}

.ev-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--leaf-700);
    margin-top: 4px;
    transition: gap 0.15s, color 0.15s;
    text-decoration: none;
}

.ev-link:hover {
    gap: 10px;
    color: var(--leaf-900);
}

/* ================================================================
   PLACE CARDS
   ================================================================ */
.places-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.place-card { flex: 1 1 260px; max-width: 340px; }

.place-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--grey-200);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.place-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
    border-color: var(--leaf-500);
}

.place-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-100), var(--green-50));
    border: 2px solid var(--green-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--leaf-700);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.place-card:hover .place-icon {
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 24px rgba(20,92,48,.32);
}

.place-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.place-category {
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--clay-600);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.place-name {
    font-family: var(--font-display);
    font-size: calc(18px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.3;
}

.place-desc {
    font-size: calc(14px * var(--a11y-text-scale, 1));
    color: var(--grey-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.place-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: calc(13px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--leaf-700);
    /* auto (e não 8px) para o link encostar no rodapé do card, alinhado
       com o dos cards vizinhos mesmo com títulos de alturas diferentes. */
    margin-top: auto;
    padding-top: 8px;
    transition: gap 0.15s, color 0.15s;
    text-decoration: none;
}

.place-link:hover {
    gap: 10px;
    color: var(--leaf-900);
}

/* ================================================================
   CATEGORY FILTERS
   ================================================================ */
.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cat-filter {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 20px;
    border: 2px solid var(--grey-200);
    border-radius: 999px;
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 600;
    color: var(--grey-700);
    background: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* z-index: -1 no ::before + isolation: isolate acima: o texto do botão é
   solto (sem <span>), então ".cat-filter > *" não se aplica a ele — isso
   garante que o preenchimento do hover fique atrás do texto. */
.cat-filter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--green-50);
    transform: scale(0);
    transition: transform 0.2s;
    border-radius: 999px;
    z-index: -1;
}

.cat-filter:hover::before {
    transform: scale(1);
}

.cat-filter:hover {
    border-color: var(--leaf-500);
    color: var(--leaf-900);
    transform: translateY(-2px);
}

.cat-filter > * {
    position: relative;
    z-index: 1;
}

.cat-filter:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 158, 82, 0.35);
}

.cat-filter-active:focus-visible {
    box-shadow: 0 4px 14px rgba(20,92,48,.32), 0 0 0 3px rgba(47, 158, 82, 0.35);
}

.cat-filter-active {
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(20,92,48,.32);
}

.cat-filter-active:hover {
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* O preenchimento claro do ::before (pensado só para o hover do estado
   branco/inativo) não pode ligar quando o chip já está ativo — senão ele
   pinta por cima do gradiente escuro no hover e "lava" a cor do botão. */
.cat-filter-active::before {
    content: none;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    grid-column: 1 / -1;
    flex: 1 1 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 24px;
    color: var(--grey-400);
    text-align: center;
}

.empty-state svg {
    color: var(--grey-300);
}

.empty-state p {
    font-size: calc(16px * var(--a11y-text-scale, 1));
    font-weight: 600;
    color: var(--grey-500);
}

.link-primary {
    color: var(--leaf-700);
    font-weight: 700;
    text-decoration: underline;
}

.link-primary:hover {
    color: var(--leaf-900);
}

.loading-content {
    grid-column: 1 / -1;
    flex: 1 1 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    color: var(--grey-400);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--grey-200);
    border-top-color: var(--green-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.section-about {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
    color: white;
}

.section-about .section-tag {
    color: var(--green-400);
}

.section-about .section-header-text h2 {
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-text {
    padding-right: 12px;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: calc(36px * var(--a11y-text-scale, 1));
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.about-text p {
    font-size: calc(16px * var(--a11y-text-scale, 1));
    line-height: 1.8;
    opacity: .9;
    margin-bottom: 16px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 32px 0 36px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,.08);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    min-width: 0;
}

.highlight-item svg {
    flex-shrink: 0;
    color: var(--green-400);
}

.highlight-item strong {
    display: block;
    font-size: calc(21px * var(--a11y-text-scale, 1));
    font-weight: 800;
    line-height: 1;
}

.highlight-item span {
    display: block;
    font-size: calc(12.5px * var(--a11y-text-scale, 1));
    opacity: .7;
    line-height: 1.3;
}

/* Variante clicável (Lugares / Eventos Ativos) */
.highlight-item-link {
    width: 100%;
    background: rgba(255,255,255,.08);
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.highlight-item-link:hover {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.28);
    transform: translateY(-2px);
}

/* Sem isso, os dois cartões clicáveis (Lugares / Eventos Ativos) ficam
   visualmente idênticos aos quatro estáticos ao lado — nada indica que
   são links até o usuário passar o mouse. A setinha usa a mesma
   linguagem de hover (desliza ao passar o mouse) do resto do site
   (.section-link, .place-link, .ev-link). */
.highlight-item-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--green-300);
    opacity: .55;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.highlight-item-link:hover .highlight-item-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: white;
    color: var(--leaf-900);
    border-radius: 10px;
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,.38);
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    color: white;
}

.about-visual {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(6, 16, 11, 0.35);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(19, 46, 31, 0.65);
}

.about-slider {
    position: relative;
    width: 100%;
    height: 440px;
    min-height: 440px;
    background: #0f2419;
}

.about-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-slide.active {
    opacity: 1;
    transform: scale(1);
}

.about-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,28,20,0.12), rgba(13,28,20,0.52));
    pointer-events: none;
}

.about-map-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(9, 22, 15, 0.54);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    color: white;
}

.about-map-pin {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(130, 206, 150, 0.18);
    font-size: calc(18px * var(--a11y-text-scale, 1));
}

.about-map-badge strong {
    display: block;
    font-size: calc(14px * var(--a11y-text-scale, 1));
    line-height: 1.2;
}

.about-map-badge small {
    display: block;
    font-size: calc(11px * var(--a11y-text-scale, 1));
    opacity: 0.8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ================================================================
   LINHA DO TEMPO
   ================================================================ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--green-300), var(--leaf-500) 50%, var(--green-300));
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}

/* Traço "desenha" de cima para baixo quando a seção entra na tela
   (ver observeTimelineLine em home.js). */
.timeline.timeline-line-visible::before {
    transform: translateX(-50%) scaleY(1);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 56px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(15px * var(--a11y-text-scale, 1));
    line-height: 1;
    background: white;
    border: 2.5px solid var(--leaf-500);
    box-shadow: 0 4px 12px rgba(20,92,48,.14);
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -16px; }
.timeline-item:nth-child(even) .timeline-dot { left: -16px; }

.timeline-item:hover .timeline-dot {
    transform: scale(1.14);
    box-shadow: 0 8px 20px rgba(20,92,48,.3);
}

.timeline-item.timeline-featured .timeline-dot {
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    border-color: var(--leaf-900);
    box-shadow: 0 0 0 6px rgba(47,158,82,.18);
}

.timeline-card {
    display: inline-block;
    max-width: 100%;
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    padding: 20px 22px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-card {
    box-shadow: var(--shadow-card);
    border-color: var(--leaf-500);
    transform: translateY(-4px);
}

.timeline-item.timeline-featured .timeline-card {
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    border-color: var(--leaf-900);
    color: white;
    box-shadow: 0 12px 32px rgba(20,92,48,.28);
}

.timeline-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.timeline-date {
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--clay-600);
}

.timeline-tag {
    font-size: calc(10.5px * var(--a11y-text-scale, 1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--leaf-700);
    background: var(--green-50);
    padding: 3px 9px;
    border-radius: 999px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: calc(17px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: calc(14px * var(--a11y-text-scale, 1));
    color: var(--grey-500);
    line-height: 1.6;
}

.timeline-fact {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--grey-200);
    font-size: calc(12.5px * var(--a11y-text-scale, 1));
    font-weight: 600;
    line-height: 1.5;
    color: var(--leaf-700);
}

.timeline-item.timeline-featured .timeline-date,
.timeline-item.timeline-featured .timeline-title,
.timeline-item.timeline-featured .timeline-desc {
    color: white;
}

.timeline-item.timeline-featured .timeline-tag {
    color: white;
    background: rgba(255,255,255,.2);
}

.timeline-item.timeline-featured .timeline-fact {
    color: white;
    border-top-color: rgba(255,255,255,.3);
}

.timeline-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.timeline-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1.5px solid var(--leaf-500);
    background: white;
    color: var(--leaf-700);
    font: inherit;
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-more-btn:hover {
    background: var(--leaf-500);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20,92,48,.24);
}

.timeline-more-btn:hover .timeline-toggle-icon {
    transform: translateY(2px);
}

.timeline-more-btn.is-expanded .timeline-toggle-icon {
    transform: rotate(180deg);
}

.timeline-more-btn.is-expanded:hover .timeline-toggle-icon {
    transform: rotate(180deg) translateY(-2px);
}

/* ================================================================
   LINHA DO TEMPO — EXPANSÃO COMPLETA (inline, sem modal)
   Por padrão a seção mostra só 3 marcos-chave para não obrigar a
   rolar a página inteira. "Ver linha do tempo completa" troca o
   resumo pela lista com todos os marcos, direto no lugar, com um
   leve efeito cascata em cada cartão.
   ================================================================ */
.timeline-teaser {
    transition: opacity 0.2s ease;
}

.timeline-teaser.timeline-teaser-hidden {
    display: none;
}

.timeline-full-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(.22,1,.36,1);
}

.timeline-full .timeline-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-full-wrap.is-expanded .timeline-item {
    opacity: 1;
    transform: translateY(0);
}

.timeline-full-wrap.is-expanded .timeline-item:nth-child(1) { transition-delay: .04s; }
.timeline-full-wrap.is-expanded .timeline-item:nth-child(2) { transition-delay: .09s; }
.timeline-full-wrap.is-expanded .timeline-item:nth-child(3) { transition-delay: .14s; }
.timeline-full-wrap.is-expanded .timeline-item:nth-child(4) { transition-delay: .19s; }
.timeline-full-wrap.is-expanded .timeline-item:nth-child(5) { transition-delay: .24s; }
.timeline-full-wrap.is-expanded .timeline-item:nth-child(6) { transition-delay: .29s; }
.timeline-full-wrap.is-expanded .timeline-item:nth-child(7) { transition-delay: .34s; }
.timeline-full-wrap.is-expanded .timeline-item:nth-child(8) { transition-delay: .39s; }
.timeline-full-wrap.is-expanded .timeline-item:nth-child(9) { transition-delay: .44s; }

/* ================================================================
   CULTURA VIVA
   ================================================================ */
.cv-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}

.cv-fact-card {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-fact-card:hover {
    border-color: var(--leaf-500);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.cv-fact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    font-size: calc(20px * var(--a11y-text-scale, 1));
}

.cv-fact-title {
    font-family: var(--font-display);
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
}

.cv-fact-desc {
    font-size: calc(13.5px * var(--a11y-text-scale, 1));
    color: var(--grey-500);
    line-height: 1.6;
}

.cv-subheading {
    font-family: var(--font-display);
    font-size: calc(22px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 24px;
}

.cv-profiles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.cv-profile-card { flex: 1 1 280px; max-width: 360px; }

.cv-profile-card {
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-profile-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
    border-color: var(--leaf-500);
}

.cv-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-100), var(--green-50));
    border: 2px solid var(--green-200);
    color: var(--leaf-700);
    font-family: var(--font-display);
    font-size: calc(24px * var(--a11y-text-scale, 1));
    font-weight: 700;
}

.cv-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-profile-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cv-profile-name {
    font-family: var(--font-display);
    font-size: calc(17px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
}

.cv-profile-role {
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--clay-600);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.cv-profile-bio {
    font-size: calc(14px * var(--a11y-text-scale, 1));
    color: var(--grey-500);
    line-height: 1.6;
}

.example-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: calc(10px * var(--a11y-text-scale, 1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--clay-800);
    background: var(--green-100);
    padding: 3px 9px;
    border-radius: 999px;
}

/* ================================================================
   DEPOIMENTOS
   ================================================================ */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.testimonial-card { flex: 1 1 300px; max-width: 400px; }

.testimonial-card {
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
    border-color: var(--leaf-500);
}

.testimonial-quote-mark {
    font-family: var(--font-display);
    font-size: calc(48px * var(--a11y-text-scale, 1));
    line-height: 1;
    color: var(--green-100);
    font-weight: 800;
}

.testimonial-text {
    font-size: calc(15px * var(--a11y-text-scale, 1));
    color: var(--grey-700);
    line-height: 1.7;
    font-style: italic;
    margin-top: -28px;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--grey-100);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    color: white;
    font-family: var(--font-display);
    font-size: calc(15px * var(--a11y-text-scale, 1));
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: calc(14px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
}

.testimonial-role {
    font-size: calc(12px * var(--a11y-text-scale, 1));
    color: var(--grey-500);
}

/* ================================================================
   HOSPEDAGENS
   ================================================================ */
.hospedagens-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.hospedagem-card { flex: 1 1 300px; max-width: 380px; }

.hospedagem-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--grey-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.hospedagem-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
    border-color: var(--leaf-500);
}

.hosp-img {
    height: 160px;
    background: linear-gradient(135deg, var(--green-100), var(--green-50));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--leaf-700);
    position: relative;
    flex-shrink: 0;
}

.hosp-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15,36,25,.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
}

.hosp-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hosp-type {
    font-size: calc(12px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--clay-600);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hosp-name {
    font-family: var(--font-display);
    font-size: calc(18px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--grey-900);
}

.hosp-desc {
    font-size: calc(14px * var(--a11y-text-scale, 1));
    color: var(--grey-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hosp-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hosp-amenity {
    font-size: calc(11px * var(--a11y-text-scale, 1));
    font-weight: 600;
    color: var(--leaf-700);
    background: var(--green-50);
    padding: 3px 10px;
    border-radius: 999px;
}

/* Contador "+N" no card — as comodidades além da 4ª só aparecem em
   "Ver detalhes", pra não empurrar os botões de ação pra baixo de uma
   parede de chips. */
.hosp-amenity-more {
    color: var(--grey-500);
    background: var(--grey-100);
}

.hosp-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.hosp-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: calc(13px * var(--a11y-text-scale, 1));
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--grey-200);
    color: var(--grey-700);
    transition: all 0.2s;
}

.hosp-action-btn:hover {
    border-color: var(--leaf-500);
    color: var(--leaf-900);
    background: var(--green-50);
}

.hosp-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 158, 82, 0.35);
}

.hosp-action-btn-primary {
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    border-color: var(--leaf-900);
    color: white;
}

.hosp-action-btn-primary:hover {
    color: white;
    background: linear-gradient(135deg, var(--leaf-500), var(--leaf-900));
    filter: brightness(1.08);
}

/* ── Filtros (tipo, preço, comodidades) ─────────────────────────── */
.hosp-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    margin-bottom: 28px;
}

.hosp-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hosp-filter-label {
    font-size: calc(11px * var(--a11y-text-scale, 1));
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--grey-500);
    flex-shrink: 0;
}

.hosp-filter-group .category-filters {
    margin-bottom: 0;
    gap: 8px;
}

.cat-filter-sm {
    padding: 6px 14px;
    font-size: calc(12.5px * var(--a11y-text-scale, 1));
}

.hosp-fav-filter { margin-left: 4px; }

.hosp-fav-filter.cat-filter-active {
    background: linear-gradient(135deg, #ef5c78, #c8324f);
}

/* ── Favoritar — coração sobre a foto, salvo no navegador ───────── */
.hosp-fav-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--grey-500);
    cursor: pointer;
    transition: color .2s, transform .2s;
}

.hosp-fav-btn:hover {
    color: #e1385a;
    transform: scale(1.08);
}

.hosp-fav-btn.is-favorito { color: #e1385a; }
.hosp-fav-btn.is-favorito svg path { fill: currentColor; }

.hosp-fav-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 56, 90, .4);
}

@keyframes hospFavPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.hosp-fav-btn.hosp-fav-pop { animation: hospFavPop .3s cubic-bezier(.4,0,.2,1); }

/* ── Detalhes expansíveis (inline, sem modal) ────────────────────
   Endereço, telefone, nº de quartos e capacidade já ficam salvos no
   painel, mas o cartão nunca mostrava. Em vez de inflar o cartão por
   padrão, ficam atrás de "Ver detalhes" — mesmo tratamento inline da
   linha do tempo completa (ver setupTimelineToggle em home.js). */
.hospedagem-card.has-details { cursor: pointer; }

.hosp-details-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
    padding: 8px;
    border: none;
    border-top: 1px dashed var(--grey-200);
    background: none;
    font: inherit;
    font-size: calc(12.5px * var(--a11y-text-scale, 1));
    font-weight: 700;
    color: var(--leaf-700);
    cursor: pointer;
}

.hosp-details-toggle:hover {
    color: var(--leaf-900);
    background: var(--green-50);
}

.hosp-details-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 158, 82, 0.35);
}

.hosp-details-toggle svg { transition: transform .3s cubic-bezier(.4,0,.2,1); }
.hosp-details-toggle.is-expanded svg { transform: rotate(180deg); }

.hosp-details {
    max-height: 0;
    overflow: hidden;
    /* Cancela o gap de flex de .hosp-content (10px) reservado acima deste
       item mesmo com max-height:0 — sem isso sobrava um respiro fantasma
       abaixo de "Ver detalhes" no estado recolhido. O respiro visível no
       estado aberto vem só do padding-top de .hosp-details-inner. */
    margin-top: -10px;
    transition: max-height .45s cubic-bezier(.22,1,.36,1);
}

.hosp-details-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.hosp-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--green-50);
    font-size: calc(13px * var(--a11y-text-scale, 1));
    color: var(--grey-700);
}

.hosp-detail-row svg { flex-shrink: 0; color: var(--leaf-700); }

.hosp-detail-link {
    text-decoration: none;
    transition: background .2s, color .2s;
}

.hosp-detail-link:hover {
    background: var(--green-100);
    color: var(--leaf-900);
}

.hosp-detail-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 158, 82, 0.35);
}

.hosp-detail-link span:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hosp-detail-cta {
    flex-shrink: 0;
    font-weight: 800;
    color: var(--leaf-900);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .event-card,
    .hospedagem-card,
    .testimonial-card,
    .cv-profile-card { flex-basis: 260px; }

    .place-card { flex-basis: 230px; }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding: 0 0 40px 52px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 4px;
        right: auto;
    }
}

@media (max-width: 640px) {
    .container { 
        padding: 0 16px; 
    }
    
    .section {
        padding: 72px 0;
    }
    
    .hero-content {
        padding: 84px 20px 32px;
    }

    .hero-weather-corner {
        top: 76px;
        right: 14px;
        padding: 6px 12px 6px 8px;
    }

    .hero-weather-icon {
        font-size: calc(15px * var(--a11y-text-scale, 1));
    }

    .hero-weather-temp {
        font-size: calc(13px * var(--a11y-text-scale, 1));
    }

    .hero-subtitle {
        font-size: calc(14px * var(--a11y-text-scale, 1));
        line-height: 1.6;
        margin-top: 14px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 22px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: calc(14px * var(--a11y-text-scale, 1));
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }
    
    .section-header-text h2 {
        font-size: calc(26px * var(--a11y-text-scale, 1));
    }
    
    .section-header-text p {
        font-size: calc(14px * var(--a11y-text-scale, 1));
    }
    
    /* Uma coluna: o card ocupa a largura inteira em vez de ficar
       centralizado com sobra dos dois lados. */
    .eventos-grid,
    .places-grid,
    .hospedagens-grid,
    .testimonials-grid,
    .cv-profiles-grid {
        gap: 16px;
    }

    .event-card,
    .place-card,
    .hospedagem-card,
    .testimonial-card,
    .cv-profile-card {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0;
    }

    /* Rótulo sempre numa linha própria — em vez de disputar espaço com
       o primeiro chip e deixar a fileira toda desalinhada. */
    .hosp-filter-label { flex-basis: 100%; }

    /* Alvo de toque maior no coração de favoritos em telas pequenas. */
    .hosp-fav-btn {
        width: 40px;
        height: 40px;
    }

    .about-text h2 {
        font-size: calc(26px * var(--a11y-text-scale, 1));
        margin-bottom: 16px;
    }
    
    .about-text p {
        font-size: calc(15px * var(--a11y-text-scale, 1));
        line-height: 1.7;
    }

    .about-slider {
        height: 280px;
        min-height: 280px;
    }

    .about-highlights {
        grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
        margin: 24px 0;
        gap: 10px;
    }

    .highlight-item {
        padding: 14px;
        gap: 12px;
    }
    
    .highlight-item svg {
        width: 20px;
        height: 20px;
    }
    
    .highlight-item strong {
        font-size: calc(20px * var(--a11y-text-scale, 1));
    }
    
    .highlight-item span {
        font-size: calc(12px * var(--a11y-text-scale, 1));
    }
    
    .category-filters {
        gap: 6px;
        margin-bottom: 24px;
    }
    
    .cat-filter {
        padding: 8px 16px;
        font-size: calc(13px * var(--a11y-text-scale, 1));
    }
    
    /* No celular o card centralizado (ícone grande em cima, texto embaixo)
       gastava ~230px de altura por lugar. Em linha, o ícone vira uma
       miniatura à esquerda e a lista fica varrível com o polegar. */
    .place-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 14px;
        padding: 16px;
    }

    .place-icon {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }

    .place-icon svg {
        width: 24px;
        height: 24px;
    }

    .place-link {
        justify-content: flex-start;
        margin-top: 4px;
        padding-top: 0;
    }

    .place-name {
        font-size: calc(16px * var(--a11y-text-scale, 1));
    }
    
    .place-desc {
        font-size: calc(13px * var(--a11y-text-scale, 1));
    }
    
    .ev-title {
        font-size: calc(16px * var(--a11y-text-scale, 1));
    }
    
    .ev-desc {
        font-size: calc(13px * var(--a11y-text-scale, 1));
    }

    .timeline-more-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ================================================================
   REVELAR AO ROLAR — interatividade leve nas seções
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(.22,1,.36,1), transform 0.6s cubic-bezier(.22,1,.36,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ================================================================
   ACESSIBILIDADE — efeitos por página
   ================================================================ */
.a11y-focus .hero-overlay {
    background: linear-gradient(135deg, rgba(6,15,10,.95) 0%, rgba(10,25,15,.85) 50%, rgba(6,15,10,.95) 100%);
}
.a11y-focus .hero-weather-corner { display: none; }
.a11y-focus .hero-scroll-indicator { display: none; }
.a11y-focus .event-card,
.a11y-focus .place-card {
    border-color: var(--leaf-400);
}

.a11y-high-contrast { background: #fff; }
/* Várias seções (Sobre, Cultura Viva, Hospedagens, o card "em destaque" da
   linha do tempo, badges de preço, botões ativos de filtro...) usam fundo
   escuro/colorido com texto branco por padrão. Forçar só o fundo da seção
   para branco sem tratar o resto deixa esse texto branco-sobre-branco
   (invisível). E forçar só a cor do texto sem também neutralizar os fundos
   próprios desses cartões cria o problema oposto: texto escuro herdado
   sobre um fundo que continua escuro. A única forma de garantir que nunca
   sobre nem uma coisa nem outra é zerar os dois em cascata para TODOS os
   descendentes — sem lista de seletores, que sempre fica incompleta
   conforme a página cresce. */
.a11y-high-contrast .section,
.a11y-high-contrast .bg-off {
    background: #fff !important;
    background-image: none !important;
    color: #111827 !important;
}
.a11y-high-contrast .section *:not(.hosp-img),
.a11y-high-contrast .bg-off *:not(.hosp-img) {
    color: inherit !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
/* .hosp-img guarda a foto real da hospedagem via background-image inline
   — não é fundo decorativo de cartão, é o próprio conteúdo. A cascata
   acima (necessária para os cartões escuros ao redor) não pode apagá-la;
   só reforça a borda para continuar se destacando do fundo branco. */
.a11y-high-contrast .hosp-img { border: 1px solid #000 !important; }
.a11y-high-contrast .event-card,
.a11y-high-contrast .place-card,
.a11y-high-contrast .cat-filter,
.a11y-high-contrast .highlight-item,
.a11y-high-contrast .about-map-badge,
.a11y-high-contrast .timeline-card,
.a11y-high-contrast .timeline-dot,
.a11y-high-contrast .news-card,
.a11y-high-contrast .hosp-price-badge,
.a11y-high-contrast .hosp-action-btn,
.a11y-high-contrast .hosp-fav-btn,
.a11y-high-contrast .hosp-details-toggle,
.a11y-high-contrast .hosp-detail-link { border: 1px solid #000 !important; }
.a11y-high-contrast .cat-filter-active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}
.a11y-high-contrast .section-header-text p,
.a11y-high-contrast .ev-desc,
.a11y-high-contrast .place-desc { color: #374151 !important; }
.a11y-high-contrast .about-map-badge,
.a11y-high-contrast .hero-stat-link,
.a11y-high-contrast .highlight-item { background: #f3f4f6 !important; }

.a11y-reduce-motion .hero-scroll-indicator,
.a11y-reduce-motion .about-slider { animation: none !important; }
.a11y-reduce-motion .about-slide { transition: none !important; }
.a11y-reduce-motion .hosp-fav-btn.hosp-fav-pop { animation: none !important; }
.a11y-reduce-motion .hosp-details,
.a11y-reduce-motion .hosp-details-toggle svg { transition: none !important; }

.a11y-underline-links .hero-btn,
.a11y-underline-links .section-link { text-decoration: none !important; }
