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

body {
  height: 100vh;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
  background: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CONTAINER */
.split {
  display: flex;
  height: 100vh;
}

/* PAINÉIS */
.panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 
    flex 0.6s cubic-bezier(.77,0,.18,1),
    transform 0.2s ease;
  cursor: pointer;
  backface-visibility: hidden;
  transform-origin: center;
  user-select: none;
}

/* BACKGROUND */
.panel .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.8s ease;
  will-change: transform;
}

/* IMAGENS */
.left .bg {
  background-image: url('../img/palestras.jpg');
}

.right .bg {
  background-image: url('../img/eventos.jpg');
}

/* OVERLAY */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.45)
  );
  transition: 0.4s;
}

.panel:hover .overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.25)
  );
}

/* CONTEÚDO */
.content {
  position: relative;
  z-index: 2;
  max-width: 400px;
  text-align: left;
  padding: 40px;
  transform: translateY(20px);
  opacity: 0.9;
  transition: transform 0.6s ease, opacity 0.6s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  will-change: transform, opacity;
  letter-spacing: 0.3px;
}

/* LABEL */
.label {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c5a46d, #a8874c);
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

/* TÍTULO (CORRIGIDO - ESCOPADO) */
.panel h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  line-height: 1.2;
  margin: 15px 0;
  transition: 0.4s ease;
}

/* TEXTO (CORRIGIDO - ESCOPADO) */
.panel p {
  font-size: 14px;
  opacity: 0.8;
}

/* HOVER */
.panel:hover {
  flex: 1.4;
}

.panel:hover .bg {
  transform: scale(1.1);
}

.panel:hover .content {
  transform: translateY(0) scale(1.01);
  opacity: 1;
}

.panel:hover .content h1 {
  transform: translateY(-2px);
}

.panel:hover .label {
  letter-spacing: 3px;
  background: #c5a46d;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197,164,109,0.35);
}

/* ACTIVE */
.panel:active {
  transform: scale(0.99);
  transition: transform 0.1s ease;
}

/* LOGO CENTRAL */
.logo-central {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  opacity: 0.6;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

/* MOVIMENTO SUAVE */
.split.hover-left .logo-central {
  transform: translateX(-60%);
  opacity: 0.8;
}

.split.hover-right .logo-central {
  transform: translateX(-40%);
  opacity: 0.8;
}

/* ========================= */
/* 📱 MOBILE CORRIGIDO FINAL */
/* ========================= */

@media (max-width: 768px) {

  .split {
    flex-direction: column;
  }

  .panel {
    min-height: 50vh;
  }

  .content {
    padding: 18px;
    max-width: 90%;
    transform: none;
    opacity: 1;
  }

  .label {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
  }

  .panel h1 {
    font-size: 24px;
    margin: 10px 0;
  }

  .panel p {
    font-size: 12.5px;
  }

  /* remove efeito "expandir" no mobile */
  .panel:hover {
    flex: 1;
  }

  .logo-central {
    width: 100px;
    top: 20px;
  }

}