/* --- Variáveis de Cor (Nature Inspired) --- */
:root {
    /* Cores principais */
    --color-primary: #2e4d38;          /* Verde escuro musgo */
    --color-button: #3e693f;           /* Verde médio vibrante */
    --color-button-hover: #6fa88e;     /* Hover dos botões */
    --color-background: #f2f0eb;       /* Fundo suave */
    --color-text: #1f1f1f;             /* Texto principal */
    --color-secondary: #a4896f;        /* Castanho rocha */
    --color-dark: rgba(0,0,0,0.85);    /* Fundo escuro translúcido */
    --color-white: #ffffff;            /* Branco */
    --color-border: #D3D3D3;           /* Bordas suaves */
    --color-secondary-brown: #a4896f;  /* Castanho rocha (alias) */
    --color-primary-dark-green: #1a2c21; /* Verde escuro */

    /* Tipografia e Layout */
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --font-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --container-width: 1140px;
    --base-spacing: 1rem;
    --border-radius: 5px;
    --box-shadow: 0 4px 8px rgba(0,0,0,0.1);

    --primary-color: #004A7F; /* Deep Blue - Adjust as per actual theme */
    --secondary-color: #007B5E; /* Teal Green - Adjust as per actual theme */
    --accent-color: #FFC107;    /* Yellow Accent - Adjust as per actual theme */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --text-color: #333;
    --text-color-light: #fff;
}

/* --- Reset Básico & Globais --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

a {
    color: var(--color-secondary-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-primary-dark-green);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: calc(var(--base-spacing) * 0.75);
    color: var(--color-primary);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 2.5rem; 
    margin-bottom: var(--base-spacing);
    font-weight: 700;
}

h2 { 
    font-size: 2rem; 
    margin-bottom: calc(var(--base-spacing)*0.8);
    font-weight: 600;
}

h3 { 
    font-size: 1.5rem;
    font-weight: 600;
}

h4 { 
    font-size: 1.2rem; 
    color: var(--color-secondary);
    font-weight: 500;
}

p {
    margin-bottom: var(--base-spacing);
    font-size: 1rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    margin-bottom: var(--base-spacing);
    padding-left: calc(var(--base-spacing) * 1.5);
}

/* --- Utilitários --- */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--base-spacing);
    padding-right: var(--base-spacing);
}

.section {
    padding: calc(var(--base-spacing) * 3) 0;
}

.text-center {
    text-align: center;
}

.section-highlight {
    background-color: #23140D;
    color: var(--color-white);
    padding-top: calc(var(--base-spacing) * 3);
    padding-bottom: calc(var(--base-spacing) * 3);
}

/* --- Botões --- */
.btn {
    display: inline-block;
    padding: calc(var(--base-spacing) * 0.6) calc(var(--base-spacing) * 1.2);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-white);
    border-color: var(--color-button);
}

.btn-primary:hover {
    background-color: var(--color-button-hover);
    border-color: var(--color-button-hover);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-button-hover);
    border-color: var(--color-button-hover);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Cabeçalho --- */
header {
    background: var(--color-dark);
    padding: calc(var(--base-spacing) * 0.5) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-img {
    max-height: 48px; /* Reduced from 60px to 80% */
    width: auto;
    vertical-align: middle;
}

nav {
    flex: 1;
}

nav ul {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    width: 100%;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

nav ul li {
    margin-right: 0;
    margin-left: calc(var(--base-spacing) * 1.08);
}

nav ul li:first-child {
    margin-left: calc(var(--base-spacing) * 1.08);
}

nav ul li a {
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-family: var(--font-primary);
    font-size: 1rem; /* Increased from 0.8rem to 125% */
    letter-spacing: 0.01em;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #ccc; /* Cor Cinza Claro para Hover/Focus */
    /* border-bottom-color: transparent; Removido */
    text-decoration: none;
}

nav ul li a.active {
    color: #ccc; /* Cor Cinza Claro para Ativo */
     /* border-bottom-color: transparent; Removido */
    font-weight: 600; /* Dar um pouco mais de destaque ao ativo */
}

/* Language Switcher */
.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.lang-switch:hover {
    color: #ccc;
}

.lang-switch.active-lang {
    color: #ccc;
    font-weight: 600;
}

.lang-switch-separator {
    color: #fff;
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

/* --- Rodapé --- */
footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: calc(var(--base-spacing) * 2) 0;
    margin-top: calc(var(--base-spacing) * 3);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    line-height: 1.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: calc(var(--base-spacing) * 2);
    margin-bottom: var(--base-spacing);
}

.footer-info p,
.footer-social p {
    margin-bottom: calc(var(--base-spacing) * 0.5);
}

.footer-info a {
    color: var(--color-white);
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-social a {
    color: var(--color-white);
    margin: 0 calc(var(--base-spacing) * 0.5);
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-accent-stone);
}

.footer-rights {
    text-align: center;
    margin-top: calc(var(--base-spacing) * 2);
    padding-top: var(--base-spacing);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: var(--color-accent-stone);
}

/* --- Estilos Específicos --- */

/* Hero Section (index.html) */
.hero {
    background-color: var(--color-accent-stone); /* Fallback */
    background-image: url('../images/banner.png'); /* Usar banner.png */
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: calc(var(--base-spacing) * 5) var(--base-spacing);
    padding-top: 80px; /* Adicionado padding para compensar header fixo */
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: calc(var(--base-spacing) * 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Key Services Grid (index.html) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--base-spacing) * 2);
    margin-top: calc(var(--base-spacing) * 2);
}

.service-item {
    background-color: var(--color-white);
    padding: calc(var(--base-spacing) * 1.5);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-item img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: var(--base-spacing);
}

.service-item h4 {
    margin-bottom: calc(var(--base-spacing) * 0.5);
    color: var(--color-primary-dark-green);
}

.service-item p {
    font-size: 0.95rem;
    margin-bottom: var(--base-spacing);
}

/* Founder Highlight (index.html) */
.founder-highlight {
    text-align: center;
    margin-top: calc(var(--base-spacing) * 2);
}

/* Call to Action (index.html) */
.cta-section {
    background-color: var(--color-secondary-brown);
    color: var(--color-white);
    padding: calc(var(--base-spacing) * 3) var(--base-spacing);
    text-align: center;
    border-radius: var(--border-radius);
    margin-top: calc(var(--base-spacing) * 2);
}

.cta-section h3 {
    color: var(--color-white);
    margin-bottom: var(--base-spacing);
}

/* Reduce top space specifically for the services section on homepage */
.services.section-highlight {
    padding-top: 0.5rem;    /* Reduced from 1rem (50%) */
    padding-bottom: 1.5rem; /* Reduced from 3rem (50%) */
}

/* Page Title (páginas internas) */
.page-title-section {
    background-color: var(--color-primary-dark-green);
    color: var(--color-white);
    padding: calc(var(--base-spacing) * 2) 0;
    padding-top: 11rem; /* Header height (~5rem) + Desired space (6rem) */
    margin-bottom: calc(var(--base-spacing) * 3);
}

.page-title-section h1 {
    color: var(--color-white);
    text-align: center;
    margin: 0;
}

/* Cave/Trail Profiles (Cards) */
.profile-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--base-spacing) * 2);
    padding: calc(var(--base-spacing) * 1.5);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: calc(var(--base-spacing) * 1.5);
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile-card img {
    border-radius: var(--border-radius);
    max-height: 250px;
    object-fit: cover;
}

.profile-card h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: calc(var(--base-spacing)*0.5);
}

/* Section Specific Styles (experiences.html) */
.gastronomy-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--base-spacing) * 2);
    align-items: center;
}

.gastronomy-section img {
    border-radius: var(--border-radius);
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    .profile-card {
        grid-template-columns: 1fr; /* Stack image and text */
    }
    .profile-card img {
         margin-bottom: var(--base-spacing);
         max-height: 300px; /* Allow slightly larger image when stacked */
    }
    .gastronomy-section {
         grid-template-columns: 1fr;
    }
     .gastronomy-section img {
         margin-top: var(--base-spacing);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }

    header .container {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        margin-top: var(--base-spacing);
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px calc(var(--base-spacing) * 1); /* Adjust spacing */
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-social {
        margin-top: var(--base-spacing);
    }
}

@media (max-width: 576px) {
    nav ul li {
         margin: 5px calc(var(--base-spacing) * 0.7); /* Tighter spacing */
         font-size: 0.9rem;
    }
    .btn {
        padding: calc(var(--base-spacing) * 0.5) var(--base-spacing);
        font-size: 0.9rem;
    }
}

/* --- Estilos Landing Page NECAVE --- */

.landing-block {
    padding: 4rem 2rem; /* Espaçamento padrão dos blocos */
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste para o container dentro do landing block não ter padding extra */
.landing-block > .container {
    padding-left: 0;
    padding-right: 0;
}

/* Hero Section - ajuste fino */
#hero-main h1 {
    font-size: 2.3rem; /* Reduzido para 66% de 3.5rem */
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
#hero-main p {
    font-size: 0.9rem; /* Reduzido para 66% de 1.4rem */
}

/* Removed fade effect styles below */
#hero-main {
    /* position: relative; /* REMOVED */
    /* overflow: hidden; /* REMOVED */
}

/* #hero-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; 
    background: linear-gradient(to bottom, rgba(232, 229, 218, 0), #E8E5DA 100%);
    pointer-events: none; 
} */ /* REMOVED RULE */

/* Fundo alternado */
.landing-block:nth-child(even) {
    background-color: var(--color-background); /* Cor base já é bege/off-white */
}
.landing-block:nth-child(odd):not(#hero-main) {
    background-color: #f0f5f0; /* Verde muito claro como alternativa */
}
/* Manter cores específicas */
.section-highlight {
     background-color: #E8E5DA !important; /* Garante cor pedra/areia */
}
.social-section {
    background-color: var(--color-primary-dark-green) !important; /* Garante verde escuro */
    color: var(--color-white);
}
.social-section h2 {
    color: var(--color-white);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--base-spacing) * 2);
    margin-top: 2rem;
}

.news-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    overflow: hidden; /* Garante que a imagem não ultrapassa a borda arredondada */
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card h4 {
    margin: 1rem 1rem 0.5rem 1rem;
    color: var(--color-primary-dark-green);
}

.news-card p {
    margin: 0 1rem 1rem 1rem;
    font-size: 0.95rem;
    flex-grow: 1; /* Empurra o botão para baixo */
}

.news-card .btn {
    margin: 0 1rem 1rem 1rem;
    align-self: flex-start;
}

/* Membership CTA & Volunteer */
#membership-cta,
#volunteer {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
#membership-cta h2,
#volunteer h2 {
    margin-bottom: 1rem;
}

/* Highlight Section */
.highlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--base-spacing) * 3);
    align-items: center;
}

.highlight-content img {
     border-radius: var(--border-radius);
     max-height: 350px;
     object-fit: cover;
}

/* Content Image Split (Speleology) */
.content-image-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--base-spacing) * 3);
    align-items: center;
}

.content-image-split img {
     border-radius: var(--border-radius);
     order: 1; /* Coloca imagem à direita por defeito */
}

.content-image-split > div {
    order: 0;
}

/* Social Section */
.social-icons a {
    color: var(--color-white);
    font-size: 2.5rem; /* Ajustar tamanho dos icones/emojis */
    margin: 0 1rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* --- Responsividade (Adições/Ajustes) --- */
@media (max-width: 992px) {
    /* ... (Regras existentes) ... */
    .highlight-content,
    .content-image-split {
        grid-template-columns: 1fr;
    }
    .content-image-split img {
        order: 0; /* Imagem primeiro em mobile */
        margin-bottom: 1.5rem;
    }
     .content-image-split > div {
        order: 1;
        text-align: center;
    }
     .highlight-content img {
        margin-bottom: 1.5rem;
     }
     .highlight-content > div {
         text-align: center;
     }
}

@media (max-width: 768px) {
    /* ... (Regras existentes) ... */
     .landing-block {
        padding: 3rem 1rem;
    }
    #hero-main h1 {
        font-size: 2.8rem;
    }
    #hero-main p {
        font-size: 1.2rem;
    }
    .social-icons a {
        font-size: 2rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    /* ... (Regras existentes) ... */
     .landing-block {
        padding: 2rem 1rem;
    }
     #hero-main h1 {
        font-size: 2.2rem;
    }
    #hero-main p {
        font-size: 1rem;
    }
}

/* Hero Section specific styles (if any overrides or new styles needed) */
.hero-section h1 {
    font-size: 2.8rem; /* Example: Adjust for elegance and readability */
    font-weight: bold; /* Or a specific font-weight if a custom font is used */
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Example text shadow for readability */
}

/* Swipe Horizontal Section */
.carousel-section {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

.swipe-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.swipe-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 2rem;
    padding: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.swipe-track::-webkit-scrollbar {
    display: none;
}

.swipe-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0;
    min-width: 300px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.swipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.swipe-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    text-align: center;
}

.swipe-card h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
}

.swipe-card p {
    color: var(--color-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.swipe-card .btn-secondary {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    display: inline-block;
}

/* Responsive adjustments for swipe section */
@media (max-width: 768px) {
    .swipe-card {
        width: 280px;
        padding: 1.75rem;
    }

    .swipe-card h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .swipe-card {
        width: 260px;
        padding: 1.5rem;
    }

    .swipe-card h4 {
        font-size: 1.2rem;
    }

    .swipe-card p {
        font-size: 0.95rem;
    }
}

/* Keep existing Arrábida Section Styles below */
.arrabida-section {
    background-color: #eae4d9;
    padding: 4rem 2rem;
}

.arrabida-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.arrabida-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
}

.arrabida-columns::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-border);
    transform: translateX(-50%);
}

.sub-section-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.carousel-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.carousel-arrow:hover {
    background-color: var(--color-button);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.carousel-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 77, 56, 0.3);
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

/* Responsive adjustments for Arrábida section */
@media (max-width: 992px) {
    .arrabida-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .arrabida-columns::after {
        display: none;
    }

    .carousel-container {
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .arrabida-section {
        padding: 3rem 1rem;
    }

    .arrabida-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .sub-section-title {
        font-size: 1.5rem;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-image {
        height: 250px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* START 5. Volunteer Section Styles */
.volunteer-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.volunteer-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.volunteer-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #34495e;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.volunteer-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.4;
}

.volunteer-cta {
    margin-top: 2rem;
}

.volunteer-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.volunteer-cta .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive adjustments for volunteer section */
@media (max-width: 768px) {
    .volunteer-section {
        padding: 3rem 0;
    }

    .volunteer-title {
        font-size: 2rem;
    }

    .volunteer-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .volunteer-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .benefit-item {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .volunteer-section {
        padding: 2rem 0;
    }

    .volunteer-title {
        font-size: 1.8rem;
    }

    .volunteer-intro {
        font-size: 1rem;
    }

    .benefit-item {
        padding: 1.2rem;
    }

    .benefit-icon {
        font-size: 2rem;
    }
}
/* END 5. Volunteer Section Styles */

/* START 3. Membership Invite Section */
.membership-invite {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 2.5rem 0;
    text-align: center;
}

.membership-invite h2 {
    background: none;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    line-height: 1.3;
}

.membership-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.membership-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.benefit-icon {
    font-size: 1.2rem;
}

.cta-container {
    margin-top: 1.5rem;
}

.cta-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments for membership section */
@media (max-width: 768px) {
    .membership-invite {
        padding: 2rem 0;
    }

    .membership-content {
        padding: 1.5rem;
    }

    .membership-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .benefits-list li {
        font-size: 0.9rem;
    }

    .cta-container {
        margin-top: 1.25rem;
    }
}

@media (max-width: 576px) {
    .membership-invite {
        padding: 1.75rem 0;
    }

    .membership-content {
        padding: 1.25rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .benefits-list li {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 0.6rem 1.75rem;
        font-size: 1rem;
    }
}
/* END 3. Membership Invite Section */

/* Hero Section Styles */
.hero-content {
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-content .btn {
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Image Gallery Styles */
.image-gallery {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--color-white);
}

.image-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.image-gallery .caption {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive adjustments for image gallery */
@media (max-width: 768px) {
    .image-gallery {
        margin-bottom: 1.5rem;
    }
    
    .image-gallery .caption {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Carousel Styles for Por Dentro Section */
.carousel.por-dentro {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel.por-dentro .carousel-item {
    display: none;
    width: 100%;
}

.carousel.por-dentro .carousel-item.active {
    display: block;
}

.carousel.por-dentro img,
.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    position: relative;
    background: var(--color-white);
    padding: 4px;
}

.carousel.por-dentro img:hover,
.carousel.por-fora img:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 15px rgba(255, 255, 255, 0.1);
}

/* Add a subtle glow effect on hover */
.carousel.por-dentro img::after,
.carousel.por-fora img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transition: box-shadow 0.4s ease;
}

.carousel.por-dentro img:hover::after,
.carousel.por-fora img:hover::after {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Ensure the carousel container has proper spacing */
.carousel.por-dentro,
.carousel.por-fora {
    padding: 10px;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel.por-dentro img,
    .carousel.por-fora img {
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .carousel.por-dentro img:hover,
    .carousel.por-fora img:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                    0 0 0 1px rgba(255, 255, 255, 0.15),
                    0 0 10px rgba(255, 255, 255, 0.1);
    }
}

/* Carousel Styles for Por Fora Section */
.carousel.por-fora {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel.por-fora .carousel-item {
    display: none;
    width: 100%;
}

.carousel.por-fora .carousel-item.active {
    display: block;
}

.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel.por-fora img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.carousel.por-fora .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 77, 56, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel.por-fora .carousel-btn:hover {
    background: rgba(46, 77, 56, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel.por-fora .carousel-btn.prev {
    left: 10px;
}

.carousel.por-fora .carousel-btn.next {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel.por-fora {
        max-width: 100%;
    }
    
    .carousel.por-fora .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    display: none;
    width: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 77, 56, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(46, 77, 56, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Responsive adjustments for arrows */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

/* Speleology Page Specific Styles */
body.speleology-page {
    background-color: #000000;
    color: #ffffff;
}

body.speleology-page h1,
body.speleology-page h2,
body.speleology-page h3,
body.speleology-page h4,
body.speleology-page h5,
body.speleology-page h6,
body.speleology-page p,
body.speleology-page li,
body.speleology-page a:not(.btn) {
    color: #ffffff;
}

body.speleology-page .section {
    background-color: #000000;
}

body.speleology-page .section-highlight {
    background-color: #1a1a1a;
}

body.speleology-page .profile-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

body.speleology-page .profile-card h3 {
    color: #ffffff;
}

body.speleology-page .profile-card p {
    color: #ffffff;
}

body.speleology-page .what-to-expect {
    background-color: #23140D !important;
    color: var(--color-white);
}

body.speleology-page .what-to-expect h4 {
    margin-top: 12.5rem;  /* Aumentado de 2.5rem para 12.5rem (500% mais) */
    margin-bottom: 1rem;
    color: var(--color-white);
}

body.speleology-page .what-to-expect p {
    margin-bottom: 2rem;
    color: var(--color-white);
    text-align: justify;
}

body.speleology-page .what-to-expect h4:first-of-type {
    margin-top: 1.5rem;  /* Mantém o primeiro título mais próximo do título principal */
}

body.speleology-page .booking-info {
    background-color: #000000;
}

body.speleology-page .booking-info h2,
body.speleology-page .booking-info p {
    color: #ffffff;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem 0;
}

.expect-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.expect-item:hover {
    transform: translateY(-5px);
}

.expect-item h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.expect-item p {
    color: var(--color-white);
    text-align: justify;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .expect-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .expect-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .expect-item {
        padding: 1.5rem;
    }
}

.arrabida-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.arrabida-column h3 {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.carousel.por-dentro,
.carousel.por-fora {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

.carousel.por-dentro img,
.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    position: relative;
    background: var(--color-white);
    padding: 4px;
    margin: 0 auto;
    display: block;
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 95%;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.1rem; }
    
    .btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 90%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1rem; }
    
    p {
        font-size: 0.95rem;
    }
}

/* Ensure text remains readable on all devices */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Hiking Section Styles */
.hiking-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.hiking-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--base-spacing) * 3);
}

.hiking-intro h2 {
    color: var(--color-primary);
    margin-bottom: calc(var(--base-spacing) * 1.5);
}

.hiking-intro p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hiking-trails {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hiking-trail {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trail-image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
}

.trail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trail-image img:hover {
    transform: scale(1.05);
}

.trail-content {
    flex: 1;
}

.trail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .hiking-section {
        padding: calc(var(--base-spacing) * 3) 0;
    }
    
    .hiking-intro {
        margin-bottom: calc(var(--base-spacing) * 2);
    }
    
    .hiking-intro h2 {
        font-size: 1.8rem;
    }
    
    .hiking-trails {
        gap: calc(var(--base-spacing) * 1.5);
    }
    
    .hiking-trail {
        flex-direction: column;
    }
    
    .trail-image {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hiking-section {
        padding: calc(var(--base-spacing) * 2) 0;
    }
    
    .hiking-intro h2 {
        font-size: 1.6rem;
    }
    
    .hiking-intro p {
        font-size: 1rem;
    }
    
    .trail-content h3 {
        font-size: 1.3rem;
    }
    
    .trail-image {
        height: 180px;
    }
}

/* Banner Verde */
.green-banner {
    background-color: var(--primary-color);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.green-banner h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
}

/* Seção Introdutória */
.intro-section {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-color);
}

/* Seção de Caminhadas */
.hiking-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.hiking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hiking-card {
    aspect-ratio: 3/4;  /* Alterado para 3:4 para corresponder às dimensões das fotos */
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hiking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    color: var(--text-color);
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

/* Responsividade */
@media (max-width: 1200px) {
    .hiking-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hiking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hiking-grid {
        grid-template-columns: 1fr;
    }
    
    .hiking-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Hero Section Styles */
.hero-content {
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-content .btn {
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Image Gallery Styles */
.image-gallery {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--color-white);
}

.image-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.image-gallery .caption {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive adjustments for image gallery */
@media (max-width: 768px) {
    .image-gallery {
        margin-bottom: 1.5rem;
    }
    
    .image-gallery .caption {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Carousel Styles for Por Dentro Section */
.carousel.por-dentro {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel.por-dentro .carousel-item {
    display: none;
    width: 100%;
}

.carousel.por-dentro .carousel-item.active {
    display: block;
}

.carousel.por-dentro img,
.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    position: relative;
    background: var(--color-white);
    padding: 4px;
}

.carousel.por-dentro img:hover,
.carousel.por-fora img:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 15px rgba(255, 255, 255, 0.1);
}

/* Add a subtle glow effect on hover */
.carousel.por-dentro img::after,
.carousel.por-fora img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transition: box-shadow 0.4s ease;
}

.carousel.por-dentro img:hover::after,
.carousel.por-fora img:hover::after {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Ensure the carousel container has proper spacing */
.carousel.por-dentro,
.carousel.por-fora {
    padding: 10px;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel.por-dentro img,
    .carousel.por-fora img {
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .carousel.por-dentro img:hover,
    .carousel.por-fora img:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                    0 0 0 1px rgba(255, 255, 255, 0.15),
                    0 0 10px rgba(255, 255, 255, 0.1);
    }
}

/* Carousel Styles for Por Fora Section */
.carousel.por-fora {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel.por-fora .carousel-item {
    display: none;
    width: 100%;
}

.carousel.por-fora .carousel-item.active {
    display: block;
}

.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel.por-fora img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.carousel.por-fora .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 77, 56, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel.por-fora .carousel-btn:hover {
    background: rgba(46, 77, 56, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel.por-fora .carousel-btn.prev {
    left: 10px;
}

.carousel.por-fora .carousel-btn.next {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel.por-fora {
        max-width: 100%;
    }
    
    .carousel.por-fora .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    display: none;
    width: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 77, 56, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(46, 77, 56, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Responsive adjustments for arrows */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

/* Speleology Page Specific Styles */
body.speleology-page {
    background-color: #000000;
    color: #ffffff;
}

body.speleology-page h1,
body.speleology-page h2,
body.speleology-page h3,
body.speleology-page h4,
body.speleology-page h5,
body.speleology-page h6,
body.speleology-page p,
body.speleology-page li,
body.speleology-page a:not(.btn) {
    color: #ffffff;
}

body.speleology-page .section {
    background-color: #000000;
}

body.speleology-page .section-highlight {
    background-color: #1a1a1a;
}

body.speleology-page .profile-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

body.speleology-page .profile-card h3 {
    color: #ffffff;
}

body.speleology-page .profile-card p {
    color: #ffffff;
}

body.speleology-page .what-to-expect {
    background-color: #23140D !important;
    color: var(--color-white);
}

body.speleology-page .what-to-expect h4 {
    margin-top: 12.5rem;  /* Aumentado de 2.5rem para 12.5rem (500% mais) */
    margin-bottom: 1rem;
    color: var(--color-white);
}

body.speleology-page .what-to-expect p {
    margin-bottom: 2rem;
    color: var(--color-white);
    text-align: justify;
}

body.speleology-page .what-to-expect h4:first-of-type {
    margin-top: 1.5rem;  /* Mantém o primeiro título mais próximo do título principal */
}

body.speleology-page .booking-info {
    background-color: #000000;
}

body.speleology-page .booking-info h2,
body.speleology-page .booking-info p {
    color: #ffffff;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem 0;
}

.expect-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.expect-item:hover {
    transform: translateY(-5px);
}

.expect-item h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.expect-item p {
    color: var(--color-white);
    text-align: justify;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .expect-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .expect-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .expect-item {
        padding: 1.5rem;
    }
}

.arrabida-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.arrabida-column h3 {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.carousel.por-dentro,
.carousel.por-fora {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

.carousel.por-dentro img,
.carousel.por-fora img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    position: relative;
    background: var(--color-white);
    padding: 4px;
    margin: 0 auto;
    display: block;
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 95%;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.1rem; }
    
    .btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 90%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1rem; }
    
    p {
        font-size: 0.95rem;
    }
}

/* Ensure text remains readable on all devices */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Hiking Section Styles */
.hiking-section {
    padding: 4rem 0;
}

.hiking-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--base-spacing) * 3);
}

.hiking-intro h2 {
    color: var(--color-primary);
    margin-bottom: calc(var(--base-spacing) * 1.5);
}

.hiking-intro p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hiking-trails {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hiking-trail {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trail-image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
}

.trail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trail-image img:hover {
    transform: scale(1.05);
}

.trail-content {
    flex: 1;
    }

.trail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .hiking-section {
        padding: calc(var(--base-spacing) * 3) 0;
    }

    .hiking-intro {
        margin-bottom: calc(var(--base-spacing) * 2);
    }

    .hiking-intro h2 {
        font-size: 1.8rem;
    }

    .hiking-trails {
        gap: calc(var(--base-spacing) * 1.5);
    }
    
    .hiking-trail {
        flex-direction: column;
    }
    
    .trail-image {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hiking-section {
        padding: calc(var(--base-spacing) * 2) 0;
    }

    .hiking-intro h2 {
        font-size: 1.6rem;
    }

    .hiking-intro p {
        font-size: 1rem;
    }

    .trail-content h3 {
        font-size: 1.3rem;
    }
    
    .trail-image {
        height: 180px;
    }
}

/* Banner Verde */
.green-banner {
    background-color: var(--primary-color);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.green-banner h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
}

/* Seção Introdutória */
.intro-section {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

.intro-section p {
        font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-color);
}

/* Seção de Caminhadas */
.hiking-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.hiking-trails {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hiking-trail {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trail-image {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
}

.trail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trail-image img:hover {
    transform: scale(1.05);
}

.trail-content {
    flex: 1;
}

.trail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .green-banner h1 {
        font-size: 2.5rem;
    }

    .intro-section p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hiking-trail {
        flex-direction: column;
    }

    .trail-image {
        flex: 0 0 100%;
        width: 100%;
    }

    .trail-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .green-banner h1 {
        font-size: 2rem;
    }

    .intro-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.mission-section {
    background-color: var(--color-background);
    padding: 4rem 2rem;
    text-align: right;
}

.mission-section h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: right;
}

.mission-section p {
    color: var(--color-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: 0;
    line-height: 1.6;
    text-align: right;
}

/* Modal do Flipbook */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#flipbook-container {
    width: 100%;
    height: 600px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Estilos para o Flipbook */
.turn-page {
    background: #fff;
    background-size: 100% 100%;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #flipbook-container {
        height: 400px;
    }
}

/* Estilos específicos para o card da revista */
.magazine-card .card-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.magazine-card .card-image img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.swipe-card:hover .card-image img {
    transform: scale(1.05);
} 

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #bbb;
    text-decoration: none;
}

/* Add cursor pointer to poster images */
.poster-placeholder img {
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    user-select: none;
    padding: 0 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-arrow:hover {
    opacity: 1;
}
.lightbox-prev {
    left: 0;
}
.lightbox-next {
    right: 0;
}