/************************ HERO SECTION ***************************/

h1 {
    font-size: clamp(35px, 1rem + 2vw, 50px);
}

/* banner animação*/
.container-heroSol {
    position: relative;
    width: 25vw;
    height: 25vw;
}

.imagem-heroSol {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.heroSol-1 {
    animation: fadeOut 0.5s forwards;
    animation-delay: 1000ms;
}

.heroSol-2 {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    animation-delay: 1000ms;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;

    }
}

.conteudo-hero {
    background-color: var(--third-color);
    padding: 2rem;
    text-align: center;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: "Londrina Solid", sans-serif;
    font-size: 3rem;
    font-weight: 100;
    width: 90px;
    color: var(--bg);
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--text-color);
    border-radius: 20px;
}


.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 1px;
}
/*********** BLOCO DE DIVULGAÇÃO DA CV + GALEIRA FOTOS ********/
h2.galeria-title span {
    font-family: "Londrina Solid", sans-serif;
    font-style: normal;
    text-transform: uppercase;
    font-weight: 300;
    font-size: clamp(40px, 1rem + 2vw, 50px);
    color: var(--secondary-color);
}
#eclipse-gal {
    --amarelo: #F5C955;
    --escuro: #030616;
}

#eclipse-gal .eclipse-gal__frame {
    overflow: hidden;
    max-height: 550px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

#eclipse-gal .eclipse-gal__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
#eclipse-gal .eclipse-gal__track::-webkit-scrollbar { display: none; }

#eclipse-gal .eclipse-gal__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
}

#eclipse-gal .eclipse-gal__slide img {
    display: block;
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}

#eclipse-gal .eclipse-gal__nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

#eclipse-gal .eclipse-gal__btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    color: var(--amarelo);
    border: 2px solid var(--amarelo);
    border-radius: 0;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

#eclipse-gal .eclipse-gal__btn:hover,
#eclipse-gal .eclipse-gal__btn:focus-visible {
    background: var(--amarelo);
    color: var(--escuro);
}

#eclipse-gal .eclipse-gal__btn svg { display: block; }
/*********** SEGUNDO BLOCO *************/
section.segundo-bloco {
    display: flex;
    min-height: 70vh;
    justify-content: center;
    align-items: center;
}

/********** LIDERES DO PROJETO ***********/

section.lideranca {
    background: linear-gradient(160deg, var(--third-color) 0%, var(--purple-deep) 100%);
    padding: 72px 6vw 84px;
    position: relative;
    overflow: hidden;
}

section.lideranca::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    background: repeating-conic-gradient(from 0deg, rgb(236 30 111 / 4%) 0deg 4deg, transparent 4deg 12deg);
    border-radius: 50%;
    pointer-events: none;
}

.lideranca-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.head-row {
    margin-bottom: 48px;
}

h2 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 300;
}

h2.section-title .bar {
    display: block;
    width: 64px;
    height: 8px;
    background: var(--primary-color);
    margin-top: 14px;
    border-radius: 2px;
}

p.section-desc {
    color: var(--text-dim);
    max-width: 650px;
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
}

/*.lead-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 36px 28px;
    }*/
.lead-grid {
    display: flex;
    gap: 36px 28px;
}

.lead-card {
    text-decoration: none;
    color: #fff;
    display: block;
    transform: rotate(var(--tilt));
    transition: transform .22s ease;
    max-width: 300px;
}

.lead-card:nth-child(1) {
    --tilt: -3deg;
}

.lead-card:nth-child(2) {
    --tilt: 2deg;
}

.lead-card:nth-child(3) {
    --tilt: -2deg;
}

.lead-card:nth-child(4) {
    --tilt: 3deg;
}

.lead-card:hover {
    transform: rotate(0deg) translateY(-8px);
}

.photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 18px;
}

.photo-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    border: 5px solid var(--card-accent);
}

.lead-card:nth-child(1) .photo-frame img {
    --card-accent: var(--secondary-color);
}

.lead-card:nth-child(2) .photo-frame img {
    --card-accent: var(--primary-color);
}

.lead-card:nth-child(3) .photo-frame img {
    --card-accent: var(--secondary-color);
}

.lead-card:nth-child(4) .photo-frame img {
    --card-accent: var(--primary-color);
}

.contact-pill {
    position: absolute;
    z-index: 2;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--secondary-color);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}

.lead-card:hover .contact-pill {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lead-name {
    font-weight: 800;
    font-size: 1rem;
    margin: 0 0 3px;
    color: var(--secondary-color);
}

.lead-role {
    font-size: .9rem;
    color: var(--text-dim);
    line-height: 1.4;
}

@media (max-width: 700px) {

    /*.lead-grid {
        grid-template-columns: repeat(2, 1fr);
    }*/
    .lead-grid {
        justify-content: center;
        flex-direction: column;
    }

    .lead-card .contact-pill {
        opacity: 1;
    }
}

@media (max-width: 520px) {
    .lead-card {
        transform: none !important;
    }
}

/********** DESTAQUES *************/
.destaques-wrapper {
    position: relative;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.destaques-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.destaques-carousel__item {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 700px;
    width: 95%;
    max-height: 450px;
    height: fit-content;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-efect);
    padding: 20px;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    /*estado inicial do item*/
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%) scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Item Ativo (Centro) */
.destaques-carousel__item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-50%) scale(1);
    z-index: 3;
}



/* Item Anterior */
.destaques-carousel__item.prev {
    opacity: 0.3;
    visibility: visible;
    transform: translateY(-150%) translateX(-50%) scale(0.7);
    z-index: 2;
}

/* Item Seguinte */
.destaques-carousel__item.next {
    opacity: 0.3;
    visibility: visible;
    transform: translateY(50%) translateX(-50%) scale(0.7);
    z-index: 2;
}

/* Setas */
.carousel-controls {
    z-index: 10;
}

/* img */
.destaques-carousel__item-img {
    width: 300px;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    flex-shrink: 0;
}

.destaques-carousel__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/********************* SECÇÃO VISIBILIDADES ************************/

.dropdown-item {
    cursor: pointer;
}

.dropdown-menu.show {
    display: block !important;
    max-height: 350px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    position: absolute !important;
    transform: none !important;
    width: 250px;
}

.dropdown-menu::-webkit-scrollbar {
    width: 8px;
    display: block !important;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.eclipse-info,
.eclipse-info-distritos {
    background-color: #662d9175;
    padding: 2rem 0;
    margin: 3rem 0;
}

.eclipse-info ul,
ul.lista-dados,
.infografia-legenda ul {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: fit-content;
    flex-wrap: wrap;
}

.lista-dados li,
.lista-dados li>div,
.eclipse-info li,
.eclipse-info li>div {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    width: max-content;
}

.infografia-legenda li {
    display: flex;
    gap: 0.3rem;
}

.eclipse-info li svg {
    flex-shrink: 0;
}

.lista-dados li p,
.eclipse-info li p,
.infografia-legenda li p {
    margin: 0;
}

/* visibilidade */
.visibilidades img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.8);
}

iframe.mapa-eventos {
    width: 100%;
    min-height: 50vh;
    height: 100%;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.8);
}

.visibilidades .mapa-visibilidades {
    min-height: 50vh;
    overflow: hidden;
}

ul.arrow-list {
    padding: 0;
    margin: 0;
}

ul.arrow-list svg {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

ul.arrow-list p {
    margin: 0;
}

ul.arrow-list li {
    margin-bottom: 1rem;
    gap: 1rem;
}

/***************** SECÇÃO MAPAS ******************/
.events-map-container {
    margin-top: 5rem !important;
}

iframe.mapa-eventos,
#googleMap {
    width: 100%;
    min-height: 400px;
    height: 100%;
}

/*************** RECURSOS ****************/


.recursos-educativos {
    overflow: hidden;
    --muted: rgba(255, 255, 255, .35);
    --line: rgba(255, 255, 255, .07);
}

.recursos-educativos__cabecalho {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.recursos-educativos__intro {
    flex: 1;
    min-width: 220px;
}


.recursos-educativos__titulo {
    line-height: .95;
    color: var(--text-color);
    margin: 0;
}

.recursos-educativos__titulo em {
    font-style: normal;
    color: var(--primary-color);
}

.recursos-educativos__controlos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.recursos-educativos__nav {
    display: flex;
    gap: 8px;
}

.recursos-educativos__btn-nav {
    padding: 8px !important;
}

.recursos-educativos__btn-nav svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 4;
    fill: none;
}

.recursos-educativos__ver-todos {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: gap .2s;
    white-space: nowrap;
    color: var(--primary-color);
}

.recursos-educativos__ver-todos:hover {
    gap: 12px;
}

.recursos-educativos__ver-todos svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}


.recursos-educativos__carrossel {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    cursor: grab;
}

.recursos-educativos__carrossel::-webkit-scrollbar {
    display: none;
}

.recursos-educativos__carrossel.a-arrastar {
    cursor: grabbing;
    user-select: none;
}

.recursos-educativos__lista {
    display: flex;
    gap: 24px;
    width: max-content;
}

.recursos-educativos__progresso {
    margin-top: 32px;
    height: 1px;
    background: var(--line);
    position: relative;
}

.recursos-educativos__progresso-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width .2s;
}


.recurso {
    width: 350px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.recursos-educativos .knowMore {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--text-color);
}

.recurso:hover .knowMore::before {
    width: 100%;
}

.recurso__imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.38) saturate(.45);
    transition: filter .45s, transform .55s;
}

.recurso:hover .recurso__imagem {
    filter: brightness(.55) saturate(.7);
    transform: scale(1.05);
}

.recurso::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 4, 27, .95) 0%,
            rgba(0, 4, 27, .4) 45%,
            transparent 75%);
    pointer-events: none;
}

.recurso__conteudo {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 24px;
    padding-top: 100px;
    justify-content: space-between;
}

.recurso__tipologia {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.recurso__titulo {
    font-family: "Londrina Solid", sans-serif;
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.0;
    color: var(--text-color);
    transition: color .2s;
}

.recurso:hover .recurso__titulo {
    color: var(--primary-color);
}

.recurso__rodape {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recurso__rodape svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: none;
    transition: transform .2s;
}

.recurso:hover .recurso__rodape svg {
    transform: translateX(10px);
}

@media (max-width: 640px) {
    .recursos-educativos__cabecalho {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .recursos-educativos__controlos {
        width: 100%;
        justify-content: space-between;
    }
}



.parcerias svg {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 575px) {

    .destaques-carousel__item h3,
    .destaques-carousel__item p,
    .destaques-carousel__item a,
    .destaques-carousel__item p.homepage-p {
        font-size: 14px;
    }

}