@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'StackSansHeadline';
    src: url('/fonts/Stack_Sans_Headline/StackSansHeadline-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --primary-blue: #477193;
    --primary-teal: #6CCBD6;
    --primary-teal-dark: #477193;
    --accent-green: #C6E7A6;
    --accent-green-light: rgba(198, 231, 166, 0.2);
    --primary-teal-light: rgba(108, 203, 216, 0.15);
    --text-dark: #1A2A3F;
    --text-muted: #6B7B8D;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --accent-gold: #d4a843;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(71, 113, 147, 0.15);
    --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Questrial', sans-serif;
    font-weight: 700;
}

/* Header */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    padding: 1.2rem 0;
    transition: var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a.active {
    color: var(--primary-teal);
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary-teal);
}

/* Dropdown & Mega Menu Styles */
.nav-links li {
    position: relative;
    list-style: none;
}

.dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Decorative Logo Slashes */
.logo-slashes {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.logo-slashes::before,
.logo-slashes::after {
    content: '';
    position: absolute;
    background: var(--primary-teal);
    height: 12px;
    border-radius: 2px;
}

/* Creating the stacked geometric look from the logo */
.logo-slashes-decor {
    position: absolute;
    top: 50px;
    right: 20px;
}

.slash-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: flex-end;
}

.slash-item {
    height: 10px;
    background: var(--primary-teal);
    border-radius: 2px;
}

/* ============================================================
   SECTION HEADER PREMIUM — hero estilo Farmora
   ============================================================ */
.section-header-premium {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    /* Foto de fundo — substituída por imagem quando disponível */
    background-color: var(--text-dark);
    background-image: url('/defaultbackground.png');
    background-size: cover;
    background-position: center 30%;
}

/* Overlay gradiente — escuro em baixo/esquerda, aberto em cima/direita */
.section-header-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(15, 25, 40, 0.90) 0%,
            rgba(15, 25, 40, 0.55) 45%,
            rgba(15, 25, 40, 0.15) 100%
        ),
        linear-gradient(
            to right,
            rgba(15, 25, 40, 0.60) 0%,
            transparent 60%
        );
    z-index: 0;
}

/* Grain texture subtil */
.section-header-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.header-decor-logo { display: none; }

.section-header-premium .container {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 64px;
    width: 100%;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 1.2rem;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 6px;
    opacity: 0.35;
}

.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover { color: var(--accent-green); }

.breadcrumb-list li.active {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* Conteúdo do header — alinhado à esquerda */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: 680px;
}

/* Badge de categoria acima do título */
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    background: rgba(198, 231, 166, 0.18);
    border: 1px solid rgba(198, 231, 166, 0.35);
    color: var(--accent-green);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.header-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

/* Título */
.section-header-premium h1 {
    font-family: 'StackSansHeadline', sans-serif;
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 300;
    color: white;
    margin: 0 0 1.2rem;
    line-height: 1.0;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.3);
}

.header-summary {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 540px;
    margin: 0;
}

/* Onda na base */
.header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.header-wave svg {
    width: 100%;
    height: 60px;
}

@media (max-width: 768px) {
    .section-header-premium {
        min-height: 44vh;
    }
    .section-header-premium .container {
        padding-top: 100px;
        padding-bottom: 48px;
    }
}

/* Content Page Typography */
.content-page-article {
    padding: 60px 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.content-page-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-dark);
}

.content-page-article h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.content-page-article p {
    margin-bottom: 1.5rem;
}

.content-page-article blockquote {
    border-left: 4px solid var(--primary-teal);
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.nav-links li:hover > .dropdown-wrapper {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 1rem 0;
    min-width: 240px;
    border: 1px solid rgba(0,0,0,0.03);
    margin: 0;
    list-style: none;
}

/* Mega Menu specific layout */
.is-mega .dropdown-wrapper {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.is-mega:hover .dropdown-wrapper {
    transform: translateX(-50%) translateY(0);
}

.is-mega .dropdown-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    min-width: 600px;
    max-width: 90vw;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

/* Level 2 Sub-titles in Mega Menu */
.dropdown-menu a.sub-title {
    font-weight: 700;
    color: var(--text-dark);
    padding-left: 0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.dropdown-menu a:hover {
    color: var(--primary-teal);
    padding-left: 1.8rem;
}

.is-mega .dropdown-menu a:hover {
    padding-left: 0.5rem;
}

/* Level 3 Nested Menu */
.sub-level-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-level-menu li a {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    font-weight: 400;
}

.sub-level-menu li a:hover {
    padding-left: 0.5rem;
}

.nav-links a:hover {
    color: var(--primary-teal);
}

.btn-nav {
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-blue);
    color: white !important;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn-nav:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 113, 147, 0.3);
}

/* Hero Split View */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: #000;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-layer.heritage {
    z-index: 1;
    filter: sepia(0.2) contrast(1.1);
}

/* Hero Refined (Static & Elegant) */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background-color: #f8f9fa;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://www.csspvp.org/img/slidebanner/2.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    margin-left: 10%;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 4.8rem;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(71, 113, 147, 0.08);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(71, 113, 147, 0.15);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    margin-left: 10%;
    animation: fadeInLeft 1.2s ease-out;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 5px 15px rgba(255,255,255,0.5);
}

.hero-content .tagline-accent {
    color: var(--primary-teal);
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.hero-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% - var(--hero-split, 0%));
    width: 4px;
    background: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
    z-index: 5;
    transition: left 0.1s linear;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition-base);
    box-shadow: 0 10px 20px rgba(71, 113, 147, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(71, 113, 147, 0.3);
}

/* Base Sections */
.section {
    padding: 120px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title .divider {
    width: 80px;
    height: 3px;
    background: var(--primary-teal);
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(108, 203, 216, 0.2);
}

.service-card:hover::before {
    opacity: 0.1;
}

/* Category Specific Animations */

/* Centro de Dia - Sunny Glow */
.service-centro-dia:hover::before {
    background: radial-gradient(circle at 50% 50%, #FFD700 0%, transparent 70%);
    animation: pulseGlow 3s infinite alternate;
}

/* Apoio Domiciliário - Cozy Home */
.service-apoio-domiciliario:hover::before {
    background: linear-gradient(45deg, var(--primary-teal) 0%, #A3E4D7 100%);
    animation: drift 10s infinite linear;
}

/* Academia Sénior - Creative Shapes */
.service-academia-senior:hover::before {
    background-image: radial-gradient(var(--primary-blue) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: shiftPattern 20s infinite linear;
}

/* Nova ERPI - Progress/Building */
.service-nova-erpi:hover::before {
    background: linear-gradient(to top, rgba(108, 203, 216, 0.2), transparent);
    animation: riseUp 2s infinite ease-out;
}

/* Apoio Alimentar - Warm Kitchen */
.service-apoio-alimentar:hover::before {
    background: radial-gradient(circle at bottom, #FF7F50 0%, transparent 70%);
    animation: pulseGlow 4s infinite alternate;
}

/* Teleassistência - connectivity ripples */
.service-teleassistencia:hover::before {
    background: repeating-radial-gradient(circle at 50% 50%, var(--primary-blue) 0, var(--primary-blue) 1px, transparent 1px, transparent 20px);
    animation: ripple 3s infinite linear;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.05; }
    100% { transform: scale(1.1); opacity: 0.15; }
}

@keyframes drift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes shiftPattern {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

@keyframes riseUp {
    0% { transform: translateY(100%); opacity: 0; }
    50% { opacity: 0.2; }
    100% { transform: translateY(-100%); opacity: 0; }
}

@keyframes ripple {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.2; }
    100% { transform: scale(1.5); opacity: 0; }
}

.service-icon {
    width: 100px;
    height: 100px;
    background: rgba(71, 113, 147, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--primary-teal);
    transition: var(--transition-base);
}

.service-icon i {
    width: 48px;
    height: 48px;
}

.service-card:hover .service-icon {
    background: var(--primary-teal);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-img-wrap {
    height: 250px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-content {
    padding: 30px;
}

.news-tag {
    background: rgba(71, 113, 147, 0.08);
    color: var(--primary-teal);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Internal Section Headers */
.section--header {
    background-color: var(--bg-light);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section--header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary-teal);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.section__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section__hero-content h1 {
    font-size: 4rem;
    color: var(--text-dark);
    margin: 0;
}

/* Article Content Styling */
article {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.15rem;
}

article h2 {
    color: var(--text-dark);
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
}

article p {
    margin-bottom: 1.5rem;
}

article ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

/* --- Creative History Timeline --- */
.creative-history-page {
    position: relative;
    padding-bottom: 154px;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary-teal) 15%, 
        var(--primary-teal) 85%, 
        transparent 100%);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-teal) 1px, transparent 1px);
    background-size: 10px 20px;
}

/* Milestone Dot */
.milestone-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-teal);
    border-radius: 50%;
    transform: translate(-50%, 20px);
    z-index: 2;
    box-shadow: 0 0 15px rgba(108, 203, 216, 0.4);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Logo Decor for Creative Page */
.creative-decor {
    position: fixed;
    width: 400px;
    height: 400px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
}

.decor-tl { top: -100px; left: -100px; }
.decor-br { bottom: -100px; right: -100px; }

/* Grid Block Overrides for History */
.creative-history-page .umb-block-grid__area {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.creative-history-page .content-page-article {
    padding: 0;
}

/* Glassmorphism for specific text blocks */
.history-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin: 20px 0;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    .milestone-dot {
        left: 20px;
    }
    .timeline-container {
        padding-left: 50px;
    }
}

article li {
    margin-bottom: 0.8rem;
    list-style-type: square;
    color: var(--primary-teal);
}

article li span {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #F8F9FA;
    padding: 100px 0 40px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.footer-logo h3 {
    font-size: 2rem;
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-teal);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-decor-logo {
    position: absolute;
    top: -40px;
    left: -60px;
    opacity: 0.35;
    transform: rotate(5deg);
    pointer-events: none;
    z-index: -1;
}

.hero-decor-logo .slash-row:nth-child(odd) .slash-item { background: white; }
.hero-decor-logo .slash-row:nth-child(even) .slash-item { background: var(--primary-teal); }

.donation-decor {
    position: absolute;
    bottom: -20px;
    left: -30px;
    opacity: 0.45;
    transform: rotate(15deg);
    pointer-events: none;
}

.donation-decor .slash-row:nth-child(odd) .slash-item { background: white; }
.donation-decor .slash-row:nth-child(even) .slash-item { background: var(--accent-green); }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Welcome Section Redesign */
.welcome-section {
    padding: 160px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #fcfdfe);
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-teal-light) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}

.welcome-image-wrapper {
    position: relative;
    z-index: 2;
}

.welcome-image-wrapper img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    transition: transform 0.5s ease;
}

.welcome-image-wrapper:hover img {
    transform: scale(1.02);
}

.welcome-badge-glass {
    position: absolute;
    bottom: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    min-width: 180px;
}

.welcome-badge-glass .number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-teal);
    font-family: 'Questrial', sans-serif;
}

.welcome-badge-glass .text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    margin-top: 5px;
    display: block;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-tag {
    color: var(--primary-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1.5rem;
}

.welcome-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.welcome-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.welcome-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-teal);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.welcome-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-teal);
    transition: width 0.3s ease;
}

.welcome-link:hover {
    gap: 15px;
}

.welcome-link:hover::after {
    width: 100%;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .welcome-badge-glass {
        bottom: -20px;
        right: 0;
        padding: 30px;
    }
    .welcome-content h2 {
        font-size: 3rem;
    }
}


/* ============================================
   SINGLE PAGE STYLES
   ============================================ */

html {
    scroll-behavior: smooth;
}

.sp-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.sp-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.sp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: white;
    transition: transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                text-align 0s;
}

.sp-hero-content.shifted {
    transform: translateX(-120vw);
}

.sp-hero-content h1 {
    font-family: 'StackSansHeadline', sans-serif;
    font-size: 8rem;
    font-weight: 300;
    line-height: .88;
    margin-bottom: 0;
    color: white;
    user-select: none;
}

.sp-hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
}

.sp-hero-subtitle {
    font-family: 'StackSansHeadline', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0.75;
    user-select: none;
}

.sp-scroll-hint {
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sp-scroll-hint.visible {
    opacity: 1;
}

.sp-click-dot {
    animation: clickPulse 1.6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes clickPulse {
    0%   { opacity: 0.9; r: 1.8; }
    40%  { opacity: 0.15; r: 0.5; }
    70%  { opacity: 0.9; r: 1.8; }
    100% { opacity: 0.9; r: 1.8; }
}

.sp-ring {
    animation: ringRise 1.6s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes ringRise {
    0%   { transform: translateY(0);     opacity: 0.4; rx: 7; ry: 2.5; }
    40%  { transform: translateY(-6px);  opacity: 0.1; rx: 5; ry: 1.5; }
    70%  { transform: translateY(0);     opacity: 0.4; rx: 7; ry: 2.5; }
    100% { transform: translateY(0);     opacity: 0.4; rx: 7; ry: 2.5; }
}

.sp-section {
    padding: 100px 0;
}

.sp-section-alt {
    background: var(--bg-light);
}

.sp-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.sp-section-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navigation */
.sp-nav {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 2rem 2.5rem 2rem 2rem;
    z-index: 100;
}

.sp-nav.sp-hidden,
.sp-ajude-wrapper.sp-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sp-nav a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    letter-spacing: -2.5px;
    list-style: none;
    line-height: 1.0;
}

.sp-nav a::before,
.sp-nav a::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-nav a::before {
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

.sp-nav a::after {
    top: 0;
    opacity: 0;
    transform: translateY(100%);
    color: #b0cf97;
}

.sp-nav a:hover::before {
    opacity: 0;
    transform: translateY(-100%);
}

.sp-nav a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.sp-nav a span {
    visibility: hidden;
}

/* Homepage — elementos exclusivos visíveis */
.page-home .sp-default-bg { display: block; }

/* Páginas interiores — esconde elementos exclusivos da homepage */
.page-inner .sp-default-bg,
.page-inner .sp-logo,
.page-inner .sp-ajude-wrapper,
.page-inner .sp-nav { display: none; }

/* Header sp-header apenas nas páginas interiores */
.page-home .sp-header { display: none; }

/* ============================================================
   HEADER UNIVERSAL
   Transparente sobre hero/vídeo → sólido ao fazer scroll
   ============================================================ */
.sp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}

/* Estado hero: transparente */
.sp-header--hero {
    background: transparent;
    box-shadow: none;
}

/* Estado hero + scroll, ou qualquer página interior */
.sp-header--solid,
.page-inner .sp-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: rgba(71, 113, 147, 0.1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.sp-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 2rem;
}

/* ---- Logo ---- */
.sp-header__logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
}

.sp-header__logo img {
    height: 52px;
    width: auto;
    display: block;
}

.sp-header__logo span {
    font-family: 'StackSansHeadline', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    line-height: 1;
    color: white;
    transition: color 0.35s ease;
}

.sp-header--solid .sp-header__logo span,
.page-inner .sp-header .sp-header__logo span {
    color: var(--text-dark);
}

/* ---- Nav central ---- */
.sp-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sp-header__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.sp-header__list li { position: relative; }

/* ---- Links ---- */
.sp-header__link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.sp-header__link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.sp-header__link--active {
    color: white;
    font-weight: 600;
}

/* Hero → solid: mudar cor dos links */
.sp-header--solid .sp-header__link,
.page-inner .sp-header .sp-header__link {
    color: var(--text-dark);
}

.sp-header--solid .sp-header__link:hover,
.page-inner .sp-header .sp-header__link:hover {
    color: var(--primary-teal-dark);
    background: rgba(71, 113, 147, 0.06);
}

.sp-header--solid .sp-header__link--active,
.page-inner .sp-header .sp-header__link--active {
    color: var(--primary-teal-dark);
}

/* ---- Chevron ---- */
.sp-header__chevron {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.sp-header__item--dropdown.open > .sp-header__dropdown-btn .sp-header__chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ---- Actions (CTA + hamburger) ---- */
.sp-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sp-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.3rem;
    background: var(--accent-green);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(198, 231, 166, 0.4);
}

.sp-header__cta:hover {
    background: #b5d98f;
    box-shadow: 0 6px 20px rgba(198, 231, 166, 0.5);
    transform: translateY(-1px);
}

/* ---- Dropdown ---- */
.sp-header__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(71, 113, 147, 0.08);
    padding: 0.5rem;
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.25,0.46,0.45,0.94), visibility 0.22s;
}

.sp-header__item--dropdown.open > .sp-header__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.sp-header__sub-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.sp-header__sub-link svg { opacity: 0.4; flex-shrink: 0; transition: opacity 0.18s ease; }

.sp-header__sub-link:hover {
    background: rgba(71, 113, 147, 0.06);
    color: var(--primary-teal-dark);
}

.sp-header__sub-link:hover svg { opacity: 0.8; }

.sp-header__sub-link--highlight { color: var(--primary-teal-dark); font-weight: 600; }

/* ---- Badge ---- */
.sp-header__badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: var(--accent-green);
    color: var(--text-dark);
    padding: 0.12rem 0.45rem;
    border-radius: 20px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* ---- Mega menu ---- */
.sp-header__mega {
    display: flex !important;
    gap: 0;
    min-width: 460px;
    left: auto;
    right: 0;
    transform: translateY(-8px);
    padding: 1rem;
}

.sp-header__item--dropdown.open > .sp-header__mega {
    transform: translateY(0);
}

.sp-header__mega-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.sp-header__mega-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.2rem 0.9rem 0.55rem;
    margin: 0;
}

.sp-header__mega-divider {
    width: 1px;
    background: rgba(71, 113, 147, 0.1);
    margin: 0 0.75rem;
    align-self: stretch;
}

/* ---- Hamburger ---- */
.sp-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sp-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.35s ease;
}

.sp-header--solid .sp-header__hamburger span,
.page-inner .sp-header .sp-header__hamburger span { background: var(--text-dark); }

.sp-header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-header__hamburger.open span:nth-child(2) { opacity: 0; }
.sp-header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Espaço para o header nas páginas interiores ---- */
.page-inner main { padding-top: 72px; }
.page-home main  { padding-top: 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .sp-header__hamburger { display: flex; }

    .sp-header__nav {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid rgba(71, 113, 147, 0.1);
        box-shadow: 0 16px 40px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.75rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .sp-header__nav.open { max-height: 85vh; overflow-y: auto; }

    .sp-header__list { flex-direction: column; align-items: stretch; gap: 0; }

    .sp-header__link,
    .sp-header__dropdown-btn {
        width: 100%;
        justify-content: space-between;
        color: var(--text-dark) !important;
        background: none !important;
        border-radius: 10px;
        padding: 0.75rem 1rem;
    }

    .sp-header__link:hover { background: rgba(71,113,147,0.05) !important; }

    .sp-header__dropdown,
    .sp-header__mega {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        border-radius: 12px;
        margin: 0.2rem 0 0.4rem 0.5rem;
        padding: 0.4rem;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: none;
        min-width: 0;
    }

    .sp-header__item--dropdown.open > .sp-header__dropdown,
    .sp-header__item--dropdown.open > .sp-header__mega { display: flex; flex-direction: column; }

    .sp-header__mega { gap: 0; }
    .sp-header__mega-divider { display: none; }
    .sp-header__mega-col { flex: unset; }

    .sp-header__cta { border-radius: 10px; justify-content: center; }
}

.sp-default-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 99;
    opacity: 1;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-default-bg.zoomed {
    transform: scale(1.15);
}

.sp-logo {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    opacity: 1;
    cursor: pointer;
}

.sp-logo-inner {
    height: clamp(80px, 12vw, 140px);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.sp-logo-img {
    height: 100%;
    width: auto;
    display: block;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 1;
}

.sp-logo-text {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: #c6e7a6;
    font-family: 'StackSansHeadline', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    font-weight: 100;
    letter-spacing: 0.1em;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 0;
}

.sp-logo:hover .sp-logo-img {
    transform: translateY(-100%);
    opacity: 0;
}

.sp-logo:hover .sp-logo-text {
    transform: translateY(-150%);
    opacity: 1;
}

.sp-ajude-wrapper {
    position: fixed;
    left: -350px;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 200;
    opacity: 1;
    transition: transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-ajude-wrapper.expanded {
    transform: translateY(-50%) translateX(350px);
    opacity: 1;
}

.sp-ajude-panel {
    background: #6ccbd6;
    color: #fff;
    font-size: clamp(0.75rem, 1vw, 0.95rem);
    line-height: 1.6;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    width: 350px;
    height: 500px;
    padding: 2rem 1.8rem;
    white-space: normal;
}

.sp-ajude-panel p {
    margin: 0;
}

.sp-ajude-panel strong {
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
}

.sp-ajude-btn {
    background: #6ccbd6;
    color: #fff;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    width: 55px;
    min-height: 135px;
    flex-shrink: 0;
    padding: 0 1rem;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FULL PANEL (top-to-bottom)
   ============================================ */

.sp-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 78vh;
    z-index: 1000;
    background: #6ccbd6;
    transform: translateY(-100%);
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    pointer-events: none;
}

.sp-panel.active {
    transform: translateY(0);
    pointer-events: auto;
}

.sp-panel__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: 100%;
    padding: 5rem 2.5rem 4rem;
}

.sp-panel__cell {
    padding: 3rem 2.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sp-panel__cell:nth-child(3n) {
    border-right: none;
}

.sp-panel__cell h3 {
    font-family: 'StackSansHeadline', sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 400;
    color: #1a4040;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.sp-panel__cell p {
    font-size: clamp(0.78rem, 0.9vw, 0.9rem);
    color: #1a4040;
    margin: 0;
    line-height: 1.5;
}

.sp-panel__link {
    font-size: clamp(0.78rem, 0.9vw, 0.9rem);
    color: #1a4040;
    text-decoration: underline;
    text-underline-offset: 3px;
    line-height: 1.8;
}

.sp-panel__link:hover {
    color: #000;
}

/* Close button */
.sp-panel__close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #1a4040;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease 0.5s;
    pointer-events: none;
}

.sp-panel.active .sp-panel__close {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   MULTI-STEP STAGE SYSTEM
   ============================================ */

.sp-stage {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sp-stage__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sp-stage__overlay.active {
    opacity: 1;
}

.sp-stage__title {
    position: relative;
    color: white;
    font-family: 'StackSansHeadline', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s,
                transform 0.8s ease 0.3s;
}

.sp-stage__title.active {
    opacity: 1;
    transform: translateY(0);
}

.sp-stage__text {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    max-width: 600px;
    text-align: center;
    font-weight: 100;
    line-height: 1.3;
    font-size: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.sp-stage__text--secondary {
    transition-delay: 0.7s;
}

.sp-stage__text.active {
    opacity: 1;
    transform: translateY(0);
}

.sp-stage__image {
    position: relative;
    width: 8%;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

.sp-stage__image.active {
    opacity: 1;
    transform: translateY(0);
}

/* Step 2: Sliding boxes */
.sp-stage__box {
    position: fixed;
    top: 50%;
    height: clamp(320px, 55vh, 520px);
    width: calc(40% - 4rem);
    padding: 4rem 3.5rem;
    color: #2a2a2a;
    background: rgba(198, 231, 166, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 0;
    opacity: 0;
    overflow-y: auto;
    z-index: 20;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.9s ease;
    pointer-events: auto;
}

.sp-stage__box--left {
    left: 0;
    transform: translateY(-50%) translateX(-110%);
}

.sp-stage__box--left.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sp-stage__box--right {
    right: 0;
    transform: translateY(-50%) translateX(110%);
}

.sp-stage__box--right.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sp-stage__box h3 {
    font-family: 'StackSansHeadline', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400;
    color: rgba(85, 85, 85, 1);
}

.sp-stage__box p {
    font-size: clamp(0.78rem, 0.9vw, 0.92rem);
    line-height: 1;
    margin: 0 0 0.3rem 0;
    color: rgba(85, 85, 85, 1);
}

.sp-stage__box p:last-child {
    margin-bottom: 0;
}

/* Step 3: Menu de opções em linha */
.sp-stage__options {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    display: flex;
    flex-direction: row;
    gap: 7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease 0.3s,
                transform 0.8s ease 0.3s,
                bottom 0.5s ease;
    z-index: 1010;
}

.sp-stage__options.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.sp-stage__option {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: white;
    text-decoration: none;
    font-family: 'StackSansHeadline', sans-serif;
    font-weight: 100;
    font-size: clamp(1.4rem, 4vw, 0rem);
    letter-spacing: 0;
    line-height: 1.0;
    cursor: pointer;
    white-space: nowrap;
}

.sp-stage__option::before,
.sp-stage__option::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-stage__option::before {
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

.sp-stage__option::after {
    top: 0;
    opacity: 0;
    transform: translateY(100%);
    color: #b0cf97;
}

.sp-stage__option:hover::before {
    opacity: 0;
    transform: translateY(-100%);
}

.sp-stage__option:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.sp-stage__option span {
    visibility: hidden;
}

.sp-stage__options--vertical {
    top: 50%;
    right: 0;
    left: auto;
    bottom: auto;
    transform: translate(100%, -50%);
    flex-direction: column;
    gap: 0.3rem;
    padding: 2rem 2.5rem 2rem 2rem;
    z-index: 100;
}

.sp-stage__options--vertical.active {
    transform: translate(0, -50%);
}

.sp-stage__option--vertical {
    font-family: inherit;
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    letter-spacing: -2.5px;
}

/* Stage clickable hint */
.sp-stage.sp-stage--clickable {
    pointer-events: auto;
    cursor: pointer;
}

.sp-stage__hint {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 10;
}

.sp-stage__hint.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sp-stage__hint-icon {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sp-hint-pulse 1.8s ease-in-out infinite;
}

.sp-stage__hint-icon::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(-45deg) translateX(-1px);
    display: block;
}

@keyframes sp-hint-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.15); }
}

/* ============================================================
   Footer
   ============================================================ */
.sp-footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    line-height: 1.7;
}

.sp-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
}

/* Coluna brand */
.sp-footer__logo {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.sp-footer__desc {
    color: rgba(255, 255, 255, 0.55);
    max-width: 300px;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
}

/* Redes sociais — quadradas */
.sp-footer__social {
    display: flex;
    gap: 0.5rem;
}

.sp-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sp-footer__social-link:hover {
    background: var(--primary-teal);
    color: #fff;
}

/* Colunas de links */
.sp-footer__heading {
    font-family: 'Questrial', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.1rem;
}

.sp-footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sp-footer__list a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.sp-footer__list a:hover {
    color: var(--primary-teal);
}

/* Morada */
.sp-footer__address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.55);
}

.sp-footer__address a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.sp-footer__address a:hover {
    color: var(--primary-teal);
}

/* Barra inferior */
.sp-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 1.25rem 2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Responsivo */
@media (max-width: 768px) {
    .sp-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sp-footer__desc {
        max-width: 100%;
    }
}

/* ── Back To Top ─────────────────────────────────────────── */
.sp-btt {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 52px;
    height: 72px;
    background: #c6e7a6;
    border: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;

    /* Estado inicial: escondido fora do ecrã à direita */
    transform: translateX(calc(100% + 2rem));
    transition:
        transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1),
        width     0.45s cubic-bezier(0.165, 0.84, 0.44, 1) 0.25s,
        height    0.45s cubic-bezier(0.165, 0.84, 0.44, 1) 0.25s,
        opacity   0.15s ease;
}

/* Fase 1: elemento entra da direita (translateX → 0) */
.sp-btt--entering {
    opacity: 1;
    pointer-events: none;
    transform: translateX(0);
    width: 52px;
    height: 72px;
}

/* Fase 2: quadrado + seta roda */
.sp-btt--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    width: 52px;
    height: 52px;
    transition:
        transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1),
        width     0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
        height    0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity   0.15s ease;
}

.sp-btt:hover {
    background: #b8dfa0;
}

.sp-btt__arrow {
    width: 22px;
    height: 22px;
    color: #000;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
    /* seta aponta para baixo por defeito */
    transform: rotate(0deg);
}

.sp-btt--visible .sp-btt__arrow {
    transform: rotate(180deg);
}

/* ============================================================
   Admin Bar — visível apenas para utilizadores autenticados
   ============================================================ */
.sp-adminbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    height: 36px;
    background: #1a2a3f;
    color: #c8d8e8;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.sp-adminbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 100%;
}

.sp-adminbar__left {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6ccbd6;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.sp-adminbar__icon {
    flex-shrink: 0;
    color: #6ccbd6;
}

.sp-adminbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-adminbar__user {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #a0b4c8;
    font-weight: 400;
}

.sp-adminbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}

.sp-adminbar__btn--edit {
    background: rgba(108, 203, 214, 0.15);
    color: #6ccbd6;
    border: 1px solid rgba(108, 203, 214, 0.25);
}

.sp-adminbar__btn--edit:hover {
    background: rgba(108, 203, 214, 0.28);
    color: #8fdde6;
}

.sp-adminbar__btn--backoffice {
    background: rgba(255,255,255,0.07);
    color: #c8d8e8;
    border: 1px solid rgba(255,255,255,0.1);
}

.sp-adminbar__btn--backoffice:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

/* Empurrar o conteúdo da página quando a admin bar está visível */
body:has(#spAdminBar) {
    padding-top: 36px;
}

/* Empurrar os menus fixos para baixo da admin bar */
body:has(#spAdminBar) .header-main,
body:has(#spAdminBar) .sp-header {
    top: 36px;
}

.sp-contact__form-section button {
    background-color: var(--accent-green) !important;
    padding: 14px !important;
    width: 100%;
    text-align: center !important;
    font-weight: 600 !important;
}