/*
 * store-modern.css — 3NT1 brand colors, Medi-inspired layout
 * Brand palette:
 *   coral #E8594F, amber #F5A623, green #8DC63F, teal #6ECFB5, sky #4ABFE0,
 *   dark-blue #11235B (heading/serious accents & links)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== 0. BASE ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #374151;
    background: #fafbfc;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== 1. NAVBAR — compatta, margini laterali moderati ===== */
.store-navbar {
    background: #fff !important;
    border-bottom: 1px solid #f1f5f9;
    padding: .65rem 4rem;
    box-shadow: none;
}
.store-navbar .navbar-brand { margin-right: .75rem; padding: .15rem 0; }
.store-navbar .navbar-brand img { height: 30px; }

/* Page container — ampio ma con margini */
.store-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.store-nav-link {
    color: #475569 !important;
    font-size: .9rem;
    font-weight: 500;
    padding: .4rem .8rem !important;
    border-radius: 6px;
    transition: all .15s;
}
.store-nav-link:hover,
.store-nav-link.active { color: #E8594F !important; background: #fff5f5; }

.store-nav-btn-primary {
    background: linear-gradient(135deg, #E8594F, #F5A623) !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: .4rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
}
.store-nav-btn-primary:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; color: #fff !important; }

/* Dropdown */
.store-mega-dropdown {
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    padding: .5rem 0;
    min-width: 260px;
}
.store-mega-dropdown .dropdown-item {
    padding: .5rem 1rem;
    font-size: .88rem;
    color: #374151;
    transition: background .1s;
}
.store-mega-dropdown .dropdown-item:hover { background: #fff5f5; color: #E8594F; }
.store-dd-icon { width: 18px; text-align: center; color: #E8594F; }
.store-mega-dropdown .dropdown-divider { border-color: #f1f5f9; margin: .3rem 0; }

/* User avatar dropdown */
.store-user-toggle {
    display: flex !important;
    align-items: center;
    gap: .5rem;
    padding: .25rem .5rem !important;
    border-radius: 99px;
    border: 1px solid #e5e7eb;
    transition: border-color .15s;
}
.store-user-toggle:hover { border-color: #F5A623; }
.store-user-toggle::after { margin-left: .3rem; }
.store-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5A623, #E8594F);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.store-user-name { font-size: .85rem; font-weight: 500; color: #1e293b; }

.store-user-dropdown {
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    min-width: 200px;
    padding: .4rem 0;
}
.store-user-header { padding: .6rem 1rem; }
.store-user-header strong { font-size: .9rem; color: #1e293b; }
.store-user-dropdown .dropdown-item { font-size: .88rem; padding: .45rem 1rem; }
.store-user-dropdown .dropdown-item:hover { background: #fff5f5; }

.store-navbar .navbar-toggler {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .35rem .65rem;
}

/* ===== 2. FOOTER ===== */
.store-footer {
    background: #fff;
    color: #94a3b8;
    font-size: .82rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 3rem;
}

/* ===== 3. CONTENT ===== */
.store-content { flex: 1; padding: 2rem 0 3rem; }
.store-content-landing { padding: 0 !important; }
.store-content-fullbleed { padding: 0 !important; }
.store-content-fullbleed .store-footer { margin-top: 0; }
.store-content .alert { border-radius: 8px; border: none; font-size: .88rem; }

/* ===== 4. HERO — sfondo chiaro caldo, full-width ===== */
.landing-hero {
    background: linear-gradient(160deg, #fff9f5 0%, #fff0ea 25%, #fef3e2 50%, #f0fdf9 80%, #f5f3ff 100%);
    overflow: hidden;
    padding: 0 4rem;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid #fde0d8;
    border-radius: 2rem;
    padding: .3rem .9rem;
    font-size: .78rem;
    font-weight: 500;
    color: #E8594F;
}
.landing-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #8DC63F;
    flex-shrink: 0;
}

.landing-headline {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #11235B;
}
.landing-headline-accent {
    background: linear-gradient(135deg, #E8594F, #F5A623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-sub {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 460px;
}

/* CTA buttons — brand colors */
.landing-cta-primary {
    background: linear-gradient(135deg, #E8594F, #F5A623) !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: .65rem 1.6rem;
    font-size: .95rem;
    font-weight: 600;
    transition: transform .15s, box-shadow .15s;
}
.landing-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232,89,79,.3);
    color: #fff !important;
}
.landing-cta-outline {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: .65rem 1.6rem;
    font-size: .95rem;
    font-weight: 600;
    transition: border-color .15s;
}
.landing-cta-outline:hover { border-color: #E8594F; color: #E8594F !important; }
.landing-cta-link {
    background: none !important;
    border: none;
    color: #64748b !important;
    font-size: .88rem;
    font-weight: 500;
    padding: .5rem .2rem;
}
.landing-cta-link:hover { color: #E8594F !important; }

/* Trust stats */
.landing-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232,89,79,.15);
}
.landing-stat-value { font-size: 1.25rem; font-weight: 800; color: #11235B; }
.landing-stat-label { font-size: .78rem; color: #94a3b8; font-weight: 500; }

/* ===== 5. HERO VISUAL ===== */
.landing-visual { position: relative; padding: 1rem; }
.landing-visual-main {
    background: #1e293b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15,23,42,.2);
}
.landing-visual-topbar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1rem;
    background: #0f172a;
}
.lv-dot { width: 10px; height: 10px; border-radius: 50%; }
.lv-bar { flex: 1; height: 6px; background: #334155; border-radius: 3px; margin: 0 .5rem; }
.landing-visual-body { padding: .6rem; }
.landing-visual-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: .55rem .7rem;
    margin-bottom: .4rem;
}
.lv-row-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(232,89,79,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #F5A623;
    font-size: .8rem;
}
.lv-row-text { flex: 1; min-width: 0; }
.lv-row-text strong { display: block; font-size: .82rem; color: #e2e8f0; font-weight: 600; }
.lv-row-text span { font-size: .72rem; color: #94a3b8; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-row-badge {
    font-size: .65rem; font-weight: 600; color: #8DC63F;
    background: rgba(141,198,63,.12);
    padding: .15rem .5rem; border-radius: 4px; flex-shrink: 0;
}

.landing-visual-float {
    position: absolute;
    background: #fff;
    border-radius: 10px;
    padding: .45rem .85rem;
    font-size: .78rem;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    animation: floatBounce 3s ease-in-out infinite alternate;
    white-space: nowrap;
}
.landing-visual-float-1 { bottom: 10%; left: -3%; animation-delay: 0s; }
.landing-visual-float-2 { top: 8%; right: 5%; animation-delay: 1.5s; }
@keyframes floatBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

/* ===== 6. SECTION TITLES ===== */
.landing-section-title { font-size: 1.6rem; font-weight: 700; color: #11235B; }

/* ===== 7. TAB MODULES ===== */
.landing-modules { background: #fff; padding-left: 4rem; padding-right: 4rem; }

.landing-tab-sidebar { display: flex; flex-direction: column; border-right: 2px solid #f1f5f9; }
.landing-tab-btn {
    display: flex; align-items: center; gap: .55rem;
    background: none; border: none;
    border-right: 2px solid transparent; margin-right: -2px;
    padding: .6rem .8rem; text-align: left;
    font-size: .85rem; font-weight: 500; color: #64748b;
    cursor: pointer; border-radius: 6px 0 0 6px;
    transition: all .15s; width: 100%;
}
.landing-tab-btn:hover { background: #fff5f5; color: #E8594F; }
.landing-tab-btn.active {
    background: #fff5f5; color: #E8594F;
    font-weight: 600; border-right-color: #E8594F;
}
.landing-tab-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #fde0d8;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: .72rem; color: #E8594F;
    transition: all .15s;
}
.landing-tab-btn.active .landing-tab-icon { background: #E8594F; color: #fff; }
.landing-tab-label { flex: 1; line-height: 1.3; }
.landing-tab-arrow { font-size: .6rem; opacity: 0; color: #E8594F; transition: opacity .15s; }
.landing-tab-btn.active .landing-tab-arrow,
.landing-tab-btn:hover .landing-tab-arrow { opacity: 1; }

.landing-mod-pane { display: none; }
.landing-mod-pane.active { display: block; animation: modFade .2s ease; }
@keyframes modFade {
    from { opacity: 0; transform: translateX(4px); }
    to { opacity: 1; transform: translateX(0); }
}
.landing-mod-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #fff5f5;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.landing-mod-icon i { color: #E8594F; font-size: 1.1rem; }

.landing-feature-list { list-style: none; padding: 0; margin: 0; }
.landing-feature-list li {
    padding: .25rem 0 .25rem 1.4rem; position: relative;
    color: #374151; font-size: .88rem; line-height: 1.55;
    border-bottom: 1px solid #f8fafc;
}
.landing-feature-list li:last-child { border-bottom: none; }
.landing-feature-list li::before {
    content: ''; position: absolute; left: 0; top: .65rem;
    width: 6px; height: 6px; border-radius: 50%; background: #E8594F;
}

/* Mobile pills */
.landing-tab-scroll { display: flex; overflow-x: auto; gap: .4rem; padding-bottom: .4rem; scrollbar-width: none; }
.landing-tab-scroll::-webkit-scrollbar { display: none; }
.landing-pill-btn {
    flex-shrink: 0; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 2rem; padding: .35rem .8rem; font-size: .8rem;
    font-weight: 500; color: #64748b; cursor: pointer;
    white-space: nowrap; transition: all .15s;
}
.landing-pill-btn.active,
.landing-pill-btn:hover { background: #E8594F; color: #fff; border-color: #E8594F; }

/* ===== 8. COME FUNZIONA ===== */
.landing-how { background: #fafbfc; padding-left: 4rem; padding-right: 4rem; }
.landing-step-num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8594F, #F5A623);
    color: #fff; font-size: 1.3rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; margin: 0 auto;
}

/* ===== 9. CTA FINAL ===== */
.landing-cta-section {
    background: linear-gradient(135deg, #E8594F 0%, #F5A623 100%);
}

/* ===== 10. STORE INDEX ===== */
.store-card {
    border: 1px solid #f1f5f9; border-radius: 12px;
    transition: box-shadow .2s, transform .2s; background: #fff;
}
.store-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06) !important; transform: translateY(-2px); }
.store-icon {
    width: 64px; height: 64px; border-radius: 50%; background: #fff5f5;
    display: flex; align-items: center; justify-content: center;
}
.store-icon i { color: #E8594F; }

/* ===== 11. QUESTIONARIO ===== */
.store-questionario .card { border: 1px solid #f1f5f9; border-radius: 12px; }
.store-questionario .card-header { background: #fafbfc; border-bottom: 1px solid #f1f5f9; font-size: .85rem; }
.q-card { border-radius: 12px !important; border: 1px solid #f1f5f9; }
.q-card.has-error { border-color: #E8594F !important; }
.custom-radio .custom-control-label,
.custom-checkbox .custom-control-label { cursor: pointer; padding-top: 2px; }
.custom-control-input:checked ~ .custom-control-label::before { background-color: #E8594F; border-color: #E8594F; }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 .2rem rgba(232,89,79,.2); }

/* ===== 12. SELEZIONE ===== */
.store-sel-card {
    border: 2px solid #f1f5f9; border-radius: 12px;
    transition: border-color .2s, box-shadow .2s; background: #fff;
}
.store-sel-card.is-selected {
    border-color: #E8594F; box-shadow: 0 0 0 3px rgba(232,89,79,.1) !important;
}
#store-bottom-bar { background: #1e293b; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }

/* ===== 13. MODALS ===== */
.store-content .modal-content { border: none; border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.store-content .modal-header { border-top: 3px solid #E8594F; border-bottom: 1px solid #f1f5f9; padding: 1rem 1.25rem; border-radius: 14px 14px 0 0; background: #fafbfc; }

/* ===== 14. FORMS ===== */
.store-content .form-control { border: 1px solid #e2e8f0; border-radius: 8px; font-size: .875rem; padding: .45rem .8rem; color: #374151; }
.store-content .form-control:focus { border-color: #F5A623; box-shadow: 0 0 0 3px rgba(245,166,35,.1); }

/* ===== 15. BUTTONS ===== */
.store-content .btn { border-radius: 8px; font-weight: 600; font-size: .85rem; transition: all .15s; box-shadow: none !important; }
.store-content .btn:active { transform: scale(.97); }
.store-content .btn-primary { background: #E8594F; border-color: #E8594F; }
.store-content .btn-primary:hover { background: #d64a41; border-color: #d64a41; }
.store-content .btn-outline-primary { color: #E8594F; border-color: #E8594F; }
.store-content .btn-outline-primary:hover { background: #E8594F; color: #fff; }

/* ===== 16. BADGES ===== */
.store-content .badge { border-radius: 10px; font-weight: 600; font-size: .72rem; padding: 3px 8px; }
.store-content .badge-primary { background: #E8594F !important; }
.store-content .badge-success { background: #8DC63F !important; }
.store-content .badge-warning { background: #F5A623 !important; }
.store-content .badge-info { background: #4ABFE0 !important; }

/* ===== 17. FULL-BLEED ===== */
.store-content-landing .store-footer { margin-top: 0; }

/* ===== 18. RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .landing-hero { text-align: center; }
    .landing-headline { font-size: 1.8rem; }
    .landing-sub { font-size: .95rem; margin: 0 auto; }
    .landing-hero .d-flex { justify-content: center; flex-wrap: wrap; }
    .landing-stats { justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
    .landing-cta-primary, .landing-cta-outline { width: 100%; max-width: 260px; text-align: center; }
    .landing-cta-link { width: 100%; text-align: center; }
    .landing-modules { padding: 2rem 0 !important; }
    .landing-step-num { width: 40px; height: 40px; font-size: 1.1rem; }
    .landing-cta-section h2 { font-size: 1.3rem !important; }
    .landing-cta-section .btn-lg { display: block; width: 100%; }
    .landing-section-title { font-size: 1.3rem; }

    .store-navbar { padding: .5rem 1rem; }
    .store-navbar .navbar-brand img { height: 26px; }
    .landing-hero,
    .landing-modules,
    .landing-how { padding-left: 0 !important; padding-right: 0 !important; }
    .store-navbar .navbar-collapse {
        padding-top: .75rem;
        border-top: 1px solid #f1f5f9;
        margin-top: .5rem;
    }
    .store-navbar .navbar-nav { align-items: flex-end !important; }
    .store-navbar .navbar-nav .nav-link,
    .store-navbar .navbar-nav .dropdown-item { text-align: right; }
    .store-navbar .store-nav-right { align-items: flex-end !important; }
    .store-navbar .store-nav-btn-primary { display: inline-block; text-align: right; margin-top: .4rem; }
    .store-navbar .dropdown-menu { right: 0; left: auto; text-align: right; }
    .store-page-container { padding: 0 1rem; }
    .landing-hero .container-fluid,
    .landing-modules .container-fluid,
    .landing-how .container-fluid,
    .landing-cta-section .container-fluid { padding: 0 1.2rem !important; }
    .store-footer { margin-top: 1.5rem; }

    /* Prodotto detail */
    .prodotto-header { padding: 2rem 1rem !important; }
    .prodotto-header h1 { font-size: 1.4rem !important; }
}

@media (max-width: 575.98px) {
    .landing-headline { font-size: 1.5rem; }
    .landing-stats { gap: 1rem; }
    .landing-stat-value { font-size: 1rem; }
}
