:root{
  --green:#0b4f1a;
  --green-dark:#145c2c;
  --green-light:#eaf2ec;
  --text:#1f2933;
  --muted:#6b7280;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.6;
}

header{
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  color:white;
}

.header-frame{
  max-width:1100px;
  margin:0 auto;
  padding:24px 20px 60px;
  position:relative;
}

.menu-toggle{
  position:absolute;
  top:28px;
  right:20px;
  background:none;
  border:none;
  color:white;
  font-size:1.1rem;
  font-weight:500;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  z-index:10;
}

.nav-dropdown{
  position:absolute;
  top:72px;
  right:20px;
  background:rgba(0,0,0,0.15);
  backdrop-filter:blur(6px);
  border-radius:16px;
  padding:16px 22px;
  display:flex;
  flex-direction:column;
  gap:14px;
  opacity:0;
  pointer-events:none;
  transform:translateY(-10px);
  transition:.25s ease;
  z-index:10;
}

.nav-dropdown.open{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.nav-dropdown a{
  color:white;
  text-decoration:none;
  font-weight:500;
  position:relative;
  white-space:nowrap;
  font-size:12px;
}

.nav-dropdown a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  background:white;
  transition:width .25s ease;
}

.nav-dropdown a:hover::after{
  width:100%;
}

.header-grid{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:40px;
  align-items:end;
}

.hero-logo{
  background:white;
  padding:18px 26px;
  border-radius:18px;
}

.hero-logo img{
  max-width:260px;
  width:100%;
  height:auto;
  display:block;
}

.header-right{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.hero-title h1{
  margin:0;
  font-size:clamp(2.6rem,6vw,3.5rem);
}

.hero-subtitle p{
  margin:8px 0 0;
  font-size:clamp(1.1rem,2.4vw,1.8rem);
  opacity:.95;
}

main{
  max-width:1100px;
  margin:-40px auto 0;
  padding:0 20px 80px;
}

.card{
  background:white;
  border-radius:20px;
  padding:50px;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
  color:var(--muted);
}

.card h2,
.card h3{
  color:var(--text);
}

.card h2{
  text-align:center;
  margin-top:0;
}

.card p{
  text-align:justify;
}

.card p.text-center{
  text-align:center;
}

.card a{
  display:inline-block;
  color:var(--green);
  background:rgba(11,79,26,0.08);
  padding:2px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:500;
  transition:background .2s ease, transform .15s ease;
}

.card a:hover{
  background:rgba(11,79,26,0.18);
  transform:translateY(0px);
}

.card img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:14px;
}

.card input,
.card textarea{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #d1d5db;
  font-family:inherit;
}

.card label{
  font-weight:500;
}

#formStatus{
  margin-top:15px;
  font-size:0.9rem;
}

.actions{
  text-align:center;
}

.actions a{
  margin:0 auto;
}

.item-list{
  display:flex;
  flex-direction:column;
  gap:28px;
  margin-top:30px;
}

.item{
  padding-bottom:20px;
  border-bottom:1px solid #e5e7eb;
}

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

.item h3{
  margin:0 0 6px;
  color:var(--green);
}

.item p{
  margin:0 0 10px;
  color:var(--muted);
  max-width:700px;
}

.media-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

.media-column h3{
  font-size:1.4rem;
  margin-bottom:20px;
  color:var(--green);
}

.media-embed iframe{
  display:block;
  width:100%;
  border:none;
  border-radius:12px;
}

.media-link{
  display:inline-block;
  margin-bottom:14px;
  color:var(--green);
  text-decoration:none;
  font-weight:500;
}

.media-link:hover{
  text-decoration:underline;
}

footer{
  text-align:center;
  padding:40px 20px;
  font-size:.7rem;
  color:#6b7280;
  border-top:1px solid #e5e7eb;
}

.footer-nav{
  margin-bottom:14px;
}

.footer-nav a{
  color:var(--green);
  text-decoration:none;
  font-weight:500;
  margin:0 8px;
}

.footer-nav a:hover{
  text-decoration:underline;
}

.social-links{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-bottom:8px;
  font-size:0.75rem;
}

.social-links a{
  color:#6b7280;
  text-decoration:none;
  font-weight:500;
}

.social-links a:hover{
  color:var(--green);
  text-decoration:underline;
}

/* ===============================
   EVENTO - 2 COLUNAS
================================= */

.evento-card{
  background: var(--green-light);
  border: 1px solid #e5e7eb;
  border-radius:16px;
  padding:35px;
  box-shadow:0 10px 25px rgba(0,0,0,0.06);
  margin-top:30px;
}

.evento-card h3{
  margin-top:0;
  color:var(--green);
}

.evento-card p{
  font-size:0.80rem;
  line-height:1.4;
}

.evento-grid{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:40px;
  align-items:start;
}

.evento-sidebar{
  background:white;
  padding:22px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
}

.evento-sidebar p{
  margin:10px 0;
  font-size:0.9rem;
}

.evento-card hr{
  margin:30px 0;
  border:none;
  border-top:1px solid #e5e7eb;
}

@media(max-width:900px){

  .header-frame{
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  .menu-toggle{
    position:static;
    margin:0 auto 12px;
    justify-content:center;
  }

  .nav-dropdown{
    position:static;
    margin:0 auto;
    background:rgba(0,0,0,0.15);
    backdrop-filter:blur(6px);
    border-radius:16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    max-height:0;
    overflow:hidden;
    padding:0;
    pointer-events:none;
    transform:none;
    transition:max-height .25s ease, padding .25s ease;
  }

  .nav-dropdown.open{
    max-height:300px;
    padding:16px 22px;
    pointer-events:auto;
  }

  .header-grid{
    grid-template-columns:1fr;
    text-align:center;
  }

  .hero-logo{
    margin:0 auto 20px;
  }

  .media-grid{
    grid-template-columns:1fr;
  }

  .contact-list{
    grid-template-columns:1fr 1fr;
  }

  .evento-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .hero-logo img{max-width:220px}
  .contact-list{grid-template-columns:1fr}
}
/* ===============================
   WEBINAR FLOATING CARD
================================= */

.webinar-float{
  position:fixed;
  right:30px;
  bottom:30px;
  width:280px;
  background:white;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,0.2);
  overflow:hidden;
  z-index:9999;
  animation:fadeInUp .5s ease;
}

.webinar-float img{
  width:100%;
  display:block;
}

.webinar-close{
  position:absolute;
  top:8px;
  right:8px;
  background:rgba(0,0,0,0.6);
  color:white;
  border:none;
  border-radius:50%;
  width:26px;
  height:26px;
  font-size:14px;
  cursor:pointer;
}

.webinar-close:hover{
  background:black;
}

@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* MOBILE */
@media (max-width:768px){

  .webinar-float{
    width:90%;
    max-width:340px;
    right:50%;
    transform:translateX(50%);
    bottom:20px;
  }

  .webinar-close{
    top:10px;
    right:10px;
    width:30px;
    height:30px;
    font-size:16px;
    background:rgba(0,0,0,0.75);
  }

  .webinar-float img{
    border-radius:18px;
  }

}
/* ===============================
   ACADEMIA MOBILE FIX
================================= */

@media (max-width:768px){

  .card{
    padding:30px 18px;
  }

  .evento-card{
    padding:22px 18px;
  }

}
/* ===============================
   EVENTO SIDEBAR INFO GRID
================================= */

.evento-info{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
  margin-bottom:20px;
  text-align:center;
}

.evento-info div{
  font-size:0.9rem;
}

.evento-info strong{
  display:block;
  margin-bottom:4px;
  color:var(--text);
}

/* Tablet e mobile */
@media (max-width:900px){
  .evento-info{
    grid-template-columns:1fr 1fr;
  }
}
/* ===============================
   EVENTO EXPANSÍVEL
================================= */

.evento-extra{
  max-height:0;
  overflow:hidden;
  transition:max-height .4s ease;
  margin-top:0;
}

.evento-card.open .evento-extra{
  max-height:1500px; /* suficiente para o conteúdo */
  margin-top:25px;
}

.toggle-info{
  margin-top:15px;
  background:none;
  border:none;
  color:var(--green);
  font-weight:600;
  cursor:pointer;
  padding:0;
}

.toggle-info:hover{
  text-decoration:underline;
}
/* ===============================
   EVENTO EXPANSÍVEL COM SETA
================================= */

.evento-extra{
  max-height:0;
  overflow:hidden;
  transition:max-height .4s ease;
}

.evento-card.open .evento-extra{
  max-height:1500px;
  margin-top:20px;
}

.toggle-info{
  margin-top:15px;
  background:none;
  border:none;
  color:var(--green);
  font-weight:600;
  cursor:pointer;
  padding:0;
  display:flex;
  align-items:center;
  gap:6px;
}

.toggle-info .arrow{
  transition:transform .3s ease;
}

.evento-card.open .arrow{
  transform:rotate(180deg);
}
/* ===============================
   CONTACTOS COM SVG ICONS
================================= */

.contact-item{
  text-align:center;
}

.contact-item .icon{
  display:block;
  margin-bottom:10px;
}

.social-icon{
  width: 30px;
  height:30px;
  color:var(--green);
  display:inline-blck;
  vertical-align:middle;
}


.contact-item .label{
  display:block;
  font-weight:600;
  color:var(--text);
  margin-bottom:6px;
}

.contact-item a{
  display:inline-block;
  margin-top:4px;
}
/* ===============================
   EVENTO HEADER + APOIO
================================= */

.evento-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.evento-apoio{
  display:flex;
  align-items:center;      /* alinha verticalmente */
  gap:15px;                /* espaço entre texto e logo */
}

.evento-apoio span{
  font-size:0.9rem;
  font-weight:500;
  color:#145c2c;
  opacity:.8;
}

.logo-apoio{
  max-height:35px;         /* controla tamanho */
  width:auto;
  object-fit:contain;
}
.evento-header{
  margin-bottom:35px;
}
@media(max-width:768px){

  .evento-header{
    flex-direction:column;
    align-items:stretch;
    gap:6px;              /* controla espaço real entre título e apoio */
    margin-bottom:25px;   /* mantém espaço para a info abaixo */
  }

  .evento-header h3{
    margin-bottom:0;      /* remove margem automática */
  }

  .evento-apoio{
    justify-content:flex-end;
    margin-top:0;         /* remove espaço extra */
  }

}