/* ================================================================
   SEÇÕES DO CORTEJO — PAJENS · FLORISTAS · DAMINHAS
   ================================================================ */

/* ----------------------------------------------------------------
   WRAPPER GERAL DE CADA SEÇÃO
---------------------------------------------------------------- */
.secao-cortejo {
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Fundos suaves alternados para dar ritmo visual */
.secao-pajens {
    background: linear-gradient(180deg, #FFFDF7 0%, #FFF8E7 100%);
}

.secao-floristas {
    background: linear-gradient(180deg, #FFF8E7 0%, #FFFDF7 100%);
}

.secao-daminhas {
    background: linear-gradient(180deg, #FFFDF7 0%, #FFF3E0 100%);
    padding-bottom: 100px;
}

/* ----------------------------------------------------------------
   HEADER DA SEÇÃO (título + subtítulo + ornamento)
---------------------------------------------------------------- */
.secao-cortejo-header {
    max-width: 720px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ornamento-topo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #8B0000;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.secao-cortejo-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #8B0000;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.secao-cortejo-subtitulo {
    font-family: 'Dancing Script', cursive;
    font-size: 1.25rem;
    color: #B8860B;
    margin: 0;
    font-weight: 400;
}

.ornamento-linha {
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin-top: 4px;
    position: relative;
}

.ornamento-linha::before,
.ornamento-linha::after {
    content: "◆";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: #D4AF37;
}

.ornamento-linha::before { left: -14px; }
.ornamento-linha::after  { right: -14px; }

/* ----------------------------------------------------------------
   GRID COMUM
---------------------------------------------------------------- */
.grid-cortejo {
    display: grid;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: center;
}

.grid-pajens,
.grid-floristas {
    grid-template-columns: repeat(3, 1fr);
}

.grid-daminhas {
    grid-template-columns: 1fr;
    max-width: 400px;
}

/* ----------------------------------------------------------------
   ITEM DO CORTEJO (foto + nome + parentesco)
---------------------------------------------------------------- */
.cortejo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.4s ease;
}

.cortejo-item:hover {
    transform: translateY(-6px);
}

/* ----------------------------------------------------------------
   MOLDURAS — BASE COMUM
---------------------------------------------------------------- */
.cortejo-moldura {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow:
        0 8px 24px rgba(139, 0, 0, 0.15),
        0 0 0 4px #FFFFFF,
        0 0 0 6px #D4AF37;
    transition: all 0.4s ease;
}

.cortejo-moldura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.cortejo-item:hover .cortejo-moldura img {
    transform: scale(1.06);
}

.cortejo-item:hover .cortejo-moldura {
    box-shadow:
        0 16px 40px rgba(139, 0, 0, 0.25),
        0 0 0 4px #FFFFFF,
        0 0 0 6px #FFD700;
}

/* ----------------------------------------------------------------
   1) MOLDURA ELÍPTICA — PAJENS
   (mesmo efeito dos padrinhos)
---------------------------------------------------------------- */
.moldura-elipse {
    width: 220px;
    height: 300px;
    border-radius: 50% / 45%;
}

/* Efeito "padrinhos" — brilho suave por dentro */
.moldura-elipse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50% / 45%;
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

/* ----------------------------------------------------------------
   2) MOLDURA CIRCULAR — FLORISTAS
---------------------------------------------------------------- */
.moldura-circular {
    width: 220px;
    height: 220px;
    border-radius: 50%;
}

.moldura-circular::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.25);
    pointer-events: none;
}

/* ----------------------------------------------------------------
   3) MOLDURA CENTRAL — DAMINHAS
   (maior destaque + ornamentos nos cantos)
---------------------------------------------------------------- */
.moldura-central {
    width: 320px;
    height: 400px;
    border-radius: 12px;
    box-shadow:
        0 12px 40px rgba(139, 0, 0, 0.25),
        0 0 0 6px #FFFFFF,
        0 0 0 9px #D4AF37,
        0 0 0 12px #FFF8E7,
        0 0 0 13px #D4AF37;
}

/* Cantos ornamentados (flores douradas) */
.moldura-ornamento-tl,
.moldura-ornamento-tr,
.moldura-ornamento-bl,
.moldura-ornamento-br {
    position: absolute;
    width: 40px;
    height: 40px;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.moldura-ornamento-tl {
    top: -22px;
    left: -22px;
    border-top: 3px solid #D4AF37;
    border-left: 3px solid #D4AF37;
    border-top-left-radius: 12px;
}

.moldura-ornamento-tr {
    top: -22px;
    right: -22px;
    border-top: 3px solid #D4AF37;
    border-right: 3px solid #D4AF37;
    border-top-right-radius: 12px;
}

.moldura-ornamento-bl {
    bottom: -22px;
    left: -22px;
    border-bottom: 3px solid #D4AF37;
    border-left: 3px solid #D4AF37;
    border-bottom-left-radius: 12px;
}

.moldura-ornamento-br {
    bottom: -22px;
    right: -22px;
    border-bottom: 3px solid #D4AF37;
    border-right: 3px solid #D4AF37;
    border-bottom-right-radius: 12px;
}

/* ----------------------------------------------------------------
   NOMES E PARENTESCO
---------------------------------------------------------------- */
.cortejo-nome {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #8B0000;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.cortejo-nome.nome-central {
    font-size: 1.5rem;
    margin-top: 30px;
}

.cortejo-parentesco {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    font-weight: 400;
}

/* ----------------------------------------------------------------
   ANIMAÇÃO DE ENTRADA (fade + subida suave)
---------------------------------------------------------------- */
@keyframes cortejoEntrada {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cortejo-item {
    animation: cortejoEntrada 0.8s ease both;
}

.grid-cortejo .cortejo-item:nth-child(1) { animation-delay: 0.1s; }
.grid-cortejo .cortejo-item:nth-child(2) { animation-delay: 0.25s; }
.grid-cortejo .cortejo-item:nth-child(3) { animation-delay: 0.4s; }

/* ----------------------------------------------------------------
   RESPONSIVIDADE
---------------------------------------------------------------- */
@media (max-width: 900px) {
    .moldura-elipse,
    .moldura-circular {
        width: 180px;
        height: 180px;
    }

    .moldura-elipse {
        height: 240px;
    }

    .secao-cortejo-titulo {
        font-size: 1.8rem;
    }
}

@media (max-width: 700px) {
    .secao-cortejo {
        padding: 50px 16px;
    }

    .grid-pajens,
    .grid-floristas {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .moldura-elipse,
    .moldura-circular {
        width: 160px;
        height: 160px;
    }

    .moldura-elipse {
        height: 220px;
    }

    .moldura-central {
        width: 260px;
        height: 320px;
    }

    .secao-cortejo-titulo {
        font-size: 1.6rem;
    }

    .secao-cortejo-subtitulo {
        font-size: 1.05rem;
    }

    .cortejo-nome {
        font-size: 1.05rem;
    }

    .cortejo-nome.nome-central {
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .moldura-central {
        width: 220px;
        height: 280px;
    }

    .moldura-ornamento-tl,
    .moldura-ornamento-tr,
    .moldura-ornamento-bl,
    .moldura-ornamento-br {
        width: 30px;
        height: 30px;
    }
}

/* ----------------------------------------------------------------
   ACESSIBILIDADE — prefers-reduced-motion
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .cortejo-item {
        animation: none !important;
        transition: none !important;
    }

    .cortejo-item:hover {
        transform: none;
    }

    .cortejo-item:hover .cortejo-moldura img {
        transform: none;
    }
}

/* ----------------------------------------------------------------
   IMPRESSÃO
---------------------------------------------------------------- */
@media print {
    .secao-cortejo {
        page-break-inside: avoid;
        padding: 30px 10px;
    }

    .cortejo-item {
        animation: none !important;
    }

    .cortejo-moldura {
        box-shadow: 0 0 0 2px #D4AF37;
    }
}