html {
    scroll-behavior: smooth;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.7;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.topo {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topo .header-inner {
    width: 100%;
    padding: 0 50px;
    /* ✅ remove horizontal padding */
    max-width: none;
    /* ✅ optional: removes constraint */
    justify-content: space-between;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #5b0000;
}

header::after {
    content: "";
    display: table;
    clear: both;
}

/* Hero */
.hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #f4f4f4;
    text-align: center;
    z-index: 1;
    overflow: hidden;
    padding: 0 20px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f9f9f9;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);

}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: #222;
}

.hero h2 span {
    font-size: 2rem;
    letter-spacing: 2px;
    color: #5b0000;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 25px;
}

/* Texto genérico */
.texto-bloco {
    padding: 100px 0;
    max-width: 800px;
    margin: auto;
}

.texto-bloco h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #5b0000;
}

.texto-bloco h3 span {
    font-size: 0.9rem;
    color: #bbb;
    margin-right: 10px;
    font-weight: 400;
}

.lista-areas {
    list-style: none;
    padding: 0;
}

.lista-areas li {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #444;
}

/* Equipa */
.equipa {
    padding: 100px 0;
    background: #f7f4f1;
    /* light beige/neutral tone */
}

.equipa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card-equipa {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    
}

.card-equipa {
    min-height: 320px;
    /* or larger depending on content */
    position: relative;
}

.card-equipa:hover {
    transform: translateY(-5px);
}

.card-equipa h4 {
    margin-bottom: 6px;
    color: #5b0000;
    font-size: 1.3rem;
}

.card-equipa .cargo {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-equipa .bio {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444;
}

.card-equipa ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.95rem;
    color: #333;
}

.card-equipa ul li {
    margin-bottom: 8px;
}

/* Contato */
.contato {
    padding: 70px 0 0px;
    background: #f9f9f9;
}

.contato h3 {
    margin-bottom: 40px;
    text-align: center;
    color: #5b0000;
}

.grid-contato {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mapa iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: none;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input,
form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    padding: 12px;
    border: none;
    background: #5b0000;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

form button:hover {
    background: #750000;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    background: #fdfdfd;
    color: #777;
}

/* Responsivo */
@media (max-width: 768px) {
    .grid-contato {
        grid-template-columns: 1fr;
    }

    nav {
        float: none;
        text-align: center;
        margin-top: 15px;
    }

    .logo {
        float: none;
        text-align: center;
        display: block;
    }

    header::after {
        display: none;
    }
}

.areas-interativa {
    padding: 100px 0;
    background-color: #fff;
}

.areas-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.areas-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.area-tab {
    padding: 12px 20px;
    border: none;
    background: #f4f4f4;
    color: #333;
    text-align: left;
    font-weight: 500;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.area-tab:hover,
.area-tab.active {
    background: #fff;
    border-left: 4px solid #5b0000;
    color: #5b0000;
}

.area-conteudo {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.area-info {
    display: none;
    animation: fadeIn 0.4s ease;
}

.area-info.active {
    display: block;
}

.area-info h4 {
    color: #5b0000;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .areas-wrapper {
        grid-template-columns: 1fr;
    }

    .areas-menu {
        flex-direction: row;
        justify-content: space-around;
    }

    .area-tab {
        flex: 1;
        text-align: center;
        font-size: 0.9rem;
    }
}

.texto-bloco h3 span {
    font-size: 0.9rem;
    color: #bbb;
    margin-right: 10px;
    font-weight: 400;
}

.titulo-bloco {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0px;
    /* 👈 push title to vertical center of padding */
    margin-bottom: 80px;
    /* spacing before content begins */
    gap: 4px;
}
  

.titulo-bloco .numero {
    font-size: 0.9rem;
    color: #bbb;
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

.titulo-bloco h3 {
    font-size: 2.3rem;
    color: #5b0000;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.sobre-destaque {
    background: #f9f9f9;
    padding: 100px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-grid .texto p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
    text-align: justify;
}

.sobre-grid .texto strong {
    color: #5b0000;
    font-weight: 600;
}

.sobre-grid .texto em {
    color: #222;
    font-style: italic;
}

.sobre-grid .imagem img {
    width: 120%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.sobre-destaque,
.areas-interativa,
.texto-bloco,
.contato {
    position: relative;
    z-index: 3;
}

.hero::after {
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

/* Smooth header hide/show */
.topo {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.4s ease;
}

.header-hide {
    transform: translateY(-100%);
}

.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

.binder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1em;
}

.tab-btn {
    background: white;
    border: 2px solid #500000;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.tab-btn.active {
    background: #500000;
    color: white;
}

.tab-content {
    display: none;
    padding: 10px 0;
}

.tab-content.active {
    display: block;
}

.ler-mais-wrapper {
    position: relative;
    margin-top: 30px;
    text-align: center;
}

.ler-mais-line {
    height: 1px;
    background-color: #ccc;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0;
}

.ler-mais-btn {
    background: #f9f9f9;
    border: none;
    color: #5b0000;
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 14px 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
}

.ler-mais-btn:hover {
    color: #750000;
}

.ler-mais-btn .chevron {
    font-size: 1.6rem;
    line-height: 0.8;
    transform: scaleX(1.8);
    /* widens the V shape */
}

.hidden-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hidden-text.show {
    opacity: 1;
    max-height: 1000px;
    /* high enough for all text */
    transform: translateY(0);
}

#extra-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

#extra-text.show {
    opacity: 1;
    max-height: 1000px;
    transform: translateY(0);
}

.logo img {
    height: 90px;
    /* Adjust to your logo's ideal size */
    width: auto;
    display: block;
}

nav ul {
    gap: 25px;
    /* you can adjust */ }

        .logo {
            display: flex;
            align-items: center;

        }
    
        nav {
            margin-left: 0px;
            /* optional extra space */
        }

        .intro-logo {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: white;
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
        }
        
        .intro-wrapper {
            opacity: 1;
            transform: scale(1);
            transition: all 1s ease;
        }
        
        .intro-img {
            max-width: 300px;
            width: 60%;
            height: auto;
        }

        


        .intro-logo {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: white;
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
        }
        
        .intro-wrapper {
            opacity: 1;
            transform: scale(1);
            transition: all 1s ease;
        }
        
        .intro-img {
            max-width: 300px;
            width: 60%;
            height: auto;
        }

        .intro-logo {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: white;
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
        }
        
        .intro-wrapper {
            opacity: 1;
            transform: scale(1);
            transition: all 1s ease;
        }
        
        .intro-img {
            max-width: 300px;
            width: 60%;
            height: auto;
        }
        
        .intro-logo {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: white;
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
        }
        
        .intro-wrapper {
            opacity: 1;
            transform: scale(1);
            transition: all 1s ease;
        }
        
        .intro-img {
            max-width: 300px;
            width: 60%;
            height: auto;
        }

.intro-logo {
    height: 100vh;
    width: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* NOT fixed! */
    z-index: 1000;
}

.intro-wrapper {
    text-align: center;
    opacity: 1;
    transform: scale(1);
}

.intro-img {
    max-width: 500px;
    width: 60%;
    height: auto;
}

.hero-centered {
    text-align: center;
    padding: 4rem 1rem;
}

.hero-logo-img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    color: #333;
}



.equipa-foto {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-equipa.styled {
    text-align: center;
    padding: 40px 30px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-equipa.styled:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.equipa-foto-wrapper {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: #d1c1b9d8;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    /* ✅ This centers it in the card */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.equipa-foto-circle {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f1e9e5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}



/* Default: show desktop header, hide mobile */
.desktop-header {
    display: block;
}

.mobile-header {
    display: none;
}

/* Mobile view: hide desktop header, show mobile */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 999;
    }

    .mobile-menu.open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-menu li a {
        font-size: 1.5rem;
        color: #5b0000;
        text-decoration: none;
    }

    .mobile-menu li a:hover {
        color: #750000;
        font-size: 1.7rem;
    }

    .menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: #5b0000;
        margin: 4px 0;
        transition: 0.3s;     }

    .mobile-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: white;         }

    .sobre-grid {
        grid-template-columns: 1fr;
    }

    .sobre-grid .imagem {
        order: 1;
        margin-bottom: 30px;
        text-align: center;
    }

    .sobre-grid .imagem img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    }

    .sobre-grid .texto {
        order: 1;
    }   
}

.parcerias {
    padding: 100px 0;
    background: #fffdfb;
}

.parcerias-descricao {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-left: 5px solid #5b0000;
}

.parcerias-descricao p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.parcerias-lista {
    list-style-type: disc;
    padding-left: 20px;
    color: #444;
}

.parcerias-lista li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.parcerias-list-cards {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    border-left: 6px solid #5b0000;
}

.parcerias-intro {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
}

.parcerias-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.parceria-item {
    background: #fef7f6;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 1.05rem;
    color: #5b0000;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: background 0.3s;
}

.parceria-item:hover {
    background: #fce9e7;
}

body.scroll-lock {
    overflow: hidden;
}

.imagem-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.carousel-img.active {
    opacity: 1;
    z-index: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(91, 0, 0, 0.8);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.imagem-carousel:hover .carousel-arrow {
    opacity: 1;
}

.imagem-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-img.active {
    position: relative;
    /* <-- Important! */
    opacity: 1;
    z-index: 1;
}

.carousel-wrapper {
    aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
    background: #fff;
    /* optional: or matching background color */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}


  

.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
}

footer {
    padding: 60px 20px;
    text-align: center;
    font-size: 0.95rem;
    background: #fdfdfd;
    color: #444;
    border-top: 1px solid #eee;
}

.footer-contact {
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
    text-align: center;
}

.footer-contact p {
    margin-bottom: 16px;
}

.footer-contact strong {
    color: #5b0000;
}

.footer-copy {
    font-size: 0.85rem;
    color: #888;
}
