:root {
    --primary-green: #2e7d32;
    --light-green: #4caf50;
    --accent-orange: #ff9800;
    --soil-brown: #5d4037;
    --bg-cream: #f9f9f7;
    --text-dark: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins(300).woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins(normal).woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins(600).woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins(Bold).woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins(400ext).woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Satisfy';
    src: url('fonts/Satisfy(400).woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- HEADER & NAV (Flexbox) --- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex; /* Flexbox Principal */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

/* .logo {
    font-family: 'Satisfy', cursive;
    font-size: 1.8rem;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
} */

#logo-nav{
    width: 200px;
}

.nav-links {
    display: flex; /* Flexbox para links */
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s;
}

/* Classe Active e Hover compartilham o mesmo estilo */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-green);
}

/* Remove o outline padrão ao clicar com o mouse */
nav a:focus:not(:focus-visible) {
  outline: none;
}

/* Mantém ou customiza o estilo para quando o usuário navegar via Teclado (Tab) */
nav a:focus-visible {
  outline: 2px solid #2e7d32; /* troque pela cor desejada */
  outline-offset: 2px;
}

/* Menu Hamburguer (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* --- BANNER SECTION (Flexbox) --- */
/* .banner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagens/feira-no-condominio-frutas.38279bf.6de9c2e1640ab0ae9aa7f4668604431e.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    margin-top: 60px;
}

.banner-conteudo {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease;
} */

.banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* height: 70vh; */
    width: 100%;
    aspect-ratio: 1920 / 650;
    /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagens/feira-no-condominio-frutas.38279bf.6de9c2e1640ab0ae9aa7f4668604431e.jpg'); */
    /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagens/feiratatuape.jpg'); */
    /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagens/feira-no-condominio-frutas.38279bf.6de9c2e1640ab0ae9aa7f4668604431e.jpg'); */
    /* background-size: cover;
    background-position: center;
    background-attachment: fixed; */
    color: var(--white);
    /* overflow: hidden; */
    margin-top: 113px;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagens/feira-no-condominio-frutas.38279bf.6de9c2e1640ab0ae9aa7f4668604431e.jpg'); */
        background-image: url('./imagens/banners/banner-simples.png');
        /* background-size: cover;
        background-position: center;
        background-attachment: fixed; */
        background-size: cover;
        background-position: center top;
        /* filter: blur(4px); */
        z-index: 0;
        /* transform: scale(1.1); */

        /*Banner provisório (Feira): */

}

/* .banner-conteudo {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease;
    z-index: 1;
} */

/* .banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
} */

.banner p {
    /* font-size: 1.2rem; */
    /* margin-bottom: 2rem; */
}

.link-inscricao-expositores {
    display: inline-block;
    padding: 12px 30px;
    /* background-color: var(--light-green); */
    background-color:#2e7d32;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.link-inscricao-expositores:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

.link-inscricao-roda-conversa {
    /* display: inline-block; */
    padding: 12px 30px;
    /* background-color: var(--light-green); */
    background-color:#2e7d32;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.link-inscricao-roda-conversa:hover {
    background-color: #ff9800;
    transform: translateY(-3px);
}

/* --- SEÇÃO DE PRODUTOS (Grid com Flexbox) --- */
.section-products {
    padding: 5rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.secao-sobre {
  padding: 4rem 20px;
  padding-bottom: 20px;
  background-color: #2e7d32;
  /* width: 100vw; */
  max-width: 1800px;
  margin: 0 auto;
}

.secao-sobre h2 {
  color: white!important;
}

.secao-inscricao-expositores{
    padding: 3rem;
    /* padding-bottom: 25px; */
    background-color:#fd6701;
    /* width: 100vw; */
    max-width: 1800px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.secao-inscricao-expositores h2 {
    color: white;
    font-size: 20px;
}

.secao-data{
    padding: 2rem;
    /* padding-bottom: 25px; */
    background-color:#fd6701;
    /* width: 100vw; */
    max-width: 1800px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.secao-data h2 {
    color: white;
    font-size: 20px;
}

.textos-sobre{
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
}

.textos-sobre p{
    flex: 1 1 calc(50% - 16px);
    margin: 0;
    line-height: 1.6;
    font-style: normal;
}

.secao-titulo {
    text-align: center;
    margin-bottom: 3rem;
}

.secao-titulo h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
}

/* .secao-titulo span {
    color: var(--accent-orange);
    font-family: 'Satisfy', cursive;
    font-size: 1.5rem;
} */

/* Filtros */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Grid de Cards */
.products-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem linha */
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 300px; /* Largura fixa base */
    flex-grow: 1; /* Cresce se necessário */
    max-width: 350px; /* Limite máximo */
    transition: transform 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-info {
    padding: 20px;
}

.card-category {
    font-size: 0.8rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    font-weight: bold;
}

.card-info h3 {
    margin: 10px 0;
    color: var(--soil-brown);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.add-cart {
    background: var(--bg-cream);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.add-cart:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* --- SEÇÃO DE PRODUTORES (NOVA) --- */
.section-producers {
    padding: 5rem 20px;
    background-color: #e8f5e9; /* Fundo verde bem claro para diferenciar */
    margin-top: 30px;
}

.producers-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.producer-card {
    background: transparent;
    text-align: center;
    width: 300px;
    padding: 20px;
    transition: transform 0.3s;
    cursor: pointer; /* Indica que é clicável */
}

.producer-card:hover {
    transform: translateY(-5px);
}

.producer-img-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.producer-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: border-color 0.3s;
}

.producer-card:hover .producer-img {
    border-color: var(--accent-orange);
}

.producer-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.producer-card p {
    font-size: 0.95rem;
    color: #555;
    /* font-style: italic; */
    font-style: normal;
}

.producer-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    font-size: 1rem;
}

/* --- MODAL (NOVO) --- */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-img-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-green);
}

.modal-info h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.modal-extra {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #888;
}

/* --- FOOTER --- */
footer {
    background: var(--soil-brown);
    color: var(--white);
    padding: 3rem 20px;
    text-align: center;
    margin-top: auto;
}

footer ul {
    list-style-type: none;
}

footer a{
    color: #FFF;
}

#mapa{
    padding-top: 45px;
    display: flex;
    flex-direction: column;
}

#mapa img, a
{
  width: 100%;
  max-width: 500px;
  height: auto;
  /* display: block; */
  margin: 15px auto;
  border-radius: 8px;
}

#parceiros{
	padding-top: 15px;
	padding-bottom: 10px;
    background-color: #FFF;
}

.slick-slide {
		margin: 0px 20px;
}

.slick-slide img {
	width: 100%;
    max-height: 5%;
    margin: 0 auto;
}

.slick-slider {
		position: relative;
		display: block;
		box-sizing: border-box;
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
		-webkit-touch-callout: none;
		-khtml-user-select: none;
		-ms-touch-action: pan-y;
		touch-action: pan-y;
		-webkit-tap-highlight-color: transparent;

        width: 100%;
        /* max-width: 1200px; */
        margin: 0 auto;
        overflow: hidden; /* Esconde o excesso em telas menores */
        /* padding: 10px 0; */
}

.slick-slider .slick-track, .slick-slider .slick-list {
		-webkit-transform: translate3d(0, 0, 0);
		-moz-transform: translate3d(0, 0, 0);
		-ms-transform: translate3d(0, 0, 0);
		-o-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
        height: auto;
        align-items: center;
        justify-content: center;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 50px;
        flex-wrap: nowrap;
}

.slider-track {
  display: flex;
  animation: logoPorLogo 12s ease-in-out infinite;
}

@keyframes logoPorLogo {
  0%, 20%   { transform: translateX(0); }
  25%, 45%  { transform: translateX(-25%); }
  50%, 70%  { transform: translateX(-50%); }
  75%, 95%  { transform: translateX(-75%); }
  100%      { transform: translateX(-100%); }
}

/* .slider-track img,
.swiper-slide img {
  height: 70px;

  width: auto;
  max-width: 100%;

  object-fit: contain;

  display: block;
  margin: 0 auto;
} */
/*
.slick-slide {
    display: none;
    float: left;
    height: 100%;
    min-height: 1px;
}

.slider-track img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    flex: 0 0 200px;
}

[dir='rtl'] .slick-slide {
		float: right;
}

.slick-slide img {
		display: block;
}

.slick-slide.slick-loading img {
		display: none;
}

.slick-slide.dragging img {
		pointer-events: none;
}

.slick-initialized .slick-slide {
		display: block;
}

.slick-loading .slick-slide {
		visibility: hidden;
}

.slick-vertical .slick-slide {
		display: block;
		height: auto;
		border: 1px solid transparent;
}

.slick-arrow.slick-hidden {
		display: none;
} */

#footer-contatos{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
}

.redes-sociais{
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    gap: 10px;
}

.contato{
    /* display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 5px; */
    margin-top: 50px;
}

.social-icons {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-orange);
}

@media (max-width: 500px) {
    .banner {
        /* Muda a proporção para o formato vertical do celular (4:5) */
        /* aspect-ratio: 1080 / 1350; */

        /* Tamanho ideal para o banner mobile: */
        aspect-ratio: 1080 / 1080;
        /* aspect-ratio: 1450/650; */

        /* Ajuste a margem caso seu menu mobile seja mais baixo que o desktop */
        margin-top: 90px;
    }

    .banner::before {
        /* Troca para a imagem recortada/feita especificamente para celular */
        /* background-image: url('imagens/teste4-mobile.png');  */
        background-image: url('./imagens/banners/banner-mobile.png');
        /* background-size: 100% 100%; */
        background-position: center top;
    }

    .secao-data{
        padding: 2rem;
        display: none !important;
    }
}
/* --- RESPONSIVIDADE (Media Queries) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Mostra o ícone no mobile */
    }

    .nav-links {
        display: none; /* Esconde menu padrão */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        text-align: center;
    }

    .nav-links.active-menu { /* Renomeado para não conflitar com .active do link */
        display: flex; /* Mostra quando ativo via jQuery */
    }

    #logo-nav{
        width: 120px;
    }

    /* .banner h1 {
        font-size: 2.2rem;
    } */

    .product-card {
        width: 100%; /* Cartões ocupam largura total no mobile */
        max-width: 400px;
    }
}

    .secao-inscricao-expositores h2{
        font-size: 18px;
    }

    .secao-sobre h2{
        font-size: 2rem;
    }

    #footer-contatos{
        display: flex;
        flex-direction:column;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-content: center;
    }

    /* .slider-track img,
    .swiper-slide img {
    height: 50px;
  } */
}

/* Animação simples */
/* @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} */

.swiper {
  width: 100%;
  padding: 20px 0;
  background-color: #FFF;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Define uma altura fixa para a linha se necessário */
  height: 100px;
}

.swiper-slide img {
  /* Aumente este valor (ex: de 60px para 90px ou 100px) */
  max-height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Força a div do slide a ter uma altura adequada */
.swiper .swiper-slide {
  height: 150px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Força a imagem a crescer respeitando a proporção */
.swiper .swiper-slide img {
  height: 120px !important;   /* Ajuste para o tamanho real que deseja ver */
  max-height: 100% !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes scrollInfinito {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#sobre {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#sobre p {
  max-width: 1200px;
  padding: 20px;
  /* animation: fadeIn 1.5s ease; */

  font-size: 1.2rem;
  /* margin-bottom: 2rem; */
  color: white;
}


/* Programação */


/* Participantes: */
/* NOVA SEÇÃO: PARTICIPANTES */
#participantes { scroll-margin-top: 80px; background-color: transparent; margin: 10px;}
.participantes h2 {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-size: 2rem;
    color: var(--primary-green);
}
.participantes-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-content: center;
}
.participante-card {
    background: var(--branco);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary-green);;
    /* cursor: pointer; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* .participante-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
} */
.participante-foto-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-green);
}
.participante-foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 1. Alinha o tamanho do container e remove o formato de círculo */
  .participante-foto-wrapper-modal {
      /* width: 180px;
      height: 180px; */
      margin: 0 auto 15px;
      border-radius: 6px;
      overflow: hidden;     /* Garante que a foto não passe dos limites do bloco */
      /* display: flex; */
      /* align-items: center;
      justify-content: center; */
      /* border: 3px solid var(--amarelo-sol); */
      /* background-color: #f9f9f9; /* Fundo neutro caso a foto original não seja quadrada */ */
  }

  /* 2. Força a imagem dentro dele a aparecer COMPLETA e sem cortes */
  .participante-foto-wrapper-modal img {
      /* width: 100%;
      height: 100%; */
      width: 40%;
      height: 40%;
      object-fit: contain;  /* A mágica que impede que a foto seja cortada */
      border-radius: 6px;   /* Acompanha o formato do container */
  }
.participante-nome {
    font-weight: bold;
    color: var(--texto-escuro);
    font-size: 1.1rem;
}

/* MODAL DOS PARTICIPANTES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background-color: var(--branco);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    text-align: center;
    border-top: 6px solid var(--vermelho-terra);
    animation: fadeIn 0.4s ease;
    max-height: 80vh;   /* Define a altura máxima do conteúdo (ex: 65% da tela) */
    overflow-y: auto;   /* Ativa o scroll vertical */
    padding-right: 10px; /* Espaço opcional para a barra de rolagem não colar no texto */
}

/* Opcional: Deixar a barra de rolagem mais fina e elegante */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--vermelho-terra); }
.modal-body img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--amarelo-sol);
    margin-bottom: 20px;
}
.modal-body h3 {
    color: var(--azul-teal);
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.modal-body p {
    text-align: justify;
    color: var(--texto-escuro);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Layout da Lista de Participantes */
.modal-participante-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.modal-participante-item:last-child { margin-bottom: 0; }

/* Descrição da Atividade (NOVO) */
.modal-descricao-atividade { margin-top: 15px; color: #444; font-size: 0.95em; line-height: 1.6; }
.modal-descricao-atividade p { margin: 0 0 10px 0; text-align: justify; }
.modal-descricao-atividade p:last-child { margin-bottom: 0; }

/* Foto Miniatura */
.modal-thumb {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid var(--cor-secundaria, #DAA520); */
    border: 2px solid var(--verde-vida, #277A4D);
    flex-shrink: 0; /* Impede que a foto amasse se o texto for grande */
    background-color: #f9f9f9;
}

/* Textos do Participante */
.modal-participante-info h4 { margin: 0 0 2px 0; color: #333; font-size: 1.1em; }
.modal-papel { display: inline-block; font-size: 0.85em; color: var(--verde-vida, #277A4D); font-weight: bold; margin-bottom: 8px; }
.modal-desc { margin: 0; font-size: 0.9em; color: #666; line-height: 1.5; }

@keyframes abrirCard {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsividade */
@media (max-width: 600px) {
    .modal-card-container { flex-direction: column; }
    .modal-card-time { min-width: auto; padding: 10px; flex-direction: row; gap: 10px; }
    .modal-time-sub { margin-top: 0; margin-left: 5px; }
}

/* 1. Ajuste na coluna da direita para permitir que o filho ocupe toda a altura livre */
.participante-col-dir {
    display: flex;
    flex-direction: column;
    /* Mantém os estilos que você já tinha de padding, overflow-y: auto, etc. */
}

/* 2. O segredo da centralização total (Vertical e Horizontal) */
.participante-bio {
    /* flex: 1;       */         /* Força a div da biografia a ocupar 100% da altura disponível da coluna */
    /* flex: 1; */
    display: flex;
    flex-direction: column; /* Alinha os parágrafos um abaixo do outro */
    justify-content: center; /* CENTRALIZAÇÃO VERTICAL */
    /* align-items: center;    */  /* CENTRALIZAÇÃO HORIZONTAL */
    text-align: left;      /* Garante que o texto de dentro das tags <p> também fique centralizado */
    width: 100%;             /* Garante que ocupe toda a largura disponível */
}

/* 3. Ajuste opcional para as tags <p> dentro da biografia */
.participante-bio p {
    margin-bottom: 10px;    /* Espaçamento entre as linhas/parágrafos */
    max-width: 90%;         /* Evita que o texto encoste totalmente nas bordas laterais */
    /* text-align: left; */
}


.geral .agenda-time-col, .geral .btn-ver-mais {
    background-color: #277A4D;
}

.geral .agenda-details h3, .geral .agenda-details .link-participante {
    color: #277A4D;
}


.participante-col-esq {
    display: flex;
    flex-direction: column;
    align-items: center;        /* Centraliza na horizontal (Eixo X) */
    justify-content: center;    /* MÁGICA: Centraliza tudo na vertical (Eixo Y) */

    /* height: 100%;    */           /* Garante que a coluna use toda a altura do modal */
    padding: 30px 20px;         /* Mantém o espaçamento interno */
    box-sizing: border-box;
}

/* Remova margens exageradas do h3 para não desalinhar o centro */
.participante-col-esq h3 {
    margin: 0 0 20px 0;
}


/* ==================================== */

/* Para voltar como estava antes delete depois disso e volta o flex: 1 no #participante-bio, alem de tirar os part-cargo do html e js */



/* 1. Garanta que a coluna da direita esteja assim */
.participante-col-dir {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    /* padding: 40px 30px; /* Um bom padding para dar respiro */ */
    box-sizing: border-box;
    position: relative;
}

/* 2. Atualize o seu #part-cargo com esse truque de margem */
.participante-col-dir h4#part-cargo {
    align-self: center;
    text-align: center;

    /* O SEGREDO AQUI: */
    margin-top: auto;     /* Empurra o cargo (e o texto junto) para o centro vertical */
    margin-bottom: 40px;  /* Espaçamento fixo e pertinho do texto da bio */

    /* Seus estilos visuais da pílula (mantenha como preferir) */
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #444;
    background-color: #f0f0f0;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    max-width: 90%;
    /* visibility: hidden;
    position: absolute; */
}

/* 3. Ajuste a sua div de biografia */
.participante-bio {
    /* ATENÇÃO: Se tiver "flex: 1" aqui, REMOVA! */
    /* flex: 1; */
    /* margin-bottom: auto;  /* Faz par com o margin-top do cargo para fechar a simetria do centro */ */
    /* margin-bottom: inherit;  /* Faz par com o margin-top do cargo para fechar a simetria do centro */ */

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    width: 100%;
}

/* .participante-bio p {
    margin-bottom: 10px;
    max-width: 90%;
} */


/* Regras para telas deitadas (landscape) ou com pouca altura (ex: celulares em modo horizontal) */
@media screen and (max-height: 500px) and (orientation: landscape) {

    /* 1. Diminui o tamanho do nome do participante */
    .participante-col-esq h3#part-nome {
        font-size: 1.2rem; /* Reduza esse valor conforme necessário (ex: 1rem, 16px) */
        margin-bottom: 10px; /* Reduz o espaço entre o nome e a foto */
        line-height: 1.2;    /* Evita que nomes com múltiplas linhas ocupem muito espaço vertical */
    }

    /* 2. Reduz o espaçamento interno (padding) da coluna da esquerda para dar mais espaço à foto */
    .participante-col-esq {
        padding: 15px 10px; /* Reduz o padding superior/inferior e lateral */
    }

    /* 3. Garante que o wrapper da foto ocupe o espaço restante e a foto não se esprema absurdamente */
    .participante-foto-wrapper-modal {
        flex: 1; /* Faz o wrapper ocupar todo o espaço vertical disponível após o nome */
        display: flex;
        align-items: center; /* Centraliza a foto verticalmente dentro do espaço restante */
        justify-content: center;
        min-height: 120px; /* Garante um tamanho mínimo aceitável para a foto não virar um pontinho */
    }

    /* 4. Opcional: Garante que a imagem dentro do wrapper se ajuste mantendo a proporção */
    .participante-foto-wrapper-modal img#part-foto {
        max-height: 100%;
        max-width: 100%;
        object-fit: cover; /* Ou 'contain', dependendo de como você quer que a foto se comporte */
    }
}

@media (min-width: 768px) {
    .participantes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 30px;
    }

    .participante-card {
        padding: 20px;
    }
}

#instagramParticipante, #linkedinParticipante {
  text-decoration: none;
  color: var(--azul-teal);
}

#instagramParticipante:hover, #linkedinParticipante:hover {
  opacity: 0.8;
}


.sociais {
  margin: 0 auto;
  margin-top: 2rem;
}


.participante-col-dir {
    padding-top: 4rem;
}

.btn-inscricao {
  margin: 0 auto;
}


/* Container que esconde os cards extras */
.participantes-container {
    /* AJUSTE ESTE VALOR: Coloque a altura necessária para mostrar apenas a 1ª ou 2ª linha de cards */
    max-height: 600px;
    overflow: hidden; /* Esconde tudo que passar dos 600px */
    transition: max-height 0.6s ease-in-out; /* Faz a animação de esticar/encolher durar 0.6 segundos */
}

/* Centralizando o botão abaixo da seção */
.btn-participantes-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Opcional: Se você quiser dar um efeito de "fumaça" (fade) na parte de baixo quando estiver encolhido */
.participantes-container:not(.expandido) {
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Estilo do Botão Ver Mais / Ver Menos */
.btn-ver-mais-participantes {
    background-color: #2e7d32;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

/* Efeito ao passar o mouse */
.btn-ver-mais-participantes:hover {
    background-color: #005A5D; /* Fica um pouco mais escuro */
    transform: translateY(-2px); /* Dá um leve "pulo" pra cima */
}
