/* ==========================================================
   Assistente - Stylesheet
   Brand: Future Is Now (teal #3AA6B9, dark #2C3E50)
   ========================================================== */

/* --- Design Tokens (da brand) --- */
:root {
    --color-primary: #3AA6B9;
    --color-primary-hover: #2997AA;
    --color-primary-light: #CAE6E8;
    --color-primary-alpha-10: rgba(58, 166, 185, 0.1);
    --color-primary-alpha-20: rgba(58, 166, 185, 0.2);
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bg-dark: #2C3E50;
    --bg-darker: #1E293B;
    --bg-light: #F9FAFB;
    --bg-card-dark: #1E293B;
    --text-white: #FFFFFF;
    --text-light: #CBD5E1;
    --text-muted: #94A3B8;
    --text-dark: #1E293B;
    --text-gray: #6B7280;
    --border-dark: #334155;
    --border-light: #E5E7EB;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.25);
    --container-max: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* --- Container --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-family); font-weight: 600; font-size: 1rem;
    cursor: pointer; border: none; transition: all 0.3s ease; text-decoration: none;
    gap: 8px;
}
.btn-primary {
    background: var(--color-primary); color: var(--text-white);
    padding: 14px 36px; border-radius: var(--radius-pill);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); text-decoration: none; }
.btn-lg { padding: 16px 44px; font-size: 1.1rem; }
.btn-ghost {
    background: transparent; color: var(--text-white); border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 32px; border-radius: var(--radius-pill);
}
.btn-ghost:hover { border-color: var(--text-white); text-decoration: none; }
.btn-secondary {
    background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary);
    padding: 12px 32px; border-radius: var(--radius-pill);
}
.btn-secondary:hover { background: var(--color-primary-alpha-10); text-decoration: none; }

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-white); padding: 100px 20px 80px; text-align: center;
}
.hero-badge {
    display: inline-block; background: var(--color-primary-alpha-20);
    color: var(--color-primary); padding: 6px 16px; border-radius: var(--radius-pill);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-payoff { font-size: 1.5rem; color: var(--color-primary-light); margin-bottom: 12px; font-weight: 500; }
.hero-sub { color: var(--text-light); font-size: 1.15rem; max-width: 600px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--color-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-dark .section-sub { color: var(--text-light); }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-gray); font-size: 1.1rem; margin-bottom: 48px; }
.section-cta { text-align: center; margin-top: 40px; }

/* --- Categories --- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.category-card {
    background: var(--text-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-xl); padding: 32px 24px; text-align: center;
    transition: all 0.3s ease; text-decoration: none; color: var(--text-dark);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); text-decoration: none; }
.category-icon { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.category-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.category-card p { color: var(--text-gray); font-size: 0.9rem; }

/* --- Service Cards --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card {
    background: var(--bg-card-dark); border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl); padding: 28px; transition: all 0.3s ease;
    text-decoration: none; color: var(--text-white); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--color-primary); text-decoration: none; }
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 600; }
.service-card p { color: var(--text-light); font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.service-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border-dark); }
.service-price { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); }
.service-time { font-size: 0.85rem; color: var(--text-muted); }

/* --- Steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; text-align: center; }
.step-num {
    width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary);
    color: var(--text-white); font-size: 1.3rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-gray); font-size: 0.95rem; }

/* --- FAQ --- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border-dark); border-radius: var(--radius-lg);
    margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
    padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 1.05rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--color-primary); }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 20px 16px; color: var(--text-light); line-height: 1.6; }

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--text-white); text-align: center; padding: 80px 20px;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { font-size: 1.15rem; margin-bottom: 32px; opacity: 0.9; }
.cta-section .btn-primary { background: var(--text-white); color: var(--color-primary); }
.cta-section .btn-primary:hover { background: var(--bg-light); }

/* --- Footer --- */
.footer {
    background: var(--bg-darker); color: var(--text-muted); padding: 32px 0;
    border-top: 1px solid var(--border-dark);
}
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand-block { font-size: 0.9rem; }
.footer-brand-block strong { color: var(--text-white); }
.footer-brand-block a { color: var(--color-primary); }
.footer-legal { display: flex; gap: 20px; font-size: 0.85rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--color-primary); }

/* --- Forms (per servizio.html e login.html) --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); font-family: var(--font-family); font-size: 1rem;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--color-primary);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-required::after { content: ' *'; color: var(--color-error); }

/* --- Alert / Messages --- */
.alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 0.95rem; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }

/* --- Badge status --- */
.badge {
    display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}
.badge-paid { background: #D1FAE5; color: #065F46; }
.badge-processing { background: #DBEAFE; color: #1E40AF; }
.badge-completed { background: #D1FAE5; color: #065F46; }
.badge-failed { background: #FEE2E2; color: #991B1B; }
.badge-pending { background: #FEF3C7; color: #92400E; }

/* --- Page header (per catalogo, dashboard) --- */
.page-header { padding: 48px 0 32px; }
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-gray); font-size: 1.05rem; }

/* --- Filter bar --- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
    padding: 8px 18px; border: 1px solid var(--border-light); border-radius: var(--radius-pill);
    background: var(--text-white); font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
    font-family: var(--font-family);
}
.filter-btn:hover, .filter-btn.active { background: var(--color-primary); color: var(--text-white); border-color: var(--color-primary); }

/* --- Dashboard --- */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.dash-card {
    background: var(--text-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 24px;
}
.dash-card h3 { font-size: 0.85rem; color: var(--text-gray); text-transform: uppercase; margin-bottom: 8px; }
.dash-card .dash-value { font-size: 2rem; font-weight: 700; color: var(--text-dark); }

/* --- Orders list --- */
.order-row {
    background: var(--text-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 20px; margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    transition: box-shadow 0.2s; cursor: pointer;
}
.order-row:hover { box-shadow: var(--shadow-md); }
.order-info h3 { font-size: 1rem; margin-bottom: 4px; }
.order-info span { font-size: 0.85rem; color: var(--text-gray); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero { padding: 60px 16px 48px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-payoff { font-size: 1.2rem; }
    .hero-stats { gap: 24px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.6rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
}
