/* Cidades onde estamos Page Styles */

/* Main Content with Fixed Background */
.main-content {
    position: relative;
    min-height: 100vh;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #233B63;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.page-header .divider {
    width: 80px;
    height: 4px;
    background: #FBBC04;
    margin: 20px auto;
    border-radius: 2px;
}

.page-header p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #555;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
}

/* Cidades Section */
.cidades-section {
    padding: 80px 0;
    background: transparent;
}

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

/* Estado Group */
.estado-group {
    margin-bottom: 60px;
}

.estado-group:last-child {
    margin-bottom: 0;
}

.estado-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #233B63;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.estado-title svg {
    color: #FBBC04;
    flex-shrink: 0;
}

/* Cidades Grid - cada cidade-card ocupa 100% da linha */
.cidades-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

/* Cidade Card - ocupa 100% do container */
.cidade-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    width: 100%;
}

.cidade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cidade-nome {
    font-size: 1.4rem;
    font-weight: 700;
    color: #233B63;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FBBC04;
}

.paroquias-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cada paroquia-item ocupa 100% da largura do card */
.paroquia-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    border-bottom: 1px solid #000000;
}

.paroquia-item:last-child {
    border-bottom: none;
}

/* Esquerda: header + endereço */
.paroquia-left {
    flex: 1 1 0;
    display: flex;
    padding-top: 20px;
    flex-direction: column;
    min-width: 0;
}

/* Meio: missas */
.paroquia-missas {
    flex: 1 1 0;
    min-width: 0;
    align-self: center;
}

/* Direita: nome do pároco em cima + foto (até 2 linhas) */
.paroquia-photo-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

/* Cada linha: nome do pároco + foto (Foto 1 primeiro, depois Foto 2) */
.paroquia-photo-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.paroquia-paroco-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #233B63;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
}

.paroquia-photo {
    width: 180px;
    height: 210px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.paroquia-photo-placeholder {
    width: 180px;
    height: 210px;
    background: #e5e7eb;
    border-radius: 8px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

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

.paroquia-header svg {
    color: #233B63;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.paroquia-nome {
    font-weight: 600;
    color: #233B63;
    font-size: 1.5rem;
    line-height: 1.5;
}

.paroquia-endereco {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.paroquia-endereco svg {
    color: #6b7280;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.paroquia-endereco span {
    flex: 1;
}

/* No Cidades */
.no-cidades {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.2rem;
}

/* Animações */
[data-animate] {
    opacity: 0;
    animation-fill-mode: both;
}

.page-header h1[data-animate] {
    animation-delay: 0.2s;
}

.page-header .divider[data-animate] {
    animation-delay: 0.4s;
}

.page-header p[data-animate] {
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: both;
}

.page-header p[data-animate]:not(.in-view) {
    opacity: 0;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active states */
.in-view[data-animate="fade-up"] {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cidades-grid {
        gap: 20px;
    }
    
    .cidades-section {
        padding: 60px 0;
    }
    
    .estado-group {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 60px;
    }
    
    .cidades-section {
        padding: 50px 0;
    }
    
    .cidades-grid {
        flex-direction: column;
        gap: 16px;
    }
    
    .cidade-card {
        padding: 20px;
    }
    
    .paroquias-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .paroquia-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .paroquia-left,
    .paroquia-missas {
        flex: 1 1 auto;
    }
    
    .paroquia-photo-section {
        align-self: center;
        margin-top: 10px;
    }
    
    .cidade-nome {
        font-size: 1.2rem;
    }
    
    .estado-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .cidades-section {
        padding: 40px 0;
    }
    
    .cidade-card {
        padding: 16px;
    }
    
    .cidade-nome {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .paroquia-item {
        font-size: 0.95rem;
    }
    
    .estado-title {
        font-size: 1.3rem;
    }
}

