:root {
    --pastoril-blue: #1e3a8a;
    --pastoril-red: #dc2626;
    --pastoril-gold: #f9cf30;
    --pastoril-silver: #c0c0c0;
    --pastoril-white: #ffffff;
    --pastoril-dark: #1f2937;
}

/* TUDO EM GABRIOLA */
body {
    font-family: "Gabriola", "Times New Roman", serif;
    scroll-behavior: smooth;
    color: var(--pastoril-dark);
    background-color: var(--pastoril-white);
    line-height: 1.6;
    font-size: 18px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Gabriola", "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}


a {
    color: var(--pastoril-red);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--pastoril-blue);
}

/* Background and Text Color Utilities */
.bg-pastoril-blue { background: var(--pastoril-blue) !important; }
.bg-pastoril-red { background: var(--pastoril-red) !important; }
.bg-pastoril-gold { background: var(--pastoril-gold) !important; }
.bg-pastoril-silver { background: var(--pastoril-silver) !important; }

.text-pastoril-blue { color: var(--pastoril-blue) !important; }
.text-pastoril-red { color: var(--pastoril-red) !important; }
.text-pastoril-gold { color: var(--pastoril-gold) !important; }
.text-pastoril-silver { color: var(--pastoril-silver) !important; }
.text-pastoril-white { color: var(--pastoril-white) !important; }

.border-pastoril-gold { border-color: var(--pastoril-gold) !important; }
.border-pastoril-silver { border-color: var(--pastoril-silver) !important; }

/* Navbar - GRADIENTE AZUL-VERMELHO (IGUAL AO FOOTER) */
.navbar-fixed-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, var(--pastoril-blue), var(--pastoril-red)) !important;
    box-shadow: 0 4px 20px rgba(30,58,138,0.3);
    border-bottom: 3px solid var(--pastoril-gold);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: var(--pastoril-white) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-weight: 500;
}

.navbar-dark .nav-link:hover {
    color: var(--pastoril-gold) !important;
}

.navbar-dark .nav-link.active {
    color: var(--pastoril-gold) !important;
    border-bottom: 3px solid var(--pastoril-gold);
    border-radius: 5px;
    padding-bottom: 5px;
}

.logo-img {
    height: 55px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 2px solid var(--pastoril-gold);
}

/* Hero Carousel */
.hero-carousel {
    height: 100vh;
    min-height: 500px;
}
.hero-img {
    height: 100vh;
    min-height: 500px;
    object-fit: cover;
}
.carousel-caption {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9));
    border: 2px solid var(--pastoril-gold);
    border-radius: 25px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(30,58,138,0.2);
}
.carousel-caption h1 {
    color: var(--pastoril-blue) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}



section {
    padding-top: 90px;
    padding-bottom: 80px;
}

/* Hero não tem padding no topo para grudar na navbar */
.hero-carousel {
    padding-top: 0;
}


/* Cards */
.card {
    transition: all 0.4s ease;
    border: 2px solid transparent;
    border-radius: 15px;
}
.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(220,38,38,0.25) !important;
    border-color: var(--pastoril-gold);
}
.card-title {
    color: var(--pastoril-red);
    font-weight: 700;
}

/* Buttons */
.btn-pastoril {
    background: linear-gradient(135deg, var(--pastoril-red), var(--pastoril-blue));
    border: 2px solid var(--pastoril-gold);
    color: var(--pastoril-white) !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-pastoril:hover {
    background: linear-gradient(135deg, var(--pastoril-blue), var(--pastoril-red));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220,38,38,0.4);
    color: var(--pastoril-white) !important;
}

/* Sections */
section {
    padding-top: 90px;
    padding-bottom: 80px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--pastoril-blue), var(--pastoril-red));
    position: relative;
    overflow: hidden;
    color: var(--pastoril-white);
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pastoril-gold), var(--pastoril-silver), var(--pastoril-gold));
}


.footer-link {
    color: var(--pastoril-gold);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--pastoril-red);
}





/* Gallery Styles */
.gallery-img {
    transition: all 0.4s ease;
    border: 3px solid transparent;
    border-radius: 15px;
}
.gallery-img:hover {
    transform: scale(1.05);
    border-color: var(--pastoril-gold);
    box-shadow: 0 15px 35px rgba(249,207,48,0.3);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30,58,138,0.9));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: all 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Social Links */
.social-links a {
    transition: all 0.3s;
    padding: 10px 15px;
    border-radius: 50px;
    margin: 0 8px;
    font-weight: 600;
}
.social-links a:hover {
    background: var(--pastoril-gold);
    color: var(--pastoril-blue) !important;
    transform: translateY(-3px);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--pastoril-blue);
}
.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid var(--pastoril-silver);
    transition: border-color 0.3s;
    padding: 12px 15px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--pastoril-gold);
    box-shadow: 0 0 5px var(--pastoril-gold);
    outline: none;
}
.contact-form textarea {
    resize: vertical;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 8px 16px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-carousel, .hero-img {
        height: 70vh;
        min-height: 450px;
    }
    .carousel-caption h1 {
        font-size: 2.2rem !important;
    }
    .carousel-caption {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    .navbar-nav {
        text-align: center;
    }
}

@media (max-width: 576px) {
    section {
        padding-top: 70px;
        padding-bottom: 60px;
    }
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    .btn-pastoril {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--pastoril-blue), var(--pastoril-red));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pastoril-gold);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
section {
    animation: fadeInUp 0.8s ease-out;
}




/* Patrocinadores */
.patrocinador-card {
    background: rgba(255,255,255,0.95);
    border: 2px solid var(--pastoril-silver);
    transition: all 0.3s ease;
    border-radius: 15px;
}
.patrocinador-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30,58,138,0.2);
    border-color: var(--pastoril-gold);
}
.patrocinador-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}



/* Contato Ultra Linda - Degradê Azul-Vermelho */
.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pastoril-blue), var(--pastoril-red));
    z-index: 1;
}

.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.particle {
    position: absolute;
    background: rgba(249,207,48,0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.particle-1 { width: 120px; height: 120px; top: 15%; left: 5%; animation-delay: 0s; }
.particle-2 { width: 80px; height: 80px; top: 50%; right: 10%; animation-delay: 2s; }
.particle-3 { width: 100px; height: 100px; bottom: 25%; left: 15%; animation-delay: 4s; }
.particle-4 { width: 60px; height: 60px; top: 70%; right: 20%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-25px) rotate(180deg) scale(1.1); }
}

.contact-hero {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    border: 2px solid rgba(249,207,48,0.3);
    margin-bottom: 3rem;
}

.contact-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.contact-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}
.contact-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

.address-card {
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Redes Sociais com Imagens */
.social-hero {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3.5rem 2.5rem;
    border: 2px solid rgba(249,207,48,0.4);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.social-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
}
.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
.social-card:hover::before {
    left: 100%;
}
.social-card:hover {
    transform: translateX(15px) scale(1.02);
    border-color: var(--pastoril-gold);
    box-shadow: 0 20px 40px rgba(249,207,48,0.3);
}

.social-image {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    overflow: hidden;
    margin-right: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.social-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-content {
    flex-grow: 1;
}
.social-arrow {
    font-size: 2rem;
    color: var(--pastoril-gold);
    transition: all 0.4s ease;
}
.social-card:hover .social-arrow {
    transform: translateX(10px);
}

/* Cores específicas das redes */
.instagram-card:hover { border-color: #E4405F; }
.facebook-card:hover { border-color: #1877F2; }
.youtube-card:hover { border-color: #FF0000; }


/* Linhas do endereço com espaçamento uniforme */
.address-line {
    margin-bottom: 0.75rem !important; /* DISTÂNCIA IGUAL entre todos */
    line-height: 1.3;
}

.address-card p:last-child {
    margin-bottom: 0 !important;
}


.legado-title {
    font-size: 2.5rem;                    /* aumente/diminua aqui */
    font-family: "Dancing Script", cursive;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;                 /* mantém em minúsculo */
    margin: 0;
    animation: legadoColor 2s infinite alternate;
}

@keyframes legadoColor {
    0%   { color: var(--pastoril-blue); }
    50%  { color: var(--pastoril-red); }
    100% { color: var(--pastoril-blue); }
}




/* Imagem decorativa na parte de baixo da seção Patrocínios */
#patrocinios {
    position: relative;
    background-image: url("../img/historico/img2.png"); /* sua img2 */
    background-repeat: no-repeat;
    background-position: bottom center;  /* colada no rodapé da seção */
    background-size: 100%;                /* ajuste: 60%, 70%, 100%... */
    padding-bottom: 180px;               /* espaço para a imagem não cobrir o conteúdo */
}


.contato-banner {
    /* DESKTOP - como estava antes */
    max-width: 160px;
    width: 100%;
    height: auto;
    margin-left: 770px;
    transform: translateY(-495px);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.85));
    position: relative;
    z-index: 10;
}

/* RESPONSIVO - Tablets */
@media (max-width: 992px) {
    .contato-banner {
        margin-left: 300px;
        transform: translateY(-200px);
        max-width: 140px;
    }
}

/* RESPONSIVO - Celulares */
@media (max-width: 768px) {
    .contato-banner {
        margin-left: -20px !important;
        margin-top: -50px !important;
        transform: none !important;
        max-width: 140px;
        position: absolute;
        top: 20px;
        left: 38%;  /* MAIS UM POUQUINHO para esquerda (era 41%) */
        z-index: 20;
    }
    
    .col-lg-3 {
        position: relative;
        display: flex;
        justify-content: center;
        padding-top: 120px;
        order: -1;
    }
}


/* FLASH DE LUZ BRILHANTE */
.contato-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, 
                                  rgba(255,255,255,0.4) 50%, 
                                  transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flash-light 2s infinite;
    z-index: 10;
}

@keyframes flash-light {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0px) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px) scale(1.1); }
}




/* Página Histórico */


/* Fundo background */
body {
    font-family: "Gabriola", "Poppins", sans-serif;
    scroll-behavior: smooth;
    color: var(--pastoril-dark);
    background-color: var(--pastoril-white);

    background-image: url("../img/historico/img1.png"),  /* topo  */
                      url("../img/historico/img2.png");  /* rodapé */
    background-repeat: no-repeat, no-repeat;

    background-position: top 120px center, bottom 120px center;

    /* 1º valor = img1 (aumente só ele)
       2º valor = img2 (mantido) */
    background-size: 80%, 110%;
}

/* Tablets */
@media (max-width: 992px) {
    body {
        background-position: top 90px center, bottom 90px center;
        background-size: 130%, 130%;
    }
}

/* Celulares */
@media (max-width: 576px) {
    body {
        background-position: top 60px center, bottom 60px center;
        background-size: 150%, 150%;
    }
}



.historico-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    max-width: 700px;   /* deixe 600–800px conforme gostar */
    margin: 40px auto;  /* centralizado, com um pouco de margem vertical */
    border-radius: 20px;
}



/* Menos espaço abaixo do subtítulo da página histórico */
.section-historico-bg .lead {
    margin-bottom: 1.5rem; /* antes era mb-5 (3rem). Pode usar 1rem, 0.5rem, etc. */
}



.historico-top-img {
    max-width: 600px;  /* ajuste o tamanho máximo */
    width: 100%;
    height: auto;
}


.historico-top-img {
    max-width: 600px;      /* tamanho da imagem, ajuste se quiser */
    width: 100%;
    height: auto;

    margin-top: -200px;     /* sobe a imagem (aumente para subir mais) */
    margin-bottom: 1rem;   /* espaço abaixo antes do título */
}

/* -------------------------------------------------------------------------------------------------*/

/* -------PáginA de foto, videos e memorial -------------------------------------*/

/* Dropdown */
.navbar .dropdown-menu {
    background: #fff6e8;
    border-radius: 10px;
}
.dropdown-item:hover {
    background: #f1d7b8;
}

/* Memorial */
.memorial-section {
    background: linear-gradient(to bottom, #8b0000, #000);
}
.memorial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
}
.memorial-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.vela {
    width: 50px;
}



footer {
    margin-top: auto;
}

