/* =========================================================
   PiTer - App.css consolidado
   Mantém o visual atual e remove regras históricas/duplicadas.
   ========================================================= */

/* =========================================================
   1. GLOBAL / BLAZOR
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #000;
}

body {
    overflow-x: hidden;
}

a,
.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    background: #b32121;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.piter-app {
    width: 100%;
    min-height: 100vh;
}

/* =========================================================
   2. HOME
   ========================================================= */

.piter-home {
    min-height: 100vh;
    background: radial-gradient(circle at center, #2a1b10 0%, #0b0806 45%, #000 100%);
    color: #f4e4c5;
}

.piter-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.piter-hero {
    width: 100%;
    max-width: 760px;
    text-align: center;
}

.piter-logo {
    display: block;
    width: min(520px, 90vw);
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, .65));
}

.piter-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.piter-subtitle {
    margin: 1rem 0 2.25rem;
    color: #d8bf98;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 2.4vw, 1.45rem);
    letter-spacing: .08em;
}

.piter-enter {
    display: inline-block;
    padding: .9rem 2.2rem;
    border: 1px solid #c7a66a;
    border-radius: 999px;
    color: #f6ead5;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .12em;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

    .piter-enter:hover {
        color: #fff;
        background: rgba(199, 166, 106, .12);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(199, 166, 106, .12);
    }

/* =========================================================
   3. PÁGINA PÚBLICA DO HEPTAGRAMA
   ========================================================= */

.heptagrama-page {
    width: 100%;
    min-height: 100dvh;
    background: #000;
    color: #eee;
}

.heptagrama-content,
.heptagrama-content-public {
    width: 100%;
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(.75rem, 2vw, 2rem);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: clip;
}

/* =========================================================
   4. FRENTE DO HEPTAGRAMA
   ========================================================= */

.heptagram-wrapper {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 3.5rem);
}

.heptagram-svg {
    display: block;
    width: clamp(420px, min(68vw, 78dvh), 900px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: visible;
    flex: 0 1 auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .8));
}

/* =========================================================
   TERMANTRA + TASSEL
   ========================================================= */

.termantra-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(420px, 100%);
    flex-shrink: 0;
}


/* Caixa da oração */

.termantra-box {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 1.6rem;
    border: 2px solid #d79a00;
    background: #000;
    color: #fff;
}


/* Oração pode crescer livremente */

.termantra-text {
    width: 100%;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* =========================================================
   ÁREA RESERVADA AO TASSEL
   ========================================================= */

.tassel-area {
    position: relative;
    width: 100%;
    height: 340px;
    flex: 0 0 340px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    padding-top: 32px;
    box-sizing: border-box;
}


/* Tassel */

.tassel-svg {
    display: block;
    width: 100px;
    height: auto;
    max-height: 330px;
    flex-shrink: 0;
    overflow: visible;
}

/* =========================================================
   6. VERSO DO HEPTAGRAMA
   ========================================================= */

.heptagram-back-wrapper {
    position: relative;
    width: min(96vw, 1100px);
    margin-inline: auto;
}

    .heptagram-back-wrapper > .heptagram-svg {
        display: block;
        width: min(620px, 72vw);
        max-width: 100%;
        height: auto;
        margin-inline: auto;
    }

.back-advice {
    position: absolute;
    width: 340px;
    margin: 0;
    color: #8f3ac8;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
    z-index: 2;
}

.back-advice-top-left {
    top: 55px;
    left: -170px;
}

.back-advice-top-right {
    top: 55px;
    right: -170px;
}

.back-advice-bottom-left {
    bottom: 55px;
    left: -170px;
}

.back-advice-bottom-right {
    bottom: 55px;
    right: -170px;
}

/* =========================================================
   7. FLIP FRENTE / VERSO
   ========================================================= */

.heptagram-flip-scene {
    width: 100%;
    perspective: 4000px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

    .heptagram-flip-scene:focus {
        outline: none;
    }

.heptagram-flip-card {
    width: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 350ms cubic-bezier(.4, 0, .2, 1), opacity 250ms ease, filter 350ms ease;
}

    .heptagram-flip-card.flip-out {
        transform: rotateY(90deg) scale(.92);
        opacity: .25;
        filter: brightness(.72);
    }

    .heptagram-flip-card.flip-in-start {
        transform: rotateY(-90deg) scale(.92);
        opacity: .25;
        transition: none;
    }

    .heptagram-flip-card.flip-in {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
        filter: brightness(1);
    }
   

   

.heptagram-flip-scene:active .heptagram-flip-card:not(.flip-out) {
    scale: .992;
}

/* =========================================================
   8. RESPONSIVIDADE
   ========================================================= */

/* desktop grande */
@media (min-width: 1500px) and (min-height: 900px) {
    .heptagram-svg {
        width: min(66vw, 80dvh, 960px);
    }
    .tassel-area {
        height: 300px;
        flex-basis: 300px;
    }

    .tassel-svg {
        width: 82px;
        max-height: 285px;
    }
}

/* tablet / portátil estreito */
@media (max-width: 1050px) {
    .heptagram-wrapper {
        flex-direction: column;
        gap: 1.25rem;
    }

    .heptagram-svg {
        width: min(92vw, 70dvh, 760px);
    }

    .termantra-panel {
        width: min(560px, 92vw);
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .termantra-box {
        flex: 1 1 auto;
    }

    .tassel-svg {
        flex: 0 0 auto;
        width: 90px;
    }

    .termantra-box::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -28px;
        width: 38px;
        height: 38px;
        background: #000;
        border-right: 2px solid #d79a00;
        border-bottom: 2px solid #d79a00;
        transform: translateX(-50%) rotate(45deg);
        z-index: 2;
    }

    /* Mantém o verso visualmente semelhante ao desktop,
       mas reduz as caixas laterais para não saírem do viewport. */
    .heptagram-back-wrapper {
        width: min(94vw, 860px);
    }

        .heptagram-back-wrapper > .heptagram-svg {
            width: min(600px, 68vw);
        }

    .back-advice {
        width: 250px;
        font-size: 15px;
    }

    .back-advice-top-left,
    .back-advice-bottom-left {
        left: -55px;
    }

    .back-advice-top-right,
    .back-advice-bottom-right {
        right: -55px;
    }
}

/* mobile / tablet vertical */
@media (max-width: 760px) {
    .heptagrama-content,
    .heptagrama-content-public {
        padding: .65rem;
        align-items: flex-start;
    }

    .heptagram-wrapper {
        width: 100%;
        gap: 1rem;
    }

    .heptagram-svg {
        width: min(96vw, 62dvh, 620px);
        min-width: 0;
    }

    .termantra-panel {
        width: min(520px, calc(100vw - 1.25rem));
        flex-direction: column;
    }

    .termantra-box {
        font-size: .9rem;
    }

    .tassel-svg {
        width: 78px;
    }

    /* No verso, em ecrãs estreitos as quatro frases passam para
       fluxo normal. Evita cortes e scroll horizontal. */
    .heptagram-back-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }

        .heptagram-back-wrapper > .heptagram-svg {
            width: min(96vw, 62dvh, 620px);
            order: 2;
        }

    .back-advice {
        position: static;
        width: min(94vw, 560px);
        padding: .25rem .5rem;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 1.35;
    }

    .back-advice-top-left {
        order: 0;
    }

    .back-advice-top-right {
        order: 1;
    }

    .back-advice-bottom-left {
        order: 3;
    }

    .back-advice-bottom-right {
        order: 4;
    }
}

/* telemóvel pequeno */
@media (max-width: 480px) {
    .piter-overlay {
        padding: 1rem;
    }

    .heptagram-svg,
    .heptagram-back-wrapper > .heptagram-svg {
        width: min(97vw, 58dvh);
    }

    .termantra-panel {
        width: calc(100vw - 1rem);
    }

    .termantra-box {
        padding: .85rem .9rem;
    }

    .termantra-text {
        font-size: .86rem;
    }

    .back-advice {
        font-size: 13px;
    }
}

/* janelas baixas em desktop */
@media (max-height: 700px) and (min-width: 761px) {
    .heptagrama-content,
    .heptagrama-content-public {
        padding-top: .75rem;
        padding-bottom: .75rem;
    }

    .heptagram-svg {
        width: min(66vw, 72dvh, 720px);
    }

    .heptagram-back-wrapper > .heptagram-svg {
        width: min(580px, 70dvh);
    }
}

@media (prefers-reduced-motion: reduce) {
    .heptagram-flip-card {
        transition: none;
    }
}


/* =========================================================
   RESPONSIVIDADE FINAL — TABLET / MOBILE
   ========================================================= */

/* ---------- TABLET ---------- */
@media (max-width: 900px) {

    .heptagrama-content-public {
        min-height: 100dvh;
        padding: 1rem;
        align-items: flex-start;
    }

    /* FRENTE */
    .heptagram-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .heptagram-svg {
        width: min(92vw, 620px);
        max-width: 100%;
        height: auto;
    }

    .termantra-panel {
        width: min(560px, calc(100vw - 2rem));
        flex-direction: column;
        gap: 1.25rem;
        margin-inline: auto;
    }

    .termantra-box {
        width: 100%;
        padding: 1rem 1.1rem;
    }

    .tassel-svg {
        width: 82px;
    }


    /* VERSO */
    .heptagram-back-wrapper {
        position: relative;
        width: min(100%, 760px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 1rem;
        row-gap: 1.1rem;
        align-items: center;
        margin-inline: auto;
         margin-top: 3rem;
        
    }

        /*
       Importante:
       anulamos os position:absolute do desktop.
    */
        .heptagram-back-wrapper .back-advice {
            position: static;
            width: 100%;
            margin: 0;
            box-sizing: border-box;
            font-size: 16px;
            line-height: 1.3;
            text-align: center;
        }

    .back-advice-top-left {
        grid-column: 1;
        grid-row: 1;
    }

    .back-advice-top-right {
        grid-column: 2;
        grid-row: 1;
    }

    .heptagram-back-wrapper > .heptagram-svg {
        grid-column: 1 / -1;
        grid-row: 2;
        display: block;
        width: min(74vw, 580px);
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .back-advice-bottom-left {
        grid-column: 1;
        grid-row: 3;
    }

    .back-advice-bottom-right {
        grid-column: 2;
        grid-row: 3;
    }
}


/* ---------- MOBILE ---------- */
@media (max-width: 560px) {

    .heptagrama-content-public {
        width: 100%;
        padding: .75rem .5rem 1.5rem;
    }


    /* FRENTE */

    .heptagram-wrapper {
        gap: 1.15rem;
    }

    .heptagram-svg {
        width: min(96vw, 430px);
    }

    .termantra-panel {
        width: calc(100vw - 1.25rem);
        max-width: 400px;
        gap: 1rem;
    }

    .termantra-box {
        padding: .9rem 1rem;
    }

    .termantra-title {
        font-size: 1rem;
        margin-bottom: .55rem;
    }

    .termantra-text {
        font-size: .88rem;
        line-height: 1.42;
    }

    .tassel-svg {
        width: 68px;
    }


    /* VERSO */
    .back-advice {
        position: static;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-inline: 1rem;
        text-align: center;
        overflow-wrap: normal;
    }
    .heptagram-back-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: .75rem;
        margin-top: 3rem;
    }

        .heptagram-back-wrapper .back-advice {
            position: static;
            width: min(100%, 360px);
            padding: 0 .4rem;
            margin: 0 auto;
            font-size: 14px;
            line-height: 1.28;
            text-align: center;
        }

        .heptagram-back-wrapper > .heptagram-svg {
            order: 2;
            width: min(96vw, 430px);
            max-width: 100%;
            margin: .2rem auto;
        }

    .back-advice-top-left {
        order: 0;
    }

    .back-advice-top-right {
        order: 1;
    }

    .back-advice-bottom-left {
        order: 3;
    }

    .back-advice-bottom-right {
        order: 4;
    }


    /* FLIP */
    .heptagram-flip-scene {
        width: 100%;
        overflow: visible;
    }

    .heptagram-flip-card {
        width: 100%;
    }

    .back-advice-top-left,
    .back-advice-top-right,
    .back-advice-bottom-left,
    .back-advice-bottom-right {
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .piter-status {
        left: .75rem;
        right: auto;
        bottom: .75rem;
        gap: .5rem;
    }

    .piter-nav {
        width: 34px;
        height: 50px;
        font-size: 2.4rem;
    }

    .piter-nav-prev {
        left: .15rem;
    }

    .piter-nav-next {
        right: .15rem;
    }

    .piter-state-popover {
        position: fixed;
        left: .75rem;
        right: .75rem;
        bottom: 4.5rem;
        width: auto;
    }

    .piter-state-days,
    .piter-state-months {
        justify-content: center;
    }

    .piter-state-button {
        font-size: .68rem;
    }

    .piter-site-menu {
        top: .75rem;
        left: .75rem;
    }

    .piter-site-menu-panel {
        width: 190px;
    }


    .tassel-area {
        height: 260px;
        flex-basis: 260px;
        padding-top: 28px;
    }

    .tassel-svg {
        width: 68px;
        max-height: 245px;
    }
}

/* =========================================================
   DATA + SOM
   ========================================================= */

.piter-status {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    z-index: 20;
}

.piter-date {
    color: #b7b7b7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.piter-sound-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #555;
    border-radius: 50%;
    background: rgba(5, 5, 5, .82);
    color: #eee;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

    .piter-sound-button:hover {
        border-color: #888;
        background: rgba(25, 25, 25, .9);
    }

    .piter-sound-button:active {
        transform: scale(.94);
    }

.back-advice-number {
    display: inline-block;
    margin-right: .35rem;
    font-size: .82em;
    font-weight: 700;
    opacity: .72;
}

    .back-advice-number::after {
        content: "—";
        margin-left: .25rem;
    }

.back-advice-text {
    display: inline;
}

.back-advice-number {
    display: none;
}

/* =========================================================
   NAVEGAÇÃO DOS 84 PiTer
   ========================================================= */

.piter-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .42);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.piter-nav-prev {
    left: 1.25rem;
}

.piter-nav-next {
    right: 1.25rem;
}

.piter-nav:hover {
    color: rgba(255, 255, 255, .9);
}

.piter-nav-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.piter-nav-next:hover {
    transform: translateY(-50%) translateX(3px);
}

.piter-nav:active {
    opacity: .6;
}

/* =========================================================
   SELETOR DIRETO DOS 84 PiTer
   ========================================================= */

.piter-state-picker {
    position: relative;
}

.piter-state-button {
    padding: .35rem .55rem;
    border: 0;
    background: transparent;
    color: #b7b7b7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .78rem;
    letter-spacing: .12em;
    cursor: pointer;
    transition: color 160ms ease, opacity 160ms ease;
}

    .piter-state-button:hover {
        color: #ffffff;
    }

.piter-state-popover {
    position: absolute;
    left: 0;
    bottom: calc(100% + .8rem);
    width: min(390px, calc(100vw - 2rem));
    padding: 1rem;
    box-sizing: border-box;
    border: 1px solid #343434;
    border-radius: 16px;
    background: linear-gradient( 180deg, rgba(18,18,18,.98), rgba(5,5,5,.98) );
    box-shadow: 0 20px 60px rgba(0,0,0,.65);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.piter-state-section + .piter-state-section {
    margin-top: 1rem;
}

.piter-state-label {
    display: block;
    margin-bottom: .55rem;
    color: #777;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.piter-state-days,
.piter-state-months {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.piter-state-chip {
    min-width: 44px;
    padding: .45rem .6rem;
    border: 1px solid #393939;
    border-radius: 999px;
    background: #090909;
    color: #aaa;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

    .piter-state-chip:hover {
        color: #fff;
        border-color: #777;
    }

    .piter-state-chip:active {
        transform: scale(.95);
    }

    .piter-state-chip.is-active {
        color: #fff;
        border-color: #8f3ac8;
        background: rgba(143,58,200,.2);
        box-shadow: inset 0 0 14px rgba(143,58,200,.08);
    }

.piter-state-popover {
    position: absolute;
    /* mantém o resto que já tens */
}

.piter-state-close {
    position: absolute;
    top: .65rem;
    right: .75rem;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

    .piter-state-close:hover {
        color: #fff;
        background: rgba(255,255,255,.06);
    }

    .piter-state-close:active {
        transform: scale(.9);
    }

/* =========================================================
   CONTACTE-NOS
   ========================================================= */

.contact-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem;
    box-sizing: border-box;
    background: #000;
    color: #fff;
}

.contact-card {
    width: min(520px, 100%);
    padding: 3rem 2.5rem;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #292929;
    border-radius: 20px;
    background: radial-gradient( circle at top, rgba(143, 58, 200, .12), transparent 55% ), #080808;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.contact-symbol {
    margin-bottom: 1rem;
    color: #8f3ac8;
    font-size: 2rem;
}

.contact-card h1 {
    margin: 0 0 1.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.contact-intro {
    max-width: 420px;
    margin: 0 auto 1.75rem;
    color: #999;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.65;
}

.contact-email {
    display: inline-block;
    color: #b86de6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
}

    .contact-email:hover {
        color: #d6a2f4;
    }

.contact-back {
    display: block;
    margin-top: 2.5rem;
    color: #777;
    font-size: .78rem;
    letter-spacing: .08em;
    text-decoration: none;
    transition: color 150ms ease;
}

    .contact-back:hover {
        color: #fff;
    }

@media (max-width: 560px) {

    .contact-page {
        padding: 1rem;
    }

    .contact-card {
        padding: 2.5rem 1.25rem;
    }

        .contact-card h1 {
            font-size: 1.7rem;
        }

    .contact-email {
        font-size: .9rem;
    }
}

/* =========================================================
   MENU PRINCIPAL
   ========================================================= */

.piter-site-menu {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    right: auto;
    z-index: 500;
}

.piter-site-menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

    .piter-site-menu-button:hover {
        color: #fff;
        background: rgba(255, 255, 255, .05);
        border-color: #333;
    }


/* PAINEL */

.piter-site-menu-panel {
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    right: auto;
    width: 210px;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    border: 1px solid #303030;
    border-radius: 14px;
    background: linear-gradient( 180deg, rgba(18,18,18,.98), rgba(5,5,5,.98) );
    box-shadow: 0 18px 50px rgba(0,0,0,.65);
    backdrop-filter: blur(12px);
}


    /* ITEMS */

    .piter-site-menu-panel a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: .75rem .85rem;
        box-sizing: border-box;
        border-radius: 9px;
        color: #aaa;
        text-decoration: none;
        font-family: Georgia, "Times New Roman", serif;
        font-size: .92rem;
        transition: color 150ms ease, background 150ms ease, padding-left 150ms ease;
    }

        .piter-site-menu-panel a:hover {
            color: #fff;
            background: rgba(143, 58, 200, .12);
            padding-left: 1rem;
        }

        .piter-site-menu-panel a.active {
            color: #c77bf2;
            background: rgba(143, 58, 200, .16);
        }

/* =========================================================
   MANUAIS
   ========================================================= */

.manuals-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem;
    box-sizing: border-box;
    background: #000;
    color: #fff;
}

.manuals-card {
    width: min(680px, 100%);
    padding: 3rem 2.5rem;
    box-sizing: border-box;
    border: 1px solid #292929;
    border-radius: 20px;
    background: radial-gradient( circle at top, rgba(143, 58, 200, .12), transparent 55% ), #080808;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

.manuals-symbol {
    margin-bottom: 1rem;
    text-align: center;
    color: #8f3ac8;
    font-size: 2rem;
}

.manuals-card h1 {
    margin: 0 0 .75rem;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.manuals-intro {
    margin: 0 auto 2rem;
    text-align: center;
    color: #999;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

.manuals-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.manual-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: #0a0a0a;
    color: #ccc;
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

    .manual-item:hover {
        border-color: #8f3ac8;
        background: rgba(143, 58, 200, .08);
        transform: translateY(-1px);
    }

    .manual-item strong {
        display: block;
        margin-bottom: .25rem;
        color: #eee;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1rem;
    }

    .manual-item span {
        color: #777;
        font-size: .8rem;
    }

.manual-open {
    flex-shrink: 0;
    color: #b86de6 !important;
    font-size: .8rem !important;
    font-weight: 600;
}

.manuals-back {
    display: block;
    margin-top: 2rem;
    text-align: center;
    color: #777;
    text-decoration: none;
    font-size: .78rem;
    letter-spacing: .08em;
    transition: color 150ms ease;
}

    .manuals-back:hover {
        color: #fff;
    }

@media (max-width: 560px) {

    .manuals-page {
        padding: 1rem;
    }

    .manuals-card {
        padding: 2.25rem 1.25rem;
    }

    .manual-item {
        align-items: flex-start;
    }
}

/* =========================================================
   VISUALIZADOR DE MANUAIS
   ========================================================= */

.manual-viewer-page {
    min-height: 100dvh;
    padding: 1.25rem;
    box-sizing: border-box;
    background: #000;
    color: #fff;
}

.manual-viewer-header {
    width: min(1400px, 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

    .manual-viewer-header h1 {
        margin: 0;
        color: #ddd;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1rem;
        font-weight: 400;
    }

.manual-viewer-back {
    color: #a850da;
    text-decoration: none;
    font-size: .8rem;
}

    .manual-viewer-back:hover {
        color: #d6a2f4;
    }


/* APRESENTAÇÃO */

.manual-powerpoint {
    width: min(1400px, 100%);
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 14px;
    background: #050505;
}

    .manual-powerpoint iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }


/* MOBILE */

@media (max-width: 700px) {

    .manual-viewer-page {
        padding: .75rem;
        padding-top: 4rem;
    }

    .manual-viewer-header {
        gap: .75rem;
    }

        .manual-viewer-header h1 {
            font-size: .85rem;
        }

    .manual-powerpoint {
        border-radius: 8px;
    }
}

/* =========================================================
   MANUAL VIEWER
   ========================================================= */

.manual-viewer-page {
    min-height: 100dvh;
    padding: 1.25rem;
    box-sizing: border-box;
    background: #000;
    color: #fff;
}


.manual-viewer-header {
    width: min(1400px, 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}


    .manual-viewer-header h1 {
        margin: 0;
        color: #ddd;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1rem;
        font-weight: 400;
    }


.manual-viewer-back {
    color: #a850da;
    text-decoration: none;
    font-size: .8rem;
}


    .manual-viewer-back:hover {
        color: #d6a2f4;
    }


.manual-viewer-header .manual-download {
    margin-left: auto;
}



/* =========================================================
   STAGE
   ========================================================= */

.manual-slide-stage {
    width: min(1400px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: center;
    gap: 1rem;
}


/* =========================================================
   SLIDE
   ========================================================= */

.manual-slide-frame {
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 14px;
    background: #050505;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}


.manual-slide-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 150px);
    object-fit: contain;
    animation: manualSlideIn .35s ease;
}


@keyframes manualSlideIn {

    from {
        opacity: 0;
        transform: translateX(18px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}



/* =========================================================
   SETAS
   ========================================================= */

.manual-slide-nav {
    width: 54px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-family: Georgia, serif;
    font-size: 3rem;
    cursor: pointer;
    transition: color 150ms ease, transform 150ms ease, opacity 150ms ease;
}


    .manual-slide-nav:hover:not(:disabled) {
        color: #fff;
    }


.manual-slide-prev:hover:not(:disabled) {
    transform: translateX(-3px);
}


.manual-slide-next:hover:not(:disabled) {
    transform: translateX(3px);
}


.manual-slide-nav:disabled {
    opacity: .15;
    cursor: default;
}



/* =========================================================
   CONTADOR
   ========================================================= */

.manual-slide-footer {
    margin-top: .9rem;
    text-align: center;
    color: #666;
    font-size: .75rem;
    letter-spacing: .08em;
}



/* =========================================================
   LOADING
   ========================================================= */

.manual-viewer-loading {
    min-height: 50vh;
    display: grid;
    place-items: center;
    color: #777;
}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .manual-viewer-page {
        padding: 4rem .5rem 1rem;
    }


    .manual-viewer-header {
        padding-inline: .5rem;
    }


        .manual-viewer-header h1 {
            font-size: .8rem;
        }


    .manual-slide-stage {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: .2rem;
    }


    .manual-slide-nav {
        width: 34px;
        height: 52px;
        font-size: 2.3rem;
    }


    .manual-slide-frame {
        border-radius: 8px;
    }
}

/* =========================================================
   MANUAL VIEWER
   ========================================================= */

.manual-viewer-page {
    min-height: 100dvh;
    padding: 1.25rem;
    box-sizing: border-box;
    background: #000;
    color: #fff;
}


.manual-viewer-header {
    width: min(1400px, 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}


    .manual-viewer-header h1 {
        margin: 0;
        color: #ddd;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1rem;
        font-weight: 400;
    }


.manual-viewer-back {
    color: #a850da;
    text-decoration: none;
    font-size: .8rem;
}


    .manual-viewer-back:hover {
        color: #d6a2f4;
    }


.manual-viewer-header .manual-download {
    margin-left: auto;
}



/* =========================================================
   STAGE
   ========================================================= */

.manual-slide-stage {
    width: min(1400px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: center;
    gap: 1rem;
}


/* =========================================================
   SLIDE
   ========================================================= */

.manual-slide-frame {
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 14px;
    background: #050505;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}


.manual-slide-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 150px);
    object-fit: contain;
    animation: manualSlideIn .35s ease;
}


@keyframes manualSlideIn {

    from {
        opacity: 0;
        transform: translateX(18px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}



/* =========================================================
   SETAS
   ========================================================= */

.manual-slide-nav {
    width: 54px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-family: Georgia, serif;
    font-size: 3rem;
    cursor: pointer;
    transition: color 150ms ease, transform 150ms ease, opacity 150ms ease;
}


    .manual-slide-nav:hover:not(:disabled) {
        color: #fff;
    }


.manual-slide-prev:hover:not(:disabled) {
    transform: translateX(-3px);
}


.manual-slide-next:hover:not(:disabled) {
    transform: translateX(3px);
}


.manual-slide-nav:disabled {
    opacity: .15;
    cursor: default;
}



/* =========================================================
   CONTADOR
   ========================================================= */

.manual-slide-footer {
    margin-top: .9rem;
    text-align: center;
    color: #666;
    font-size: .75rem;
    letter-spacing: .08em;
}



/* =========================================================
   LOADING
   ========================================================= */

.manual-viewer-loading {
    min-height: 50vh;
    display: grid;
    place-items: center;
    color: #777;
}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .manual-viewer-page {
        padding: 4rem .5rem 1rem;
    }


    .manual-viewer-header {
        padding-inline: .5rem;
    }


        .manual-viewer-header h1 {
            font-size: .8rem;
        }


    .manual-slide-stage {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: .2rem;
    }


    .manual-slide-nav {
        width: 34px;
        height: 52px;
        font-size: 2.3rem;
    }


    .manual-slide-frame {
        border-radius: 8px;
    }
}

/* =========================================================
   PPTX VIEWER
   ========================================================= */

.manual-viewer-page {
    min-height: 100dvh;
    padding: 1.25rem;
    box-sizing: border-box;
    background: #000;
    color: #fff;
}

.manual-viewer-header {
    width: min(1400px, 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .manual-viewer-header h1 {
        margin: 0;
        color: #ddd;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1rem;
        font-weight: 400;
    }

.manual-viewer-back {
    color: #a850da;
    text-decoration: none;
    font-size: .8rem;
}

    .manual-viewer-back:hover {
        color: #d6a2f4;
    }

.manual-viewer-header .manual-download {
    margin-left: auto;
}


/* VIEWER */

.pptx-host {
    width: min(1400px, 100%);
    height: calc(100dvh - 100px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 14px;
    background: #050505;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}


/* ERRO */

.pptx-error {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 2rem;
    box-sizing: border-box;
    color: #999;
    text-align: center;
}


/* MOBILE */

@media (max-width: 700px) {

    .manual-viewer-page {
        padding: 4rem .5rem .75rem;
    }

    .manual-viewer-header {
        padding-inline: .5rem;
    }

        .manual-viewer-header h1 {
            font-size: .8rem;
        }

    .pptx-host {
        height: calc(100dvh - 125px);
        border-radius: 8px;
    }
}

/* =========================================================
   PPTX VANILLA VIEWER
   ========================================================= */

.manual-pptx-stage {
    width: min(1400px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}


.pptx-vanilla-host {
    width: 100%;
    height: calc(100dvh - 160px);
    min-height: 560px;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 14px;
    background: #080808;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}


/* =========================================================
   CONTROLOS
   ========================================================= */

.manual-pptx-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
}


.manual-pptx-button,
.manual-pptx-fullscreen {
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #333;
    border-radius: 10px;
    background: #0b0b0b;
    color: #aaa;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}


.manual-pptx-button {
    width: 52px;
    font-family: Georgia, serif;
    font-size: 2rem;
}


.manual-pptx-fullscreen {
    width: 44px;
    font-size: 1rem;
}


    .manual-pptx-button:hover,
    .manual-pptx-fullscreen:hover {
        color: #fff;
        border-color: #8f3ac8;
        background: rgba(143,58,200,.10);
    }


@media (max-width: 700px) {

    .pptx-vanilla-host {
        height: calc(100dvh - 175px);
        min-height: 420px;
        border-radius: 8px;
    }


    .manual-pptx-button {
        width: 46px;
        height: 40px;
        font-size: 1.8rem;
    }


    .manual-pptx-fullscreen {
        width: 42px;
        height: 40px;
    }
}

/* =========================================================
   PPTX - MODO DE LEITURA ESTÁTICA

   Não executamos animações automáticas do PowerPoint.
   O utilizador muda de slide exclusivamente através de
   Anterior / Seguinte.
   ========================================================= */

.pptx-static *,
.pptx-static *::before,
.pptx-static *::after {
    animation: none !important;
    animation-name: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

.manuals-page {
    min-height: 100dvh;
    padding: 5rem 1.5rem 3rem;
    background: #000;
    color: #fff;
}

.manuals-container {
    width: min(900px, 100%);
    margin: 0 auto;
}

.manuals-heading {
    margin-bottom: 2.5rem;
    text-align: center;
}

.manuals-symbol {
    margin-bottom: .7rem;
    color: #8f3ac8;
    font-size: 2rem;
}

.manuals-heading h1 {
    margin: 0 0 .8rem;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
}

.manuals-heading p {
    margin: 0;
    color: #888;
    font-family: Georgia, serif;
}

.manuals-grid {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.manual-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #292929;
    border-radius: 14px;
    background: linear-gradient( 135deg, rgba(143,58,200,.05), transparent 45% ), #080808;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

    .manual-card:hover {
        border-color: #56356a;
        background: linear-gradient( 135deg, rgba(143,58,200,.10), transparent 50% ), #090909;
        transform: translateY(-1px);
    }

.manual-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #343434;
    border-radius: 50%;
    color: #a850da;
}

.manual-card-content h2 {
    margin: 0 0 .25rem;
    color: #eee;
    font-family: Georgia, serif;
    font-size: 1rem;
}

.manual-card-content span {
    color: #666;
    font-size: .75rem;
}

.manual-download {
    padding: .6rem .95rem;
    border: 1px solid #8f3ac8;
    border-radius: 999px;
    color: #c77bf2;
    background: rgba(143,58,200,.08);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    transition: color 150ms ease, background 150ms ease;
}

    .manual-download:hover {
        color: #fff;
        background: rgba(143,58,200,.18);
    }

.manuals-back {
    display: block;
    margin-top: 2.5rem;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: .75rem;
}

    .manuals-back:hover {
        color: #fff;
    }

@media (max-width: 700px) {

    .manuals-page {
        padding: 4.5rem 1rem 2rem;
    }

    .manual-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .manual-download {
        grid-column: 1 / -1;
        text-align: center;
    }
}

.manual-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 .95rem;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    color: #bdbdbd;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

    .manual-view:hover {
        color: #fff;
        border-color: #8f3ac8;
        background: rgba(143,58,200,.10);
    }