:root {
    --text-color: rgb(25, 50, 100);
    --regular-text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Language selector */
.lang-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background-color: rgba(25, 50, 100, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lang-bar .back-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: auto;
    transition: opacity 0.3s ease;
}

.lang-bar .back-link:hover {
    opacity: 0.8;
}

.lang-selector {
    position: relative;
}

.lang-active-flag {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.3rem 0.5rem;
    font-size: 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-active-flag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(25, 50, 100, 0.95);
    border-radius: 10px;
    padding: 0.35rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    z-index: 200;
}

.lang-dropdown.open {
    display: flex;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.35rem 0.55rem;
    font-size: 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    opacity: 0.7;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    color: var(--regular-text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2 {
    font-weight: 600;
    color: var(--text-color);
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--regular-text-color);
}

section {
    padding: 2rem 2rem;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 2rem;
    background-color: #fff;
    color: var(--regular-text-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero .title {
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-color);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--text-color);
    margin-top: 1rem;
}

.hero .btn-primary {
    background-color: var(--text-color);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.hero .btn-primary:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    
    opacity: 0.4; /* <- mais esbatido */
  }

  .hero-logo {
    width: 200px;
    height: auto;
    margin: 1rem auto 1rem;
    display: block;
    opacity: 0.9;
  }

.section-dark {
    background-color: #f4f4f4;
}

.section .content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* .gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.gallery-item img {
    width: 200%;
    height: auto;
    max-width: 400px;
    border-radius: 10px;
} */

.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.gallery-item {
    padding: 0;
    margin: 1rem auto;
    max-width: 600px; /* Limita o tamanho máximo */
    width: 100%;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group .field {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    outline: none;
}

.input-group .field:focus {
    border-color: var(--regular-text-color);
}

.submit-btn {
    background-color: var(--text-color);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.submit-btn:hover {
    background-color: #555;
}

.footer {
    background-color: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.footer p {
    font-size: 0.9rem;
    color: #fff;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-logo {
    width: 100px; /* ou outro tamanho proporcional ao teu design */
    height: auto;
    opacity: 0.85; /* leve esbatimento se quiseres */
    filter: brightness(0.95) saturate(0.9);
  }
  

.locations {
    padding: 5rem 2rem;
    background-color: #f9f9f9;
  }
  
  .locations .content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .locations-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .location-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: left;
  }
  
  .location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  .location-card p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--regular-text-color);
  }

  section.about {
    /* background-color: #F4F4F4; */
    /* background-color: #FFF8F0; */
    /*background: linear-gradient(to bottom, #E9ECEF, #DCE6D3);*/
    background: linear-gradient(to bottom, #fffffff8, #f4f4f4);
}

  .about .section-title {
    margin-bottom: 3rem;
    color: var(--text-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.about-block {
    background-color: #fffffff1;
    color: var(--text-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    text-align: justify;
    text-justify: inter-word;
    transition: transform 0.3s ease;
}

.about-block:hover {
    transform: translateY(-8px);
}

.about-block .icon {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Centraliza o conteúdo da seção */
#contacto .content {
    max-width: 600px; /* define uma largura mais estreita */
    margin: 0 auto;   /* centraliza horizontalmente */
    text-align: center;
  }

  .input-group .field,
  textarea.field {
    padding: 1.2rem;
  }
/* Objectivo */
.objetivo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
  }
  
  .objetivo-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }
  
  .objetivo-item:hover {
    transform: translateY(-5px);
  }
  
  .objetivo-item .icon {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
  }
  
  .objetivo-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }
  
  .objetivo-item p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  
  .objetivo-text {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-top: 3rem;
  }

  .objetivo-destaques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .objetivo-bloco {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .objetivo-bloco:hover {
    transform: translateY(-5px);
  }
  
  .objetivo-bloco .icon {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
  }
  
  .objetivo-bloco h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }
  
  .objetivo-bloco p {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  section.objetivo {
    background-color: #f4f4f4; /* ou #E9ECEF para um cinza elegante */
    background: linear-gradient(to bottom, #fffffff8, #f4f4f4);
  }
  
  .obs {
    background-color: #e8ebf0;
    border-left: 4px solid var(--text-color);
    padding: 1rem 1.5rem;
    margin-top: 5rem;
    font-size: 1rem;
    color: #444;
    z-index: 1;
  }

  /* Eventos Section */
  section.eventos {
    background: linear-gradient(to bottom, #f4f4f4, #fffffff8);
  }

  .evento-destaque-principal {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid rgba(26, 42, 68, 0.15);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .evento-destaque-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  }

  .evento-badge-principal {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--text-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(26, 42, 68, 0.3);
    z-index: 2;
  }

  .evento-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
  }

  .evento-content {
    flex: 1;
  }

  .evento-image {
    flex: 0 0 300px;
    margin-top: 3rem;
    position: relative;
  }

  .event-poster {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .event-poster:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  }

  .evento-header {
    margin-bottom: 1.5rem;
  }

  .evento-date-principal {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
  }

  .evento-date-principal .icon {
    font-size: 1.2rem;
    color: var(--text-color);
  }

  .evento-destaque-principal h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.2;
  }

  .evento-description {
    color: var(--regular-text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: left;
  }

  .evento-details-principal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(255,255,255,0.7);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(26, 42, 68, 0.1);
  }

  .evento-info-principal {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--regular-text-color);
    font-size: 1rem;
  }

  .evento-info-principal .icon {
    font-size: 1rem;
    color: var(--text-color);
    width: 16px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .evento-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 42, 68, 0.3);
    transition: border-color 0.3s ease;
  }

  .evento-link:hover {
    border-bottom-color: var(--text-color);
  }

  .eventos-cta {
    text-align: center;
    margin-top: 3rem;
  }

  .btn-eventos {
    background-color: var(--text-color);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(26, 42, 68, 0.2);
  }

  .btn-eventos:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 42, 68, 0.3);
  }

  /* Modal para visualizar imagem */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
  }

  .modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
  }

  .modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }

  .modal-close:hover {
    background: rgba(0,0,0,0.7);
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Responsivo */

  /* Smartphones pequenos (320px - 480px) */
  @media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .hero .title {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .hero-logo {
        width: 40%;
    }

    .btn-primary, .btn-eventos {
        font-size: 0.9rem;
        padding: 0.7rem 1.3rem;
        width: 100%;
        max-width: 250px;
    }

    /* About grid para smartphones */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-block {
        padding: 1.5rem;
    }

    /* Objetivo grid para smartphones */
    .objetivo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .objetivo-item {
        padding: 1.5rem;
    }

    .objetivo-destaques {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .objetivo-bloco {
        padding: 1.5rem;
    }

    /* Eventos para smartphones */
    .evento-destaque-principal {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .evento-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .evento-image {
        margin-top: 0;
        max-width: 250px;
        margin: 0 auto;
    }

    .evento-badge-principal {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .evento-destaque-principal h3 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .evento-date-principal {
        font-size: 1rem;
        gap: 0.5rem;
    }

    .evento-description {
        font-size: 1rem;
    }

    .evento-details-principal {
        padding: 1rem;
    }

    .evento-info-principal {
        font-size: 0.9rem;
        gap: 0.5rem;
        text-align: left;
    }

    /* Localizações para smartphones */
    .locations-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .location-card {
        padding: 1.5rem;
        text-align: center;
    }

    /* Formulário para smartphones */
    #contacto .content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .input-group .field {
        padding: 1rem;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
  }

  /* Smartphones grandes (481px - 768px) */
  @media (min-width: 481px) and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    section {
        padding: 2.5rem 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero .title {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .hero-logo {
        width: 35%;
    }

    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .objetivo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .objetivo-destaques {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .evento-destaque-principal {
        padding: 2rem;
    }

    .evento-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .evento-image {
        margin-top: 0;
        max-width: 300px;
        margin: 0 auto;
    }

    .evento-badge-principal {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .locations-wrapper {
        justify-content: center;
        gap: 2rem;
    }

    .location-card {
        max-width: 300px;
    }
  }

  /* Tablets (769px - 1024px) */
  @media (min-width: 769px) and (max-width: 1024px) {
    section {
        padding: 3rem 2rem;
    }

    .hero {
        padding: 4rem 2rem;
    }

    .hero .title {
        font-size: 3.5rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .objetivo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .objetivo-destaques {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .evento-destaque-principal {
        padding: 2.5rem;
        max-width: 900px;
    }

    .evento-layout {
        gap: 2.5rem;
    }

    .evento-image {
        flex: 0 0 280px;
    }

    .locations-wrapper {
        justify-content: center;
    }

    .location-card {
        max-width: 280px;
    }
  }

  /* Desktops pequenos (1025px - 1200px) */
  @media (min-width: 1025px) and (max-width: 1200px) {
    .content {
        max-width: 1000px;
    }

    .evento-destaque-principal {
        max-width: 950px;
    }

    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .objetivo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .objetivo-destaques {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
  }

  /* Desktops grandes (1201px+) */
  @media (min-width: 1201px) {
    .content {
        max-width: 1200px;
    }

    .hero .title {
        font-size: 5.5rem;
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .objetivo-destaques {
        grid-template-columns: repeat(3, 1fr);
    }

    .evento-destaque-principal {
        max-width: 1100px;
    }
  }
