/* ============================================
   Caianda — Site Turístico Oficial
   Design System v2
   ============================================ */

:root {
    --primary: #0B4D3C;
    --primary-dark: #073028;
    --primary-light: #157A5C;
    --accent: #E8A317;
    --accent-dark: #C8860A;
    --accent-red: #C41E3A;
    --dark: #0F1419;
    --dark-soft: #1C2421;
    --text: #2C3330;
    --text-muted: #5C6B65;
    --light-bg: #F4F7F5;
    --white: #FFFFFF;
    --border: rgba(11, 77, 60, 0.1);
    --shadow-sm: 0 2px 8px rgba(15, 20, 25, 0.06);
    --shadow: 0 8px 30px rgba(15, 20, 25, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 20, 25, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--primary-dark);
}

img { max-width: 100%; display: block; }

a { transition: var(--transition); }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.top-bar span i { color: var(--accent); margin-right: 6px; }

.lang-switcher-top {
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher-top .lang-btn { color: rgba(255, 255, 255, 0.75); }

/* ---- Navbar ---- */
#mainNav {
    background: var(--white);
    padding: 0.75rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    height: 48px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.brand-sub {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-dark);
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

.page-inner #mainNav .navbar-toggler-icon {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2811, 77, 60, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text) !important;
    padding: 0.5rem 0.85rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after { width: 50%; }

.nav-link.active { color: var(--primary) !important; font-weight: 600; }

.btn-nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.btn-nav-cta:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(11, 77, 60, 0.3);
}

.btn-nav-cta.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark) !important;
}

.lang-switcher {
    display: flex;
    gap: 2px;
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    padding: 4px 11px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--accent);
    color: var(--dark);
}

/* ---- Hero ---- */
.hero {
    min-height: calc(100vh - 40px);
    min-height: calc(100svh - 40px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/cultura-dancas-mulheres.png') center/cover no-repeat;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(7, 48, 40, 0.92) 0%,
        rgba(11, 77, 60, 0.75) 50%,
        rgba(7, 48, 40, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 163, 23, 0.15);
    border: 1px solid rgba(232, 163, 23, 0.4);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero p.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 540px;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-hero {
    background: var(--accent);
    color: var(--dark);
    border: none;
    padding: 15px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-hero:hover {
    background: #f0b830;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 163, 23, 0.35);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 13px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat .number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.82rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 2;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Section Utilities ---- */
.section { padding: 90px 0; }

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
}

.section-eyebrow-light { color: var(--accent); }

.section-title { text-align: center; margin-bottom: 3.5rem; }

.section-title.text-start { text-align: left; }

.section-title h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.section-title .divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    margin: 1rem auto;
    border-radius: 4px;
}

.section-title.text-start .divider { margin-left: 0; }

.section-title p {
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.bg-light-section { background: var(--light-bg); }

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 77, 60, 0.25);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
}

/* ---- Cards ---- */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--white);
    font-size: 1.6rem;
}

.feature-card h4 { margin-bottom: 0.75rem; font-size: 1.15rem; }

.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---- Attraction Cards ---- */
.attraction-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
    height: 100%;
    border: 1px solid var(--border);
}

.attraction-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.attraction-card .card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.attraction-card .card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 48, 40, 0.5), transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.attraction-card:hover .card-img::after { opacity: 1; }

.badge-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--dark);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.attraction-card .card-body { padding: 1.5rem 1.75rem 1.75rem; }

.attraction-card h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.attraction-card p { font-size: 0.92rem; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    margin-top: 0.75rem;
}

.card-link:hover { color: var(--accent-dark); gap: 8px; }

/* ---- Stats ---- */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 50px 0 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header .container { position: relative; z-index: 2; }

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header-image {
    background-size: cover;
    background-position: center top;
}

.page-header-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(7, 48, 40, 0.9), rgba(11, 77, 60, 0.82));
}

.breadcrumb-custom {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.breadcrumb-custom li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-custom li + li::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.5;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.breadcrumb-custom a:hover { color: var(--accent); }

.breadcrumb-custom .active { color: var(--accent); font-weight: 600; }

/* ---- About ---- */
.about-block { margin-bottom: 4rem; }

.about-block:last-child { margin-bottom: 0; }

.about-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-block h3 i {
    color: var(--accent);
    font-size: 1.3rem;
    background: rgba(232, 163, 23, 0.12);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img { transform: scale(1.03); }

.about-image img.contain-fit {
    object-fit: contain;
    background: var(--light-bg);
}

/* ---- Culture ---- */
.culture-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.culture-item:last-child { margin-bottom: 0; }

.culture-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.culture-item .culture-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark);
}

.culture-item h4 { font-size: 1.05rem; margin-bottom: 0.35rem; }

.culture-item p { font-size: 0.92rem; }

/* ---- Info Cards ---- */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    transition: var(--transition);
}

.info-card:hover { box-shadow: var(--shadow); }

.info-card h4 {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
}

.info-card h4 i { color: var(--primary); }

.info-card ul { padding-left: 1.2rem; color: var(--text-muted); }

.info-card ul li { margin-bottom: 0.4rem; }

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 48, 40, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    gap: 0.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i { color: var(--white); font-size: 2rem; }

.gallery-caption {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 0 1rem;
}

/* ---- Contact ---- */
.contact-info-card {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.contact-info-card h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.admin-photo-frame {
    border: 4px solid rgba(232, 163, 23, 0.3);
    box-shadow: var(--shadow-lg);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.contact-info-item i {
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 3px;
    width: 20px;
}

.contact-info-item a { color: var(--white); }

.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}

.contact-form .form-control {
    border: 2px solid #E8EDEA;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(11, 77, 60, 0.1);
}

/* ---- Map ---- */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 420px;
    border: 1px solid var(--border);
}

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ---- Video ---- */
.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-placeholder {
    min-height: 280px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.video-placeholder-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(7, 48, 40, 0.8);
    width: 100%;
    min-height: 280px;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.video-placeholder-overlay i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 163, 23, 0.15), transparent 70%);
    border-radius: 50%;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-banner-text h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.cta-banner-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 480px;
}

.cta-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-light-custom {
    background: var(--white);
    color: var(--primary-dark);
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.92rem;
}

.btn-light-custom:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-light-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.92rem;
}

.btn-outline-light-custom:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.75); }

.footer-main { padding: 4.5rem 0 3rem; }

.footer-brand-block { margin-bottom: 1.5rem; }

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.footer-brand {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.footer-desc { font-size: 0.92rem; line-height: 1.7; }

.social-links { display: flex; gap: 10px; }

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

.site-footer h6 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact { list-style: none; padding: 0; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
}

.footer-contact i { color: var(--accent); margin-top: 4px; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copy, .footer-gov { font-size: 0.82rem; opacity: 0.55; }

.footer-gov i { color: var(--accent-red); }

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--dark);
}

/* ---- Alert ---- */
.alert-custom { border-radius: var(--radius-sm); border: none; }

/* ---- Intro Block ---- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image-wrap {
    position: relative;
}

.intro-image-wrap .about-image { height: 460px; }

.intro-badge-float {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.intro-badge-float i {
    font-size: 2rem;
    color: var(--accent);
}

.intro-badge-float strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.intro-badge-float span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Bloquear scroll quando menu mobile aberto */
body.nav-open { overflow: hidden; }

/* ---- Responsive — Todos os Dispositivos ---- */

/* Container com padding seguro */
.container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

/* Touch targets mínimos */
.btn-hero, .btn-hero-outline, .btn-primary-custom,
.btn-outline-custom, .btn-nav-cta, .lang-btn,
.nav-link, .back-to-top {
    min-height: 44px;
}

/* ---- Tablet (até 991px) ---- */
@media (max-width: 991.98px) {
    .section { padding: 60px 0; }
    .section-title { margin-bottom: 2.5rem; }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-image-wrap .about-image { height: 320px; }

    .intro-badge-float {
        left: 0;
        right: 0;
        bottom: -12px;
        margin: 0 auto;
        max-width: calc(100% - 2rem);
    }

    .culture-item { flex-direction: row; text-align: left; }

    .about-block h3 {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }

    .about-image[style*="height"] { height: 280px !important; }

    .cta-banner { padding: 3rem 0; }
    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-banner-actions { justify-content: center; width: 100%; }
    .cta-banner-text p { max-width: 100%; }

    .footer-main { padding: 3rem 0 2rem; }

    .hero-stats {
        gap: 1.5rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stat .number { font-size: 1.5rem; }
    .hero-stat .label { font-size: 0.72rem; }

    .page-header { padding: 40px 0 45px; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .map-container { height: 350px; }

    /* Menu mobile */
    #mainNav .navbar-collapse {
        background: var(--white);
        margin: 0.75rem -0.5rem 0;
        padding: 1rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
        max-height: calc(100vh - 120px);
        max-height: calc(100dvh - 120px);
        overflow-y: auto;
    }

    #mainNav .navbar-nav {
        gap: 0.25rem;
        width: 100%;
    }

    #mainNav .nav-item { width: 100%; }

    #mainNav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-sm);
        width: 100%;
    }

    #mainNav .nav-link::after { display: none; }

    #mainNav .nav-link:hover,
    #mainNav .nav-link.active {
        background: var(--light-bg);
    }

    #mainNav .btn-nav-cta {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
        padding: 12px 20px !important;
    }

    .navbar-toggler {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    .attraction-card .card-img { height: 200px; }

    .contact-info-card,
    .contact-form { padding: 2rem; }

    .admin-photo-frame[style*="height"] { height: 260px !important; }
}

/* ---- Mobile (até 767px) ---- */
@media (max-width: 767.98px) {
    .section { padding: 48px 0; }

    .top-bar {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
    }

    .top-bar-right { justify-content: center; }

    .brand-logo { height: 40px; }
    .brand-name { font-size: 1.15rem; }

    .hero {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 90px 0 50px;
    }

    .hero h1 { font-size: clamp(2rem, 8vw, 2.75rem); }

    .hero p.lead {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero, .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding-top: 1.5rem;
    }

    .hero-stat { text-align: center; }
    .hero-stat .number { font-size: 1.25rem; }
    .hero-stat .label {
        font-size: 0.65rem;
        letter-spacing: 0;
    }

    .hero-scroll { display: none; }

    .intro-image-wrap .about-image { height: 260px; }

    .intro-badge-float {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }

    .feature-card { padding: 1.5rem 1.25rem; }
    .feature-card .icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .stats-bar { padding: 2.5rem 0; }
    .stat-item .stat-number { font-size: 1.75rem; }
    .stat-item .stat-label { font-size: 0.75rem; }

    .attraction-card .card-img { height: 180px; }
    .attraction-card .card-body { padding: 1.25rem; }

    .about-block {
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .about-block h3 {
        justify-content: center;
        font-size: 1.2rem;
    }

    .about-block .list-unstyled li {
        text-align: left;
    }

    .about-image[style*="height"] { height: 240px !important; }

    .culture-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .culture-item .culture-icon { margin: 0 auto; }

    .page-header { padding: 32px 0 36px; }
    .page-header h1 { font-size: 1.75rem; }
    .page-header p { font-size: 0.95rem; }

    .breadcrumb-custom {
        font-size: 0.78rem;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item { aspect-ratio: 16/10; }

    .video-placeholder,
    .video-placeholder-overlay { min-height: 220px; }

    .info-card { padding: 1.5rem; }

    .map-container { height: 280px; }

    .cta-banner { padding: 2.5rem 0; }
    .cta-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-light-custom,
    .btn-outline-light-custom {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .footer-main .row > div {
        text-align: center;
    }

    .social-links { justify-content: center; }

    .footer-contact li { justify-content: center; }

    .back-to-top {
        bottom: max(16px, env(safe-area-inset-bottom));
        right: max(16px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
    }

    .contact-form,
    .contact-info-card { padding: 1.5rem; }

    .admin-photo-frame[style*="height"] { height: 220px !important; }

    /* Modal galeria em ecrã completo */
    #lightboxModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

/* ---- Mobile pequeno (até 575px) ---- */
@media (max-width: 575.98px) {
    .section { padding: 40px 0; }

    .brand-sub { display: none; }

    .hero-content { padding: 80px 0 40px; }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats .hero-stat:last-child {
        grid-column: 1 / -1;
    }

    .section-title h2 { font-size: 1.6rem; }

    .stat-item .stat-number { font-size: 1.5rem; }

    .stats-bar .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    .text-center .btn-primary-custom { width: auto; }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

/* ---- Mobile muito pequeno (até 375px) ---- */
@media (max-width: 375px) {
    .hero h1 { font-size: 1.75rem; }

    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats .hero-stat:last-child { grid-column: auto; }

    .brand-name { font-size: 1rem; }
    .brand-logo { height: 36px; }

    .top-bar span { font-size: 0.7rem; }
}

/* ---- Tablet landscape / Desktop pequeno ---- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .intro-grid { gap: 3rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { padding: 100px 0 60px; }
}

/* ---- Desktop grande ---- */
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
    .hero h1 { font-size: 4rem; }
    .intro-image-wrap .about-image { height: 500px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Desktop extra grande ---- */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

/* Reduzir animações em dispositivos com preferência */
@media (prefers-reduced-motion: reduce) {
    .hero-bg { animation: none; }
    .fade-in { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* Hover apenas em dispositivos com rato */
@media (hover: none) and (pointer: coarse) {
    .gallery-item .gallery-overlay { opacity: 1; background: rgba(7, 48, 40, 0.35); }
    .gallery-item .gallery-overlay i { font-size: 1.5rem; }
    .attraction-card:hover { transform: none; }
    .feature-card:hover { transform: none; }
}

/* Orientação horizontal em telemóvel */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }
    .hero-content { padding: 70px 0 30px; }
    .hero-scroll { display: none; }
    .hero-stats { display: none; }
}
