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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
  color: transparent;
  background: transparent;
}

/*====  VARIABLES ============================ */
:root {
  --header-height: 4.5rem;

  --hue: 221;
  --accent-hue: 57;
  
  --base-color: hsl(var(--hue) 50% 23%);
  --base-color-alt: hsl(var(--hue) 50% 15%);
  --accent-color: hsl(var(--accent-hue) 91% 53%);
  
  --body-color: hsl(0 0% 98%);
  --title-color: var(--base-color);
  --text-color: hsl(0 0% 35%);
  --text-color-light: hsl(0 0% 98%);
  --primary-color: var(--base-color);

  --title-font-size: 1.875rem;
  --subtitle-font-size: 1rem;

  --title-font: 'Poppins', sans-serif;
  --body-font: 'DM Sans', sans-serif;
}

/*===  BASE ============================ */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font: 400 1rem var(--body-font);
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden !important;
}

.title {
  font: 700 var(--title-font-size) var(--title-font);
  color: var(--title-color);
  -webkit-font-smoothing: auto;
}

.button {
  background-color: var(--accent-color);
  color: var(--base-color-alt);
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  border-radius: 2rem;
  font: 500 1rem var(--body-font);
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.button:hover {
  background: var(--base-color-alt);
  color: var(--accent-color);
}

.divider-1 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 36%, 57%, 1),
    hsla(var(--hue), 65%, 88%, 0.34)
  );
}

.divider-2 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 65%, 88%, 0.34),
    hsla(var(--hue), 36%, 57%, 1)
  );
}

/*====  LAYOUT ============================ */
.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: calc(5rem + var(--header-height) + var(--banner-height, 0px)) 0;
}

.section .title {
  margin-bottom: 1rem;
}

.section .subtitle {
  font-size: var(--subtitle-font-size);
}

.section header {
  margin-bottom: 4rem;
}

.section header strong {
  color: var(--accent-color);
}

#header {
  border-bottom: 1px solid var(--base-color-alt);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column; 
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--base-color);
  width: 100%;
}

#header.scroll {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.2);
}

/* BANNER DE AVISOS NO TOPO */
.top-banner {
  background-color: var(--accent-color);
  color: var(--base-color-alt);
  text-align: center;
  padding: 0.6rem 3rem 0.6rem 1rem;
  font-size: 0.95rem;
  font-family: var(--body-font);
  font-weight: 500;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.menu-open .top-banner,
nav.show ~ .top-banner {
  display: none !important;
}

.top-banner a {
  color: var(--base-color-alt);
  text-decoration: underline;
  font-weight: 700;
  margin-left: 0.5rem;
  transition: opacity 0.3s;
}

.top-banner a:hover {
  opacity: 0.8;
}

.top-banner-close {
  background: none;
  border: none;
  color: var(--base-color);
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.2s;
  line-height: 1;
}

.top-banner-close:hover {
  opacity: 0.6;
}

/*====  LOGO ============================ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 1;
}

.logo-img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font: 700 1.1rem var(--title-font);
  color: var(--text-color-light);
  line-height: 1.1;
  min-width: 0;
  white-space: nowrap;
}

.logo-text span {
  color: var(--accent-color);
}

/*====  NAVIGATION & MENU MOBILE DRILLDOWN ============================ */
nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul li {
  text-align: center;
}

nav ul li a,
nav ul li a.title {
  color: var(--text-color-light); 
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent-color);
}

nav .menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* CORREÇÃO 1: ESTRUTURA E ALINHAMENTO DO MENU MOBILE */
nav.show .menu {
  opacity: 1 !important;
  visibility: visible !important;
  background: var(--base-color) !important;
  height: 100vh !important;
  width: 100vw !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block !important;
  z-index: 99999 !important;
  overflow: hidden !important;
}

.menu-panel {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 5rem 1.5rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background-color: var(--base-color) !important; /* CORREÇÃO: Garante fundo opaco para cobrir o menu anterior */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  transform: translateX(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
}

.menu-panel.active {
  transform: translateX(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

.menu-panel.is-hidden-left {
  transform: translateX(-30%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.menu-panel ul.grid {
  gap: 1.8rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.menu-panel ul li {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-panel ul li a {
  font-family: var(--title-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color-light);
  text-align: center;
  white-space: nowrap;
}

.mobile-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--title-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color-light);
  cursor: pointer;
  padding: 0;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s;
}

.mobile-nav-trigger:hover {
  color: var(--accent-color);
}

.btn-menu-back {
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s;
}

.btn-menu-back:hover {
  opacity: 0.8;
}

.sub-panel-title {
  font-family: var(--title-font);
  font-size: 1.6rem;
  color: var(--text-color-light);
  margin-bottom: 1.8rem;
  text-align: center;
}

/* BOTÕES DE NAVEGAÇÃO / TOGGLE MOBILE */
.toggle {
  color: var(--accent-color);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 100000;
  position: relative;
}

nav .icon-close {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  transition: 0.2s;
}

nav.show div.icon-close {
  visibility: visible;
  opacity: 1;
}

.desktop-nav-link {
  display: none !important;
}

/*====  HOME ============================ */
#home {
  overflow: hidden;
}

#home .container {
  margin: 0;
}

#home .image {
  position: relative;
}

#home .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--accent-color);
  position: absolute;
  top: -16.8%;
  left: 16.7%;
  z-index: 0;
}

#home .image img {
  position: relative;
  width: 100%;
}

#home .image img,
#home .image::before {
  border-radius: 1.5rem;
}

#home .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  text-align: center;
}

#home .text h1 {
  margin-bottom: 1rem;
}

#home .text p {
  margin-bottom: 2rem;
}

/*====  ABOUT ============================ */
#about {
  background: white;
  overflow: hidden; 
}

#about .container {
  margin: 0;
}

#about .image {
  position: relative;
}

#about .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--accent-color); 
  position: absolute;
  top: -8.3%;
  left: -33%;
  z-index: 0;
}

#about .image img {
  position: relative;
}

#about .image img,
#about .image::before {
  border-radius: 1.5rem;
}

#about .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/*====  SERVICES / SEGMENTOS ============================ */
.cards.grid {
  gap: 2rem;
  align-items: center; 
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  padding: 3.625rem 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--accent-color);
  border-radius: 1rem;
  text-align: center;
  background: white; 
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card.active-card {
  transform: scale(1.2) translateY(-10px); 
  box-shadow: 0px 25px 35px rgba(0, 0, 0, 0.2); 
  z-index: 10;
  opacity: 1;
}

.card.inactive-card {
  transform: scale(0.8); 
  opacity: 0.3; 
}

.card i {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 5rem;
  color: var(--base-color);
  transition: transform 0.4s ease;
}

.card.active-card i {
  transform: scale(1.15); 
}

.card .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/*====  TESTIMONIALS ============================ */
#testimonials {
  background: white;
  overflow: hidden; 
}

#testimonials .container {
  margin-left: 0;
  margin-right: 0;
}

#testimonials header {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 0;
}

#testimonials blockquote {
  padding: 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  background: var(--body-color);
}

#testimonials blockquote p {
  position: relative;
  text-indent: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

#testimonials blockquote p span {
  font: 700 2.5rem serif;
  position: absolute;
  top: -0.375rem;
  left: -1.875rem;
  color: var(--accent-color);
}

#testimonials cite {
  display: flex;
  align-items: center;
  font-style: normal;
}

#testimonials cite img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  clip-path: circle();
  margin-right: 0.5rem;
}

#testimonials .swiper-slide {
  height: auto;
  padding: 4rem 1rem;
  width: 85%;
  max-width: 600px;
  opacity: 0.4;
  transition: opacity 0.3s;
  cursor: pointer;
}

#testimonials .swiper-slide-active {
  opacity: 1;
}

.swiper-pagination-bullet {
  width: 0.75rem;
  height: 0.75rem;
}

.swiper-pagination-bullet-active {
  background: var(--base-color);
}

/*====  APROVADOS ============================ */
.aprovados-swiper {
  padding-bottom: 3.5rem;
}

.aprovado-card {
  position: relative;
  height: 35rem; 
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--base-color) 0%,
    var(--base-color-alt) 100%
  );
  box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.2);
}

.aprovado-info {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 5; 
  display: flex;
  flex-direction: column;
  text-align: left;
  background: rgba(10, 25, 47, 0.9); 
  backdrop-filter: blur(8px);
  padding: 0.85rem 1rem; 
  border-radius: 0.75rem;
  border: 1px solid hsla(var(--accent-hue), 91%, 53%, 0.3);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

.aprovado-nome {
  font: 700 1.25rem var(--title-font); 
  color: var(--text-color-light);
  margin-bottom: 0.1rem;
}

.aprovado-escola {
  font: 700 1rem var(--body-font);
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

.aprovado-curso {
  font-size: 0.85rem;
  color: var(--text-color-light);
  opacity: 0.95;
}

.aprovado-colocacao {
  margin-top: 0.5rem;
  align-self: flex-start;
  background: var(--accent-color);
  color: var(--base-color-alt);
  font: 700 0.8rem var(--body-font);
  padding: 0.25rem 0.85rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.aprovado-foto {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: top center; 
  transform: translateX(-50%);
  z-index: 1; 
  background: transparent !important;
}

.aprovados-pagination .swiper-pagination-bullet {
  background: var(--base-color);
}

.aprovados-pagination .swiper-pagination-bullet-active {
  background: var(--accent-color);
}

/*====  CONTACT ============================ */
#contact .grid {
  gap: 4rem;
}

#contact .text p {
  margin-bottom: 2rem;
}

#contact .button i,
#contact ul li i {
  font-size: 1.5rem;
  margin-right: 0.625rem;
}

#contact ul.grid {
  gap: 2rem;
}

#contact ul li {
  display: flex;
  align-items: center;
}

#contact ul li i {
  color: var(--base-color);
}

/*====  FOOTER ============================ */
footer {
  background: var(--base-color);
}

footer.section {
  padding: 4rem 0;
}

footer .logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

footer .brand p {
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
}

footer i {
  font-size: 1.5rem;
  color: var(--text-color-light);
}

footer .social {
  grid-auto-flow: column;
  width: fit-content;
}

footer .social a {
  transition: 0.3s;
  display: inline-block;
}

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

/* Back to top */
.back-to-top {
  background: var(--base-color);
  color: var(--accent-color);
  position: fixed;
  right: 1rem;
  bottom: 6.5rem;
  padding: 0.5rem;
  clip-path: circle();
  font-size: 1.5rem;
  line-height: 0;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  transform: translateY(100%);
  z-index: 99;
}

.back-to-top.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* =======================================================
   GALERIA DE EVENTOS E MODAL
   ======================================================= */

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.evento-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #eee;
}

.evento-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.evento-tile:hover img {
  transform: scale(1.1);
}

.evento-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  padding: 1rem;
  text-align: center;
}

.evento-tile:hover .evento-tile-overlay {
  opacity: 1;
}

.evento-tile-titulo {
  font: 700 1.25rem var(--title-font);
  margin-bottom: 0.5rem;
}

.evento-tile-data {
  font: 700 0.9rem var(--body-font);
  color: var(--accent-color);
}

.evento-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 1rem;
}

.evento-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.evento-modal-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  width: 100%;
  max-width: 1000px;
  height: 85vh;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}

.evento-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2.25rem;
  color: var(--text-color);
  cursor: pointer;
  z-index: 20;
  line-height: 1;
}

.evento-modal-media {
  background: #000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.evento-modal-swiper {
  width: 100%;
  height: 100%;
}

.evento-modal-swiper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000 !important;
}

.evento-modal-swiper .swiper-button-next,
.evento-modal-swiper .swiper-button-prev {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(0.7);
}

.evento-modal-swiper .swiper-pagination-bullet {
  background: white;
}

.evento-modal-info {
  display: flex;
  flex-direction: column;
  background: white;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.evento-modal-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ebebeb;
  padding-right: 3rem;
}

.evento-modal-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--base-color);
  margin-right: 1rem;
  border: 1px solid #ebebeb;
}

.evento-modal-header-text {
  display: flex;
  flex-direction: column;
}

.evento-modal-usuario {
  font: 700 0.95rem var(--body-font);
  color: var(--base-color);
}

.evento-modal-subtitulo {
  font: 400 0.75rem var(--body-font);
  color: #8e8e8e;
}

.evento-modal-caption {
  white-space: pre-line;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  flex-grow: 1;
  font: 400 0.95rem var(--body-font);
  color: var(--text-color);
  line-height: 1.5;
}

.evento-modal-actions {
  padding: 0.5rem 1rem;
  display: flex;
  gap: 1rem;
  border-top: 1px solid #ebebeb;
}

.evento-modal-actions svg {
  width: 24px;
  height: 24px;
  color: var(--base-color);
  cursor: pointer;
  transition: transform 0.2s;
}

.evento-modal-actions svg:hover {
  transform: scale(1.1);
  color: var(--accent-color);
}

.evento-modal-data {
  padding: 0 1rem 1.25rem;
  font: 400 0.75rem var(--body-font);
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================
   POP-UP DE MATRÍCULAS
   ========================================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
  overflow-y: auto; 
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 2rem); 
  overflow-y: auto; 
  margin: auto 0; 
  padding: 3rem 2rem 2.5rem 2rem; 
  border-radius: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: translateY(0) scale(1);
}

.popup-close-bar {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
}

.popup-close {
  background: #f1f5f9;
  color: #475569;
  border: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

.popup-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--title-color);
  font: 700 0.8rem var(--body-font);
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup-content h3 {
  font: 700 1.8rem var(--title-font);
  color: var(--base-color);
  margin-bottom: 0.75rem;
}

.popup-content p {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.popup-cta {
  width: 100%;
  margin: 0 auto 1rem auto;
  text-decoration: none;
  border-radius: 0.85rem;
  padding: 1rem;
  font-size: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.popup-dismiss {
  background: none;
  border: none;
  color: #64748b;
  font: 500 0.9rem var(--body-font);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.popup-dismiss:hover {
  color: var(--base-color);
}

/*========= MEDIA QUERIES =========*/
@media (max-width: 768px) {
  .evento-modal-content {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh auto;
    height: 90vh;
  }
  
  .evento-modal-close {
    color: white; 
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
  }
  
  .evento-modal-header {
    padding-right: 1rem;
  }
}

/* CORREÇÃO 2: HEADER DESKTOP E ALINHAMENTO SEM QUEBRA DE LINHA */
@media (min-width: 1200px) {
  .container {
    max-width: 1280px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .section {
    padding: 5rem 0 !important; 
  }

  #home.section {
    padding-top: 2rem !important; 
  }

  .section header,
  #testimonials header,
  #aprovados header {
    max-width: 32rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .button {
    height: 3.125rem;
  }

  nav.container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  nav .menu {
    opacity: 1 !important;
    visibility: visible !important;
    top: 0 !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
  }

  .menu-panel {
    position: static !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
    height: auto !important;
    width: auto !important;
  }

  .menu-panel.sub-panel {
    display: none !important;
  }

  .mobile-nav-trigger {
    display: none !important;
  }

  .desktop-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
  }

  nav .menu > .main-panel > ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.8rem !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  nav .menu > .main-panel > ul > li {
    display: flex !important;
    align-items: center !important;
  }

  nav .menu > .main-panel > ul > li > a.title {
    font: 400 0.95rem var(--body-font) !important;
    -webkit-font-smoothing: antialiased;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
  }

  nav .menu > .main-panel > ul > li > a.title.active {
    font-weight: bold;
    -webkit-font-smoothing: auto;
  }

  nav .icon-menu,
  nav .icon-close {
    display: none !important;
  }

  main {
    margin-top: calc(var(--header-height) + var(--banner-height, 0px));
  }

  #home .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    margin: 0 auto;
  }

  #home .image {
    order: 1;
  }

  #home .image img {
    right: 2.93rem;
  }

  #home .text {
    order: 0;
    max-width: 24rem;
    text-align: left;
  }

  #about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    margin: 0 auto;
  }

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

  .card {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  #testimonials .container {
    margin-left: auto;
    margin-right: auto;
  }

  #contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  #contact .text {
    max-width: 25rem;
  }

  footer.section {
    padding: 3.75rem 0;
  }

  footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: space-between;
  }

  footer .social {
    justify-self: end;
  }
}

@media (min-width: 992px) {
  :root {
    --title-font-size: 2.25rem;
    --subtitle-font-size: 1.125rem;
  }
}

/* =========================================
   MELHORIAS DE EXPERIÊNCIA E UI (UX/UI)
========================================= */

/* BOTÃO FLUTUANTE DO WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 3.8rem;
  height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20b858;
}

/* FAQ E AVISO DE COOKIES */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.15rem;
  font-family: var(--title-font);
  font-weight: 600;
  color: var(--title-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-question i {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-question:hover {
  color: var(--accent-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-top: 0.75rem;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px; 
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary-color, #1a365d);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--title-color, #0f172a);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner button {
  background-color: var(--accent-color, #ffcc00);
  color: var(--title-color, #0f172a);
  border: none;
  font-family: var(--title-font);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}

/* RESPONSIVIDADE PONTUAL */
@media (max-width: 768px) {
  .container {
    max-width: 100% !important;
    margin-left: 0; 
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .logo-img {
    width: 2.75rem;
    height: 2.75rem;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .top-banner {
    font-size: 0.85rem;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    line-height: 1.3;
  }

  h1, h2, .title {
    font-size: 1.8rem !important;
    line-height: 1.25;
  }

  .subtitle {
    font-size: 1rem !important;
  }

  .section {
    padding: calc(var(--header-height) + var(--banner-height, 0px) + 2rem) 0 4rem;
  }

  .section .grid {
    gap: 2rem;
  }

  .section .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
  }

  .cards.grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .testimonials, .aprovados-swiper {
    padding: 0 0.5rem;
  }

  .map-container {
    height: 280px !important;
    margin-top: 1.5rem;
  }

  .map-container iframe {
    height: 280px !important;
  }

  .whatsapp-float {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .back-to-top {
    bottom: 5.5rem;
    right: 1.5rem;
  }

  .faq-container {
    padding: 0 0.5rem;
  }

  .faq-question {
    font-size: 1rem !important;
    padding: 0.8rem 0;
    gap: 0.5rem;
    line-height: 1.4;
  }

  .faq-answer p {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-bottom: 0.8rem;
  }

  .cookie-banner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.2rem 1rem !important;
    gap: 1rem !important;
  }

  .cookie-banner p {
    font-size: 0.85rem !important;
    max-width: 100% !important;
  }

  .cookie-banner button {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
  }

  .popup-content {
    padding: 2.5rem 1.25rem 2rem 1.25rem !important;
    border-radius: 1.25rem !important;
  }

  .popup-content h3 {
    font-size: 1.4rem !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .cards.grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MENU DROPDOWN DESKTOP */
@media (min-width: 1200px) {
  .dropdown {
    position: relative !important;
  }

  .dropdown-menu {
    position: absolute !important;
    top: 100% !important; 
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    
    background-color: #ffffff !important; 
    width: max-content !important; 
    min-width: 100% !important;
    
    display: flex !important;
    flex-direction: column !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    border-radius: 0.5rem !important; 
    border-top: 3px solid var(--accent-color) !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 9999 !important;
    list-style: none !important;
  }

  .dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
  }

  .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: center !important; 
  }

  .dropdown-menu li a {
    display: block !important;
    padding: 0.6rem 1rem !important;
    color: var(--base-color) !important; 
    font-family: var(--body-font) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    text-align: center !important; 
  }

  .dropdown-menu li a:hover {
    background-color: #f1f5f9 !important; 
    color: var(--primary-color) !important; 
  }

  .dropdown-menu li a::after,
  .dropdown-menu li a::before {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 1199px) {
  .dropdown-menu {
    display: none !important;
  }
}
/* =========================================
   PÁGINAS INFORMATIVAS, AVISO DE PRAZO E GALERIA NO TOQUE
   ========================================= */
.pagina-intro-centro { text-align: center; max-width: 800px; margin: 0 auto 3rem auto; }
.info-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-card { background: #fff; padding: 2.5rem 2rem; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,.08); border-bottom: 4px solid var(--accent-color); display: flex; flex-direction: column; align-items: flex-start; }
.info-card > i.ph { font-size: 3rem; color: var(--base-color); margin-bottom: 1rem; }
.info-card h3 { font: 700 1.4rem var(--title-font); color: var(--base-color); margin-bottom: .5rem; }
.info-card .papel { font: 700 .85rem var(--body-font); background: var(--accent-color); color: var(--base-color-alt); padding: .25rem .75rem; border-radius: 1rem; margin-bottom: .75rem; }
.info-card p { line-height: 1.6; margin-bottom: 1rem; }
.info-card .button { margin-top: auto; }
.texto-longo { max-width: 800px; margin: 0 auto; background: #fff; padding: 2.5rem 2rem; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.texto-longo h3 { font: 700 1.2rem var(--title-font); color: var(--base-color); margin: 1.5rem 0 .5rem; }
.texto-longo p, .texto-longo li { line-height: 1.7; margin-bottom: .5rem; }
.texto-longo ul { list-style: disc; margin-left: 1.5rem; }
.aviso-prazo { display: flex; gap: .75rem; align-items: flex-start; max-width: 640px; margin: 0 auto 1.5rem; padding: 1rem 1.25rem; background: var(--body-color); border-left: 4px solid var(--accent-color); border-radius: .5rem; font-size: .95rem; line-height: 1.5; }
.aviso-prazo i { font-size: 1.5rem; color: var(--base-color); flex-shrink: 0; }
.footer-link a, 
@media (hover: none) {
  .evento-tile-overlay { opacity: 1; justify-content: flex-end; background: linear-gradient(transparent 45%, rgba(10,25,47,.88)); }
}

/* Link da política de privacidade (rodapé e aviso de cookies) */
footer .brand p a, .cookie-banner a { color: var(--accent-color); text-decoration: underline; }
footer .brand p a:hover, .cookie-banner a:hover { opacity: .8; }
footer .brand .link-privacidade { margin-top: .25rem; font-size: .9rem; }

/* Submenu aberto por clique (desktop e telas de toque grandes) */
@media (min-width: 1200px) {
  .dropdown.open .dropdown-menu { opacity: 1 !important; visibility: visible !important; transform: translateX(-50%) translateY(0) !important; }
}

/* Equipe com fotos sem fundo (PNG/WebP transparente) */
.equipe-secao { font: 700 1.3rem var(--title-font); color: var(--base-color); text-align: center; margin: 0 0 1.5rem; }
.equipe-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto 3.5rem; }
@media (min-width: 600px) { .equipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .equipe-grid.tres { grid-template-columns: repeat(3, 1fr); } }
.equipe-grid.um { max-width: 340px; grid-template-columns: 1fr; }
.pessoa-card { background: #fff; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,.08); overflow: hidden; border-bottom: 4px solid var(--accent-color); display: flex; flex-direction: column; }
.pessoa-foto { height: 300px; background: linear-gradient(160deg, var(--base-color), var(--base-color-alt)); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.pessoa-foto img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.pessoa-foto i { font-size: 5rem; color: var(--accent-color); align-self: center; }
.pessoa-info { padding: 1.5rem; text-align: center; }
.pessoa-info h3 { font: 700 1.3rem var(--title-font); color: var(--base-color); margin-bottom: .5rem; }
.pessoa-info .papel { display: inline-block; font: 700 .85rem var(--body-font); background: var(--accent-color); color: var(--base-color-alt); padding: .25rem .75rem; border-radius: 1rem; margin-bottom: .75rem; }
.pessoa-info p { line-height: 1.6; }
