/* Ape Quanto Costa - Absolute Fidelity CSS */

:root {
    /* Marketing Design System Colors */
    --brand-primary: #33AA11;
    --brand-primary-50: #f0f9e8;
    --brand-primary-DEFAULT: #33AA11;
    --brand-primary-600: #2d9310;
    --brand-primary-700: #267c0d;
    --brand-primary-400: #5fb82d;
    --brand-primary-200: #b3e08f;

    --marketing-text-primary: #111827;
    --marketing-text-secondary: #4B5563;
    --marketing-text-tertiary: #9CA3AF;

    --marketing-bg-primary: #FFFFFF;
    --marketing-bg-secondary: #F9FAFB;
    --marketing-bg-tertiary: #F3F4F6;
    --marketing-bg-accent: #f0f9e8;

    --marketing-border-default: #E5E7EB;
    --marketing-border-light: #F3F4F6;
    --marketing-border-dark: #D1D5DB;

    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-600: #dc2626;
}

/* Responsive Container (Standard Industry) */
.container-marketing {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container-marketing {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container-marketing {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

@media (min-width: 1024px) {
    .container-marketing {
        padding-right: 3rem;
        padding-left: 3rem;
    }
}

/* Section Padding (Optimized for Mobile) */
.section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.bg-marketing-secondary {
    background-color: var(--marketing-bg-secondary) !important;
}

/* Gradients */

.bg-gradient-features-green {
    background: linear-gradient(90deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
}

.bg-gradient-logo-cloud {
    background: linear-gradient(180deg, #FAF9F5 0%, #F0EFEB 100%) !important;
}

/* Highlight Animation (Exact from globals.css) */
@keyframes highlight-draw {
    0% {
        background-size: 0% 0.45em;
    }

    100% {
        background-size: 100% 0.45em;
    }
}

.highlight-animated {
    background-image: linear-gradient(0deg, var(--highlight-color, #ffd42a80) 0.45em, transparent 0.45em);
    background-repeat: no-repeat;
    background-position: left bottom 0.08em;
    background-size: 0% 0.45em;
    display: inline-block;
    white-space: nowrap;
    animation: highlight-draw 0.5s ease-out 0.2s forwards;
}

/* Components */
.btn-marketing-primary {
    background-color: var(--brand-primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 200ms;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.btn-marketing-primary:hover {
    background-color: var(--brand-primary-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Usage Cards (Posizionamento Prezzi) - Refined: No Card Effect */
.usage-card {
    background: transparent !important;
    border-radius: 0;
    padding: 0 !important;
    border: none !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: none;
    box-shadow: none !important;
}

.usage-tag.badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.usage-tag-useful {
    background-color: #e0e7ff !important;
    color: #4338ca !important;
}

.usage-tag-success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

.usage-tag-mandatory {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}


/* Warning Cards */
.warning-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    border: 1px solid #fee2e2;
    transition: all 300ms;
    height: 100%;
}

.warning-card:hover {
    border-color: #fecaca;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.05);
}

.warning-icon-wrap {
    height: 3rem;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background-color: #FEF2F2;
}

.warning-icon-wrap i {
    font-size: 1.125rem;
    color: #DC2626 !important;
}

.line-height-1-6 {
    line-height: 1.625;
}

/* Comparison Table Refinements */
.table-comparison th {
    border: none;
}

.table-comparison td {
    padding: 1.5rem;
    border-top: 1px solid var(--marketing-border-default);
}

.bg-brand-primary-50 {
    background-color: var(--brand-primary-50);
}

/* Custom Hero Image Style */
.hero-quanto-costa-img {
    max-height: 600px;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .hero-quanto-costa-img {
        max-height: 550px;
    }
}

@media (max-width: 991px) {
    .hero-quanto-costa-img {
        max-height: 360px;
    }
}