/* ============================================
   PAGE: INDEX (Homepage)
   ============================================ */

/* Hero Section */
#page-index .hero {
    max-width: none;
    width: 100%;
    height: 90vh;
    background: url('/img/20210810_190737_optimized.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

#page-index .hero-overlay {
    background: rgba(0,0,0,0.55);
    padding: 60px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    transform: translateY(-80px);
    animation: fadeInUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#page-index .hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

#page-index .hero p {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

/* Buttons */
#page-index .btn {
    display: inline-block;
    margin: 10px;
    padding: 15px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#page-index .btn:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #fff !important;
}

#page-index .btn:active {
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#page-index .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-index .btn:hover::before {
    width: 100%;
}

#page-index .btn-primary {
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

#page-index .btn-primary:hover {
    background: #1b5e20;
    box-shadow: 0 8px 25px rgba(46,125,50,0.4);
}

#page-index .btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid rgba(0,0,0,0.05);
}

#page-index .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

/* General Section Styles */
#page-index section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: auto;
}

#page-index h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Grid & Card Styles */
#page-index .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

#page-index .card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#page-index .card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

#page-index .card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

#page-index .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

#page-index .gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
}

#page-index .gallery img:hover {
    transform: scale(1.05);
}

/* CTA & Contactos Styles */
#page-index .cta {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: white;
    text-align: center;
    padding: 20px 15px;
    border-radius: 20px;
}

#page-index .cta h2 {
    margin-bottom: 10px;
}

#page-index .contactos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

#page-index .contact-card {
    background: rgba(255,255,255,0.15);
    padding: 18px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    text-align: left;
    transition: 0.3s;
}

#page-index .contact-card:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

#page-index .contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: #1a1a1a;
}

#page-index .contact-card i {
    margin-right: 12px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
    color: #1a1a1a;
}

#page-index .contact-card:hover i {
    transform: scale(1.3);
}

#page-index .contact-card p {
    margin: 4px 0;
    font-size: 0.95rem;
}

#page-index .cta p {
    margin-top: 10px;
    opacity: 0.9;
}

#page-index .cta-buttons {
    margin-top: 15px;
}

/* Associados Section */
#page-index .associados {
    background: #f9fafb;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    max-width: none !important;
    margin-bottom: 60px;
}

#page-index .associados h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
}

#page-index .instituicoes-associadas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px 20px;
    width: 100%;
}

#page-index .instituicoes-associadas a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 150px;
    transition: opacity 0.3s, transform 0.3s;
}

#page-index .instituicoes-associadas a:hover {
    opacity: 0.75;
    transform: scale(1.05);
}

#page-index .instituicoes-associadas img {
    height: 90px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    #page-index .hero-overlay {
        transform: translateY(0);
        padding: 30px 20px;
        animation: fadeInUpMobile 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }
    
    #page-index .hero h1 {
        font-size: 2rem;
    }
    
    #page-index .hero p {
        font-size: 1rem;
    }

    #page-index .associados {
        padding: 40px 20px;
    }

    #page-index .associados h2 {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    #page-index .instituicoes-associadas {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 30px 10px;
    }

    #page-index .instituicoes-associadas img {
        height: 70px;
        max-width: 150px;
    }
}

@media(max-width: 768px) {
    #page-index section {
        padding: 56px 16px;
    }
    
    #page-index .hero {
        height: 68vh;
    }
    
    #page-index .hero-overlay {
        padding: 26px 18px;
    }
    
    #page-index .hero h1 {
        font-size: 2.1rem;
    }
    
    #page-index .hero p {
        font-size: 1rem;
    }
    
    #page-index .btn {
        padding: 12px 18px;
    }
}

/* Services Slider Banner Section */
#page-index .services-slider-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    background: #0f1a12;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

#page-index .services-slider-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(46,125,50,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#page-index .services-slider-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(46,125,50,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#page-index .services-slide {
    display: none;
    align-items: center;
    padding: 40px 80px;
    gap: 60px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#page-index .services-slide.active {
    display: flex;
    opacity: 1;
}

#page-index .services-slide.fade-in {
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

#page-index .slide-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 260px;
}

#page-index .slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46,125,50,0.2);
    border: 1px solid rgba(46,125,50,0.4);
    color: #81c784;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
}

#page-index .slide-tag i {
    font-size: 0.7rem;
}

#page-index .slide-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -1px;
}

#page-index .slide-title span {
    color: #4caf50;
}

#page-index .slide-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    flex-shrink: 0;
}

#page-index .slide-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#page-index .slide-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 480px;
}

#page-index .slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4caf50;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
}

#page-index .slide-cta:hover {
    color: white;
    gap: 12px;
}

#page-index .slide-cta i {
    font-size: 0.8rem;
}

#page-index .slider-nav {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

#page-index .slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: 0.3s;
    border: none;
    padding: 0;
}

#page-index .slider-dot.active {
    background: #4caf50;
    width: 22px;
    border-radius: 3px;
}

#page-index .slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #2e7d32;
    animation: progress 4s linear infinite;
    z-index: 5;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

@media (max-width: 850px) {
    #page-index .services-slide {
        flex-direction: column;
        padding: 30px 25px;
        gap: 20px;
    }
    
    #page-index .slide-divider {
        display: none;
    }
    
    #page-index .slide-title {
        font-size: 1.5rem;
    }
    
    #page-index .slider-dot {
        display: none;
    }
}

/* Bento Services Grid Section */
#page-index .bento-services-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 80px 20px;
    background: #ffffff;
}

#page-index .bento-services-container {
    max-width: 1280px;
    margin: 0 auto;
}

#page-index .bento-header {
    text-align: center;
    margin-bottom: 50px;
}

#page-index .bento-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 14px;
}

#page-index .bento-header .accent-line {
    width: 40px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 16px;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#page-index .title-wrapper {
    display: inline-block;
    cursor: default;
}

#page-index .title-wrapper:hover .accent-line {
    width: 100%;
}

#page-index .bento-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

#page-index .bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 24px;
}

#page-index .bento-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: #1a1a1a;
}

#page-index .bento-card.large {
    grid-column: span 2;
}

#page-index .bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.85;
}

#page-index .bento-card:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

#page-index .bento-overlay {
    position: absolute;
    inset: auto 20px 20px 20px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    max-height: 62px;
}

#page-index .bento-card:hover .bento-overlay {
    background: rgba(10, 10, 10, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    max-height: 220px;
    border-radius: 8px;
    padding: 24px;
}

#page-index .bento-card h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.4s ease;
}

#page-index .bento-card.large h3 {
    font-size: 1.5rem;
}

#page-index .bento-card h3 i {
    color: #a5d6a7;
    font-size: 1.2rem;
}

#page-index .bento-text {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    opacity: 0;
    margin-top: 15px;
    margin-bottom: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    line-height: 1.5;
    max-width: 85%;
}

#page-index .bento-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-15px) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#page-index .bento-card:hover h3 {
    transform: translateY(0);
}

#page-index .bento-card:hover .bento-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

#page-index .bento-card:hover .bento-arrow {
    opacity: 1;
    transform: translateX(0) rotate(0);
    transition-delay: 0.15s;
}

#page-index .bento-card:hover .bento-arrow:hover {
    background: #2e7d32;
    color: white;
    transform: translateX(3px) rotate(0);
}

#page-index .bento-cta-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: #000;
}

#page-index .bento-cta-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    z-index: 1;
}

#page-index .bento-cta-card:hover img {
    transform: scale(1.05);
    opacity: 0.4;
}

#page-index .bento-cta-content {
    position: absolute;
    inset: 20px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#page-index .bento-cta-card:hover .bento-cta-content {
    background: rgba(10, 10, 10, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

#page-index .bento-cta-content h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

#page-index .bento-cta-content i {
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    transition: color 0.4s ease, transform 0.4s ease;
}

#page-index .bento-cta-card:hover .bento-cta-content i {
    color: #a5d6a7;
    animation: fa-spin 4s infinite linear;
}

#page-index .btn-white {
    background: white;
    color: #2e7d32;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#page-index .bento-cta-card:hover .btn-white {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 950px) {
    #page-index .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #page-index .bento-card.large {
        grid-column: span 2;
    }
}

@media (max-width: 650px) {
    #page-index .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
    
    #page-index .bento-card.large {
        grid-column: span 1;
    }
}

/* Story Teaser Section */
#page-index .story-teaser {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: linear-gradient(145deg, #cde0cd 0%, #b2ccb2 100%);
    padding: 50px 40px;
    border-top: 1px solid rgba(46, 125, 50, 0.08);
    border-bottom: 1px solid rgba(46, 125, 50, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#page-index .story-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 100%, rgba(46, 125, 50, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

#page-index .story-teaser-container {
    max-width: 1250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

#page-index .story-content {
    flex: 1.2;
}

#page-index .story-content .teaser-tag {
    display: inline-block;
    color: #2e7d32;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

#page-index .story-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 18px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

#page-index .story-content p {
    font-size: 1.1rem;
    color: #555;
    max-width: 580px;
    line-height: 1.6;
    margin-bottom: 0;
}

#page-index .story-actions {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
}

#page-index .action-card {
    display: flex;
    align-items: center;
    background: #2e7d32;
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    width: 380px;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    position: relative;
    overflow: visible;
    z-index: 1;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    user-select: none;
}

#page-index .action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1a1a1a;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    border-radius: inherit;
}

#page-index .card-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

#page-index .card-icon i {
    font-size: 1.5rem;
    color: #000000;
    transition: all 0.4s ease;
}

#page-index .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

#page-index .card-title {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: white;
    transition: all 0.4s ease;
}

#page-index .card-subtitle {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-weight: 400;
    transition: all 0.4s ease;
}

#page-index .card-arrow {
    margin-left: 15px;
    opacity: 0.3;
    transition: all 0.4s ease;
    transform: translateX(0);
    color: white;
}

#page-index .card-arrow i {
    font-size: 1.2rem;
}

#page-index .action-card:hover, 
#page-index .action-card:active,
#page-index .action-card:focus {
    box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 0 30px rgba(46, 125, 50, 0.5);
    border-color: #50c878;
    outline: none;
}

#page-index .action-card:active {
    transform: scale(0.98) translateZ(0);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#page-index .action-card:hover::before {
    width: 100%;
}

#page-index .action-card:hover .card-title {
    color: white;
}

#page-index .action-card:hover .card-subtitle {
    color: rgba(255,255,255,0.6);
}

#page-index .action-card:hover .card-icon {
    background: #2e7d32;
    transform: scale(1.1);
}

#page-index .action-card:hover .card-icon i {
    color: #ffffff;
}

#page-index .action-card:hover .card-arrow {
    opacity: 1;
    color: white;
    transform: translateX(10px);
}

@media (max-width: 1200px) {
    #page-index .story-teaser-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    #page-index .story-content p {
        margin: 0 auto;
    }
}

@media (max-width: 850px) {
    #page-index .story-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    #page-index .action-card {
        width: 100%;
        max-width: 450px;
    }
}

/* Newsletter Banner Section */
#page-index .newsletter-banner {
    display: flex;
    align-items: stretch;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    min-height: 160px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#page-index .newsletter-left {
    flex: 1;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    z-index: 2;
}

#page-index .newsletter-left h3 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

#page-index .newsletter-left p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

#page-index .newsletter-icon-wrap {
    position: relative;
    width: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: #2e7d32;
}

#page-index .newsletter-icon-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40px;
    width: calc(100% + 80px);
    height: 100%;
    background: #1a1a1a;
    clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%, 40% 50%);
    z-index: -1;
}

#page-index .newsletter-icon {
    width: 90px;
    height: 90px;
    background: transparent;
    border: 2.5px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
    cursor: pointer;
    text-decoration: none !important;
}

#page-index .newsletter-banner:hover .newsletter-icon {
    transform: rotate(405deg) scale(1.15);
    border-color: rgba(255,255,255,0.9);
}

#page-index .newsletter-icon i {
    transform: rotate(-45deg);
    font-size: 2.2rem;
    color: #1877F2;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-index .newsletter-banner:hover .newsletter-icon i {
    transform: rotate(-405deg);
}

#page-index .newsletter-right {
    flex: 1;
    background: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
}

#page-index .newsletter-right a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none !important;
}

#page-index .newsletter-right a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1a1a1a;
    transition: width 0.4s ease;
    z-index: -1;
}

#page-index .newsletter-right a:hover {
    color: white !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

#page-index .newsletter-right a:hover::before {
    width: 100%;
}

#page-index .newsletter-right a i {
    transition: color 0.3s;
}

@media (max-width: 850px) {
    #page-index .newsletter-banner {
        flex-direction: column;
        min-height: auto;
    }
    
    #page-index .newsletter-left {
        padding: 30px 25px;
    }
    
    #page-index .newsletter-icon-wrap {
        display: none;
    }
    
    #page-index .newsletter-right {
        padding: 25px;
        justify-content: center;
    }
}

/* Contactos Premium Section */
#page-index .contactos-premium {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 60px 40px 0px 40px !important;
    background: white;
}

#page-index .contactos-premium-header {
    text-align: center;
    margin-bottom: 60px;
}

#page-index .contactos-premium-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 14px;
}

#page-index .contactos-premium-header .accent-line {
    width: 40px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 16px;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#page-index .contactos-premium-header .title-wrapper:hover .accent-line {
    width: 100%;
}

#page-index .contactos-premium-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

#page-index .contactos-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto 50px;
}

#page-index .contact-card-premium {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

#page-index .contact-card-premium:hover {
    border-color: #2e7d32;
    box-shadow: 0 20px 45px rgba(46,125,50,0.15);
}

#page-index .contact-icon-circle {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: #f0f7f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: background 0.3s;
}

#page-index .contact-card-premium:hover .contact-icon-circle {
    background: #2e7d32;
}

#page-index .contact-icon-circle i {
    font-size: 1.2rem;
    color: #2e7d32;
    transition: color 0.3s;
}

#page-index .contact-card-premium:hover .contact-icon-circle i {
    color: white;
}

#page-index .contact-card-premium h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2e7d32;
    margin-bottom: 6px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#page-index .contact-card-premium p {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 4px;
    line-height: 1.6;
}

#page-index .contact-card-text .contact-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2e7d32 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

#page-index .contact-card-text .contact-maps-link:visited {
    color: #2e7d32 !important;
    text-decoration: none !important;
}

#page-index .contact-card-text .contact-maps-link:hover {
    color: #1b5e20 !important;
    gap: 10px;
    text-decoration: none !important;
}

#page-index .contact-card-text .contact-maps-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

#page-index .contact-card-text .contact-maps-link:hover i {
    transform: translateX(3px);
}

/* ============================================
   PAGE: SERVIÇOS (Services)
   ============================================ */

/* Buttons */
#page-servicos .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

#page-servicos .btn:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #fff !important;
}

#page-servicos .btn:active {
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#page-servicos .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-servicos .btn:hover::before {
    width: 100%;
}

/* General Section Styles */
#page-servicos section { padding:80px 40px; max-width:1100px; margin:auto; }
#page-servicos h1 { font-size:2.2rem; margin-bottom:20px; }
#page-servicos h2 { font-size:2rem; margin-bottom:15px; }
#page-servicos p { line-height:1.8; margin-bottom:15px; color:#444; }
#page-servicos ul { padding-left:20px; line-height:2; color:#444; }
#page-servicos ul li { margin-bottom:8px; }

#page-servicos .modern-hero { display: flex; min-height: 40vh; width: 100%; max-width: none !important; padding: 0 !important; background: #2e7d32; }
#page-servicos .modern-hero-content { flex: 1; color: white; display: flex; flex-direction: column; justify-content: center; padding: 5% 6%; z-index: 2; }
#page-servicos .modern-hero-content h1 { font-size: clamp(1.5rem, 4.5vw, 2.5rem); margin-bottom: 10px; font-weight: 700; line-height: 1.1; color: white; }
#page-servicos .modern-hero-content p { font-size: clamp(0.85rem, 1.8vw, 1.1rem); opacity: 0.9; max-width: 500px; color: #e8f5e9; margin: 0; line-height: 1.4; }
#page-servicos .modern-hero-image { flex: 1.2; background: url('/img/servicos_hero_optimized.webp') center 45%/cover no-repeat; z-index: 1; border-top-left-radius: 200px; border-bottom-left-radius: 200px; margin: 15px 0 15px -40px; box-shadow: -15px 0 30px rgba(0,0,0,0.15); min-height: 250px; }

/* Modern Hero Section */
@media(max-width: 850px) {
  #page-servicos .modern-hero { min-height: 300px; }
  #page-servicos .modern-hero-content { padding: 30px 40px 30px 20px; }
  #page-servicos .modern-hero-image { border-top-left-radius: 100px; border-bottom-left-radius: 100px; margin-left: -30px; }
}
@media(max-width: 480px) {
  #page-servicos .modern-hero-content h1 { font-size: 1.3rem; }
  #page-servicos .modern-hero-content p { font-size: 0.8rem; }
  #page-servicos .modern-hero-image { border-top-left-radius: 60px; border-bottom-left-radius: 60px; }
}

/* Service Cards Section */
#page-servicos .service { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; margin-bottom:60px; }
#page-servicos .service.alt { direction:rtl; }
#page-servicos .service.alt > * { direction:ltr; }
#page-servicos .service .img-wrap { overflow:hidden; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,0.1); opacity:0; transform:translateX(300px); transition:opacity 0.9s ease, transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94); }
#page-servicos .service.alt .img-wrap { transform:translateX(-300px); }
#page-servicos .service.reveal-visible .img-wrap { opacity:1; transform:translateX(0); }
#page-servicos .service img { width:100%; height:300px; object-fit:cover; display:block; transition:transform 0.5s ease; }
#page-servicos .service .img-wrap:hover img { transform:scale(1.06); }
#page-servicos .service-text h2 { color:#2e7d32; }
#page-servicos .list-box { background:white; border-radius:8px; padding:30px; box-shadow:0 10px 30px rgba(0,0,0,0.05); }
#page-servicos .list-box ul li a { color:#2e7d32; }

@media(max-width: 850px) {
  #page-servicos .service { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  #page-servicos .service.alt { direction: ltr; }
  #page-servicos .service .img-wrap { transform: translateY(50px); order: 1; margin-bottom: 10px; }
  #page-servicos .service.alt .img-wrap { transform: translateY(50px); }
  #page-servicos .service.reveal-visible .img-wrap { transform: translateY(0); }
  #page-servicos .service-text { order: 2; }
}

/* Products Promo Banner Section */
#page-servicos .products-promo-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: #0f1a12;
    background: linear-gradient(135deg, #0f1a12 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
    min-height: 140px;
    margin-bottom: 0 !important;
}

#page-servicos .promo-content {
    flex: 1;
    padding: 20px 80px;
    z-index: 2;
    position: relative;
}

#page-servicos .promo-content h2 {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

#page-servicos .promo-content p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 15px;
    max-width: 500px;
}

#page-servicos .promo-content .btn {
    padding: 10px 25px;
    font-size: 0.8rem;
}

#page-servicos .promo-ticker-wrap {
    flex: 0 0 45%;
    height: 140px;
    position: relative;
    display: flex;
    overflow: hidden;
    background: rgba(0,0,0,0.15);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

#page-servicos .promo-ticker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: tickerScrollVertical 20s linear infinite;
    padding: 10px 20px;
    will-change: transform;
    height: max-content;
}

#page-servicos .ticker-item {
    color: rgba(255,255,255,0.08);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 2px;
    line-height: 0.8;
}

@keyframes tickerScrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@media (max-width: 950px) {
    #page-servicos .products-promo-banner { flex-direction: column; text-align: center; }
    #page-servicos .promo-content { padding: 40px 20px; }
    #page-servicos .promo-content p { margin-left: auto; margin-right: auto; }
    #page-servicos .promo-ticker-wrap { width: 100%; height: 150px; flex: none; mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); }
    #page-servicos .promo-ticker { flex-direction: row; animation: tickerScrollHorizontal 90s linear infinite; align-items: center; width: max-content; }
    #page-servicos .ticker-item { font-size: 2.5rem; }
}

@keyframes tickerScrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   PAGE: ADS (OPP/ADS)
   ============================================ */

/* Buttons */
#page-ads .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

#page-ads .btn:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #fff !important;
}

#page-ads .btn:active {
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#page-ads .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-ads .btn:hover::before {
    width: 100%;
}

/* General Section Styles */
#page-ads section { padding:80px 40px; max-width:1200px; margin:auto; }
#page-ads h1 { font-size:2.2rem; margin-bottom:20px; }

#page-ads .section-header {
    text-align: center;
    margin-bottom: 50px;
}
#page-ads .section-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
#page-ads .section-header .accent-line {
    width: 45px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#page-ads .title-wrapper {
    display: inline-block;
    cursor: default;
}
#page-ads .title-wrapper:hover .accent-line {
    width: 100%;
}

#page-ads p { line-height:1.8; margin-bottom:15px; color:#444; }
#page-ads ul { padding-left:20px; line-height:2; color:#444; margin-bottom:15px; }

#page-ads .gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:30px; }
#page-ads .gallery img { width:100%; height:200px; object-fit:cover; border-radius:8px; transition:0.3s; }
#page-ads .gallery img:hover { transform:scale(1.05); }
#page-ads .main-img { width:100%; max-width:500px; border-radius:8px; margin:20px 0; display:block; }

/* ============================================
   PAGE: COMERCIAL (Commercial)
   ============================================ */

/* Buttons */
#page-comercial .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

#page-comercial .btn:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #fff !important;
}

#page-comercial .btn:active {
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#page-comercial .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-comercial .btn:hover::before {
    width: 100%;
}

#page-comercial section { padding:80px 40px; max-width:1200px; margin:auto; }
#page-comercial h1 { font-size:2.2rem; margin-bottom:20px; }

#page-comercial .section-header {
    text-align: center;
    margin-bottom: 50px;
}
#page-comercial .section-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
#page-comercial .section-header .accent-line {
    width: 45px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#page-comercial .title-wrapper {
    display: inline-block;
    cursor: default;
}
#page-comercial .title-wrapper:hover .accent-line {
    width: 100%;
}

#page-comercial p { line-height:1.8; margin-bottom:15px; color:#444; }
#page-comercial ul { padding-left:20px; line-height:2; color:#444; }

#page-comercial .gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; margin-top:30px; }
#page-comercial .gallery img { width:100%; height:200px; object-fit:cover; border-radius:8px; transition:0.3s; }
#page-comercial .gallery img:hover { transform:scale(1.05); }
#page-comercial .main-img { width:100%; max-width:750px; border-radius:8px; margin:20px auto; display:block; }
#page-comercial .entregas-box { text-align:center; }

/* ============================================
   PAGE: FORMAÇÃO (Training)
   ============================================ */

/* Buttons */
#page-formacao .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

#page-formacao .btn:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #fff !important;
}

#page-formacao .btn:active {
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#page-formacao .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-formacao .btn:hover::before {
    width: 100%;
}

#page-formacao section { padding:80px 40px; max-width:1200px; margin:auto; }
#page-formacao h1 { font-size:2.2rem; margin-bottom:20px; }

#page-formacao .section-header {
    text-align: center;
    margin-bottom: 50px;
}
#page-formacao .section-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
#page-formacao .section-header .accent-line {
    width: 45px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#page-formacao .title-wrapper {
    display: inline-block;
    cursor: default;
}
#page-formacao .title-wrapper:hover .accent-line {
    width: 100%;
}

#page-formacao p { line-height:1.8; margin-bottom:15px; color:#444; }
#page-formacao ul { padding-left:20px; line-height:2; color:#444; margin-bottom:15px; }

#page-formacao .gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:30px; margin-bottom:40px; }
#page-formacao .gallery img { width:100%; height:200px; object-fit:cover; border-radius:8px; transition:0.3s; }
#page-formacao .gallery img:hover { transform:scale(1.02); }

/* ============================================
   PAGE: SOBRE (About)
   ============================================ */

/* Buttons */
#page-sobre .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

#page-sobre .btn:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #fff !important;
}

#page-sobre .btn:active {
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#page-sobre .btn i {
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

#page-sobre .btn:hover i {
    transform: translateX(5px);
}

#page-sobre .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-sobre .btn:hover::before {
    width: 100%;
}

/* General Section Styles */
#page-sobre section { padding:80px 40px; max-width:1300px; margin:auto; }
#page-sobre h1 { font-size:2.2rem; margin-bottom:20px; }

#page-sobre .section-header {
    text-align: center;
    margin-bottom: 50px;
}
#page-sobre .section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
#page-sobre .section-header .accent-line {
    width: 45px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#page-sobre .title-wrapper {
    display: inline-block;
    cursor: default;
}
#page-sobre .title-wrapper:hover .accent-line {
    width: 100%;
}
#page-sobre .section-header p {
    color: #666;
    font-size: 1rem;
    margin: 15px auto 0;
    max-width: 700px;
}

#page-sobre p { line-height:1.8; margin-bottom:15px; color:#444; }

#page-sobre .modern-hero { display: flex; min-height: 40vh; width: 100%; max-width: none !important; padding: 0 !important; background: #2e7d32; }
#page-sobre .modern-hero-content { flex: 1; color: white; display: flex; flex-direction: column; justify-content: center; padding: 5% 6%; z-index: 2; }
#page-sobre .modern-hero-content h1 { font-size: clamp(1.5rem, 4.5vw, 2.5rem); margin-bottom: 10px; font-weight: 700; line-height: 1.1; color: white; }
#page-sobre .modern-hero-content p { font-size: clamp(0.85rem, 1.8vw, 1.1rem); opacity: 0.9; max-width: 500px; color: #e8f5e9; margin: 0; line-height: 1.4; }
#page-sobre .modern-hero-image { flex: 1.2; background: url('/img/cass.webp') center 0%/115% no-repeat; z-index: 1; border-top-left-radius: 200px; border-bottom-left-radius: 200px; margin: 15px 0 15px -50px; box-shadow: -15px 0 30px rgba(0,0,0,0.15); min-height: 250px; }

@media(max-width: 850px) {
  #page-sobre .modern-hero { min-height: 300px; }
  #page-sobre .modern-hero-content { padding: 80px 40px 30px 20px; }
  #page-sobre .modern-hero-image { border-top-left-radius: 100px; border-bottom-left-radius: 100px; margin-left: -30px; background-size: cover !important; background-position: center center !important; }
}

@media(max-width: 768px) {
  #page-sobre .modern-hero-content { padding: 80px 20px 30px 20px; }
}

#page-sobre .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:30px}
#page-sobre .card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 2px solid #2e7d32;
}

#page-sobre .card:hover {
    border-color: #50c878;
    box-shadow: 0 25px 60px rgba(46, 125, 50, 0.2), 0 0 20px rgba(80, 200, 120, 0.5);
}

#page-sobre .distingue-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1.5px solid #2e7d32;
    position: relative;
    overflow: hidden;
}

#page-sobre .distingue-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border-color: #1b5e20;
    background: #f9fdf9;
}

#page-sobre .distingue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #50c878;
    opacity: 1;
}

#page-sobre .distingue-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-size: 1.4rem;
}

#page-sobre .distingue-card p {
    margin-top: 0;
    color: #555;
    font-size: 0.95rem;
}

#page-sobre .card h3 {margin-top: 0; margin-bottom: 8px;}
#page-sobre .card p {margin-top: 0;}
#page-sobre .card p:last-child {margin-bottom: 0;}
#page-sobre .card strong{color:#2e7d32;}
#page-sobre .distingue-card strong { color: #50c878; }
#page-sobre .team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

#page-sobre .team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 25px; height: 25px;
    border-top: 2px solid #2e7d32;
    border-left: 2px solid #2e7d32;
    transition: all 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

#page-sobre .team-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 25px; height: 25px;
    border-bottom: 2px solid #2e7d32;
    border-right: 2px solid #2e7d32;
    transition: all 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

#page-sobre .team-card:hover {
    box-shadow: 0 25px 50px rgba(46, 125, 50, 0.2);
}

#page-sobre .team-card:hover::before,
#page-sobre .team-card:hover::after {
    width: 100%;
    height: 100%;
    border-color: #1b5e20;
}

#page-sobre .team-card .img-wrap { 
    position: relative; 
    overflow: hidden;
    background: #1a1a1a;
}

#page-sobre .team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backface-visibility: hidden;
    will-change: transform;
}

#page-sobre .team-card:hover img {
    transform: scale(1.1);
}

#page-sobre .team-card h3 {
    padding: 20px 20px 5px 20px;
    margin: 0;
    font-size: 1.25rem;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#page-sobre .team-card:hover h3 {
    color: #2e7d32;
    transform: translateX(3px);
}

#page-sobre .team-card p {
    padding: 0 20px 20px 20px;
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

#page-sobre .quote{ background: linear-gradient(135deg, #2e7d32 0%, #43a047 60%, #66bb6a 100%); color: white; border-radius: 16px; padding: 28px 32px 22px; position: relative; overflow: hidden; box-shadow: 0 12px 40px rgba(46,125,50,0.22); }
#page-sobre .quote::before { content: '\201C'; position: absolute; top: -10px; left: 20px; font-size: 7rem; color: rgba(255,255,255,0.1); font-family: Georgia, serif; line-height: 1; pointer-events: none; }
#page-sobre .quote p { color: rgba(255,255,255,0.93); line-height: 1.75; margin-bottom: 12px; font-size: 0.97rem; font-style: italic; }
#page-sobre .quote-divider { border: none; border-top: 1px solid rgba(255,255,255,0.3); margin: 16px 0; }
#page-sobre .quote-author { display: flex; align-items: center; gap: 12px; }
#page-sobre .quote-author-icon { width: 38px; height: 38px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#page-sobre .quote-author-icon i { font-size: 1rem; color: white; }
#page-sobre .quote-author-text strong { display: block; color: white; font-size: 0.95rem; font-weight: 700; }
#page-sobre .quote-author-text span { color: rgba(255,255,255,0.75); font-size: 0.82rem; }

#page-sobre .trust-banner-wrapper {
    background: linear-gradient(145deg, #cde0cd 0%, #b2ccb2 100%);
    width: 100%;
    max-width: none !important;
    padding: 60px 20px !important;
    margin: 20px 0 60px 0;
    border-top: 1px solid rgba(46, 125, 50, 0.1);
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}
#page-sobre .trust-banner-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
}
#page-sobre .trust-item {
    flex: 1;
    min-width: 200px;
    transition: transform 0.3s ease;
    cursor: default;
}
#page-sobre .trust-item:hover {
    transform: scale(1.1) translateY(-5px);
}
#page-sobre .trust-item h3 {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -2px;
    transition: color 0.3s ease;
}
#page-sobre .trust-item:hover h3 {
    color: #2e7d32;
}
#page-sobre .trust-item p {
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
@media (max-width: 768px) {
    #page-sobre .trust-banner-wrapper { padding: 40px 20px !important; margin: 20px 0 40px 0; }
    #page-sobre .trust-item { min-width: 40%; }
    #page-sobre .trust-item h3 { font-size: 2.8rem; }
}

#page-sobre .organs-grid { display: grid; grid-template-columns: auto auto auto; gap: 30px; margin-top: 25px; }
#page-sobre .organ-column:not(:last-child) { border-right: 2px solid rgba(46, 125, 50, 0.15); padding-right: 20px; }
@media (max-width: 950px) {
  #page-sobre .organs-grid { grid-template-columns: 1fr; gap: 30px; }
  #page-sobre .organ-column:not(:last-child) { border-right: none; border-bottom: 2px solid rgba(46, 125, 50, 0.15); padding-right: 0; padding-bottom: 20px; }
}

/* ============================================
   PAGE: SÓCIOS (Members)
   ============================================ */

/* Buttons */
#page-socios .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

#page-socios .btn:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #fff !important;
}

#page-socios .btn:active {
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#page-socios .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-socios .btn:hover::before {
    width: 100%;
}

#page-socios section { padding:80px 40px; max-width:1200px; margin:auto; }
#page-socios h1 { font-size:2.2rem; margin-bottom:20px; }

#page-socios .section-header {
    text-align: center;
    margin-bottom: 50px;
}
#page-socios .section-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
#page-socios .section-header .accent-line {
    width: 45px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#page-socios .title-wrapper {
    display: inline-block;
    cursor: default;
}
#page-socios .title-wrapper:hover .accent-line {
    width: 100%;
}

#page-socios p { line-height:1.8; margin-bottom:15px; color:#444; }
#page-socios ul { padding-left:20px; line-height:2; color:#444; margin-bottom:15px; }

#page-socios .gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:30px; margin-bottom:40px; }
#page-socios .gallery img { width:100%; height:200px; object-fit:cover; border-radius:8px; transition:0.3s; }
#page-socios .gallery img:hover { transform:scale(1.02); }

/* ============================================
   PAGE: PRODUTOS (Products)
   ============================================ */

/* Buttons */
#page-produtos .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

#page-produtos .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #fff !important;
}

#page-produtos .btn:active {
    transform: translateY(-1px);
}

#page-produtos .btn::after {
    content: '';
    position: absolute;
    top: -15px; bottom: -15px;
    left: 0; right: 0;
    z-index: -1;
}

#page-produtos .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-produtos .btn:hover::before {
    width: 100%;
}

/* General Section Styles */
#page-produtos section { padding:80px 40px; max-width:1200px; margin:auto; }
#page-produtos h1 { font-size:2.2rem; margin-bottom:20px; }

#page-produtos .section-header {
    text-align: center;
    margin-bottom: 50px;
}
#page-produtos .section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
#page-produtos .section-header .accent-line {
    width: 45px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#page-produtos .title-wrapper {
    display: inline-block;
    cursor: default;
}
#page-produtos .title-wrapper:hover .accent-line {
    width: 100%;
}

#page-produtos p { line-height:1.8; margin-bottom:15px; color:#444; }

#page-produtos .modern-hero { display: flex; min-height: 40vh; width: 100%; max-width: none !important; padding: 0 !important; background: #2e7d32; }
#page-produtos .modern-hero-content { flex: 1; color: white; display: flex; flex-direction: column; justify-content: center; padding: 5% 6%; z-index: 2; }
#page-produtos .modern-hero-content h1 { font-size: clamp(1.5rem, 4.5vw, 2.5rem); margin-bottom: 10px; font-weight: 700; line-height: 1.1; color: white; }
#page-produtos .modern-hero-content p { font-size: clamp(0.85rem, 1.8vw, 1.1rem); opacity: 0.9; max-width: 500px; color: #e8f5e9; margin: 0; line-height: 1.4; }
#page-produtos .modern-hero-image { flex: 1.2; background: url('/img/produtos_hero_optimized.webp') center/cover no-repeat; z-index: 1; border-top-left-radius: 200px; border-bottom-left-radius: 200px; margin: 15px 0 15px -40px; box-shadow: -15px 0 30px rgba(0,0,0,0.15); min-height: 250px; }

@media(max-width: 850px) {
  #page-produtos .modern-hero { min-height: 300px; }
  #page-produtos .modern-hero-content { padding: 30px 40px 30px 20px; }
  #page-produtos .modern-hero-image { border-top-left-radius: 100px; border-bottom-left-radius: 100px; margin-left: -30px; }
}

@media(max-width: 768px) {
  #page-produtos .modern-hero-content { padding: 80px 20px 30px 20px; }
}

@media(max-width: 480px) {
  #page-produtos .modern-hero-content h1 { font-size: 1.3rem; }
  #page-produtos .modern-hero-content p { font-size: 0.8rem; }
  #page-produtos .modern-hero-image { border-top-left-radius: 60px; border-bottom-left-radius: 60px; }
}

#page-produtos .produtos-lista h2 { margin-bottom:30px; }
#page-produtos .produtos-lista .caixa { background:white; border-radius:8px; padding:35px 40px; box-shadow:0 10px 30px rgba(0,0,0,0.06); border:1px solid #e8f5e9; }
#page-produtos .produtos-lista ul { list-style:none; padding:0; columns:2; column-gap:40px; }
#page-produtos .produtos-lista ul li { padding:8px 0; border-bottom:1px solid #f0f0f0; font-size:0.97rem; color:#333; display:flex; align-items:center; gap:10px; break-inside:avoid; }
#page-produtos .produtos-lista ul li::before { content:'\f058'; font-family:'Font Awesome 6 Free'; font-weight:900; color:#2e7d32; font-size:0.85rem; flex-shrink:0; }
@media(max-width:600px){ #page-produtos .produtos-lista ul { columns:1; } }

#page-produtos .cta-modern {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: #0f1a12;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    padding: 35px 20px;
    padding-bottom: 35px !important;
    margin-bottom: 0 !important;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#page-produtos .cta-modern h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

#page-produtos .cta-modern p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

#page-produtos .cta-modern .cta-a {
    display: inline-block;
    padding: 14px 35px;
    background: white;
    color: #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

#page-produtos .cta-modern .cta-a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-produtos .cta-modern .cta-a:hover {
    color: #fff !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

#page-produtos .cta-modern .cta-a:hover::before {
    width: 100%;
}

@media (max-width: 768px) {
    #page-produtos .cta-modern h2 { font-size: 2rem; }
    #page-produtos .cta-modern p { font-size: 1rem; }
}

/* Services Slider Banner for produtos page */
#page-produtos .services-slider-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    background: #0f1a12;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

#page-produtos .services-slider-banner::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(46,125,50,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#page-produtos .services-slider-banner::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(46,125,50,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#page-produtos footer {
    margin-top: 0 !important;
}

#page-produtos .services-slide {
    display: none;
    align-items: center;
    padding: 40px 80px;
    gap: 60px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#page-produtos .services-slide.active {
    display: flex;
    opacity: 1;
}

#page-produtos .services-slide.fade-in {
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

#page-produtos .slide-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 260px;
}

#page-produtos .slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46,125,50,0.2);
    border: 1px solid rgba(46,125,50,0.4);
    color: #81c784;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
}

#page-produtos .slide-tag i { font-size: 0.7rem; }

#page-produtos .slide-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -1px;
}

#page-produtos .slide-title span {
    color: #4caf50;
}

#page-produtos .slide-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    flex-shrink: 0;
}

#page-produtos .slide-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#page-produtos .slide-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 480px;
}

#page-produtos .slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4caf50;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
}

#page-produtos .slide-cta:hover { color: white; gap: 12px; }
#page-produtos .slide-cta i { font-size: 0.8rem; }

#page-produtos .slider-nav {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

#page-produtos .slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: 0.3s;
    border: none;
    padding: 0;
}

#page-produtos .slider-dot.active {
    background: #4caf50;
    width: 22px;
    border-radius: 3px;
}

#page-produtos .slider-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: #2e7d32;
    animation: progress 4s linear infinite;
    z-index: 5;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

@media (max-width: 850px) {
    #page-produtos .services-slide { flex-direction: column; padding: 30px 25px; gap: 20px; }
    #page-produtos .slide-divider { display: none; }
    #page-produtos .slide-title { font-size: 1.5rem; }
    #page-produtos .slider-dot { display: none; }
}

/* ============================================
   PAGE: NOTÍCIAS (News)
   ============================================ */

/* General Section Styles */
#page-noticias section { padding:80px 40px; max-width:1220px; margin:auto; }
#page-noticias h1 { font-size:2.2rem; margin-bottom:20px; }
#page-noticias h2 { font-size:2rem; margin-bottom:20px; }
#page-noticias p { line-height:1.8; margin-bottom:15px; color:#444; }

#page-noticias .modern-hero {
  display: flex;
  min-height: 40vh;
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
  background: #2e7d32;
}
#page-noticias .modern-hero-content {
  flex: 1;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5% 6%;
  z-index: 2;
}
#page-noticias .modern-hero-content h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.1;
  color: white;
}
#page-noticias .modern-hero-content p {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  opacity: 0.9;
  max-width: 500px;
  color: #e8f5e9;
  margin: 0;
  line-height: 1.4;
}
#page-noticias .modern-hero-image {
  flex: 1.2;
  background: url('/img/noticias_hero_optimized.webp') center 40%/cover no-repeat;
  z-index: 1;
  border-top-left-radius: 200px;
  border-bottom-left-radius: 200px;
  margin: 15px 0 15px -40px;
  box-shadow: -15px 0 30px rgba(0,0,0,0.15);
  min-height: 250px;
}
@media(max-width: 850px) {
  #page-noticias .modern-hero { min-height: 300px; }
  #page-noticias .modern-hero-content { padding: 30px 40px 30px 20px; }
  #page-noticias .modern-hero-image {
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    margin-left: -30px;
  }
}
@media(max-width: 480px) {
  #page-noticias .modern-hero-content h1 { font-size: 1.3rem; }
  #page-noticias .modern-hero-content p { font-size: 0.8rem; }
  #page-noticias .modern-hero-image { border-top-left-radius: 60px; border-bottom-left-radius: 60px; }
}

#page-noticias .noticias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
#page-noticias .fb-post-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #e8f5e9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}
#page-noticias .fb-post-container iframe {
  border: none;
  overflow: hidden;
  display: block;
  width: 500px !important;
  max-width: 100% !important;
  min-height: 500px;
  border-radius: 8px;
}
@media(max-width: 900px) {
  #page-noticias .noticias-grid { grid-template-columns: 1fr; }
}

#page-noticias #loadMoreBtn {
    display: block;
    margin: 40px auto 0;
    padding: 15px 35px;
    background: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
#page-noticias #loadMoreBtn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: #1a1a1a;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}
#page-noticias #loadMoreBtn:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: white;
}
#page-noticias #loadMoreBtn:hover::before {
    width: 100%;
}

/* FB Consent Modal */
#page-noticias #fb-consent-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}
#page-noticias #fb-consent-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
#page-noticias .fb-consent-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  margin: 20px;
}
#page-noticias .fb-consent-box h3 {
  margin-top: 0;
  color: #2e7d32;
  font-size: 1.5rem;
}
#page-noticias .fb-consent-box p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 25px;
}
#page-noticias .fb-consent-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
#page-noticias .fb-btn-accept {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
#page-noticias .fb-btn-accept:hover { background: #1b5e20; }
#page-noticias .fb-btn-reject {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
#page-noticias .fb-btn-reject:hover { background: #ddd; }
#page-noticias .fb-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: #f9f9f9;
  color: #888;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* ============================================
   PAGE: AVISOS LEGAIS (Legal Notices)
   ============================================ */

#page-avisos-legais { font-family:'Inter',sans-serif; color:#1a1a1a; background:#f9fafb; padding:60px 20px; }
#page-avisos-legais .brand img { width:auto; max-width: 275px; height:auto; object-fit:contain; display:block; }
#page-avisos-legais .container { max-width:820px; margin:0 auto; }
#page-avisos-legais header { display:flex; justify-content:space-between; align-items:center; padding:2px 40px; background:white; position:fixed; top:0; left:0; width:100%; box-shadow:0 4px 20px rgba(0,0,0,0.05); z-index: 2000; transition:0.3s ease; }
#page-avisos-legais .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 15px 32px;
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#page-avisos-legais .back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-avisos-legais .back-btn:hover {
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

#page-avisos-legais .back-btn:hover::before {
    width: 100%;
}

#page-avisos-legais .legal-box { background:white; border-radius:8px; padding:50px; box-shadow:0 10px 40px rgba(0,0,0,0.06); border:1px solid #e8f5e9; }
#page-avisos-legais h1 { font-size:2rem; color:#2e7d32; margin-bottom:30px; border-bottom:2px solid #e8f5e9; padding-bottom:15px; }
#page-avisos-legais h2 { font-size:1.2rem; color:#2e7d32; margin:30px 0 10px; }
#page-avisos-legais p { line-height:1.8; color:#444; margin-bottom:12px; font-size:0.97rem; }
#page-avisos-legais ul { padding-left:20px; margin-bottom:15px; }
#page-avisos-legais ul li { line-height:2; color:#444; font-size:0.97rem; }
#page-avisos-legais a { color:#2e7d32; }

@media(max-width:600px){ #page-avisos-legais .legal-box { padding:30px 20px; } }

/* ============================================
   PAGE: 404 ERROR PAGE
   ============================================ */

#page-404 .container-404 {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

#page-404 .error-content {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 2px solid #e8f5e9;
}

#page-404 .error-code {
    font-size: 8rem;
    font-weight: 800;
    color: #2e7d32;
    margin: 0;
    line-height: 1;
    letter-spacing: -5px;
}

#page-404 .error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 15px;
}

#page-404 .error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

#page-404 .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 15px 32px;
    background: #2e7d32;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#page-404 .back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

#page-404 .back-btn:hover {
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

#page-404 .back-btn:hover::before {
    width: 100%;
}

@media(max-width: 600px) {
    #page-404 .container-404 {
        padding: 60px 20px;
    }
    #page-404 .error-content {
        padding: 40px 25px;
    }
    #page-404 .error-code {
        font-size: 5rem;
    }
    #page-404 .error-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   PAGE: HISTÓRIA (History)
   ============================================ */

/* General Section Styles */
#page-historia section { padding:80px 40px; max-width:1100px; margin:auto; }
#page-historia h1 { font-size:2.2rem; margin-bottom:20px; }
#page-historia h2 { font-size:2rem; margin-top:60px; margin-bottom:20px; }
#page-historia p { line-height:1.8; margin-bottom:15px; color:#444; }
#page-historia ul { padding-left:20px; line-height:2; color:#444; margin-bottom:15px; }

@media(max-width:768px){ #page-historia section{padding:56px 16px;} }

/* Distingue Banner Section */
#page-historia .distingue-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: linear-gradient(rgba(26, 26, 26, 0.75), rgba(26, 26, 26, 0.75)), url('/img/Cassepedro_Visao-Geral-Cooperativa-AP-SPS_adapt.jpg') center 55%/cover;
    padding: 50px 40px;
    color: white;
    margin-top: 40px;
    margin-bottom: 0;
    position: relative;
    border-top: 4px solid #2e7d32;
    display: flex;
    justify-content: center;
    align-items: center;
}

#page-historia .distingue-banner-container {
    max-width: 1250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
    text-align: left;
}

#page-historia .distingue-content { flex: 1.2; }

#page-historia .distingue-banner .teaser-tag {
    display: inline-block;
    color: #a5d6a7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    margin-bottom: 20px;
}

#page-historia .distingue-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 18px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -1px;
}

#page-historia .distingue-banner p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 650px;
}

#page-historia .btn-distingue {
    display: inline-flex;
    align-items: center;
    background: #2e7d32;
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    width: 380px;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    flex-shrink: 0;
}

#page-historia .btn-distingue::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 100%;
    background: #1a1a1a;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    border-radius: inherit;
}

#page-historia .btn-distingue:hover {
    color: white !important;
    border-color: #50c878;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

#page-historia .btn-distingue:hover::before {
    width: 100%;
}

#page-historia .btn-distingue .card-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

#page-historia .btn-distingue .card-icon i {
    font-size: 1.3rem;
    color: #000000;
    transition: all 0.4s ease;
}

#page-historia .btn-distingue .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

#page-historia .btn-distingue .card-title {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#page-historia .btn-distingue .card-arrow {
    margin-left: 15px;
    opacity: 0.3;
    transition: all 0.4s ease;
}

#page-historia .btn-distingue .card-subtitle {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-weight: 400;
    transition: all 0.4s ease;
}

#page-historia .btn-distingue:hover .card-subtitle { color: rgba(255,255,255,0.7); }
#page-historia .btn-distingue:hover .card-icon { background: #2e7d32; }
#page-historia .btn-distingue:hover .card-icon i { color: #ffffff; transform: scale(1.1); }
#page-historia .btn-distingue:hover .card-arrow { opacity: 1; transform: translateX(5px); color: white; }

@media (max-width: 1150px) {
    #page-historia .distingue-banner { padding: 60px 20px; text-align: center; }
    #page-historia .distingue-banner-container { flex-direction: column; gap: 35px; text-align: center; }
    #page-historia .distingue-content { flex: none; width: 100%; }
    #page-historia .distingue-banner p { margin: 0 auto; }
    #page-historia .btn-distingue { width: 100%; max-width: 400px; padding: 20px; }
}

@media (max-width: 768px) {
    #page-historia .distingue-banner h2 { font-size: 2.1rem; }
    #page-historia .btn-distingue .card-title { font-size: 0.9rem; }
}

#page-historia .section-header {
    text-align: center;
    margin-bottom: 50px;
}
#page-historia .section-header h1, #page-historia .section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 10px;
}
#page-historia .section-header .accent-line {
    width: 45px;
    height: 3px;
    background: #2e7d32;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#page-historia .title-wrapper {
    display: inline-block;
    cursor: default;
}
#page-historia .title-wrapper:hover .accent-line {
    width: 100%;
}

/* ============================================
   ADDITIONAL INDEX PAGE STYLES
   (Moved from end of file for better organization)
   ============================================ */

/* Contact Cards Premium Section */
#page-index .contact-card-premium p:last-child {
    margin-bottom: 0;
}

#page-index .contactos-cta {
    text-align: center;
}

#page-index .contactos-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1877F2;
    color: white;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none !important;
}

#page-index .contactos-cta a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1a1a1a;
    transition: width 0.4s ease;
    z-index: -1;
}

#page-index .contactos-cta a:hover {
    box-shadow: 0 15px 35px rgba(24, 119, 242, 0.4);
}

#page-index .contactos-cta a:hover::before {
    width: 100%;
}

/* Contact Cards Grid Responsive */
@media (max-width: 900px) {
    #page-index .contactos-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    #page-index .contactos-cards-grid {
        grid-template-columns: 1fr;
    }
    
    #page-index .contactos-premium {
        padding: 60px 20px !important;
    }
    
    #page-index .contactos-premium-header h2 {
        font-size: 1.8rem;
    }
}

/* Associados Section Adjustment */
#page-index .associados {
    padding-top: 15px !important;
}

/* Social Banner Section */
#page-index .social-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: transparent;
    padding: 40px 20px 40px 20px;
    border-bottom: 1px solid #e8f0e8;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 0px;
    position: relative;
    z-index: 2;
}

#page-index .social-banner-header h2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 20px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* Social Pills Section */
#page-index .social-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#page-index .social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
}

#page-index .social-pill i {
    font-size: 1.05rem;
    transition: transform 0.5s ease;
    z-index: 2;
}

#page-index .pill-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5cbf 100%);
}

#page-index .pill-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

#page-index .pill-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

#page-index .social-pill:hover {
    transform: scale(1.15);
}

#page-index .social-pill:hover i {
    transform: rotate(360deg);
}

#page-index .pill-facebook:hover {
    box-shadow: 0 8px 20px rgba(24,119,242,0.4);
}

#page-index .pill-instagram:hover {
    box-shadow: 0 8px 20px rgba(220,39,67,0.4);
}

#page-index .pill-whatsapp:hover {
    box-shadow: 0 8px 20px rgba(37,211,102,0.4);
}

/* Social Pills Responsive */
@media (max-width: 600px) {
    #page-index .social-pills {
        gap: 15px;
    }
    
    #page-index .social-pill {
        width: 42px;
        height: 42px;
    }
    
    #page-index .social-pill i {
        font-size: 1.05rem;
    }
}

/* WhatsApp Float Button Section */
#page-index .whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 3000;
  text-decoration: none;
  transition: 0.3s ease;
}

#page-index .whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  color: white;
}

@media (max-width: 768px) {
  #page-index .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 26px;
  }
}
