﻿.card.hoverable:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.titulo-fluido-bs {
    font-size: clamp(1.2rem, 3.5vw, 2.5rem);
    flex-wrap: nowrap;
    font-weight: bold;
    text-align: center;
}

.card-img-top {
    /*height: 420px;
      object-fit:fill;*/
    /*height: 240px;*/ /* ou 120px se quiseres mais compacta */
    /*object-fit: cover;
  object-position: center;*/

    height: 280px; /* controla a altura máxima da imagem */
    object-fit: contain; /* mostra a imagem inteira sem cortar */
    object-position: center;
    /*background-color: #f8f9fa;*/
}

/*.nav-link.active {
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
    padding: 6px 12px;
}*/
.nav-link.active {
    font-weight: 600;
    color: #333;
    background-color: #e9ecef;
    border-radius: 6px;
    padding: 6px 12px;
    transition: background-color 0.3s ease;
}

.hero {
    padding-top:10px;
    padding: 0rem 0rem;
    background: linear-gradient(135deg, #e6f0ea, #ffffff);
    text-align: center;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

    .hero h1 {
        font-size: clamp(1.2rem, 3.5vw, 2.5rem);
        font-weight: 700;
        color: #2b4c3f;
    }

    .hero h2 {
        font-size: clamp(0.8rem, 2.5vw, 1.5rem);
        font-weight: 400;
        color: #4d6f5e;
    }


.trail-header {
    background-color: #e8f5e9;
    padding: 0.2rem;
    border: 1px solid #c8e6c9;
    border-radius: 0.75rem;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .trail-header h1 {
        font-size: clamp(1.2rem, 3.5vw, 2.5rem);
        color: #2e7d32;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .trail-header h2 {
        font-size: clamp(0.8rem, 2.5vw, 1.5rem);
        color: #4e704e;
        font-weight: 400;
        margin-top: 0.25rem;
    }

.fa-mountain {
    font-size: 1.5rem;
    color: #2e7d32;
}

/* Estilos para os circuitos */

/*.circuito-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    transition: all .25s ease;
    background: #fff;
}

    .circuito-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,.14) !important;
    }

.circuito-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #f4f4f4;
}*/
.circuito-card {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transition: all .25s ease;
    background: #fff;
}

    .circuito-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.14);
    }

.circuito-img-wrap {
    width: 100%;
    height: 300px;
    background: #f1f3f5;
    overflow: hidden;
    position: relative;
}

.circuito-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* testa primeiro cover */
    object-position: center; /* depois podes ajustar */
    display: block;
}


.estado-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .8rem;
    padding: 8px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.card-em-curso {
    border-top: 4px solid #198754;
}

.card-terminado {
    border-top: 4px solid #6c757d;
    opacity: .96;
}

.circuito-card .card-title {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1f2a37;
    min-height: 54px;
}

.filtro-btn {
    min-width: 140px;
    border-radius: 999px;
}

    .filtro-btn.active {
        box-shadow: 0 4px 12px rgba(0,0,0,.12);
    }

@media (max-width: 768px) {
    .circuito-img {
        height: 300px;
    }
}