* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

/* =========================
   FIX LAYOUT BASE
========================= */

html, body {
    height: 100%;
    overflow: hidden;
}

/* NAVBAR */

/* =========================
   NAVBAR
========================= */

.navbar {
    background: #222;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 26px;
    font-weight: bold;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

nav li {
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
nav a:hover {

    color: #e0e0e0;
}

/* BARRA COLORIDA */

.navbar-accent {
    
    width: 850px;
    height: 20px;
    margin: 15px auto -28px;
    border-radius: 50px;
    background: linear-gradient(
        90deg,
        #ff4d79,
        #8e44ad,
        #3498db,
        #2ecc71
    );
    box-shadow: 0 0 15px rgba(52,152,219,.4);
}

/* HERO */

.hero {
    height: 70vh;
    background: url("../images/header-bg.jpg") center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    background: rgba(0, 0, 0, 0.45);
    padding: 40px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.date {
    margin: 10px 0 20px 0;
    font-size: 20px;
}

.hero-buttons a {
    margin: 10px;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-red {
    background: #c4002f;
    color: white;
}

.btn-blue {
    background: #3a6ea5;
    color: white;
}

/* PROGRAMMES */

.programmes {
    padding: 60px 10%;
    text-align: center;
}

.programme-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.programme-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.programme-card h3 {
    margin-bottom: 15px;
}

/* FOOTER */

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* MAIN SCROLL */

main {
    position: absolute;
    top: 70px;     /* altura navbar */
    bottom: 60px;  /* altura footer */
    left: 0;
    right: 0;
    overflow-y: auto;
}

/* RESTO DO TEU CSS (INALTERADO) */

.page-hero {
    background: #ddd;
    padding: 80px 20px;
    text-align: center;
}

.content {
    padding: 60px 15%;
    background: white;
    margin-bottom: 20px;
}

.content h2 {
    margin-bottom: 20px;
}

.content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.cta {
    text-align: center;
    padding: 60px;
    background: #f0f0f0;
}

.cta h2 {
    margin-bottom: 30px;
}

.btn-red {
    background: #c4002f;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-blue {
    background: #3a6ea5;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
}

.programme-legend {
    padding: 40px;
    text-align: center;
}

.legend-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legend {
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}

.legend.staff {
    background: #c4002f;
}

.legend.bip {
    background: #3a6ea5;
}

.legend.common {
    background: #c9a227;
}

/* PROGRAMME */

.programme {
    padding: 60px 10%;
}

.day {
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 8px;
}

.event {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.event.staff {
    background: #ffe5ea;
    border-left: 5px solid #c4002f;
}

.event.bip {
    background: #e6eef7;
    border-left: 5px solid #3a6ea5;
}
.event.common{
    background: #f0f0f0;
    border-left: 5px solid #c9a227;
}

.event-description {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.event-speakers {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,.1);
}

.event-speakers p {
    margin-bottom: 8px;
}

/* HOST CARD */

.host-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.host-card img {
    width: 150px;
}

/* PARTNERS GRID */

.partners-section {
    padding: 60px 10%;
    text-align: center;
}

.partners-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.partners-grid img {
    max-width: 150px;
    height: auto;
    /*filter: grayscale(100%);*/
    opacity: 0.8;
    transition: 0.3s;
}

.partners-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.gallery-intro {
    text-align: center;
    padding: 40px 15%;
    font-size: 18px;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-filters button {
    margin: 5px;
    padding: 10px 20px;
    border: none;
    background: #c4002f;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-filters button:hover {
    background: #9e0026;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 10% 60px 10%;
}

.gallery-item {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-placeholder {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto;
}

.gallery-placeholder h2 {
    margin-bottom: 15px;
}

.gallery-placeholder p {
    color: #666;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.contact-card {
    background: #3a4046;
    color: white;
    max-width: 1000px;
    width: 100%;
    padding: 60px;
    border-radius: 10px;
}

.contact-card h1 {
    text-align: center;
    margin-bottom: 10px;
}

.contact-subtitle {
    text-align: center;
    color: #c7c7c7;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: center;
}

.contact-left h3 {
    margin-bottom: 10px;
}

.email a {
    color: #7db5ff;
    text-decoration: none;
}

.contact-person {
    margin-top: 20px;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.contact-right img {
    max-width: 180px;
    filter: brightness(0) invert(1);
}

/* PREVIOUS EDITIONS */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: #003399;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: bold;
}

.section-header h2 {
    font-size: 42px;
    margin: 15px 0;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.edition-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s;
}

.edition-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.edition-image {
    position: relative;
    height: 280px;
}

.edition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edition-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.edition-overlay span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.edition-overlay h3 {
    font-size: 42px;
    margin-top: 8px;
}

.edition-content {
    padding: 30px;
}

.edition-stats {
    margin-bottom: 25px;
}

.edition-stats div {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.edition-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #003399;
    color: white;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.edition-button:hover {
    background: #002266;
}


/* RESPONSIVE */

@media(max-width: 900px) {
    .editions-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 32px;
    }
}

.previous-editions {
    padding: 80px 10%;
    background: #f8f8f8;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.edition-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: .3s;
}

.edition-card:hover {
    transform: translateY(-5px);
}

.edition-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.edition-content h3 {
    margin-bottom: 10px;
}

.edition-content p {
    color: #666;
    margin-bottom: 20px;
}

.staff-calendar {
max-width: 1100px;
margin: 60px auto;
padding: 0 20px;
}

.calendar-day {
display: grid;
grid-template-columns: 120px 1fr;
gap: 30px;
margin-bottom: 40px;
}

.calendar-date {
background: #c4002f;
color: white;
border-radius: 10px;
text-align: center;
padding: 20px;
height: fit-content;
}

.calendar-date span {
display: block;
font-size: 42px;
font-weight: bold;
}

.calendar-date small {
font-size: 16px;
}

.calendar-content {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.calendar-content h3 {
margin-bottom: 15px;
color: #c4002f;
}

.calendar-time {
font-weight: bold;
margin-bottom: 15px;
}

.calendar-event {
padding: 15px;
background: #f5f5f5;
border-left: 4px solid #c4002f;
margin-bottom: 10px;
border-radius: 4px;
}


.calendar-event {
    padding: 16px 20px;
    background: #f7f7f7;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: .2s;
}

.calendar-event:hover {
    transform: translateX(4px);
}

.calendar-event.common {
    border-left: 5px solid #c9a227;
    background: #fff8e1;
}

.calendar-event.staff {
    border-left: 5px solid #c4002f;
    background: #ffe5ea;
}

.calendar-event.bip {
    border-left: 5px solid #3a6ea5;
    background: #e6eef7;
}

.programme-calendar {

    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;

}

.programme-day {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.programme-date {
    background: #c4002f;
    color: white;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    height: fit-content;
}

.programme-date span {
    display: block;
    font-size: 42px;
    font-weight: bold;
}

.programme-date small {
    font-size: 16px;
}

.programme-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.programme-content h3 {
    margin-bottom: 20px;
    color: #222;
}

/* EVENTS */

.programme-event {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.programme-event strong {
    font-size: 16px;
}

/* COMMON */

.programme-event.common {
    background: #fff8e1;
    border-left: 5px solid #c9a227;
}

/* STAFF */

.programme-event.staff {
    background: #ffe5ea;
    border-left: 5px solid #c4002f;
}

/* BIP */

.programme-event.bip {
    background: #e6eef7;
    border-left: 5px solid #3a6ea5;
}

.event-speakers {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.1);
}

.event-speakers p {

    margin-bottom: 5px;

}

@media(max-width: 900px){

    .programme-day {

        grid-template-columns: 1fr;

    }

}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 40px;
    align-items: start;
}

.location-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.location-text ul {
    margin-top: 20px;
    padding-left: 20px;
}

.location-text li {
    margin-bottom: 12px;
}

.location-map iframe {
    width: 650px;
    height: 650px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
}

@media (max-width: 900px) {

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-map iframe {
        height: 350px;
    }

}

footer {
    background: #222;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #c4002f;
    transform: translateY(-2px);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        font-size: 12px;
    }

    .logo {
        font-size: 22px;
        text-align: center;
    }

    .navbar-accent {
        width: 80%;
        height: 12px;
    }

}

@media (max-width: 768px) {

    .hero {
        height: 50vh;
    }

    .hero-content {
        padding: 25px;
        width: 90%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .date {
        font-size: 16px;
    }

}

@media (max-width: 768px) {

    .programme-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    .editions-grid {
        grid-template-columns: 1fr;
    }

    .edition-card img {
        height: 200px;
    }

}

.location-grid {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

}

.location-map iframe {

    width: 100%;
    height: 450px;
    border: 0;

}

@media (max-width: 900px) {

    .location-grid {

        grid-template-columns: 1fr;

    }

    .location-map iframe {

        height: 350px;

    }

}

@media (max-width: 768px) {

    .calendar-day,
    .programme-day {

        grid-template-columns: 1fr;

    }

    .calendar-date,
    .programme-date {

        width: 120px;
        margin: auto;

    }

}

@media (max-width: 768px) {

    footer {

        flex-direction: column;
        gap: 15px;
        text-align: center;

    }

}

/* =========================
   HAMBURGER MENU
========================= */

.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* MOBILE */

@media (max-width: 768px) {

    .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
    }

    nav li {
        text-align: center;
        padding: 12px 0;
        border-top: 1px solid rgba(255,255,255,.1);
    }

    .navbar-accent {
        display: none;
    }

}