/* ==========================================================================
   SEARCH CONTENT STYLES
   Stili per le pagine di contenuto (guide, FAQ, glossario, pagine)
   Funziona su tutti i brand tramite variabili CSS --brand-*
   ========================================================================== */

/* --------------------------------------------------------------------------
   CTA BOX — Pulsante principale evidenziato
   -------------------------------------------------------------------------- */
.content-cta-box {
    background: linear-gradient(135deg, var(--brand-primary, #c31949) 0%, var(--brand-secondary, #a01437) 100%);
    border-radius: 16px;
    padding: 35px 40px;
    text-align: center;
    margin: 30px 0;
    color: #fff;
}

.content-cta-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.content-cta-box p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    color: #fff;
}

.content-btn-primary {
    display: inline-block;
    background: #fff;
    color: var(--brand-primary, #c31949);
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.content-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: var(--brand-primary, #c31949);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   ALERT BOXES
   -------------------------------------------------------------------------- */
.content-alert {
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
}

.content-alert strong {
    display: block;
    margin-bottom: 4px;
}

.content-alert-success {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.content-alert-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.content-alert-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.content-alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* --------------------------------------------------------------------------
   TABELLE
   -------------------------------------------------------------------------- */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.content-table th {
    background: var(--brand-primary, #c31949);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.content-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.content-table tr:nth-child(even) td {
    background: #f9fafb;
}

.content-table tr:hover td {
    background: var(--brand-primary-light, #fde8ef);
}

.content-table-highlight td {
    background: var(--brand-primary-light, #fde8ef) !important;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   CATEGORIE PRODOTTI GRID
   -------------------------------------------------------------------------- */
.content-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.content-category-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.content-category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-primary, #c31949);
    margin-bottom: 10px;
}

.content-category-card p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.content-category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-category-card ul li {
    font-size: 13px;
    color: #374151;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.content-category-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-primary, #c31949);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   SECURITY GRID
   -------------------------------------------------------------------------- */
.content-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.content-security-level {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.content-security-max {
    background: var(--brand-primary-light, #fde8ef);
    border-color: var(--brand-primary, #c31949);
}

.content-security-level h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.content-security-level p {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0;
}

/* --------------------------------------------------------------------------
   EXAMPLE CARDS
   -------------------------------------------------------------------------- */
.content-example-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--brand-primary, #c31949);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.content-example-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.content-example-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-example-card ul li {
    font-size: 14px;
    color: #374151;
    padding: 4px 0;
}

/* --------------------------------------------------------------------------
   TIMELINE
   -------------------------------------------------------------------------- */
.content-timeline {
    position: relative;
    padding: 10px 0;
    margin: 20px 0;
}

.content-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.content-timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
}

.content-timeline-dot {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--brand-primary, #c31949);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    z-index: 1;
}

.content-timeline-dot.active {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.content-timeline-content {
    padding-top: 8px;
}

.content-timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.content-timeline-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   ORDER STATES
   -------------------------------------------------------------------------- */
.content-order-states {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.content-order-state {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.content-state-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 160px;
    text-align: center;
}

.content-state-badge.pending    { background: #fef3c7; color: #92400e; }
.content-state-badge.confirmed  { background: #d1fae5; color: #065f46; }
.content-state-badge.processing { background: #dbeafe; color: #1e40af; }
.content-state-badge.shipped    { background: #ede9fe; color: #5b21b6; }
.content-state-badge.delivered  { background: #d1fae5; color: #065f46; }

.content-order-state p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* --------------------------------------------------------------------------
   CARRIERS GRID
   -------------------------------------------------------------------------- */
.content-carriers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.content-carrier-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.content-carrier-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.content-carrier-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.content-carrier-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   CONFIRM STEPS
   -------------------------------------------------------------------------- */
.content-steps-confirm {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.content-step-confirm {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 18px 20px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.content-step-confirm.active {
    background: var(--brand-primary-light, #fde8ef);
    border-color: var(--brand-primary, #c31949);
}

.content-step-icon {
    font-size: 28px;
    min-width: 36px;
    text-align: center;
}

.content-step-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.content-step-body p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   FILE OPTIONS
   -------------------------------------------------------------------------- */
.content-file-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.content-file-option {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
}

.content-file-option h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.content-file-option p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   USES GRID
   -------------------------------------------------------------------------- */
.content-uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.content-use-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .content-cta-box {
        padding: 25px 20px;
    }

    .content-cta-box h3 {
        font-size: 20px;
    }

    .content-btn-primary {
        font-size: 16px;
        padding: 14px 24px;
    }

    .content-categories-grid,
    .content-security-grid,
    .content-carriers-grid,
    .content-file-options {
        grid-template-columns: 1fr;
    }

    .content-order-state {
        flex-direction: column;
        gap: 8px;
    }

    .content-state-badge {
        min-width: auto;
    }

    .content-table {
        font-size: 12px;
    }

    .content-table th,
    .content-table td {
        padding: 8px 10px;
    }
}