/* Rifatto in 3D Hub v2.0 - Stili Frontend */
.r3d-home-wrap { max-width: 1180px; margin: 0 auto; font-family: inherit; }
.r3d-section { padding: 48px 16px; }
.r3d-bg-light { background: #f8fafc; border-radius: 14px; border: 1px solid #e2e8f0; }
.r3d-section-head { text-align: center; max-width: 740px; margin: 0 auto 32px; }
.r3d-section-head h2 { margin: 8px 0 10px; font-size: 28px; color: #0f172a; }
.r3d-section-head p { color: #475569; font-size: 16px; margin: 0; }
.r3d-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #1d4ed8; background: #dbeafe; padding: 4px 10px; border-radius: 20px; }
.r3d-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 48px 0; }

/* Hero */
.r3d-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 56px 32px;
    text-align: center;
    margin: 16px 0 24px;
}
.r3d-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 18px;
}
.r3d-hero h1 { font-size: 38px; line-height: 1.2; margin: 0 0 16px; color: #ffffff; }
.r3d-hero-lead { max-width: 720px; margin: 0 auto 28px; font-size: 17px; color: #e2e8f0; line-height: 1.6; }
.r3d-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.r3d-trust-bar { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: #cbd5e1; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }

/* Steps */
.r3d-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.r3d-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 22px; text-align: center; }
.r3d-step-num { width: 38px; height: 38px; line-height: 38px; border-radius: 50%; background: #1d4ed8; color: #fff; font-weight: 700; margin: 0 auto 12px; }
.r3d-step h4 { margin: 0 0 8px; font-size: 17px; color: #0f172a; }
.r3d-step p { margin: 0; font-size: 14px; color: #475569; }

/* Pricing */
.r3d-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.r3d-pricing-2col { max-width: 760px; margin: 0 auto; }
.r3d-price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.r3d-price-featured { border: 2px solid #1d4ed8; box-shadow: 0 8px 24px rgba(29,78,216,0.12); }
.r3d-price-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: #475569; background: #f1f5f9; padding: 4px 10px; border-radius: 4px; align-self: flex-start; margin-bottom: 12px; }
.r3d-tag-primary { background: #1d4ed8; color: #ffffff; }
.r3d-price-card h3 { margin: 0 0 8px; font-size: 22px; color: #0f172a; }
.r3d-price { font-size: 34px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.r3d-price span { font-size: 14px; font-weight: 400; color: #64748b; }
.r3d-price-desc { font-size: 14px; color: #475569; margin: 0 0 18px; }
.r3d-price-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; font-size: 14px; color: #334155; }
.r3d-price-list li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.r3d-price-card .r3d-btn { text-align: center; width: 100%; box-sizing: border-box; }

/* Form & Box */
.r3d-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; margin: 20px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.r3d-sub { color: #475569; font-size: 14px; margin-top: 0; margin-bottom: 20px; }
.r3d-form .r3d-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.r3d-form .r3d-col { flex: 1; min-width: 210px; }
.r3d-form .r3d-field { margin-bottom: 16px; }
.r3d-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: #1e293b; }
.r3d-form input[type="text"],
.r3d-form input[type="email"],
.r3d-form input[type="password"],
.r3d-form select,
.r3d-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; box-sizing: border-box; }

.r3d-radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.r3d-radio-pills label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 20px; cursor: pointer; font-weight: 500; margin: 0; }
.r3d-privacy-label { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: 13px !important; cursor: pointer; }

/* Buttons */
.r3d-btn { background: #1d4ed8; color: #ffffff; border: 2px solid #1d4ed8; padding: 11px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-block; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.r3d-btn:hover { background: #1e40af; border-color: #1e40af; color: #ffffff; }
.r3d-btn-lg { padding: 13px 24px; font-size: 15px; }
.r3d-btn-sm { padding: 8px 14px; font-size: 13px; }
.r3d-btn-outline { background: transparent; color: #1d4ed8; }
.r3d-btn-outline:hover { background: #1d4ed8; color: #ffffff; }
.r3d-btn-outline-light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.6); }
.r3d-btn-outline-light:hover { background: #ffffff; color: #0f172a; border-color: #ffffff; }
.r3d-btn-ghost-light { background: rgba(255,255,255,0.12); color: #ffffff; border-color: transparent; }
.r3d-btn-ghost-light:hover { background: rgba(255,255,255,0.22); color: #ffffff; }

/* Alerts */
.r3d-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.r3d-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.r3d-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.r3d-info    { background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; }

/* Checkbox Grid */
.r3d-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.r3d-check-card { display: flex !important; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; font-weight: 400 !important; cursor: pointer; }

/* Filters & Pills */
.r3d-filters { margin-bottom: 24px; padding: 16px; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; }
.r3d-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.r3d-pills-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.r3d-pill { display: inline-block; padding: 7px 14px; border-radius: 20px; background: #ffffff; border: 1px solid #cbd5e1; color: #334155; text-decoration: none; font-size: 13px; font-weight: 500; }
.r3d-pill:hover, .r3d-pill.active { background: #1d4ed8; color: #ffffff; border-color: #1d4ed8; }
.r3d-pill-tec.active { background: #0f766e; border-color: #0f766e; }

/* Cards */
.r3d-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.r3d-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.r3d-card-img img { width: 100%; height: 210px; object-fit: cover; display: block; }
.r3d-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.r3d-card-body h4 { margin: 8px 0; font-size: 17px; color: #0f172a; }
.r3d-desc { font-size: 14px; color: #475569; margin-bottom: 12px; flex: 1; }
.r3d-badges-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.r3d-badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 12px; font-weight: 600; background: #dbeafe; color: #1e40af; }
.r3d-badge-tec { background: #ccfbf1; color: #115e59; }
.r3d-badge-verified { background: #dcfce7; color: #166534; }
.r3d-card-footer { border-top: 1px solid #f1f5f9; padding-top: 10px; font-size: 13px; }
.r3d-mini-gallery { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.r3d-mini-gallery img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid #cbd5e1; }
.r3d-maker-header { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.r3d-back-link { display: inline-block; margin-bottom: 10px; text-decoration: none; font-weight: 600; }
.r3d-offer-details { margin-top: 10px; }
.r3d-offer-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }

@media (max-width: 768px) {
    .r3d-hero { padding: 36px 20px; }
    .r3d-hero h1 { font-size: 28px; }
}


/* Hero Split con Modello 3D Ruotabile */
.r3d-hero-split {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 32px;
    align-items: center;
    text-align: left;
    padding: 44px 36px;
}
.r3d-hero-split .r3d-hero-lead {
    margin: 0 0 24px 0;
}
.r3d-hero-split .r3d-hero-actions {
    justify-content: flex-start;
    margin-bottom: 22px;
}
.r3d-hero-split .r3d-trust-bar {
    justify-content: flex-start;
}
.r3d-accent {
    color: #fb923c;
}
.r3d-hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 16px;
    min-height: 340px;
    position: relative;
}
.r3d-hero-stage {
    width: 100%;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
@media (max-width: 900px) {
    .r3d-hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 20px;
    }
    .r3d-hero-split .r3d-hero-actions,
    .r3d-hero-split .r3d-trust-bar {
        justify-content: center;
    }
    .r3d-hero-right {
        min-height: 280px;
    }
}
