main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 60px;
}

/* Section: Sobre (INTRO) */
.sobre {
    margin-bottom: 60px;
    text-align: center;
}

.sobre-container h1 {
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: var(--text);
}

.sobre-container p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* VALORES SECTION (NEW) */
.valores-section {
    padding: 80px 0;
    margin-bottom: 80px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f8fafc);
}

.valores-container h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text);
}

.valores-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.valor-item {
    text-align: center;
    max-width: 280px;
    padding: 30px;
    cursor: pointer;
    perspective: 1000px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-10px);
}

.valor-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.valor-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.valor-item h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text);
}

.valor-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Tooltip Effect for Values */
.valor-item::before {
    content: attr(data-frase);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    width: 250px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.valor-item:hover::before {
    opacity: 1;
    bottom: -70px; /* Adjusted to not overlap */
}

/* MAPA INTERATIVO SIMPLEMAPS */
.cobertura-interativa {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

#map {
    width: min(80vw, 70vh);
    height: min(80vw, 70vh);
    max-width: 700px;
    max-height: 700px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    background: #fff;
}

/* Esconder apenas o link do Simplemaps */
#map a[href*="simplemaps.com"],
#map a[href*="simplemaps"],
#map .simplemaps_watermark,
#map div[style*="font-size: 10px"][style*="text-anchor: middle"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    #map { 
        width: 90vw; 
        height: 90vw; 
        max-width: none;
        max-height: none;
    }
}

/* TIMELINE STYLES */
.nossa-historia {
    padding: 80px 20px;
    background: #fff;
}

.nossa-historia h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--accent);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item.right::after { left: -12px; }

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.date {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 18px; }
    .timeline-item.right { left: 0%; }
}

/* Section: Cobertura */
.cobertura {
    text-align: center;
    margin-bottom: 100px;
    padding-top: 60px;
}

.cobertura h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text);
}

.cobertura .sub {
    color: var(--muted);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

.cobertura-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    height: 280px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 42, 94, 0.9), transparent 70%);
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s ease;
}

.overlay h3 {
    margin-bottom: 4px;
    font-size: 1.4rem;
}

.overlay i {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.3rem;
    opacity: 0.8;
}

/* MODAL MODERNIZADO */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 42, 94, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-box {
    transform: translateY(0) scale(1);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.close:hover {
    background: rgba(0,0,0,0.2);
}

.modal-content-wrapper {
    display: flex;
    height: 100%;
    min-height: 500px;
}

.modal-left {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-right {
    flex: 1;
    background: #1a1a1a;
    position: relative;
}

#modalTitle {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text);
}

.modal-carrossel {
    position: relative;
    flex-grow: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.modal-carrossel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.modal-carrossel img.active {
    opacity: 1;
}

.dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dots span {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dots span.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* MAPA NO MODAL */
.mapa-pro-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

#mapa-interativo {
    width: 100%;
    height: 100%;
}

.mapa-card-info {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.7); /* Reduced opacity */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    color: #fff;
    max-width: 220px;
    pointer-events: none; /* Allows clicking markers through the info card if they overlap */
}

.mapa-card-info * {
    pointer-events: auto; /* Re-enable pointer events for text if needed, though usually not */
}

.status-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #00ff88;
    animation: blink-status 2s infinite;
}

.status-text {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #00ff88;
}

@keyframes blink-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mapa-card-info h3 { 
    font-size: 16px; 
    margin: 0; 
    color: #fff; /* Reset to white as requested */
}
.mapa-card-info p { font-size: 12px; margin: 4px 0 0; color: #ccc; }

.custom-pin { position: relative; }
.pin-center {
    width: 12px; height: 12px;
    background: var(--accent); /* Blue color */
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.pin-pulse {
    width: 40px; height: 40px;
    background: rgba(30, 144, 255, 0.3); /* Blue pulse */
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse-map 2.5s infinite;
}

@keyframes pulse-map {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.btn-rota { 
    color: #1e90ff; /* Exact same blue as --accent */
    text-decoration: none; 
    font-weight: bold; 
    font-size: 12px; 
}

/* Responsive */
@media (max-width: 850px) {
    .modal-content-wrapper {
        flex-direction: column;
    }
    .modal-left {
        padding: 30px;
        flex: none;
    }
    .modal-right {
        height: 350px;
        flex: none;
    }
    .modal-carrossel {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .sobre-container h1 { font-size: 2rem; }
    .card { height: 240px; }
    #modalTitle { font-size: 1.5rem; }
}
