@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

html{
    overflow-x:hidden;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    font-optical-sizing: auto;
    list-style-type: none;
    text-decoration: none;
}

a:visited,
a:link {
    color: inherit;
}

header {
    width: 100%;
    height: auto;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;

}

header>img:first-of-type {
    width: 100%;
    height: auto;
    z-index: 0;
    transition: width 0.5s ease;
    cursor: pointer;
}

body {
    background-color: #ffecd3;
    position: relative;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.gr {
    width: 100%;
    position: relative;
    background: radial-gradient(circle at center, #27b574 0%, #2c9491 30%, #283b90 85%);
    background-size: 200% 200%;
    animation: gradient-diagonal 20s ease alternate infinite;
    overflow-x: hidden;

    display: flex;
    flex-flow: column;
    align-items: center;
}

@keyframes gradient-diagonal {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 0%;}
  50% { background-position: 100% 50%;; }
  75% { background-position: 50% 100%; ; }
  100% { background-position: 0% 50%; }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: auto;

    display: flex;
    flex-flow: row;
    align-items: center;
}

footer>ul {
    display: flex;
    flex-flow: row;
    gap: 10px;
    margin-right: 50px;
}

nav {
    width: 100%;
    display: flex;
    flex-flow: column;
}

nav ul {
    width: 75%;
    display: flex;
    flex-flow: row wrap;
}

nav ul li {
    cursor: pointer;

    font-size: clamp(0.8125rem, 0.6696rem + 0.7143vw, 1.3125rem);
    font-weight: 200;
    text-transform: uppercase;

    padding: 10px 5% 10px 5%;
    transition: all 0.1s ease;

    background-color: #ffecd3;
    color: #25B474;
    border: solid 1px #25B474;
}


nav ul li:hover,
.sel {
    background-color: #25B474;
    color: #ffecd3;
    border: solid 1px #ffecd3;
    padding: 10px 5.25% 10px 5.25%;
    font-weight: 700;
}

.ft-hp nav ul li {
    background-color: #263F90;
    color: #ffecd3;
    border: solid 1px #ffecd3;
}

.ft-hp nav ul li:hover {
    font-weight: 700;
    background-color: #ffecd3;
    color: #263F90;
    border: solid 1px #263F90;
    padding: 10px 5% 10px 5%;
}

/* Homepage */

.hp {
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

.map-cont {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;

}

.map-cont svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500%;
    height: auto;
    transform: translate(-50%, -50%);
    touch-action: manipulation;
     aspect-ratio: 7680 / 5390.44;
}

#locais, #locais * {
  touch-action: manipulation;
}

#legendaH,
#legendaV {
    pointer-events: none;
}

.txt-info {
    position: absolute;
    top:50%;
    right: 50px;
    z-index: 1;

    display: flex;
    justify-content: flex-end;

    transition: all 0.5s ease;
    transform: translateY(-50%);
}

.txt-info svg {
    width: 75%;
    transition: width 0.5s ease;
}

#txt1:hover, 
#txt2:hover,
#txt3:hover{
animation-play-state: running;  
}

#txt1, 
#txt2,
#txt3{
    transform-box: view-box;
    animation: rodar 12s linear infinite;
    animation-play-state: paused;
}

#txt3 {
    transform-origin: 70.55px 69.18px;
}

#txt2 {
    transform-origin: 73.55px 221.92px;
}

#txt1 {
    transform-origin: 73.55px 376.65px;
}

@keyframes rodar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (hover: hover) and (pointer: fine) {
    
  #locais [id^="l"]:not(#l13):not(#l14):not(#l18):not(#l19){
    animation: pulsar-local 2s ease-in-out infinite;
  }
  
  #locais [id^="l"]:hover{
    animation: none;
  }
}

@keyframes pulsar-local {
  0%, 100% {
    stroke: #263F90;
    stroke-width: 0px;
  }
  50% {
    stroke: #263F90;
    stroke-width: 2px; ;
  }
}

/* Programa */

.prg {
    width: 100%;

    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    gap: 45px;

    margin: 75px 0px 150px 0px;

    font-weight: 200;
    text-transform: uppercase;
    color: #ffecd3;
    font-size: clamp(0.8125rem, 0.59rem + 0.7143vw, 1.3125rem);

}

.sect-d,
.sect-d ul {
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sect-d ul li {
    display: flex;
    flex-flow: row;
    gap: 5px;
}

.d,
.sect-d b,
b {
    font-weight: 700;
}

.h {
    font-size: clamp(0.625rem, 0.5446rem + 0.4018vw, 0.9375rem);
    align-self: flex-start;
}

/* Inscrições */

.insc {
    color: #ffecd3;
    font-size: clamp(1rem, 0.9107rem + 0.4464vw, 1.3125rem);

    width: calc(100% - 10vw);
    margin-top: 75px;

    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    row-gap: 80px;
}

.sect {
display: flex;
  flex-flow: column;
  flex-basis: 15%;
  height: 200px;
  justify-content: space-between;
}

.sect span {
    text-transform: uppercase;
}

.sect ul {
    display: flex;
    flex-flow: column;
    gap: 5px;
    height: 100px;
}

.sect ul li a {
    color: #ffecd3;
    font-weight: 200;
    text-decoration: underline;
}

.sect ul li a:hover {
    font-weight: 400;
}

/* Informações */

.info{
    margin-bottom: 150px;
    gap:50px;
}

.info .insc{
    justify-content: center;
    gap:25px;
}

.info .insc > div{
    width:70%;
justify-content: flex-start;
  gap: 25px;
  margin-top: 75px;
  display: flex;
  flex-flow: row wrap;
}

.info .insc .sect{
    flex-basis: 33%;
}

.info .txt-desc{
    display: flex;
    flex-flow:column;
    align-items:center;
}


.info .txt-desc p{
    width: 70%;
}

.txt-ttl, .txt-desc{
    width: calc(100% - 10vw);
    margin-top: 75px;
}

.txt-desc{
    font-size: clamp(1rem, 0.9107rem + 0.4464vw, 1.3125rem);
    font-weight: 200;
    color:#ffecd3;
}

.txt-desc b{
    font-weight: 700;
}

.txt-ttl{
    display: flex;
    flex-flow: column;
    align-items:center;
    justify-content:center;
    gap:10px;
    color: #ffecd3;
    text-transform:uppercase;
    text-align:center;
}

/* Galeria */

.glr-cont {
    width: calc(100% - 10vw);
    margin-top: 75px;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 75px;
    margin-bottom: 150px;
}

.glr-cont .txt-ttl{
    align-items:center;
    width:100%;
}

.glr-cont .txt-desc{
    width: 70%;
  align-self: center;
}

.ev-d {
    width: 100%;
    display: flex;
    flex-flow: column;
    gap: 30px;
}

.ev-d span {
    color: #ffecd3;
    text-transform: uppercase;
    font-size: clamp(1rem, 0.9107rem + 0.4464vw, 1.3125rem);
}

.d-glr {
width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  row-gap: 10px;
  gap: 10px;
}

.d-glr img {
    aspect-ratio: 4/5;
    width: calc(20% - 10px);
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Lightbox Slider/Galeria */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(37, 180, 116, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.lightbox__img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    font-size: 3rem;
    color: #F7F2E8;
    background: none;
    cursor: pointer;
}

.lightbox__prev {
    left: 2rem;
}

.lightbox__next {
    right: 2rem;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
}

.lightbox__arrow--left {
    left: 1rem;
}

.lightbox__arrow--right {
    right: 1rem;
}

/* Edições Passadas - Cartazes */

.c-glr {
    margin-top: 75px;
    margin-bottom: 150px;
    width: calc(100% - 10vw);
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    row-gap: 10px;
    gap: 40px;
    overflow:hidden;
}

.c-glr div {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #25B474;
    color: #ffecd3;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-size: clamp(1.125rem, 1.0179rem + 0.5357vw, 1.5rem);

    opacity: 0;

    transition: opacity 0.5s ease;
}

.c-glr a:hover div {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.c-glr a {
    width: calc(20% - 40px);
    position: relative;
    aspect-ratio: 1/1.414;

}

.c-glr img {
width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Edições Passadas - single */

.ct-cont {
    margin-top: 75px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-cont img {
    width: 40%;
    height: auto;
}

/* Contactos */

.cts {
    width: calc(100% - 10vw);
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    margin-top: 75px;
}

.cts>div,
.cts>iframe {
    width: 50%;
}

.cts>div {
    display: flex;
    flex-flow: column;
    gap: 75px;
}

.cts-1,
.cts-2 {
    width: 100%;
    color: #ffecd3;
    font-size: clamp(1rem, 0.9107rem + 0.4464vw, 1.3125rem);
}

.cts a {
    color: #ffecd3;
}

.cts b {
    text-transform: uppercase;
}

.cts-1 {
    display: flex;
    flex-flow: row;
}

.cts ul {
    width: 75%;
    display: flex;
    flex-flow: column;
    gap: 40px;
}

.cts ul li {
    font-weight: 200;
}

/* Responsivo */

@media (min-width: 600px) and (max-width:1020px) {
    header>img:first-of-type {
        width: 125%;
    }
}

@media (min-width: 601px) and (max-width: 855px) {

    .insc {
        justify-content: flex-start;
    }

    .sect {
        flex-basis: 33%;
    }

    .d-glr {
        row-gap: 20px;
    }

    .d-glr img {
        width: calc(33% - 10px);
    }

    .c-glr {
        gap: 20px;
    }

    .c-glr a {
        width: calc(33% - 20px);
    }
}

@media (max-width: 890px) {
    nav ul {
        width: 100%;
    }
}

@media (max-width: 650px) {
    footer>ul {
        flex-flow: column;
        margin-right:10px;
        gap:10px
    }
    
    footer li, footer li a{
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    footer img{
        width: 75%;
    }
    
}

@media (max-width: 600px) {

    header>img:first-of-type {
        width: 200%;
    }

    .txt-info {
        right: 10px;
    }

    .txt-info svg {
        width: 50%;
    }

    .insc, .info .insc div {
        flex-flow:column;
        row-gap: 25px;
    }
    
    .info .txt-desc p{
        width: 80%;
    }
    
    .info .insc{
        align-items: center;
    }
    
    .info .insc >div{
        width: 80%;
    }

    .sect {
        gap: 20px;
        flex-basis: 50%;
    }


    .d-glr {
        row-gap: 20px;
        justify-content: space-between;
    }

    .d-glr img {
        width: calc(50% - 10px);
    }
    
    .c-glr{
        gap:20px;
    }

    .c-glr a {
        width: 45%;
    }

    .cts {
        flex-flow: column;
        gap: 50px;
        margin-bottom: 150px;
    }

    .cts-2,
    .cts ul {
        width: 100%;
    }

    .cts>div,
    .cts>iframe {
        width: 100%;
    }

    nav ul li {
        padding: 10px 2.5% 10px 2.5%;
    }


    nav ul li:hover,
    .sel {
        padding: 10px 2.75% 10px 2.75%;
    }

}