/* =========================================================
   SIAISPG — Página inicial
   Layout arejado, moderno e responsivo
   Usa as variáveis existentes em style.css
   ========================================================= */

main:has(.hero) {
    max-width: none;
    margin: 0;
    padding: 0;
}

main:has(.hero) > h1 {
    display: none;
}

body:has(.hero) .site-foot {
    margin-top: 0;
}

/* HERO */
.hero {
    position: relative;
    min-height: 560px;
    background: var(--g) url('topo.png') no-repeat;
    background-size: cover;
    background-position: center 23%;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5,38,24,.68),
        rgba(5,38,24,.86)
    );
}

.hero-in {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5.5rem 1.4rem 2.2rem;
    text-align: center;
}

.hero h1 {
    margin: 1.4rem 0 1.8rem;
    color: #fff;
    font: 700 clamp(2.2rem, 4.5vw, 3.3rem)/1.1
        'Barlow Condensed', 'Arial Narrow', sans-serif;
    letter-spacing: .01em;
}

.pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: .35rem .9rem;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: #f58331;
    border: 1px solid #f58331;
}

.pill::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    margin-right: .55rem;
    background: #f87171;
}

.pill.on::before {
    background: #fff;
}

.sub {
    max-width: 660px;
    margin: 0 auto 1.1rem;
    font-size: 1rem;
    line-height: 1.65;
    opacity: .95;
}

/* Evita espaço vazio quando não há subtítulo */
.sub:empty {
    display: none;
}

.cd {
    color: #ffe29a;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.5;
    margin: 1rem 0 1.8rem;
}

.cd:empty {
    display: none;
}

/* Botões principais */
.cta {
    margin-top: 8rem;
    display: flex;
    gap: .9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 1.8rem;
    font-size: 1rem;
    border-radius: 10px;
    transition: background .2s ease, transform .2s ease;
}

.hero .btn svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero .btn:hover {
    transform: translateY(-1px);
}

.hero .btn.sec {
    background: rgba(255,255,255,.1);
    border: 2px solid #fff;
    color: #fff;
}

.hero .btn.sec:hover {
    background: rgba(255,255,255,.22);
    box-shadow: none;
    filter: none;
}

.btn.light {
    background: #fff;
    color: var(--g); /* var(--b) não existe: o texto herdava o branco do banner e ficava invisível */
    padding: .6rem 1.2rem;
}

/* Ligações secundárias */
.links {
    display: flex;
    gap: .7rem 1.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
    font-size: .9rem;
    line-height: 1.6;
}

.links a,
.links label {
    display: inline;
    width: auto;
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Estatísticas — faixa colada ao banner, sem espaço */
.statsbar {
    margin: 0;
    padding: .8rem 1.4rem .9rem;
    background: linear-gradient(90deg, #eef2ee, #f2efe9);
}

.hstats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.hstats li {
    margin: 0;
    padding: 0 1rem;
    text-align: center;
}

.hstats li + li {
    border-left: 1px solid rgba(31, 45, 37, .1);
}

.hstats a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hstats .si {
    width: 24px;
    height: 24px;
    margin: 0 auto .3rem;
    display: block;
    fill: none;
    stroke: #000000;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hstats .lb {
    display: block;
    color: var(--t);
    font-size: 1.05rem;
    line-height: 1.3;
}

.hstats .sb {
    display: block;
    margin: .17rem 0 1.1rem;
    color: var(--muted);
    font-size: .72rem;
}

/* Espaço entre o nome e o número quando não há subtítulo */
.hstats .lb + b {
    margin-top: .6rem;
}

.hstats b {
    display: block;
    color: #000;
    font: 500 1.7rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

.hstats a:hover b {
    color: var(--o);
}

/* Conteúdo principal */
.wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.8rem 1.4rem;
}

.wrap + .wrap {
    padding-top: .6rem;
}

.wrap.req {
    padding-bottom: 3.6rem;
}

.quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.quick a {
    position: relative;
    display: block;
    min-height: 140px;
    padding: 1.7rem 1.8rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(31, 45, 37, .045);
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.quick a:hover {
    transform: translateY(-4px);
    border-color: var(--g);
    box-shadow: 0 12px 28px rgba(31, 45, 37, .09);
}

.quick b {
    display: block;
    margin-bottom: .65rem;
    color: #000;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

.quick span {
    display: block;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.7;
}


/* Requisitos */
.req {
    text-align: center;
}

.req h2 {
    font: 700 2rem
        'Barlow Condensed', 'Arial Narrow', sans-serif;
    margin: .4rem 0 .5rem;
    color: #000;
}

.muted {
    color: var(--muted);
    font-size: .94rem;
    margin: 0 0 2rem;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.req-card {
    padding: 1.8rem 2rem;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.req-card.dark {
    background: var(--g);
    color: #fff;
    border-color: var(--g);
}

.req-card h3 {
    margin: 0 0 1rem;
    font: 700 1.1rem Manrope, sans-serif;
}

.req-card ul {
    margin: 0 0 1.3rem;
    padding-left: 1.2rem;
    line-height: 1.8;
    font-size: .95rem;
}

.req-card li + li {
    margin-top: .35rem;
}

/* Tablets */
@media (max-width: 900px) {
    .quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Telemóveis */
@media (max-width: 700px) {
    .hero {
        min-height: 0;
        background-position: 40% center;
    }

    .hero-in {
        padding: 2.2rem 1.1rem 1.9rem;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 8vw, 2.7rem);
    }

    .cta {
        margin-top: 3rem;
    }

    .req-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .req-card {
        padding: 1.5rem 1.4rem;
    }

    .quick {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .wrap {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .quick {
        grid-template-columns: 1fr;
    }

    .quick a {
        min-height: 0;
        padding: 1.4rem 1.4rem;
    }

    .cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        gap: .7rem;
    }

    .hero .btn {
        padding: .75rem 1.2rem;
    }

    .statsbar {
        padding: .8rem .6rem;
    }

    .hstats li {
        padding: 0 .4rem;
    }

    .hstats .si {
        width: 22px;
        height: 22px;
    }

    .hstats .lb {
        font-size: .82rem;
        min-height: 2.6em;
    }

    .hstats .sb {
        font-size: .72rem;
    }

    .hstats b {
        font-size: 1.6rem;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .quick a,
    .hero .btn {
        transition: none;
    }

    .quick a:hover,
    .hero .btn:hover {
        transform: none;
    }
}


.hero{background-image:url('topo.jpg')}