/* Estilos específicos da página Cobertura */

/* Introdução da Cobertura */
.coverage-intro {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.05), rgba(0, 172, 193, 0.05));
    padding: 4rem 0;
    margin-top: -2rem;
}

.intro-content {
    text-align: center;
}

.intro-content h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.intro-content > p {
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.coverage-map {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Seções de Região */
.region-section {
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.region-section:nth-child(even) {
    background: #f8f9fa;
}

.region-section:last-of-type {
    border-bottom: none;
}

.region-header {
    text-align: center;
    margin-bottom: 2rem;
}

.region-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.region-header h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.region-price {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.region-description {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.region-description p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

/* Galeria de Imagens */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    background: linear-gradient(to top, rgba(0, 119, 182, 0.95), transparent);
}

/* CTA Final */
.coverage-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

.cta-buttons .btn-secondary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .intro-content h2 {
        font-size: 2rem;
    }

    .coverage-map {
        padding: 1.5rem;
    }

    .region-section {
        padding: 3rem 0;
    }

    .region-header h2 {
        font-size: 1.6rem;
    }

    .region-price {
        font-size: 1.5rem;
    }

    .region-description {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-item img {
        height: 180px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .cta-box p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .coverage-intro {
        padding: 2rem 0;
    }

    .intro-content h2 {
        font-size: 1.8rem;
    }

    .coverage-map {
        padding: 1rem;
    }

    .region-badge {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .region-header h2 {
        font-size: 1.4rem;
    }

    .region-price {
        font-size: 1.3rem;
    }

    .region-description {
        padding: 1.2rem;
    }

    .region-description p {
        font-size: 0.95rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

    .coverage-cta {
        padding: 3rem 0;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-box p {
        font-size: 1rem;
    }
}

/* Efeito de Loading para Imagens */
.gallery-item img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Animação de Entrada */
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

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