@font-face {
  font-family: "font1";
  src: url("font/1.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "font2";
  src: url("font/2.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "font3";
  src: url("font/3.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "font4";
  src: url("font/4.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "font5";
  src: url("font/5.ttf") format("truetype");
  font-style: normal;
}

#Camada_1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 70%;
  max-height: 90%;
}

#Layer_1 {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
}

body {
  overflow: hidden;
  background: #93cbd8;
  cursor: none;
  pointer-events: none;
}

a {
  padding-top: 10px;
  margin-bottom: 12px;
  all: unset;
  font-size: var(--subtitle-size);
  font-family: "font5";
  text-decoration: none;
  color: black;
  cursor: none;
}

a:hover {

  text-decoration: underline;

}

p {
  font-family: "font2";
}

/* SCROLL BAR */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: black;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #333;
}

/* TRANSITIONS */

.fade-in {
  opacity: 1;
  pointer-events: auto;
}

.fade-out {
  opacity: 0;
  pointer-events: none;
}

svg g,
svg path {
  opacity: 1;
}

.raster-layer {
  transition: opacity 1000ms ease;
}

/* CONTENT */

#title-overlay {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: auto;
  width: 100%;
  transform: translateX(35px);
}

#main-title {
  font-family: "font5";
  font-size: var(--title-size);
  line-height: 1.1;
  color: #000;
  z-index: 999;
  font-weight: 300;
  width: 80%;
}

#subtitle {
  font-family: "font3";
  font-size: var(--subtitle-size);
  line-height: 1.3;
  margin: 8px 0 0 0;
  padding: 0;
  color: #000;
  font-weight: 300;
  max-width: calc(100% - 120px);
}

#Mapa_geral {
  will-change: transform;
}

.sobre-layout {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 32px;
  width: calc(100vw - 80px);
  margin: 0 auto 40px auto;
  padding-top: 20px;
}

.sobre-logos {
  position: sticky;
  top: 220px;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sobre-logos img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

/* First logo takes full row */
.sobre-logos img:first-child {
  grid-column: 1 / -1;
  justify-self: start; /* optional: align left */
}

#sobre-overlay {
  position: fixed;
  inset: 0;
  background: #93cbd8;
  z-index: 10;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    visibility 0s linear 0.4s;
}

#sobre-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.4s ease,
    visibility 0s linear 0s;
}


.sobre-text {
  font-family: "font2";
  font-size: var(--subtitle-size);
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.sobre-text h2,
.sobre-content h2 {
  font-family: "font5";
  font-size: var(--subtitle-size);
  font-weight: 300;
}

body.sobre-active svg {
  visibility: hidden;
}

canvas {
  position: absolute;
  pointer-events: auto;
}

#sobre-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

body.sobre-active canvas {
  pointer-events: none;
}

:root {
  --title-size: 38px;
  --subtitle-size: calc(var(--title-size) * 0.5);
}

@media (max-width: 750px) {
  .sobre-layout {
    grid-template-columns: 1fr;
  }

  .sobre-content {
    order: 1;
    padding-top: 210px;
  }

  .sobre-logos {
    display: grid;
    gap: 16px;
    order: 2;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 24px;
  }
}

@media (max-width: 600px) {

  .sobre-layout {
    width: calc(100vw - 40px);
  }

  .sobre-content {
    order: 1;
  }

  .sobre-layout>.sobre-content>.sobre-text {
    font-size: 18.7px;
  }

  .sobre-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}