/* =========================================
   GLOBAL WORDPRESS/ELEMENTOR CSS
   Mapeamento do Design System "Il Risveglio"
   ========================================= */

/* Importar fontes do Google Fonts (se ainda não estiver importado no WP) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@600;700;800&display=swap');

/* --- VARIÁVEIS GLOBAIS (Design System) --- */
:root {
    /* Cores */
    --color-bg-primary: #ecf3ea;
    --color-bg-secondary: #ffffff;
    --color-card-bg: rgba(255, 255, 255, 0.95);
    
    --color-primary: #2e7d32;
    --color-primary-light: #4caf50;
    --color-primary-dark: #1b5e20;
    --color-accent-red: #d32f2f;
    --color-warning: #f59e0b;

    --color-text-primary: #1a2e1c;
    --color-text-secondary: #4a5c4c;
    --color-text-light: #ffffff;

    /* Tipografia */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.85rem;
    --text-base: 1rem;
    --text-lg: 1.15rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: clamp(3rem, 5vw, 4.5rem);

    /* Pesos de Fonte */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    /* Espaçamentos */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-section: 100px; /* Novo espaçamento vertical padronizado */
    --container-padding: 24px; /* Responsivo */

    /* Sombras & Bordas */
    --shadow-soft: 0 10px 40px rgba(46, 125, 50, 0.08);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.06);
    --shadow-button: 0 10px 20px rgba(46, 125, 50, 0.3);
    --shadow-button-hover: 0 15px 25px rgba(46, 125, 50, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 50px;
}

/* =========================================
   BASE STYLES
   ========================================= */
html {
    scroll-behavior: smooth;
}

body, .elementor-page {
    background-color: var(--color-bg-primary);
    font-family: var(--font-body);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   CONTAINERS E LAYOUT - OVERRIDES FORÇADOS
   ========================================= */
.container-premium, .container {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.section-padding {
    padding: 60px 24px !important;
}

.bg-primary { background-color: var(--color-bg-primary); }
.bg-white { background-color: var(--color-bg-secondary); }

.bg-parallax {
    background-image: url('https://risvegliomedicinale.fun/wp-content/uploads/2026/04/22-1024x1024.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

.bg-parallax::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(26, 46, 28, 0.85); /* Overlay verde escuro */
    z-index: -1;
}

/* =========================================
   TIPOGRAFIA (TÍTULOS E TEXTOS)
   ========================================= */
h2, .heading-h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px) !important;
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    line-height: 1.1 !important;
    margin-bottom: var(--spacing-md);
    transform: none !important;
    zoom: normal !important;
}

p, .text-body, .text-small, .text-lead {
    font-family: var(--font-body);
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: var(--color-text-secondary);
    transform: none !important;
    zoom: normal !important;
}

.heading-hero {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--weight-extrabold);
    line-height: 1.1;
    color: var(--color-text-primary);
    letter-spacing: -1px;
    margin-bottom: var(--spacing-md);
}

.heading-h3 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px) !important;
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2 !important;
}

.heading-h4 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 24px) !important;
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    line-height: 1.3 !important;
}

.text-highlight {
    color: var(--color-primary);
}

/* =========================================
   BOTÕES (CALL TO ACTIONS)
   ========================================= */
.btn-premium {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-text-light) !important; /* Importante para sobrepor regras do Elementor */
    border: none;
    padding: 18px 40px;
    font-size: var(--text-lg);
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    animation: pulse-animation 2s infinite;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-button-hover);
    color: var(--color-text-light) !important;
    animation: none;
}

.btn-premium.btn-block {
    width: 100%;
}

.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
    padding: 16px 38px; /* Compensar a borda */
    font-size: var(--text-lg);
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light) !important;
}

/* =========================================
   COMPONENTES E CARDS
   ========================================= */
.card-premium, .card {
    background: var(--color-card-bg);
    border-radius: 18px !important;
    padding: 25px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    height: 100% !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.card-premium:hover, .card:hover {
    transform: translateY(-5px);
}

.badge-premium {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(46, 125, 50, 0.2);
    text-transform: uppercase;
}

/* Utilitário para ícones verdes */
.icon-primary {
    color: var(--color-primary);
    fill: var(--color-primary);
}

/* =========================================
   ALINHAMENTOS E DIVIDERS
   ========================================= */
.text-center {
    text-align: center;
}

.icon-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.icon-divider svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =========================================
   GRIDS E LAYOUTS AVANÇADOS
   ========================================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    align-items: stretch;
}

.card-image, .card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 12px; /* leve borda interna na imagem, opcional, mas a card já tem overflow hidden */
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-soft);
}

.grid-cards .card-premium .text-small {
    flex-grow: 1; /* Faz o texto preencher o espaço, empurrando o conteúdo */
    font-size: var(--text-base);
}

/* =========================================
   OFFER BOX (SEÇÃO DE OFERTA / CHECKOUT)
   ========================================= */
.offer-box {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    box-shadow: 0 25px 50px rgba(46, 125, 50, 0.15);
    max-width: 800px;
    margin: var(--spacing-2xl) auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Barra superior na caixa de oferta */
.offer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.price-strikethrough {
    font-size: var(--text-2xl);
    color: var(--color-accent-red);
    text-decoration: line-through;
    font-weight: var(--weight-bold);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.price-highlight {
    font-size: clamp(3.5rem, 8vw, 5rem);
    color: var(--color-primary-dark);
    font-weight: var(--weight-extrabold);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -2px;
}

.price-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    font-weight: var(--weight-medium);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   GUARANTEE BOX (SEÇÃO DE GARANTIA)
   ========================================= */
.guarantee-box {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-warning); /* Gold/Amber color for guarantee */
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.guarantee-box img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
}

@media (max-width: 1024px) {
    .section-padding {
        padding: 50px 20px !important;
    }
    .offer-box, .guarantee-box {
        padding: var(--spacing-xl) var(--spacing-md);
        margin: var(--spacing-xl) auto;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 16px !important;
    }
    h2, .heading-h2 {
        font-size: clamp(24px, 6vw, 32px) !important;
    }
    .grid-cards {
        grid-template-columns: 1fr; /* Coluna única no celular */
        gap: var(--spacing-md);
    }
    .offer-box, .guarantee-box {
        padding: var(--spacing-lg) var(--spacing-sm);
        border-radius: var(--radius-lg);
    }
    .card-premium, .card {
        padding: var(--spacing-md);
    }
}

/* =========================================
   LIBRO CAROUSEL — Elementor / WordPress resets
   ========================================= */
.elementor-widget-container .libro-carousel-section .libro-carousel-arrow,
.libro-carousel-section button.libro-carousel-arrow {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
}

.libro-carousel-section .libro-carousel-wrap {
    max-width: 100%;
}

/* =========================================
   LIBRO CAROUSEL — flat section shell (Elementor / wrapper resets)
   Cards (.libro-carousel-card) keep their shadows.
   ========================================= */
.elementor-section.libro-carousel-section,
section.libro-carousel-section#cosa-troverai-libro {
    background-color: #ecf3ea !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.libro-carousel-section .elementor-container,
.libro-carousel-section .elementor-row,
.libro-carousel-section .elementor-column,
.libro-carousel-section .elementor-column-wrap,
.libro-carousel-section .elementor-widget-wrap,
.libro-carousel-section .elementor-widget-container,
.libro-carousel-section .elementor-widget,
.libro-carousel-section .elementor-element,
.libro-carousel-section .elementor-element-populated,
.libro-carousel-section .e-con,
.libro-carousel-section .e-con-inner,
.libro-carousel-section .elementor-section-content,
.libro-carousel-section .elementor-background-overlay {
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Elementor: overlay da secção (filho direto) pode criar gradiente / “sujeira” por cima do fundo */
.elementor-section.libro-carousel-section > .elementor-background-overlay,
section.libro-carousel-section#cosa-troverai-libro > .elementor-background-overlay {
    background-image: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.elementor-section.libro-carousel-section::before,
.elementor-section.libro-carousel-section::after,
section.libro-carousel-section#cosa-troverai-libro::before,
section.libro-carousel-section#cosa-troverai-libro::after {
    box-shadow: none !important;
    filter: none !important;
}

/* Secção carrossel: sem sombras (override do .card-premium global) */
.libro-carousel-section .card-premium,
.libro-carousel-section .card-premium:hover {
    box-shadow: none !important;
    filter: none !important;
}

.libro-carousel-section .card-premium .card-image,
.libro-carousel-section .card-premium img.card-image,
.libro-carousel-section .grid-cards .card-image {
    box-shadow: none !important;
    filter: none !important;
}
