/* Reset e estilos básicos */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.containergeral{
max-width: 1320px;
margin: 0 auto;
}

body {
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;

}

a {
text-decoration: none;
color: inherit;
}

img {
max-width: 100%;
height: auto;
}

/* Navbar */
.navbar {
background-color: #2c3e50;
color: white;
padding: 1rem 2rem;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);



}
.navcontainer{
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
align-items: center;
}

.logo {
height: 60px;

width: auto;
}

.logo img {
height: 100%;
filter: brightness(0) invert(1);
}


.nav-links {
display: flex;
list-style: none;

}

.nav-links li {
margin-left: 1.5rem;
}

.nav-links a {
color: white;
font-weight: 500;
transition: color 0.3s;
padding: 0.5rem 0;
position: relative;
}

.nav-links a:hover {
color: #f8f9fa;
}

.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: #f8f9fa;
transition: width 0.3s;
}

.nav-links a:hover::after {
width: 100%;
}

.menu-toggle {
display: none;
cursor: pointer;
font-size: 1.5rem;
}

/* Hero Section */
.hero {
margin-top: 80px;
height: 500px;
position: relative;
top: 12px;
overflow: hidden;
border-radius: 0px 0px 10px 10px;

}

.hero-image {
width: 100%;
height: 100%;
object-fit: cover;

}

.event-video {
    width: 100%;
    max-width: 800px; /* limita largura máxima se quiser */
    height: 300px; /* altura menor pra não ficar comprido */
    object-fit: cover; /* corta as bordas se estiver desproporcional */
   
    display: block;
    margin: 0 auto 10px;
}


.hero-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
color: rgb(255, 255, 255);
padding: 3vh;
text-align: center;
    text-shadow: 3px 4px 4px #000000;
}

.hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}

.hero p {
font-size: 1.2rem;
max-width: 800px;
margin: 0 auto;
}

/* Seções comuns */
.section {
padding: 4rem 2rem;
}

.section-title {
text-align: center;
margin-bottom: 3rem;
font-size: 2rem;
color: #2c3e50;
position: relative;
}

.section-title::after {
content: '';
display: block;
width: 80px;
height: 4px;
background-color: #3498db;
margin: 1rem auto 0;
}



/* Serviços */
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.service-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
height: 200px;
width: 100%;
object-fit: cover;
}

.service-content {
padding: 1.5rem;
}

.service-content h3 {
margin-bottom: 1rem;
color: #2c3e50;
}

.service-content p {
margin-bottom: 1.5rem;
color: #666;
}

.btn {
display: inline-block;
padding: 0.5rem 1.5rem;
background-color: #3498db;
color: white;
border-radius: 4px;
transition: background-color 0.3s;
}

.btn:hover {
background-color: #2980b9;
}

.btn-outline {
background-color: transparent;
border: 2px solid #3498db;
color: #3498db;
}

.btn-outline:hover {
background-color: #3498db;
color: white;
}

/* Sobre o CRAS */
.about-cras {
background-color: #f1f5f9;
}

.about-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 2rem;
align-items: center;
}

.about-image {
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
margin-bottom: 1.5rem;
color: #2c3e50;
}

.about-content p {
margin-bottom: 1rem;
color: #555;
}

/* Profissionais */
.team-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.contact-info h3 {
margin-bottom: 1.5rem;
color: #2c3e50;
}

.contact-item {
display: flex;
 font-size: 20px;
align-items: flex-start;
margin-bottom: 1rem;
}

.contact-icon {
margin-right: 1rem;
color: #3498db;
font-size: 1.2rem;
margin-top: 0.2rem;
}

.map-container {
height: 400px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
width: 100%;
height: 100%;
border: none;
}

/* Footer */
footer {
background-color: #2c3e50;
color: white;
padding: 2rem;
text-align: center;
}

.footer-links {
display: flex;
justify-content: center;
list-style: none;
margin-bottom: 1.5rem;
}

.footer-links li {
margin: 0 1rem;
}

.footer-links a {
color: white;
transition: color 0.3s;
}

.footer-links a:hover {
color: #3498db;
}

.social-links {
margin-bottom: 1.5rem;
}

.social-links a {
display: inline-block;
margin: 0 0.5rem;
color: white;
font-size: 1.5rem;
transition: color 0.3s;
}

.social-links a:hover {
color: #3498db;
}

.copyright {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
}

/* Responsividade */
@media (max-width: 768px) {
.menu-toggle {
    display: block;
}

.nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #2c3e50;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s;
}

.nav-links.active {
    left: 0;
}

.nav-links li {
    margin: 1rem 0;
}

.hero {
    height: 400px;
}

.hero h1 {
    font-size: 2rem;
}

.hero p {
    font-size: 1rem;
}

.section {
    padding: 3rem 1rem;
}
}

.team-image {
height: 60%px;
width: 100%;
object-fit: cover;
border-radius: 10px;
}

.team-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    margin: 1rem auto;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: scale(1.02);
}

.team-image {
    width: 100%;
    height: 45%;
    object-fit: cover;
    border-bottom: 4px solid #3498db;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.team-title {
    font-size: 1rem;
    color: #2980b9;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.team-formation {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.6rem;
    font-style: italic;
}

.team-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}


/* Eventos */
.events {
background-color: #f1f5f9;
}

.event-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}

.event-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-image {
height: 200px;
width: 100%;
object-fit: cover;
}

.event-details {
padding: 1.5rem;
}

.event-details h3 {
margin-bottom: 0.5rem;
color: #2c3e50;
}

.event-date {
display: flex;
align-items: center;
margin-bottom: 1rem;
color: #666;
}

.event-date i {
margin-right: 0.5rem;
color: #3498db;
}

.event-details p {
color: #555;
margin-bottom: 1rem;
}

/* Contato */
.contact-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}

.contact-info {
margin-bottom: 2rem;
}

.contact-info h3 {
margin-bottom: 1.5rem;
color: #2c3e50;
}



.contact-item {
display: flex;
align-items: flex-start;
margin-bottom: 1rem;
}

.contact-icon {
margin-right: 1rem;
color: #3498db;
font-size: 1.2rem;
margin-top: 0.2rem;
}

.map-container {
height: 400px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
width: 100%;
height: 100%;
border: none;
}

/* Footer */
footer {
background-color: #2c3e50;
color: white;
padding: 2rem;
text-align: center;
}

.footer-links {
display: flex;
justify-content: center;
list-style: none;
margin-bottom: 1.5rem;
}

.footer-links li {
margin: 0 1rem;
}

.footer-links a {
color: white;
transition: color 0.3s;
}

.footer-links a:hover {
color: #3498db;
}

.social-links {
margin-bottom: 1.5rem;
}

.social-links a {
display: inline-block;
margin: 0 0.5rem;
color: white;
font-size: 1.5rem;
transition: color 0.3s;
}

.social-links a:hover {
color: #3498db;
}

.copyright {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
}

/* Responsividade */
@media (max-width: 768px) {
.menu-toggle {
    display: block;
}

.nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #2c3e50;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s;
}

.nav-links.active {
    left: 0;
}

.nav-links li {
    margin: 1rem 0;
}

.hero {
    height: 400px;
}

.hero h1 {
    font-size: 2rem;
}

.hero p {
    font-size: 1rem;
}

.section {
    padding: 3rem 1rem;
}
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    background-color: #3498db;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.modal-btn-close {
    background-color: #f5f5f5;
    margin-right: 1rem;
}

.modal-btn-close:hover {
    background-color: #e0e0e0;
}

.modal-btn-primary {
    background-color: #3498db;
    color: white;
}

.modal-btn-primary:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 2rem auto;
    }
}

.sobre-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}



.footer-logo img {
  height: 60px;
  object-fit: contain;
}




/*carrosel de eventos*/
/* Estilo base do card (igual para todos) */


/* Carrossel individual de cada card */
.event-carousel {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.carousel-container {
    height: 100%;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 1s ease;
}

.carousel-slide {
    min-width: 100%;
}



/* Botões de navegação (funcionam independentemente em cada card) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(44, 62, 80, 0.9);
}

.prev { left: 10px; }
.next { right: 10px; }



.btn-outline {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    color: #3498db;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}