html {
    scroll-behavior: auto;
    overflow-x: hidden;
}
body {
    background: #08060d;
    color: #f0eef5;
    font-family: "DM Sans", sans-serif;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(
            ellipse 60% 70% at 15% 50%,
            rgba(88, 12, 138, 0.18) 0%,
            transparent 65%
        ),
        radial-gradient(
            ellipse 50% 60% at 80% 30%,
            rgba(112, 8, 56, 0.14) 0%,
            transparent 65%
        );
}

/* ── NOVO TRILHO HORIZONTAL DESKTOP (ROLA E DEPOIS DESCE) ── */
#scroll-track {
    position: relative;
    width: 100%;
}
#stage {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
}
#panels-wrap {
    display: flex !important;
    flex-direction: row !important;
    height: 100%;
    width: max-content;
    will-change: transform;
    transition: none;
}
.panel {
    width: 100vw;
    height: 100% !important;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box;
}

#dto-wave-svg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

/* Larguras e preenchimentos dos painéis no formato trilho panorama */
#panel-manifesto { 
    width: 115vw;
    padding: 6vh 40px 4vh 32vw !important; 
    justify-content: flex-start;
    box-sizing: border-box;
}
#panel-certs {
    width: 85vw;
    padding: 100px 40px 40px 60px;
    justify-content: center;
}
#panel-video {
    width: 70vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 40px;
}
#panel-mudasite {
  width: 100vw !important; /* Cada painel ocupa exatamente uma largura de tela */
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Elementos do Fio Animado */
.fio-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 45%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.fio-path-main {
    fill: none;
    stroke: url(#fioGradDto);
    stroke-width: 1.4;
    stroke-dasharray: 2400;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 10px rgba(244, 121, 32, 0.45));
}
.fio-path-ghost {
    fill: none;
    stroke: url(#fioGradDto2);
    stroke-width: 0.7;
    stroke-dasharray: 1800;
    stroke-dashoffset: 0;
    opacity: 0.35;
}
.fio-anim {
    animation: drawFio 2.8s ease forwards 0s;
}
.fio-anim2 {
    animation: drawFio 3.4s ease forwards 0s;
}
@keyframes drawFio {
    from {
        stroke-dashoffset: 2400;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.manifesto-content {
    position: relative; 
    z-index: 1; 
    width: 100%; 
    display: flex; 
    flex-direction: row; 
    align-items: center;
    gap: 60px; 
    max-height: 78vh !important; 
    overflow-y: auto; 
    scrollbar-width: none; 
    margin-top: auto; 
    margin-bottom: auto;
}
.manifesto-content::-webkit-scrollbar {
    display: none;
}
.manifesto-left {
    flex-shrink: 0;
    width: min-content;
    display: flex;
    flex-direction: column;
}
.manifesto-right {
    display: flex;
    flex-direction: row;
    gap: 60px;
}
.mani-col {
    flex-shrink: 0;
    width: clamp(220px, 24vw, 380px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.mani-eyebrow {
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(244, 121, 32, 0.65);
    margin-bottom: 28px;
}
.mani-h1 {
    font-family: "Sora", sans-serif;
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #f0eef5;
    margin-bottom: 20px;
}
.mani-h1 .grad {
    background: linear-gradient(90deg, #f47920, #e91e72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mani-sub {
    font-family: "DM Sans", sans-serif;
    font-weight: 300;
    color: rgba(240, 238, 245, 0.5);
    letter-spacing: 0.06em;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 11px;
}
.mani-divider {
    width: 48px;
    height: 2px;
    margin-bottom: 36px;
    background: linear-gradient(90deg, #f47920, #e91e72);
    border-radius: 2px;
}
.mani-col p {
    font-family: "DM Sans", sans-serif;
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 300;
    color: rgba(240, 238, 245, 0.65);
    line-height: 1.85;
}
.mani-col p.final {
    color: rgba(240, 238, 245, 0.88);
    font-weight: 400;
}

.certs-content {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(70px, 5vw, 102px);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: none;
}
.certs-content::-webkit-scrollbar {
    display: none;
}
.certs-title-col {
    flex: 0 0 auto;
    width: clamp(200px, 24vw, 260px);
}
.certs-eyebrow {
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240, 238, 245, 0.28);
    margin-bottom: 20px;
    display: block;
}
.certs-h2 {
    font-family: "Sora", sans-serif;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #f0eef5;
}
.certs-h2 span {
    background: linear-gradient(90deg, #f47920, #e91e72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cert-item-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(240, 238, 245, 0.06);
}
.cert-item-row:first-child {
    border-top: 1px solid rgba(240, 238, 245, 0.06);
}
.cert-logo-side img {
    max-height: 70px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.78;
}
.cert-logo-side img.meta-logo {
    max-height: 51px;
    max-width: 152px;
}
.cert-logo-side img.cenp-logo {
    filter: none;
    opacity: 0.88;
    max-height: 39px;
    max-width: 165px;
}
.cert-copy-title {
    font-family: "Sora", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #f0eef5;
    margin-bottom: 8px;
}
.cert-copy-body {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(240, 238, 245, 0.55);
    line-height: 1.75;
    max-width: 560px;
}

.video-wrap {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(244, 121, 32, 0.1);
    max-height: calc(100vh - 160px);
}
.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.muda-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(40px, 5vw, 100px);
  box-sizing: border-box;
}
.muda-section::-webkit-scrollbar {
    display: none;
}
/* Restaura o Grid Original idêntico ao layout projetado */
.muda-layout {
  display: grid !important;
  grid-template-columns: 161px 200px 370px 230px !important;
  gap: 26px;
  align-items: center;
  width: max-content;
  margin: 0 auto;
}

.muda-col-esq { display: flex; flex-direction: column; gap: 12px; }
.muda-col-dir { display: flex; flex-direction: column; gap: 9px; }

.muda-foto {
  border-radius: 5px;
  background: rgba(240,238,245,.08);
  overflow: hidden;
}
.muda-col-esq .muda-foto { height: 132px; width: 161px; }

/* Fotos da Direita */
.muda-foto-dir-grande { 
  height: 184px; 
  width: 230px;
  border-radius: 5px; 
  background: rgba(240,238,245,.08); 
  overflow: hidden; 
}
.muda-fotos-dir-baixo { display: flex; gap: 9px; width: 230px; }
.muda-fotos-dir-baixo .muda-foto { flex: 1; height: 83px; }

/* Imagens de Fundo das Mudas */
.muda-foto-1 { background-image: url('../images/mudasite/muda1.webp'); background-size: cover; background-position: center; }
.muda-foto-2 { background-image: url('../images/mudasite/muda2.webp'); background-size: cover; background-position: center; }
.muda-foto-3 { background-image: url('../images/mudasite/muda3.webp'); background-size: cover; background-position: center; }
.muda-foto-4 { background-image: url('../images/mudasite/muda4.webp'); background-size: cover; background-position: center; }
.muda-foto-5 { background-image: url('../images/mudasite/muda5.webp'); background-size: cover; background-position: center; }

.muda-col-logo { display: flex; align-items: center; justify-content: center; width: 200px; }
.muda-logo-img { height: 161px; width: auto; object-fit: contain; }

.muda-col-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 370px; }
.muda-eyebrow {
  font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #48B874;
}
.muda-texto {
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 300; color: rgba(240,238,245,.65);
  line-height: 1.85; text-align: left; max-width: 368px;
}
.muda-btn {
  display: inline-block; font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(240,238,245,.25); border-radius: 2px;
  padding: 12px 25px; color: rgba(240,238,245,.65); transition: border-color .2s, color .2s;
}
.muda-btn:hover { border-color: rgba(72,184,116,.5); color: #48B874; }

/* Trava protetora para notebooks com ecrãs pequenos (evita que o grid quebre o tamanho) */
@media (max-height: 820px) {
  .muda-layout {
    transform: scale(0.9);
    transform-origin: center;
  }
}

.social-strip {
    position: relative;
    z-index: 5;
    background: #08060d;
    border-top: 1px solid rgba(240, 238, 245, 0.06);
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.social-strip-label {
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240, 238, 245, 0.28);
}
.social-strip-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-strip-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(240, 238, 245, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(240, 238, 245, 0.44);
    text-decoration: none;
    transition:
        border-color 0.2s,
        color 0.2s;
}
.social-strip-links a:hover {
    border-color: rgba(244, 121, 32, 0.5);
    color: #f47920;
}
.social-strip-handle {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(240, 238, 245, 0.35);
}

#scroll-hint-dto {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    font-family: "Sora", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 238, 245, 0.22);
    pointer-events: none;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    gap: 12px;
}
#scroll-hint-dto::before,
#scroll-hint-dto::after {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(240, 238, 245, 0.14);
}

/* Suporte para monitores ou laptops menores */
@media (max-height: 820px) {
    #panel-manifesto { 
        padding-top: 7vh !important; 
        padding-bottom: 3vh !important; 
    }
    .mani-h1 { 
        font-size: clamp(28px, 3.8vw, 46px) !important; /* Diminui suavemente o H1 */
        margin-bottom: 12px !important; 
    }
    .mani-eyebrow { 
        margin-bottom: 14px !important; 
    }
    .mani-sub { 
        margin-bottom: 20px !important; 
    }
    .mani-divider { 
        margin-bottom: 20px !important; 
    }
    .manifesto-content {
        gap: clamp(20px, 3vw, 40px) !important; /* Aproxima as colunas de texto */
        max-height: 74vh !important;
    }
    .mani-col p {
        font-size: 14px !important; /* Calibração fina de leitura para telas pequenas */
        line-height: 1.65 !important;
    }
    #panel-certs {
        padding-top: 85px !important;
    }
    #panel-video {
        padding-top: 85px !important;
    }
    #panel-mudasite {
        padding-top: 85px !important;
    }
}

.panel-mob-only {
    display: none;
}

/* ── COMPORTAMENTO MOBILE NATIVO E IMPERMEÁVEL ── */
@media (max-width: 767px) {
    /* overflow-x:hidden em html/body cria um scroll container e QUEBRA o position:sticky do #stage
       (problema conhecido no iOS Safari, anotado no site legado). overflow-x:clip corta o excesso
       sem virar scroll container. */
    html, body {
        overflow-x: clip !important;
        max-width: 100vw;
    }

    /* Mesmo mecanismo do desktop: a rolagem vertical da página conduz o movimento lateral dos
       painéis. A altura do #scroll-track é calculada pelo JS de sobre.blade.php. */
    #scroll-track {
        position: relative;
        width: 100% !important;
    }
    
    #stage {
        position: sticky !important;
        top: 0;
        height: 100vh !important;
        height: 100dvh !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    #panels-wrap {
        display: flex !important;
        flex-direction: row !important;
        height: 100% !important;
        width: max-content !important;
        will-change: transform;
    }

    .panel {
        position: relative !important;
        width: 100vw !important;
        height: 100% !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #scroll-hint-dto {
        display: none;
    }

    .panel-mob-only {
        display: flex !important;
    }

    .mob-titulo-cont {
        height: 85%;
        display: flex;
        flex-flow: column;
        justify-content: center;
    }

    /* Garante que o painel mestre tenha espaço para alinhar a dica na base */
    #panel-m-titulo {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 120px 24px 40px !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    /* Indicador mobile: a dica agora é rolar para baixo (a rolagem move os painéis) */
    .swipe-cue-mob {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: auto;
        padding-top: 20px;
        pointer-events: none;
    }

    /* Traço horizontal animado que 'empurra' para a direita */
    .swipe-line {
        width: 36px;
        height: 1px;
        background: linear-gradient(to right, rgba(244, 121, 32, .85), transparent);
        border-radius: 1px;
        animation: pulseSwipe 2s ease-in-out infinite;
        transform-origin: left center;
    }

    /* Rótulo em caixa alta elegante */
    .swipe-label {
        font-family: 'Sora', sans-serif;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: rgba(240, 238, 245, .38);
    }

    /* Animação que faz a linha pulsar e expandir levemente para a direita */
    @keyframes pulseSwipe {
        0%, 100% {
            opacity: .30;
            transform: scaleX(0.8);
        }
        50% {
            opacity: .95;
            transform: scaleX(1.2);
        }
    }

    #panel-manifesto,
    #panel-certs {
        display: none !important;
    }

    /* Painéis de Título e Textos */
    /* #panel-m-titulo {
        padding: 100px 24px 40px !important;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    } */

    #panel-m-texto1,
    #panel-m-texto2 {
        padding: 90px 24px 40px !important;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }

    #panel-m-texto1 .mani-divider {
        margin-bottom: 24px;
    }

    #panel-m-certs-titulo {
        padding: 80px 24px !important;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }

    #panel-m-certs-titulo .certs-eyebrow {
        margin-bottom: 16px;
        display: block;
    }

    #panel-m-certs-titulo .certs-h2 {
        font-size: clamp(30px, 7.5vw, 44px);
    }

    #panel-m-certs-logos {
        padding: 40px 24px !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    #panel-m-certs-logos .mob-certs-rows {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    #panel-m-certs-logos .cert-item-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px 0;
    }

    #panel-m-certs-logos .cert-logo-side {
        justify-content: flex-start;
    }

    #panel-m-certs-logos .cert-logo-side img {
        max-height: 36px !important;
        max-width: 120px !important;
    }

    #panel-m-certs-logos .cert-logo-side img.meta-logo {
        max-height: 36px !important;
        max-width: 140px !important;
    }

    #panel-m-certs-logos .cert-logo-side img.cenp-logo {
        max-height: 26px !important;
        max-width: 130px !important;
        filter: brightness(0) invert(1) !important;
        opacity: 0.78 !important;
    }

    /* Painel de Vídeo */
    #panel-video {
        width: 100vw !important;
        padding: 40px 20px !important;
    }

    /* Painel MudaSite */
    #panel-mudasite {
        width: 100vw !important;
        padding: 40px 20px !important;
    }

    .muda-section {
        padding: 0;
        width: 100%;
    }

    .muda-layout {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100% !important;
    }

    .muda-col-logo {
        order: 1;
        justify-content: flex-start;
        width: 100% !important;
    }

    .muda-col-esq {
        order: 2;
        flex-direction: row !important;
        gap: 8px;
        width: 100%;
    }

    .muda-col-esq .muda-foto {
        flex: 1;
        height: 75px !important;
        width: auto !important;
        min-width: 0;
    }

    .muda-logo-img {
        height: 80px !important;
    }

    .muda-col-texto {
        order: 3;
        width: 100% !important;
    }

    .muda-col-texto .muda-texto {
        font-size: 12.5px;
        line-height: 1.5;
        max-width: 100%;
    }

    .muda-col-texto .muda-btn {
        padding: 8px 16px;
        font-size: 10px;
    }

    .muda-col-dir {
        order: 4;
        flex-direction: row !important;
        gap: 8px;
        width: 100%;
    }

    .muda-foto-dir-grande {
        flex: 1;
        height: 75px !important;
        width: auto !important;
        min-width: 0;
        border-radius: 5px;
    }

    .muda-fotos-dir-baixo {
        flex: 1.4;
        flex-direction: row !important;
        gap: 8px;
        width: auto !important;
        min-width: 0;
    }

    .muda-fotos-dir-baixo .muda-foto {
        flex: 1;
        height: 75px !important;
        min-width: 0;
    }

    /* Faixa de Redes Sociais no Mobile */
    .social-strip {
        width: 100vw !important;
        box-sizing: border-box !important;
        padding: 32px 20px !important;
    }
    .social-strip {
        flex-wrap: wrap;
    }
    .social-strip-handle {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .social-strip-links {
        gap: 8px !important;
    }
    .social-strip-links a {
        width: 32px !important;
        height: 32px !important;
    }
}
