:root { 
  /* cores */
  --charleston-green: hsl(206, 20%, 14%);
  --battleship-gray: hsl(0, 0%, 53%);
  --shamrock-green: hsl(54, 83%, 61%);
  --russian-violet: hsl(245, 97%, 13%);
  --yellow-orange: hsl(0, 61%, 62%);
  --green-pigment: hsl(108, 39%, 58%);
  --roman-silver: hsl(223, 6%, 55%);
  --sonic-silver: hsl(0, 0%, 45%);
  --eerie-black: hsl(210, 11%, 15%);
  --space-cadet: hsl(222, 36%, 22%);
  --light-gray: hsl(0, 0%, 82%);
  --mint-cream: hsl(96, 36%, 95%);
  --gunmetal-1: hsl(207, 21%, 17%);
  --gunmetal-2: hsl(206, 21%, 15%);
  --black_90: hsla(0, 0%, 0%, 0.9);
  --black_50: hsla(0, 0%, 0%, 0.5);
  --black_25: hsla(0, 0%, 0%, 0.25);
  --white_50: hsla(0, 0%, 100%, 0.50);
  --white_25: hsla(0, 0%, 100%, 0.25);
  --white_10: hsla(0, 0%, 100%, 0.1);
  --platinum: hsl(0, 0%, 92%);
  --cultured: hsl(0, 0%, 94%);
  --emerald: hsl(209, 99%, 33%);
  --emerald_70: hsla(212, 88%, 53%, 0.7);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --onyx: hsl(0, 0%, 27%);
  --jet: hsl(0, 0%, 20%);

  /* tipografia */
  --ff-outfit: 'Outfit', sans-serif;

  --fs-1: 3rem;
  --fs-2: 2.4rem;
  --fs-3: 2rem;
  --fs-4: 1.8rem;
  --fs-5: 1.7rem;
  --fs-6: 1.5rem;
  --fs-7: 1.4rem;
  --fs-8: 1.3rem;
  --fs-9: 1rem;

  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* espaçamento */
  --section-padding: 80px;

  /* radius */
  --radius-4: 4px;
  --radius-6: 6px;

  /* shadow */
  --shadow-1: 0 12px 25px -8px hsla(0, 0%, 0%, 0.2);
  --shadow-2: -12px 0 25px -8px hsla(0, 0%, 0%, 0.2);
  --shadow-3: 12px 0 25px -8px hsla(0, 0%, 0%, 0.2);

  /* transitions */
  --transition-1: 0.05s ease;
  --transition-2: 0.25s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
}

/* reset */
*,
*::before,
*::after {
  margin:0;
  padding:0;
  box-sizing: border-box;
}

li { list-style: none; }

a {
  text-decoration: none;
  color: inherit;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}

img { height: auto; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input { width: 100%; }
button { cursor:pointer; }
ion-icon { pointer-events: none; }
address { font-style: normal; }
:focus-visible { outline-offset: 4px; }

::selection {
  background-color: var(--black_50);
  color: var(--white);   
}

html {
  font-size: 10px;
  font-family: var(--ff-outfit);
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem;
  background-color: var(--white);
}

.container {
  padding-inline: 10px ;
}

/* header */
.header {
  width: 100%;
  top: 0;
  left: 0;
  position: sticky;
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
  background-color: var(--emerald_70);
  color: var(--white);
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  text-align: center;
  padding-block: 10px;
}

.logo {
  color:var(--roman-silver);
  font-family: var(--ff-outfit);
  font-size: 3rem;
  font-weight: bold;
}

.logo .span {
  display: inline-block;
  color: var(--emerald);
}

/* MOBILE/TABLET (até 991px) */
@media (max-width: 991px) {
  .nav-wrapper .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: 5%;
    padding-block: 15px;
    gap: 15px;
  }

  /* Logo no topo, centralizado */
  .nav-wrapper .h1 {
    order: 1;
    width: 100%;
    text-align: center;
  }

  /* Linha inferior: hambúrguer à esquerda, redes sociais à direita */
  .header-action {
    order: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Menu hambúrguer à esquerda */
  .nav-open-btn {
    font-size: 2.8rem;
    color: var(--black_50);
    transition: var(--transition-2);
    order: 1;
  }

  .nav-open-btn:hover {
    color: var(--emerald);
  }

  /* Redes sociais à direita */
  .socialmidia-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    order: 2;
  }

  /* Menu lateral */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    padding: 100px 30px 30px;
    background: var(--white);
    box-shadow: var(--shadow-3);
    z-index: 1000;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }

  .navbar.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-close-btn {
    color: var(--black);
    font-size: 2.8rem;
    border: 1px solid var(--black_25);
    padding: 5px;
    position: absolute;
    top: 30px;
    right: 30px;
    border-radius: 4px;
    transition: var(--transition-1);
  }

  .nav-close-btn:hover {
    color: var(--emerald);
    border-color: var(--emerald);
  }

  .navbar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .navbar-link {
    color: var(--black);
    font-size: var(--fs-6);
    font-weight: var(--fw-600);
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition-2);
  }

  .navbar-link:hover {
    color: var(--emerald);
  }

  /* SUBMENU MOBILE */
  .has-submenu {
    position: relative;
  }

  .submenu-toggle {
    background: none;
    border: none;
    font-size: var(--fs-6);
    color: var(--black);
    font-weight: var(--fw-600);
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-2);
  }

  .submenu-toggle:hover {
    color: var(--emerald);
  }

  .submenu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    margin-top: 5px;
    font-weight: var(--fw-600);
  }

  .submenu a {
    padding: 8px 15px;
    font-size: var(--fs-7);
    color: var(--onyx);
    border-radius: 6px;
    transition: var(--transition-2);
  }

  .submenu a:hover {
    color: var(--emerald);
  }

  /* QUANDO ATIVO NO MOBILE */
  .has-submenu.active .submenu {
    display: flex;
  }
}

/* DESKTOP (>992px) */
@media (min-width: 992px) {
  .nav-wrapper .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding-inline: 5%;
    padding-block: 15px;
  }

  /* Menu horizontal no centro */
  .navbar {
    position: static;
    transform: none;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .navbar-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
  }

  .navbar-link {
    padding: 8px 16px;
    font-weight: var(--fw-600);
    color: var(--black);
    border-radius: 8px;
    transition: var(--transition-2);
  }

  .navbar-link:hover {
    background-color: var(--emerald_70);
    color: var(--white);
  }

  /* Esconder botões de menu mobile */
  .nav-open-btn,
  .nav-close-btn {
    display: none !important;
  }

  /* Redes sociais à direita */
  .header-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .socialmidia-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
  }

  /* SUBMENU DESKTOP */
  .has-submenu {
    position: relative;
  }

  .submenu-toggle {
    background: none;
    border: none;
    font-size: var(--fs-6);
    color: var(--black);
    font-weight: var(--fw-600);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-2);
  }

  .submenu-toggle:hover {
    background-color: var(--emerald_70);
    color: var(--white);
  }

  .submenu-toggle ion-icon {
    font-size: 1.2rem;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 12px 20px 20px 12px hsla(0, 0%, 0%, 0.2);
    border-radius: 20px;
    margin-top: 5px;
    z-index: 100;
    font-weight: var(--fw-600);
  }

  .submenu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    color: var(--black);
    font-size: var(--fs-7);
    transition: var(--transition-2);
  }

  .submenu a:hover {
    background-color: var(--emerald_70);
    color: var(--white);
  }

  /* MOSTRAR SUBMENU NO HOVER */
  .has-submenu:hover .submenu {
    display: block;
  }

  /* MOSTRAR SUBMENU NO CLICK (classe active) */
  .has-submenu.active .submenu {
    display: block;
  }
}

/* redes sociais navbar */
.socialmidia-list a {
  font-size: 2rem;
  color: var(--black_50);
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.socialmidia-list a:hover {
  color: var(--emerald);
  transform: translateY(-2px);
}

html, body { height: 100%; margin: 0; }

/* ----------------------FOOTER-------------------------- */
.footer {
  background: var(--eerie-black);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h3.footer-title {
  font-size: var(--fs-2);
  font-weight: var(--fw-700);
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section h3.footer-title .span {
  color: var(--emerald);
  display: inline-block;
}

.footer-section h4.footer-subtitle {
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 20px;
  color: var(--emerald);
}

.agradecimento-cnpq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-agradecimento {
  font-size: var(--fs-7);
  line-height: 1.6;
  color: var(--light-gray);
}

.footer-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-image {
  max-width: 150px;
  height: auto;
}

.footer-social {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  font-size: 2rem;
  color: var(--light-gray);
  transition: var(--transition-2);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  color: var(--emerald);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: var(--fs-6);
  color: var(--light-gray);
  transition: var(--transition-2);
}

.footer-links a:hover {
  color: var(--emerald);
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-6);
  color: var(--light-gray);
  margin: 0;
}

.footer-contact i {
  color: var(--emerald);
  width: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--white_25);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--roman-silver);
  font-size: var(--fs-7);
  margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-banner {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 15px;
  }

  .footer-image {
    width: 20vh;
    height: auto;
  }

  .footer-agradecimento {
    text-align: left;
  }

  .footer-social {
    justify-content: center;
  }
}

.team-header {
  background:  var(--emerald);
  padding: 6rem 0 4rem;
  text-align: center;
  color: white;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.page-subtitle {
  font-size: 1.5rem;
  color: var(--white_50);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* RESPONSIVIDADE ATÉ 768PX */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--fs-3);
  }
  
  .page-title {
    font-size: 2.5rem;
  }
}

/* SEÇÃO DO CALENDÁRIO */
.calendario-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--mint-cream) 0%, var(--white) 100%);
  min-height: 100vh;
}

.calend-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.calend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

/* Container do iframe responsivo */
.calendario-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* Proporção 4:3 para o calendário */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  background: var(--white);
}

.calendario-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-7);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--emerald_70);
  box-shadow: 0 6px 20px hsla(212, 88%, 53%, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  color: var(--emerald);
  border-color: var(--emerald);
}

.btn-outline:hover {
  background: var(--emerald);
  color: var(--white);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .calendario-section {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .calend-container {
    max-width: 100%;
    gap: 1.5rem;
  }

  .calendario-container {
    padding-bottom: 100%; /* Proporção mais quadrada no mobile */
    border-radius: 8px;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--fs-8);
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .calendario-section {
    padding: 1.5rem 0.5rem;
  }

  .calendario-container {
    padding-bottom: 120%; /* Ainda mais alto em telas muito pequenas */
    border-radius: 6px;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: var(--fs-9);
  }
}
