/* ============================================================
   SOBRE — Layout Geral
   ============================================================ */

.page-sobre .sobre-layout {
    padding: 80px 20px;
    background: transparent;
}

.page-sobre .sobre-layout__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 500px 500px;
    gap: 48px;
    align-items: start;
    justify-content: center;
}

.page-sobre .sobre-layout__coluna-esquerda,
.page-sobre .sobre-layout__coluna-direita {
    width: 100%;
}

.page-sobre .sobre-layout__box {
    background: #8ea8bd;
    border: 1px solid rgba(6, 21, 34, 0.18);
    border-radius: 18px;
    padding: 32px;
    color: #061522;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.page-sobre .sobre-layout__box h1 {
    margin: 0 0 18px;
    color: #061522;
    font-size: 28px;
    line-height: 1.2;
}

.page-sobre .sobre-layout__box p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #061522;
}

.page-sobre .sobre-layout__box p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   SOBRE — Mapa de Conexões AbaCode
   ============================================================ */

.page-sobre .sobre-mapa-conexoes {
    padding: 0;
    background: transparent;
}

.page-sobre .sobre-mapa-conexoes__inner {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/*
   Stage: padding-bottom cria a altura proporcional ao viewBox 800×560.
   Todos os filhos são absolute, empilhados no mesmo espaço.
*/
.page-sobre .sobre-mapa-conexoes__stage {
    position: relative;
    width: 100%;
    padding-bottom: 70%; /* 560 / 800 = 0.70 */
    height: 0;
    overflow: visible;
}

/* ----------------------------------------------------------
   Mapa base — camada 1
   ---------------------------------------------------------- */
.page-sobre .sobre-mapa-conexoes__mapa {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    display: block !important;
    z-index: 1;
}

/* ----------------------------------------------------------
   SVG de linhas — camada 2
   ---------------------------------------------------------- */
.page-sobre .sobre-mapa-conexoes__svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    overflow: visible !important;
    z-index: 2;
    pointer-events: none;
}

/* ----------------------------------------------------------
   Pontos de destino — camada 3
   ---------------------------------------------------------- */
.page-sobre .sobre-mapa-conexoes__pontos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* ----------------------------------------------------------
   Linhas animadas
   ---------------------------------------------------------- */
.page-sobre .sobre-mapa-conexoes__linha {
    fill: none;
    stroke: #3be7f4;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-dasharray: 40 2;
    animation: fluxoAba 2.8s linear infinite;
    opacity: 0.75;
}

.page-sobre .sobre-mapa-conexoes__grupo-linhas use:nth-child(1) { animation-delay: 0s; }
.page-sobre .sobre-mapa-conexoes__grupo-linhas use:nth-child(2) { animation-delay: 0.4s; }
.page-sobre .sobre-mapa-conexoes__grupo-linhas use:nth-child(3) { animation-delay: 0.8s; }
.page-sobre .sobre-mapa-conexoes__grupo-linhas use:nth-child(4) { animation-delay: 1.2s; }
.page-sobre .sobre-mapa-conexoes__grupo-linhas use:nth-child(5) { animation-delay: 1.6s; }
.page-sobre .sobre-mapa-conexoes__grupo-linhas use:nth-child(6) { animation-delay: 2.0s; }
.page-sobre .sobre-mapa-conexoes__grupo-linhas use:nth-child(7) { animation-delay: 2.4s; }

@keyframes fluxoAba {
    from { stroke-dashoffset: 22; }
    to   { stroke-dashoffset: 0;  }
}

/* ----------------------------------------------------------
   Pontos de destino
   ---------------------------------------------------------- */
.page-sobre .sobre-mapa-conexoes__ponto {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #000b14;
    border: 1.5px solid #3be7f4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(59, 231, 244, 0.55);
}

.page-sobre .sobre-mapa-conexoes__logo-sp { top: 73.0%; left: 65.0%; }

.page-sobre .p-campinas    { top: 70.0%; left: 62.5%; }
.page-sobre .p-joaopessoa  { top: 36.3%; left: 78.8%; }
.page-sobre .p-recife      { top: 39.0%; left: 79.8%; }
.page-sobre .p-curitiba    { top: 79.3%; left: 61.5%; }
.page-sobre .p-portoalegre { top: 84.7%; left: 59.0%; }
.page-sobre .p-campogrande { top: 63.7%; left: 44.8%; }
.page-sobre .p-manaus      { top: 23.0%; left: 26.2%; }

/* ----------------------------------------------------------
   Logo SP — camada 4
   ---------------------------------------------------------- */
.page-sobre .sobre-mapa-conexoes__logo-sp {
    position: absolute;
    z-index: 10;
    top:  74.5%;
    left: 62.5%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
}

.page-sobre .sobre-mapa-conexoes__logo-sp img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    border-radius: 50%;
    box-shadow:
        0 0 0 2px #3be7f4,
        0 0 12px rgba(59, 231, 244, 0.7);
    display: block !important;
}

/* ----------------------------------------------------------
   Responsividade
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
    .page-sobre .sobre-layout__inner {
        grid-template-columns: 1fr;
        max-width: 620px;
        gap: 36px;
    }

    .page-sobre .sobre-mapa-conexoes__inner {
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .page-sobre .sobre-layout {
        padding: 40px 12px;
    }

    .page-sobre .sobre-layout__box {
        padding: 22px;
    }

    .page-sobre .sobre-layout__box h1 {
        font-size: 24px;
    }

    .page-sobre .sobre-mapa-conexoes__logo-sp {
        width: 20px;
        height: 20px;
    }

    .page-sobre .sobre-mapa-conexoes__ponto {
        width: 7px;
        height: 7px;
    }
}