/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&display=swap');

/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 3rem;
  
  /* Mobile viewport height fix */
  --vh: 1vh;

  /*========== Colors ==========*/
  /* Change favorite color */
  --hue-color: 190; /* Teal/Cyan */

  /* HSL color mode - Nova paleta */
  --first-color: #3c6e75;                  /* Teal principal */
  --first-color-second: #28474c;           /* Teal escuro */
  --first-color-alt: #2a5259;              /* Teal alternativo */
  --first-color-lighter: #7ba5ac;          /* Teal claro */
  --title-color: #28474c;                  /* Teal escuro para títulos */
  --text-color: #4a5c5e;                   /* Cinza esverdeado para texto */
  --text-color-light: #7b8e91;             /* Cinza esverdeado claro */
  --input-color: #f5f9fa;                  /* Fundo claro para inputs */
  --body-color: #ffffff;                   /* Branco para fundo do body */
  --container-color: #fff;
  --scroll-bar-color: #e8eeef;
  --scroll-thumb-color: #c8d5d7;

  /* Green accent color */
  --accent-color: #3c6e75;                 /* Usando teal como accent */
  --accent-color-light: #7ba5ac;           /* Teal claro */
  
  /* Gradient colors */
  --gradient-primary: linear-gradient(135deg, 
    #3c6e75 0%, 
    #28474c 100%);
  --gradient-secondary: linear-gradient(135deg, 
    #7ba5ac 0%, 
    #3c6e75 100%);

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /*========== Margins Bottom ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /*========== Animation ==========*/
  --animation-duration: 0.6s;
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
}


/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  /* HSL color mode */
  --first-color-second: hsl(var(--hue-color), 30%, 8%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 28%, 12%);
  --container-color: hsl(var(--hue-color), 29%, 16%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* CORREÇÃO: Previne scroll horizontal global */
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden; /* CORREÇÃO: Previne scroll horizontal no body */
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-0-5);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
  text-align: center;
  color: var(--text-color-light);
}

.container {
  max-width: 1200px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

/*==================== BUTTONS ====================*/
.button {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-primary);
  color: #FFF;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  border: none;
  cursor: pointer;
  transition: .3s;
  gap: .5rem;
  text-align: center;
  justify-content: center;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 140, 0, .3);
}

.button--primary {
  background: var(--gradient-primary);
}

.button--outline {
  background: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}

.button--outline:hover {
  background: var(--gradient-primary);
  color: #FFF;
  border-color: transparent;
}

.button--small {
  padding: .75rem 1rem;
}

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color);
}

.button--link:hover {
  background-color: transparent;
  color: var(--first-color-alt);
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

/*==================== HEADER & NAV ====================*/
.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  box-shadow: 0 -1px 4px rgba(0,0,0,.15);
  transition: .3s;
}

.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  overflow: visible;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--h3-font-size);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav__logo-img {
  width: 150px;
  height: 70px;
  object-fit: contain;

}

.nav__logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-bold);
}

.nav__menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  padding: 2rem 1.5rem 4rem;
  box-shadow: 0 -1px 4px rgba(0,0,0,.15);
  border-radius: 1.5rem 1.5rem 0 0;
  transition: .3s;
}

.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__icon {
  font-size: 1.2rem;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

.nav__close:hover {
  color: var(--first-color-alt);
}

.nav__toggle {
  font-size: 1.1rem;
  cursor: pointer;
}

.nav__toggle:hover {
  color: var(--first-color);
}

/* show menu */
.show-menu {
  bottom: 0;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 -1px 4px rgba(0,0,0,.15);
}

/*==================== HOME ====================*/
.home {
  background: linear-gradient(135deg, 
    hsl(48, 100%, 96%) 0%, 
    hsl(45, 80%, 92%) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Ondas decorativas no final da section */
.home__waves {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  z-index: 10;
  line-height: 0;
}

.home__waves-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.home__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Vídeo - Desktop apenas */
.home__background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: all 0.3s ease;
  animation: fadeInBackground 1.5s ease-out;
  display: block; /* Visível por padrão (desktop) */
}

/* Imagens de fundo - Mobile e Tablet */
.home__background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: all 0.3s ease;
  animation: fadeInBackground 1.5s ease-out;
  display: none; /* Escondido por padrão */
}

.home__background-img--mobile {
  display: none; /* Escondido por padrão */
}

.home__background-img--tablet {
  display: none; /* Escondido por padrão */
}

.home__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(60, 110, 117, 0.3) 0%,
    rgba(40, 71, 76, 0.4) 50%,
    rgba(60, 110, 117, 0.3) 100%
  );
  backdrop-filter: blur(2px);
  z-index: 2;
}

@keyframes fadeInBackground {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.home__container {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 3rem;
}

/* Hero Header com Logo e Título */
.home__hero-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.home__logo-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.home__logo {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.home__logo-divider {
  width: 2px;
  height: 100px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.home__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home__brand-img {
  width: auto;
  max-width: 210px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.home__brand-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.home__brand-cursive {
  font-family: 'Brush Script MT', cursive;
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  font-size: 2.5rem;
  margin-left: -0.2em;
}

.home__brand-subtitle {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  margin-top: -1rem;
}

.home__main-title {
  font-size: 3.5rem;
  font-weight: 400;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
  margin: 2rem 0;
  font-family: 'Bubblegum Sans', cursive;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.home__main-title .highlight-infancia {
  background-color: #185345;
  padding: 0.2rem 0.8rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(60, 110, 116, 0.3);
}

.home__main-title .highlight-natureza {
  background-color: #F9D909;
  padding: 0.2rem 0.8rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(145, 152, 46, 0.3);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Image Section */
.home__content-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem 2rem;
}

.home__image {
  position: relative;
  max-width: 600px;
  width: 50%;
  animation: fadeInRight 1s ease-out 0.6s both;
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.home__hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.home__hero-img:hover {
  transform: scale(1.02);
}

.home__content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 3rem;
  align-items: center;
  justify-items: center;
  padding-top: 3.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--small-font-size);
  color: var(--first-color);
  text-decoration: none;
  transition: .3s;
}

.home__social-link:hover {
  color: var(--first-color-alt);
  transform: translateX(.25rem);
}

.home__visual {
  position: relative;
  z-index: 4;
  animation: fadeInContent 1s ease-out 0.6s both;
  align-self: center;
  justify-self: center;
  order: 2;
}

.home__cards {
  position: relative;
  width: 320px;
  height: 420px;
}

.home__card {
  position: absolute;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
}

.home__card.animate {
  opacity: 1;
  transform: translateY(0);
}

.home__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Card principal com imagem */
.home__card--main {
  width: 280px;
  height: 350px;
  top: 0;
  left: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: slideInRight 1s ease-out 0.8s both;
}

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

.home__card--main:hover .home__card-img {
  transform: scale(1.05);
}

.home__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 70%);
  color: white;
}

.home__card-overlay h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cards flutuantes */
.home__card--floating {
  width: 220px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home__card--ages {
  top: 20px;
  right: -140px;
  animation: slideInLeft 1s ease-out 1s both;
}

.home__card--location {
  top: 140px;
  right: -100px;
  animation: slideInRight 1s ease-out 1.2s both;
}

.home__card--time {
  bottom: 140px;
  right: -60px;
  animation: slideInLeft 1s ease-out 1.4s both;
}

.home__card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.home__card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home__card-label {
  font-size: 0.75rem;
  color: var(--text-color-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home__card-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
}

/* Elementos decorativos */
.home__decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.home__decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: floatDecorations 6s ease-in-out infinite;
}

.home__decoration--1 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.home__decoration--2 {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #32CD32, #228B22);
  top: 60%;
  right: 5%;
  animation-delay: 2s;
}

.home__decoration--3 {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #FF6347, #FF4500);
  bottom: 20%;
  left: 5%;
  animation-delay: 4s;
}

/* Animações */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatDecorations {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

.home__data {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem 4rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInContent 1s ease-out 0.3s both;
  align-self: center;
  max-width: 1200px;
  width: 100%;
  order: 1;
}

@keyframes fadeInContent {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home__title {
  font-size: var(--big-font-size);
  line-height: 1.2;
  margin-bottom: var(--mb-1);
  color: var(--title-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home__title-color {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home__description {
  margin-bottom: var(--mb-2);
  color: var(--text-color);
  line-height: 1.7;
  font-weight: var(--font-medium);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.home__buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--mb-2);
}

.home__scroll {
  display: none;
}

.home__scroll-button {
  color: var(--first-color);
  transition: .3s;
}

.home__scroll-button:hover {
  transform: translateY(.25rem);
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  font-size: 1.25rem;
}

/*==================== ABOUT ====================*/
.about {
  background-color: #185345;
  position: relative;
  overflow: hidden;
}

/* Imagem de fundo transparente */
.about__background {
  position: absolute;
  right: -15%;
  top: 76%;
  transform: translateY(-50%);
  width: 80%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.about__background-img {
  width: 100%;
  height: auto;
  opacity: 0.2;
  object-fit: contain;
}

.about .section__title,
.about .section__subtitle {
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.about__container {
  position: relative;
  z-index: 2;
}

.about__img {
  position: relative;
  width: 200px;
  justify-self: center;
}

.about__img-main {
  width: 200px;
  border-radius: .5rem;
  justify-self: center;
  align-self: center;
}

.about__info {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  background-color: var(--container-color);
  border-radius: .5rem;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
  text-align: center;
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: var(--mb-0-25);
}

.about__info-name {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.about__info-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: var(--mb-2);
}

.about__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__info-icon {
  font-size: 1.5rem;
  color: #ffffff;
  margin-top: .25rem;
}

.about__info-title-small {
  font-size: var(--h3-font-size);
  color: #ffffff;
  margin-bottom: var(--mb-0-25);
}

.about__info-details {
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.85);
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
  color: #ffffff;
  line-height: 1.7;
}

.about__buttons {
  display: flex;
  justify-content: center;
}

/* About Carousel Styles */
.about__carousel {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  background: var(--container-color);
}

.about__carousel-container {
  position: relative;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* Largura será definida dinamicamente pelo JavaScript */
}

.about__carousel-slide {
  height: 100%;
  position: relative;
  flex-shrink: 0;
  /* Largura será definida dinamicamente pelo JavaScript */
}

.about__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--accent-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index: 10;
}

.about__carousel-controls:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.1);
}

.about__carousel-prev {
  left: 15px;
}

.about__carousel-next {
  right: 15px;
}

.about__carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.about__carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.about__carousel-indicator.active {
  background: var(--accent-color);
  transform: scale(1.2);
}

.about__carousel-indicator:hover {
  background: rgba(255,255,255,0.8);
}

/*==================== VIVÊNCIAS DO BOSQUE ====================*/
.vivencias {
  background-color: #185444;
  padding: 5rem 0 0 0;
  position: relative;
  overflow: hidden; /* CORREÇÃO CRÍTICA: Previne scroll horizontal */
  z-index: 5;
}

.vivencias::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 550px;
  height: 650px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.vivencias::after {
  content: '';
  position: absolute;
  left: 0;
  top: 5%;
  width: 450px;
  height: 550px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  transform: scaleX(-1);
}

.vivencias__container {
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.vivencias__container::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 25%;
  width: 400px;
  height: 500px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.vivencias__container::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 20%;
  width: 350px;
  height: 450px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  transform: rotate(-15deg);
}

.vivencias__carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.vivencias__carousel::before {
  content: '';
  position: absolute;
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 400px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
  transform: rotate(10deg);
}

.vivencias__carousel::after {
  content: '';
  position: absolute;
  left: -12%;
  bottom: 10%;
  width: 280px;
  height: 380px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
  transform: scaleX(-1) rotate(-8deg);
}

.vivencias__title {
  color: #ffffff;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.vivencias__subtitle {
  color: #ffffff;
  display: block;
  text-align: center;
  margin-bottom: 3rem;
}

.vivencias__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.vivencias__content::before {
  content: '';
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 420px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.09;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-12deg);
}

.vivencias__content::after {
  content: '';
  position: absolute;
  left: -10%;
  top: 60%;
  width: 280px;
  height: 380px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
  transform: scaleX(-1) rotate(18deg);
}

.vivencias__item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.vivencias__item:last-child {
  margin-bottom: 0;
}

.vivencias__item:hover {
  transform: translateX(10px);
}

.vivencias__item-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  margin: 0;
}

.vivencias__item-text {
  font-family: 'Bubblegum Sans', cursive;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  font-size: 25px;
  text-align: justify;
  margin: 0;
}

/* Imagem Divisória */
.vivencias__image-divider {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto 3rem;
  position: relative;
  z-index: 2;
}

.vivencias__divider-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Cards Adicionais */
.vivencias__cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1000px;
  margin: 3rem auto 0;
  position: relative;
  z-index: 2;
}

.vivencias__card {
  background: transparent;
  padding: 2rem 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.vivencias__card:hover {
  padding-left: 1rem;
}

.vivencias__card-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #DAE468;
  transition: all 0.3s ease;
}

.vivencias__card:hover .vivencias__card-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.vivencias__card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vivencias__card-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vivencias__card-text {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 25px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: left;
}

/* Papel Rasgado removido - agora está no topo da gallery */

.vivencias__main-image {
  width: 100%;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.vivencias__img-active {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.vivencias__thumbnails {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: -80px;
  position: relative;
  z-index: 3;
  padding: 0 2rem;
}

.vivencias__thumb {
  width: 200px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  background: #ffffff;
}

.vivencias__thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 1;
}

.vivencias__thumb--active::before {
  background: rgba(0, 0, 0, 0);
}

.vivencias__thumb:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.vivencias__thumb--active {
  border-color: #FFD700;
  transform: translateY(-10px);
}

.vivencias__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vivencias__thumb:hover img {
  transform: scale(1.1);
}

/* Responsivo */
@media screen and (max-width: 768px) {
  /* CORREÇÃO CRÍTICA: Remover palmeiras em mobile para evitar overflow */
  .vivencias::before,
  .vivencias::after {
    display: none !important;
  }
  
  .vivencias__container::before,
  .vivencias__container::after {
    width: 200px;
    height: 250px;
    opacity: 0.15;
  }
  
  .vivencias__carousel::before,
  .vivencias__carousel::after {
    display: none !important;
  }
  
  .vivencias__content::before,
  .vivencias__content::after {
    display: none !important;
  }
  
  .vivencias__main-image {
    height: 350px;
  }
  
  .vivencias__thumbnails {
    gap: 1rem;
    margin-top: -60px;
    padding: 0 1rem;
  }
  
  .vivencias__thumb {
    width: 140px;
    height: 100px;
  }
  
  .vivencias__item {
    gap: 0.6rem;
    margin-bottom: 2rem;
  }
  
  .vivencias__item-title {
    font-size: 1.4rem;
  }
  
  .vivencias__item-text {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 576px) {
  /* CORREÇÃO CRÍTICA: Esconder todas palmeiras decorativas em mobile */
  .vivencias__container::before,
  .vivencias__container::after {
    display: none !important;
  }
  
  .vivencias__main-image {
    height: 250px;
    border-radius: 10px;
  }
  
  .vivencias__thumbnails {
    gap: 0.75rem;
    margin-top: -50px;
    padding: 0 1rem;
    justify-content: center;
  }
  
  .vivencias__thumb {
    width: 110px; /* Aumentado de 100px para melhor toque */
    height: 82px;  /* Aumentado de 75px */
    border-width: 4px;
    border-radius: 10px;
    min-width: 110px;
  }
  
  /* Touch feedback */
  .vivencias__thumb:active {
    transform: scale(0.95);
    transition: transform 0.1s;
  }
  
  .vivencias__title {
    font-size: 1.8rem;
  }
  
  .vivencias__item {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .vivencias__item-title {
    font-size: 1.2rem;
  }
  
  .vivencias__item-text {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/*==================== GALLERY ====================*/
.gallery {
  background-color: #F4F4F4;
  padding: 6rem 0 0 0;
  position: relative;
  z-index: 25;
  overflow: visible;
}

/* Papel Rasgado no topo da Gallery */
.gallery__top-image {
  width: 100%;
  display: block;
  position: absolute;
  top: -120px; /* Ultrapassa para a section superior */
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;
}

.gallery__top-img {
  width: 100%;
  height: auto;
  max-height: 150px;
  display: block;
  object-fit: cover;
}

.gallery__container {
  max-width: 1400px;
  padding-top: 4rem;
}

/* Cabeçalho da Galeria */
.gallery__header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease;
}

.gallery__title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.gallery__title-word {
  display: inline-block;
  animation: bounceIn 0.6s ease both;
}

.gallery__title-word--1 {
  color: #FF6B6B;
  animation-delay: 0.1s;
  transform-origin: center;
}

.gallery__title-word--2 {
  color: #4ECDC4;
  animation-delay: 0.2s;
  transform-origin: center;
}

.gallery__title-word--3 {
  color: #FFD93D;
  text-shadow: 2px 2px 0 #FF6B6B;
  animation-delay: 0.3s;
  transform-origin: center;
}

.gallery__subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 300;
  animation: fadeIn 1s ease 0.5s both;
}

/* Animações */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gallery__item {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.gallery__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.1);
}

/* Papel Rasgado Bottom Gallery */
.gallery__bottom-image {
  width: 100%;
  display: block;
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  z-index: 20;
  transform: translateY(50%);
  pointer-events: none;
}

.gallery__bottom-img {
  width: 100%;
  height: 100px;
  display: block;
}

/* Responsivo Gallery */
@media screen and (max-width: 768px) {
  .gallery {
    padding: 4rem 0;
  }
  
  .gallery__title {
    font-size: 2.5rem;
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .gallery__subtitle {
    font-size: 1rem;
  }
  
  .gallery__header {
    margin-bottom: 3rem;
  }
  
  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery__item {
    height: 300px;
  }
}

@media screen and (max-width: 576px) {
  .gallery {
    padding: 3rem 0;
  }
  
  .gallery__title {
    font-size: 2rem;
  }
  
  .gallery__subtitle {
    font-size: 0.9rem;
  }
  
  .gallery__item {
    height: 250px;
    border-radius: 15px;
  }
}

/*==================== PROJETOS INVESTIGATIVOS ====================*/
.projetos {
  background-color: #185345;
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.projetos__container {
  max-width: 1200px;
}

.projetos__intro {
  text-align: center;
  margin-bottom: 4rem;
}

.projetos__title {
  font-family: 'Bubblegum Sans', cursive;
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.projetos__description {
  font-family: 'Bubblegum Sans', cursive;
  color: rgba(255, 255, 255, 0.95);
  font-size: 25px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.projetos__specialties {
  margin-top: 3rem;
}

.projetos__subtitle {
  font-family: 'Bubblegum Sans', cursive;
  color: #ffffff;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-block;
  width: 100%;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.projetos__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.projetos__item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.projetos__item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.projetos__item-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #DAE468;
}

.projetos__item:nth-child(1) .projetos__item-title {
  color: #DAE468;
}

.projetos__item:nth-child(2) .projetos__item-title {
  color: #B0E391;
}

.projetos__item:nth-child(3) .projetos__item-title {
  color: #F6D36A;
}

.projetos__item:nth-child(4) .projetos__item-title {
  color: #FF9898;
}

.projetos__item-text {
  font-family: 'Bubblegum Sans', cursive;
  color: rgba(255, 255, 255, 0.9);
  font-size: 25px;
  line-height: 1.7;
  margin: 0;
}

/* Responsivo Projetos */
@media screen and (max-width: 768px) {
  .projetos {
    padding: 4rem 0;
  }

  .projetos__title {
    font-size: 2rem;
  }

  .projetos__description {
    font-size: 1rem;
  }

  .projetos__subtitle {
    font-size: 1.5rem;
    padding: 0.8rem 1.5rem;
  }

  .projetos__grid {
    gap: 1.5rem;
  }

  .projetos__item {
    padding: 1.5rem;
  }

  .projetos__item-title {
    font-size: 1.2rem;
  }

  .projetos__item-text {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 576px) {
  .projetos__title {
    font-size: 1.8rem;
  }

  .projetos__subtitle {
    font-size: 1.3rem;
  }

  .projetos__item-title {
    font-size: 1.1rem;
  }
}

/*==================== EDUCAÇÃO ====================*/
.educacao {
  background-color: #185345;
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.educacao__header {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.educacao__header-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.educacao__container {
  max-width: 1200px;
  padding: 0 1rem;
}

.educacao__main-title {
  font-family: 'Bubblegum Sans', cursive;
  color: #ffffff;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.educacao__main-subtitle {
  font-family: 'Bubblegum Sans', cursive;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  text-align: center;
  display: block;
  margin-bottom: 3rem;
}

.educacao__programs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.educacao__program {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.educacao__program-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.8rem;
  color: #F6D36A;
  margin-bottom: 1rem;
}

.educacao__program-text {
  font-family: 'Bubblegum Sans', cursive;
  color: rgba(255, 255, 255, 0.95);
  font-size: 25px;
  line-height: 1.7;
  margin: 0;
}

/* Investimento */
.educacao__investimento {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 3rem;
}

.educacao__investimento-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.educacao__investimento-subtitle {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.3rem;
  color: #F6D36A;
  text-align: center;
  margin-bottom: 2rem;
  background: #F6D36A;
  color: #185345;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  display: inline-block;
  width: 100%;
}

.educacao__table {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.investimento-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  font-family: 'Bubblegum Sans', cursive;
}

.investimento-table thead {
  background: #3e7280;
}

.investimento-table th {
  color: #ffffff;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.investimento-table th:first-child {
  border-top-left-radius: 15px;
}

.investimento-table th:last-child {
  border-top-right-radius: 15px;
}

.investimento-table tbody tr {
  background: rgba(255, 255, 255, 0.95);
}

.investimento-table tbody tr:hover {
  background: rgba(255, 255, 255, 1);
}

.investimento-table td {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #2d5a66;
  font-size: 1rem;
  border-bottom: 1px solid rgba(62, 114, 128, 0.1);
}

.investimento-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
}

.investimento-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}

.investimento-table tbody tr:last-child td {
  border-bottom: none;
}

.investimento-table td strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #185345;
}

.investimento-table td small {
  display: block;
  font-size: 0.85rem;
  color: #3e7280;
  margin-top: 0.2rem;
}

/* Desconto */
.educacao__desconto {
  margin-top: 2rem;
}

.educacao__desconto-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
}

.educacao__desconto-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.educacao__desconto-item {
  border-radius: 15px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.educacao__desconto-item:nth-child(1) {
  background: #91D96A;
}

.educacao__desconto-item:nth-child(2) {
  background: #8CBDD2;
}

.educacao__desconto-item:nth-child(3) {
  background: #FFB46A;
}

.educacao__desconto-item:nth-child(4) {
  background: #FFABD5;
}

.educacao__desconto-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.educacao__desconto-percent {
  display: block;
  font-family: 'Bubblegum Sans', cursive;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.educacao__desconto-month {
  display: block;
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1rem;
  color: #ffffff;
}

/* Responsivo Educação */
@media screen and (max-width: 768px) {
  .educacao {
    padding: 4rem 0;
  }

  .educacao__header {
    margin-bottom: 2rem;
  }

  .educacao__header-img {
    height: 400px;
    border-radius: 15px;
  }

  .educacao__main-title {
    font-size: 2rem;
  }

  .educacao__main-subtitle {
    font-size: 1rem;
  }

  .educacao__program {
    padding: 1.5rem;
  }

  .educacao__program-title {
    font-size: 1.5rem;
  }

  .educacao__program-text {
    font-size: 20px;
  }

  .educacao__investimento {
    padding: 2rem 1.5rem;
  }

  .educacao__investimento-title {
    font-size: 2rem;
  }

  .educacao__investimento-subtitle {
    font-size: 1.1rem;
  }

  /* CORREÇÃO CRÍTICA: Scroll horizontal controlado para tablets */
  .educacao__table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  
  .educacao__table::-webkit-scrollbar {
    height: 6px;
  }
  
  .educacao__table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }
  
  .educacao__table::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }
  
  .investimento-table {
    min-width: 600px; /* Força scroll horizontal controlado */
  }

  .investimento-table th,
  .investimento-table td {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
  }

  .investimento-table td strong {
    font-size: 0.95rem;
  }

  .investimento-table td small {
    font-size: 0.75rem;
  }

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

  .educacao__desconto-percent {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .educacao__header-img {
    height: 300px;
    border-radius: 10px;
  }

  .educacao__main-title {
    font-size: 1.8rem;
  }

  .educacao__main-subtitle {
    font-size: 0.95rem;
  }

  .educacao__program-title {
    font-size: 1.3rem;
  }

  .educacao__program-text {
    font-size: 18px;
  }

  .educacao__investimento-title {
    font-size: 1.8rem;
  }

  /* ============================================
     TABELA MOBILE - LAYOUT DE CARDS VERTICAIS
     ============================================
     Transforma a tabela tradicional em cards empilhados
     para melhor experiência em dispositivos móveis (<576px)
  */
  
  /* Container da tabela - remove scroll e ajusta padding lateral */
  .educacao__table {
    overflow: visible !important;
    padding: 0 1rem !important; /* Adiciona espaço lateral para melhor leitura */
  }
  
  /* TABELA: Converter de table para block layout */
  #tabela-investimento {
    display: block !important;
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  
  /* CABEÇALHO: Esconder completamente em mobile */
  #tabela-investimento thead {
    display: none !important;
  }
  
  /* TBODY: Converter para block e remover estilos de tabela */
  #tabela-investimento tbody {
    display: block !important;
    width: 100% !important; /* Mantém 100% para consistência com cards */
    max-width: 335px !important; /* Limita largura máxima para melhor leitura */    
    background: transparent !important;
  }
  
  /* TR: Cada linha vira um CARD independente */
  #tabela-investimento tbody tr {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    padding: 1.25rem 1rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
  }
  
  /* Hover nos cards para feedback visual */
  #tabela-investimento tbody tr:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
  }
  
  /* TD: Cada célula empilhada verticalmente dentro do card */
  #tabela-investimento tbody tr td {
    display: block !important;
    width: 100% !important;
    padding: 0.65rem 0 !important;
    margin: 0 !important;
    border: none !important;
    text-align: right !important;
    position: relative !important;
    font-size: 0.95rem !important;
    min-height: 44px !important; /* Acessibilidade: área tocável mínima */
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    background: transparent !important;
  }
  
  /* LABELS: Adicionar rótulos usando data-label */
  #tabela-investimento tbody tr td::before {
    content: attr(data-label) !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.65rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: left !important;
    max-width: 48% !important; /* Label fica à esquerda, valor à direita */
    line-height: 1.3 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* PRIMEIRA CÉLULA: Título do plano (destaque) */
  #tabela-investimento tbody tr td:first-child {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 0 0 1rem 0 !important;
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-align: left !important;
    color: #ffffff !important;
  }
  
  /* Remover label da primeira célula (título não precisa) */
  #tabela-investimento tbody tr td:first-child::before {
    display: none !important;
  }
  
  /* Estilização de elementos internos */
  #tabela-investimento td strong {
    display: block !important;
    font-size: 1.15rem !important;
    margin-bottom: 0.25rem !important;
    color: inherit !important;
  }
  
  #tabela-investimento td small {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    opacity: 0.85 !important;
    margin-top: 0.15rem !important;
    color: inherit !important;
  }

  .educacao__desconto-items {
    grid-template-columns: 1fr;
  }
}

/* Breakpoint extra para telas muito pequenas */
@media screen and (max-width: 380px) {
  .investimento-table tr {
    padding: 1rem 0.75rem;
  }
  
  .investimento-table td {
    font-size: 0.875rem;
    padding: 0.6rem 0;
  }
  
  .investimento-table td::before {
    font-size: 0.7rem;
    max-width: 45%;
  }
  
  .investimento-table td:first-child {
    font-size: 1rem;
  }
  
  .investimento-table td:first-child strong {
    font-size: 1.05rem;
  }
  
  .investimento-table td:first-child small {
    font-size: 0.75rem;
  }
}

/*==================== PROGRAMS ====================*/
.programs {
  background: linear-gradient(135deg, 
    hsl(48, 100%, 98%) 0%, 
    hsl(45, 80%, 95%) 100%);
  position: relative;
  z-index: 1;
  padding-top: 8rem;
}

.programs__container {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.programs__content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem .5rem 1.25rem 1.5rem;
  border-radius: .25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  transition: .3s;
}

.programs__content:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  transform: translateY(-5px);
}

.programs__icon {
  display: block;
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.programs__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
  font-weight: var(--font-semi-bold);
}

.programs__subtitle {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
  display: block;
}

.programs__description {
  margin-bottom: var(--mb-1-5);
  color: var(--text-color);
  line-height: 1.6;
}

.programs__list {
  list-style: none;
}

.programs__list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: var(--mb-0-5);
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.programs__list i {
  color: var(--accent-color);
  font-size: .75rem;
}

/* Locations */
.locations {
  margin-top: var(--mb-3);
}

.locations__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: var(--mb-2);
  color: var(--title-color);
}

.locations__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.location__card {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  text-align: center;
  transition: .3s;
}

.location__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.location__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: var(--mb-1);
}

.location__icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.location__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
}

.location__address {
  margin-bottom: var(--mb-1);
  color: var(--text-color);
  line-height: 1.6;
}

.location__address i {
  color: var(--first-color);
  margin-right: .25rem;
}

.location__contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

.location__phone {
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.location__phone i {
  color: var(--accent-color);
  margin-right: .25rem;
}

/*==================== TESTIMONIALS ====================*/
.testimonials {
  background-color: #185345;
  padding: 6rem 0;
}

.testimonials .section__title {
  color: #ffffff;
}

.testimonials .section__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.testimonials__container {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials__content {
  position: relative;
  overflow: hidden;
}

.testimonials__wrapper {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.testimonial__card {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  background-color: var(--container-color);
  border-radius: .5rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  margin: 0;
  box-sizing: border-box;
}

.testimonial__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--mb-1);
}

.testimonial__img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial__img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__name {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-0-25);
}

.testimonial__client {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.testimonial__description {
  margin-bottom: var(--mb-1);
  color: var(--text-color);
  line-height: 1.7;
  font-style: italic;
}

.testimonial__rating {
  display: flex;
  gap: .25rem;
}

.testimonial__rating i {
  color: var(--first-color);
  font-size: .875rem;
}

.testimonials__navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--mb-2);
}

.testimonials__button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--first-color);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .3s;
}

.testimonials__button:hover {
  background-color: var(--first-color-alt);
  transform: scale(1.1);
}

.testimonials__pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: var(--mb-1);
}

.testimonials__pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-color-light);
  cursor: pointer;
  transition: .3s;
}

.testimonials__pagination-dot.active {
  background-color: var(--first-color);
  transform: scale(1.2);
}

/* Testimonials carousel control */
.testimonials__wrapper[data-index="0"] {
  transform: translateX(0%);
}

.testimonials__wrapper[data-index="1"] {
  transform: translateX(-100%);
}

.testimonials__wrapper[data-index="2"] {
  transform: translateX(-200%);
}

.testimonials__wrapper[data-index="3"] {
  transform: translateX(-300%);
}

.testimonials__wrapper[data-index="4"] {
  transform: translateX(-400%);
}

/*==================== CONTACT ====================*/
.contact {
  background-color: #185345;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 10%;
  width: 400px;
  height: 500px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.contact::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: 15%;
  width: 450px;
  height: 550px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
  transform: scaleX(-1);
  z-index: 1;
}

.contact .section__title {
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.contact .section__subtitle {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.contact__container {
  row-gap: 3rem;
  position: relative;
  z-index: 2;
}

.contact__container::before {
  content: '';
  position: absolute;
  left: 15%;
  top: -100px;
  width: 300px;
  height: 380px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-15deg);
}

.contact__container::after {
  content: '';
  position: absolute;
  right: 10%;
  bottom: -120px;
  width: 350px;
  height: 420px;
  background-image: url('../images/palmeira.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
  transform: scaleX(-1) rotate(10deg);
}

.contact__information {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.contact__info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact__info:nth-child(1) {
  background: rgba(246, 211, 106, 0.15);
  border-color: rgba(246, 211, 106, 0.3);
}

.contact__info:nth-child(2) {
  background: rgba(138, 145, 234, 0.15);
  border-color: rgba(138, 145, 234, 0.3);
}

.contact__info:nth-child(3) {
  background: rgba(133, 184, 102, 0.15);
  border-color: rgba(133, 184, 102, 0.3);
}

.contact__info:nth-child(4) {
  background: rgba(255, 152, 152, 0.15);
  border-color: rgba(255, 152, 152, 0.3);
}

.contact__info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact__info-icon {
  font-size: 2rem;
  color: #F6D36A;
  margin-top: .25rem;
}

.contact__info-title {
  font-size: var(--h3-font-size);
  color: #ffffff;
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-25);
}

.contact__info-subtitle {
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.contact__info-subtitle a {
  color: var(--first-color);
  text-decoration: none;
  transition: .3s;
}

.contact__info-subtitle a:hover {
  color: var(--first-color-alt);
}

.contact__form {
  width: 100%;
  background: rgba(176, 227, 145, 0.15);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid rgba(176, 227, 145, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact__inputs {
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--mb-2);
}

.contact__content {
  position: relative;
  background-color: var(--input-color);
  border-radius: .5rem;
}

.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: .75rem 1rem .25rem;
  border-radius: .5rem;
  z-index: 1;
}

.contact__label {
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: .25rem;
  background-color: var(--body-color);
  z-index: 10;
  color: var(--title-color);
}

.contact__area {
  grid-column: 1 / -1;
}

.contact__area textarea {
  resize: none;
  padding-top: 1rem;
}

.contact__message {
  padding: 1rem 1.5rem;
  border-radius: .75rem;
  margin-bottom: var(--mb-1-5);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: var(--font-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
  animation: slideInDown 0.5s ease-out;
}

.contact__message:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact__message--success {
  background: linear-gradient(135deg, hsl(120, 100%, 95%) 0%, hsl(120, 60%, 98%) 100%);
  color: hsl(120, 100%, 25%);
  border-left: 4px solid hsl(120, 100%, 40%);
}

.contact__message--error {
  background: linear-gradient(135deg, hsl(0, 100%, 95%) 0%, hsl(0, 60%, 98%) 100%);
  color: hsl(0, 100%, 35%);
  border-left: 4px solid hsl(0, 100%, 50%);
}

.contact__message i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact__message-close {
  opacity: 0.7;
  transition: all 0.2s ease;
}

.contact__message-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1) !important;
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact__error {
  color: hsl(0, 100%, 50%);
  font-size: var(--smaller-font-size);
  margin-top: .25rem;
  display: block;
}

.contact__submit {
  display: flex;
  justify-content: center;
}

/* Responsivo Contact */
@media screen and (max-width: 768px) {
  /* CORREÇÃO CRÍTICA: Esconder palmeiras externas em tablets */
  .contact::before,
  .contact::after {
    display: none !important;
  }

  .contact__container::before,
  .contact__container::after {
    width: 200px;
    height: 250px;
    opacity: 0.15;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .contact__info {
    padding: 1rem;
    /* Melhorar contraste em mobile */
    background: rgba(246, 211, 106, 0.25);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .contact__info:nth-child(2) {
    background: rgba(138, 145, 234, 0.25);
  }
  
  .contact__info:nth-child(3) {
    background: rgba(133, 184, 102, 0.25);
  }
  
  .contact__info:nth-child(4) {
    background: rgba(255, 152, 152, 0.25);
  }
}

@media screen and (max-width: 576px) {
  /* CORREÇÃO CRÍTICA: Remover todas palmeiras em mobile */
  .contact__container::before,
  .contact__container::after {
    display: none !important;
  }

  .contact__form {
    padding: 1.2rem;
  }
}

/*==================== FOOTER ====================*/
.footer {
  padding-top: 2rem;
  background: #185345 !important;
}

.footer__container {
  row-gap: 3.5rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer__bg {
  background: #185345;
  padding: 2rem 0 3rem;
}

.footer__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-5);
  color: #ffffff;
}

.footer__subtitle {
  font-size: var(--smaller-font-size);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.85);
  transition: .3s;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--smaller-font-size);
}

.footer__link:hover {
  color: #F6D36A;
}

.footer__social {
  display: flex;
  gap: 1.5rem;
  margin-top: var(--mb-1-5);
}

.footer__social-link {
  font-size: 1.5rem;
  color: #F6D36A;
  transition: .3s;
  background: rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.footer__social-link:hover {
  color: #ffffff;
  background: rgba(246, 211, 106, 0.2);
  transform: translateY(-3px);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--mb-3);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copy-text {
  color: rgba(255, 255, 255, 0.85);
}

/*==================== SCROLL UP ====================*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: var(--gradient-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-tooltip);
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scrollup:hover {
  background: linear-gradient(135deg, #FFB000 0%, #FF6B00 50%, #FF2E00 100%);
  transform: translateY(0px) scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.scrollup:active {
  transform: translateY(0px) scale(0.95);
}

.scrollup__icon {
  font-size: 1.3rem;
  color: #FFF;
  transition: all 0.3s ease;
}

.scrollup:hover .scrollup__icon {
  transform: translateY(-2px);
}

/* Show scroll */
.show-scroll {
  bottom: 6rem;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Add pulse animation when first shown */
.scrollup.show-scroll {
  animation: scrollUpPulse 1.5s ease-out;
}

@keyframes scrollUpPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(0) scale(1.2);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Focus styles for accessibility */
.scrollup:focus {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

/*==================== WHATSAPP FLOAT ====================*/
.whatsapp-float {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: var(--z-tooltip);
}

.whatsapp-float__button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float__button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float__button i {
  font-size: 28px;
  color: white;
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.whatsapp-float__menu {
  position: absolute;
  bottom: 70px;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.whatsapp-float__menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-float__header {
  background: var(--gradient-primary);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.whatsapp-float__header h4 {
  margin: 0;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
}

.whatsapp-float__close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.whatsapp-float__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.whatsapp-float__options {
  padding: 0.5rem;
}

.whatsapp-float__option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--title-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.whatsapp-float__option:hover {
  background: rgba(37, 211, 102, 0.1);
  transform: translateX(5px);
}

.whatsapp-float__option:last-child {
  margin-bottom: 0;
}

.whatsapp-float__option-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.whatsapp-float__option-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.whatsapp-float__option-info strong {
  font-weight: var(--font-semi-bold);
  font-size: var(--small-font-size);
  color: var(--title-color);
}

.whatsapp-float__option-info span {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/* WhatsApp responsive */
@media screen and (max-width: 768px) {
  .whatsapp-float {
    bottom: 5.5rem;
  }
  
  .whatsapp-float__button {
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-float__button i {
    font-size: 24px;
  }
  
  .whatsapp-float__menu {
    width: 260px;
    bottom: 65px;
  }
}

/*==================== SCROLL BAR ====================*/
::-webkit-scrollbar {
  width: .60rem;
  background-color: var(--scroll-bar-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*==================== ENHANCED MEDIA QUERIES ====================*/

/* ===================================
   MOBILE FIRST APPROACH - ENHANCED BREAKPOINTS
   =================================== */

/* Extra small devices (phones, less than 576px) */
@media screen and (max-width: 575px) {
  :root {
    --big-font-size: 1.8rem;
    --h1-font-size: 1.3rem;
    --h2-font-size: 1.1rem;
    --h3-font-size: 1rem;
    --normal-font-size: .875rem;
    --small-font-size: .75rem;
  }

  .container {
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: 100%;
  }

  /* Hero section mobile */
  .home__hero-header {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .home__logo-section {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    order: 1; /* Imagens aparecem primeiro */
  }

  .home__main-title {
    order: 2; /* Título aparece depois das imagens */
  }

  .home__logo {
    height: 80px;
  }

  .home__logo-divider {
    display: none;
  }

  .home__brand-img {
    max-width: 200px;
  }

  .home__brand-title,
  .home__brand-subtitle {
    font-size: 1.8rem;
  }

  .home__brand-cursive {
    font-size: 1.5rem;
  }

  .home__main-title {
    font-size: 1.8rem;
    line-height: 1.4;
    order: 2; /* Título aparece depois das imagens */
    margin-top: 2rem;
    width: 100%;
  }

  /* Background: Esconder vídeo, mostrar imagem mobile */
  .home__background-video {
    display: none !important;
  }

  .home__background-img--mobile {
    display: block !important;
  }

  .home__background-img--tablet {
    display: none !important;
  }

  .home__content-wrapper {
    padding: 0 1rem 1rem;
  }

  .home__image {
    width: 100%;
    max-width: 100%;
  }

  /* Header optimizations */
  .header {
    padding: 0 0.5rem;
  }

  .nav {
    height: calc(var(--header-height) - 0.5rem);
  }

  .nav__logo-text {
    font-size: 1rem;
  }

  .nav__logo-img {
    width: 32px;
    height: 32px;
  }

  .nav__menu {
    padding: 1.5rem 1rem 3rem;
    width: 100%;
    left: 0;
  }

  .nav__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .nav__link {
    font-size: var(--smaller-font-size);
    gap: 0.25rem;
  }

  .nav__icon {
    font-size: 1rem;
  }

  /* Home section mobile optimization */
  .home {
    padding-top: 2rem;
  }

  .home__container {
    gap: 1rem;
    padding: 1rem;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .home__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    width: 100%;
  }

  .home__data {
    order: 2;
    max-width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home__visual {
    display: none;
  }

  .home__cards {
    width: 280px;
    height: 360px;
    transform: scale(0.9);
  }

  .home__card--main {
    width: 240px;
    height: 300px;
    left: 20px;
  }

  .home__card--floating {
    width: 140px;
    height: 70px;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .home__card--ages {
    top: 15px;
    right: 0;
  }

  .home__card--location {
    top: 120px;
    left: 0;
  }

  .home__card--time {
    bottom: 50px;
    right: 5px;
  }

  .home__card-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .home__card-label {
    font-size: 0.7rem;
  }

  .home__card-value {
    font-size: 0.8rem;
  }

  .home__title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .home__description {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .home__buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  .button {
    flex: 1 1 auto;
    min-width: 100px;
    max-width: none;
    padding: 0.75rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .home__social {
    order: 3;
    margin-top: 1rem;
    justify-self: center;
  }

  .home__social-link {
    font-size: 0.875rem;
  }

  .home__scroll {
    display: none;
  }

  /* About section mobile */
  .about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about__img {
    order: -1;
    width: 310px;
    margin: 0 auto;
  }

  .about__img-main {
    width: 200px;
  }

  .about__carousel {
    max-width: 280px;
    height: 420px;
    margin: 0 auto;
  }

  .about__carousel-controls {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .about__carousel-prev {
    left: 10px;
  }

  .about__carousel-next {
    right: 10px;
  }

  .about__carousel-indicators {
    bottom: 15px;
  }

  .about__carousel-indicator {
    width: 10px;
    height: 10px;
  }

  .about__info {
    position: static;
    margin-top: 1rem;
    align-self: center;
  }

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

  .about__info-item {
    text-align: left;
  }

  .about__description {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  /* Programs section mobile */
  .programs__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .programs__content {
    padding: 2rem 1rem 1rem;
    text-align: center;
  }

  .programs__list {
    text-align: left;
  }

  /* Locations mobile */
  .locations__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location__card {
    padding: 1.5rem 1rem;
  }

  /* Testimonials mobile */
  .testimonials__container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .testimonials__content {
    overflow: hidden;
  }

  .testimonial__card {
    padding: 1.5rem;
    margin: 0;
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .testimonial__header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .testimonial__img {
    align-self: center;
  }

  .testimonials__navigation {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .testimonials__button {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }

  /* Contact section mobile */
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__information {
    order: 2;
  }

  .contact__form {
    order: 1;
  }

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

  .contact__content {
    margin-bottom: 1rem;
  }

  .contact__input {
    padding: 1rem;
    font-size: 1rem;
  }

  .contact__label {
    font-size: 0.75rem;
  }

  .contact__info {
    padding: 1rem;
    background: var(--container-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }

  .contact__info-icon {
    font-size: 1.5rem;
  }

  /* Footer mobile */
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__links {
    align-items: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media screen and (min-width: 576px) and (max-width: 767px) {
  .container {
    max-width: 1200px;
  }

  .home__content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
  }

  .home__data {
    text-align: left;
  }

  .home__visual {
    display: none;
  }

  .home__buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .button {
    flex: 1 1 auto;
    min-width: 130px;
    max-width: none;
  }

  .about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
  }

  .about__img {
    order: initial;
  }

  .about__carousel {
    max-width: 320px;
    height: 480px;
  }

  .about__description {
    text-align: left;
  }

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

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

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

/* Medium devices (tablets, 768px and up) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 1200px;
  }

  .section {
    padding: 4rem 0 3rem;
  }

  /* Background: Esconder vídeo, mostrar imagem tablet */
  .home__background-video {
    display: none !important;
  }

  .home__background-img--mobile {
    display: none !important;
  }

  .home__background-img--tablet {
    display: block !important;
  }

  /* Hero section tablet */
  .home__logo {
    height: 100px;
  }

  .home__brand-img {
    max-width: 240px;
  }

  .home__brand-title,
  .home__brand-subtitle {
    font-size: 2.5rem;
  }

  .home__brand-cursive {
    font-size: 2rem;
  }

  .home__main-title {
    font-size: 2.5rem;
  }

  .home__image {
    width: 60%;
  }

  /* Header for tablets */
  .header {
    top: 0;
    bottom: initial;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
    padding: 0 1rem;
  }

  .nav__menu {
    position: initial;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    width: auto;
  }

  .nav__list {
    display: flex;
    gap: 1.5rem;
  }

  .nav__link {
    flex-direction: row;
    font-size: var(--normal-font-size);
    gap: 0.5rem;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  /* Home section for tablets */
  .home__container {
    padding-top: 4rem;
  }

  .home__content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .home__visual {
    order: 1;
  }

  .home__cards {
    width: 300px;
    height: 400px;
  }

  .home__title {
    font-size: 2rem;
  }

  /* Programs for tablets */
  .programs__container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact for tablets */
  .contact__container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  /* Footer for tablets */
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 1200px;
  }

  .home__cards {
    width: 340px;
    height: 420px;
  }

  .about__img {
    width: 350px;
  }

  .about__img-main {
    width: 350px;
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .home__cards {
    width: 380px;
    height: 460px;
  }

  .home__card--main {
    width: 320px;
    height: 380px;
  }

  .about__img {
    width: 400px;
  }

  .about__img-main {
    width: 400px;
  }
}

/* ===================================
   LANDSCAPE ORIENTATION OPTIMIZATIONS
   =================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {
  .home {
    padding: 1rem 0;
  }

  .home__container {
    padding-top: 1rem;
  }

  .home__content {
    grid-template-columns: 6fr 2fr;
    gap: 2rem;
  }

  .home__cards {
    width: 240px;
    height: 320px;
    transform: scale(0.8);
  }

  .home__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .home__description {
    margin-bottom: 1rem;
  }

  .home__buttons {
    gap: 0.5rem;
  }

  .button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* ===================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================== */

@media (hover: none) and (pointer: coarse) {
  .button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .nav__link {
    padding: 0.75rem;
  }

  .testimonials__button {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .contact__input {
    padding: 1rem;
    font-size: 1rem;
  }

  /* Increase touch targets */
  .scrollup {
    width: 50px;
    height: 50px;
    right: 1.5rem;
    bottom: 6rem;
  }

  .scrollup__icon {
    font-size: 1.25rem;
  }
}

/* ===================================
   HIGH DPI DISPLAYS
   =================================== */

@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  .home__card-img,
  .about__img-main,
  .testimonial__img-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/*==================== ORIGINAL MEDIA QUERIES (PRESERVED) ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__menu {
    padding: 2rem .25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .home__content {
    grid-template-columns: .25fr 3fr;
  }

  .home__cards {
    width: 220px;
    height: 300px;
    transform: scale(0.85);
  }

  .programs__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .programs__content {
    padding-right: 3.5rem;
  }

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

/* For medium devices */
@media screen and (min-width: 568px) {
  .home__content {
    grid-template-columns: 1fr 0fr;
    gap: 2rem;
  }

  .home__data {
    align-self: center;
    max-width: 1200px;
    padding: 2.25rem 2.75rem;
  }

  .home__visual {
    justify-self: center;
    align-self: center;
    margin-top: 6%;
  }

  .home__cards {
    width: 300px;
    height: 380px;
  }

  .home__card--main {
    width: 260px;
    height: 320px;
  }

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

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

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

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }

  .section__subtitle {
    margin-bottom: 4rem;
  }

  .header {
    top: 0;
    bottom: initial;
    background-color: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    padding: 0;
    overflow: visible;
  }

  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 1.5rem;
    align-items: center;
  }

  .nav__menu {
    margin-left: auto;
    margin-right: 0;
    position: initial;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .nav__link {
    flex-direction: row;
    font-size: var(--normal-font-size);
    gap: .3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: var(--font-medium);
  }

  .nav__link:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
  }

  .home__container {
    row-gap: 5rem;
  }

  .home__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }

  .home__cards {
    width: 320px;
    height: 400px;
  }

  .home__scroll {
    display: block;
  }

  .home__scroll-button {
    margin-left: 3rem;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__img {
    width: 350px;
  }

  .about__img-main {
    width: 350px;
  }

  .about__description {
    text-align: initial;
  }

  .about__info {
    right: -2.5rem;
    bottom: -2.5rem;
  }

  .about__buttons {
    justify-content: initial;
  }

  .programs__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__bg {
    padding: 3rem 0 3.5rem;
  }

  .footer__links {
    flex-direction: column;
  }

  .footer__social {
    justify-self: flex-end;
  }

  .footer__copy {
    margin-top: 4.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .home__cards {
    width: 360px;
    height: 440px;
  }

  .home__social {
    transform: translateX(-6rem);
  }

  .about__img {
    width: 400px;
  }

  .about__img-main {
    width: 400px;
  }

  .contact__form {
    width: 460px;
  }

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

/* For extra large devices */
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .home__social {
    right: -3rem;
    row-gap: 3.5rem;
  }

  .home__social-link {
    font-size: var(--normal-font-size);
  }

  .home__cards {
    width: 400px;
    height: 480px;
  }

  .home__card--main {
    width: 340px;
    height: 469px;
  }

  .about__img {
    width: 450px;
  }

  .about__img-main {
    width: 450px;
  }
}

/*==================== ANIMATIONS ====================*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

/*==================== ACCESSIBILITY ====================*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
.button:focus,
.nav__link:focus,
.contact__input:focus {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-color: hsl(0, 0%, 10%);
    --title-color: hsl(0, 0%, 0%);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*==================== DEVICE-SPECIFIC STYLES ====================*/

/* Mobile device optimizations */
.is-mobile .button {
  min-height: 44px;
  font-size: 1rem;
}

.is-mobile .nav__link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.is-mobile .contact__input {
  min-height: 44px;
  font-size: 16px; /* Prevent zoom on iOS */
}

.is-mobile .home__title {
  font-size: 1.75rem;
  line-height: 1.2;
}

.is-mobile .section {
  padding: 3rem 0 2rem;
}

/* Touch device optimizations */
.is-touch .button:hover {
  transform: none;
}

.is-touch .nav__link:hover {
  color: var(--first-color);
}

.is-touch .scrollup {
  width: 55px;
  height: 55px;
  right: 1rem;
}

.is-touch .scrollup.show-scroll {
  bottom: 7rem;
}

.is-touch .scrollup:hover {
  transform: none;
  background: var(--gradient-primary);
}

/* Mobile specific scroll-up styles */
@media screen and (max-width: 768px) {
  .scrollup {
    right: 0.75rem;
    width: 45px;
    height: 45px;
  }
  
  .scrollup__icon {
    font-size: 1.1rem;
  }
  
  .scrollup.show-scroll {
    bottom: 6.5rem;
  }
}

@media screen and (max-width: 350px) {
  .scrollup {
    right: 0.5rem;
    width: 40px;
    height: 40px;
  }
  
  .scrollup__icon {
    font-size: 1rem;
  }
  
  .scrollup.show-scroll {
    bottom: 6rem;
  }
}

/* Tablet specific styles */
.is-tablet .home__content {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

/*==================== FOCUSED INPUT STYLES ====================*/

.contact__content.focused .contact__label {
  color: var(--first-color);
  font-weight: var(--font-medium);
}

.contact__content.focused .contact__input {
  border: 2px solid var(--first-color);
  background-color: var(--container-color);
}

/*==================== MOBILE MENU ENHANCEMENTS ====================*/

.nav__menu.show-menu {
  animation: slideUp var(--transition-normal) ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*==================== MOBILE SCROLL IMPROVEMENTS ====================*/

@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--header-height) + 1rem);
  }
  
  .section {
    scroll-margin-top: calc(var(--header-height) + 1rem);
  }
}

/* Large desktop optimization for navigation */
@media screen and (min-width: 1200px) {
  .nav {
    max-width: 1400px;
    padding: 0 3rem;
  }
  
  .nav__list {
    column-gap: 2rem;
  }
  
  .nav__link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  .nav__menu {
    margin-right: 1rem;
  }
}

/* Extra large screens */
@media screen and (min-width: 1600px) {
  .nav {
    padding: 0 4rem;
  }
  
  .nav__list {
    column-gap: 2.5rem;
  }
  
  .nav__menu {
    margin-right: 2rem;
  }
}

/* Medium desktop navigation fixes */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .nav {
    padding: 0 1.5rem;
    max-width: 1100px;
  }
  
  .nav__list {
    column-gap: 1.5rem;
  }
  
  .nav__link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    gap: 0.3rem;
  }
  
  .nav__menu {
    margin-right: 0.5rem;
  }
}

/* Hero background responsive styles */
@media screen and (max-width: 768px) {
  .home__background-video {
    transform: scale(1.1);
  }
  
  .home__background-img {
    filter: blur(2px);
  }
  
 
  
  .home__data {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
  }
}

@media screen and (max-width: 480px) {
  .home__background-video {
    transform: scale(1.2);
  }
  
  .home__data {
    padding: 1rem;
    margin: 0 0.5rem;
  }
  
  .home__background-img {
    filter: blur(3px);
  }
}

/*==================== SAFE AREA INSETS FOR NOTCHED DEVICES ====================*/

@supports (padding: max(0px)) {
  .header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .nav__menu.show-menu {
    padding-bottom: max(4rem, env(safe-area-inset-bottom));
  }
}

/*==================== FOOTER ====================*/
.footer {
  padding-top: 2rem;
  background: var(--gradient-primary);
}

.footer__bg {
  padding: 2rem 0 3rem;
}

.footer__container {
  row-gap: 2.5rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__title {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-0-5);
  color: white;
  font-weight: var(--font-semi-bold);
}

.footer__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--smaller-font-size);
  line-height: 1.3;
  max-width: 220px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--smaller-font-size);
  text-decoration: none;
  transition: .3s;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
  padding: 0.1rem 0;
}

.footer__link:hover {
  color: white;
}

.footer__link i {
  font-size: 0.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  width: 1rem;
}

.footer__link span {
  flex: 1;
  word-wrap: break-word;
  hyphens: auto;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer__social-link {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
}

.footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer__copy {
  padding-top: 3rem;
  margin-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer__copy-text {
  font-size: var(--smaller-font-size);
  color: rgba(255, 255, 255, 0.7);
}

/* Footer responsive */
@media screen and (max-width: 350px) {
  .footer__container {
    row-gap: 1.5rem;
  }
  
  .footer__title {
    font-size: var(--small-font-size);
    margin-bottom: 0.3rem;
  }
  
  .footer__subtitle,
  .footer__link {
    font-size: 0.7rem;
  }
  
  .footer__social-link {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 568px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 2rem;
  }
}

@media screen and (min-width: 768px) {
  .footer__container {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 0;
    padding: 0 1rem;
  }
  
  .footer__bg {
    padding: 2.5rem 0 3rem;
  }
  
  .footer__copy {
    margin-top: 2.5rem;
  }
  
  .footer__title {
    font-size: var(--h3-font-size);
  }
  
  .footer__subtitle {
    font-size: var(--small-font-size);
    max-width: 280px;
  }
  
  .footer__link {
    font-size: var(--small-font-size);
  }
}

@media screen and (min-width: 1200px) {
  .footer__container {
    column-gap: 3rem;
  }
  
  .footer__subtitle {
    max-width: 320px;
  }
}