/* ============================================================
   LOGIC MIND S.R.L. — Main Stylesheet
   Stack: CSS3 custom properties, no framework
   ============================================================ */

:root {
    --lm-navy:   #0D2B4E;
    --lm-blue:   #1A4F8A;
    --lm-blue-l: #2563A8;
    --lm-accent: #E8501A;
    --lm-accent-h:#C43E10;
    --lm-light:  #F4F6F9;
    --lm-border: #DDE3EC;
    --lm-text:   #1A1E2B;
    --lm-muted:  #5A6478;
    --lm-white:  #FFFFFF;
    --radius:    5px;
    --shadow-sm: 0 1px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --trans:     0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--lm-text);
    background: var(--lm-white);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lm-blue); transition: color var(--trans); }
a:hover { color: var(--lm-accent); }
address { font-style: normal; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-alt { background: var(--lm-light); }

/* ---- TOPBAR ---- */
.topbar {
    background: var(--lm-navy);
    padding: 7px 0;
    border-bottom: 1px solid #1a3a5c;
}
.topbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.topbar-left {
    font-size: 12px; color: #8AAFD4;
    display: flex; gap: 20px; flex-wrap: wrap;
}
.topbar-left span { display: flex; align-items: center; gap: 5px; }
.topbar-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.topbar-right a {
    font-size: 12px; color: #8AAFD4; text-decoration: none;
    padding: 4px 10px; border: 1px solid #2a4a6a; border-radius: 3px;
    transition: all var(--trans);
}
.topbar-right a:hover,
.topbar-right a.btn-top-primary {
    background: var(--lm-accent); border-color: var(--lm-accent); color: #fff;
}

/* ---- HEADER ---- */
.header {
    background: var(--lm-white);
    border-bottom: 1px solid var(--lm-border);
    position: sticky; top: 0; z-index: 200;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 64px; width: auto; object-fit: contain; }
.logo-fallback { display: none; font-size: 26px; font-weight: 700; color: var(--lm-navy); letter-spacing: -0.5px; }
.logo-fallback span { color: var(--lm-accent); }

.nav { display: flex; gap: 0; }
.nav a {
    font-size: 13.5px; font-weight: 500; color: var(--lm-text);
    text-decoration: none; padding: 22px 14px;
    border-bottom: 2px solid transparent;
    transition: all var(--trans);
    display: block; white-space: nowrap;
}
.nav a:hover { color: var(--lm-accent); border-bottom-color: var(--lm-accent); }
.nav a.active { color: var(--lm-blue); border-bottom-color: var(--lm-blue); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--lm-navy); border-radius: 2px; transition: all var(--trans);
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, #0D2B4E 0%, #1A4F8A 65%, #1e5fa5 100%);
    color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; right: -80px; top: -80px;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(232,80,26,0.18); border: 1px solid rgba(232,80,26,0.38);
    color: #FF8A60; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 5px 14px; border-radius: 2px; margin-bottom: 20px;
}
.hero h1 {
    font-size: 36px; font-weight: 700; line-height: 1.2;
    margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero h1 em { color: #FF8A60; font-style: normal; }
.hero-sub {
    font-size: 16px; color: rgba(255,255,255,0.73);
    line-height: 1.7; margin-bottom: 32px; max-width: 490px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; padding: 20px;
}
.hero-stat .num { font-size: 28px; font-weight: 700; color: #fff; }
.hero-stat .num em { color: #FF8A60; font-style: normal; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.58); margin-top: 4px; }

/* ---- BUTTONS ---- */
.btn { display: inline-block; text-decoration: none; cursor: pointer; border: none; font-weight: 600; border-radius: var(--radius); transition: all var(--trans); }
.btn-primary { background: var(--lm-accent); color: #fff; padding: 13px 28px; font-size: 14px; }
.btn-primary:hover { background: var(--lm-accent-h); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; padding: 12px 28px; font-size: 14px; border: 1px solid rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-blue { background: var(--lm-blue); color: #fff; padding: 12px 24px; font-size: 14px; }
.btn-blue:hover { background: var(--lm-navy); color: #fff; }
.btn-outline-blue { background: transparent; color: var(--lm-blue); padding: 11px 24px; font-size: 14px; border: 1px solid var(--lm-blue); }
.btn-outline-blue:hover { background: var(--lm-blue); color: #fff; }

/* ---- STRIP ---- */
.strip { background: var(--lm-navy); padding: 18px 0; }
.strip-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-around; gap: 16px; flex-wrap: wrap;
}
.strip-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.73); font-size: 13px; }
.strip-dot { width: 18px; height: 18px; background: var(--lm-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; flex-shrink: 0; font-weight: 700; }

/* ---- SECTION HEADERS ---- */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--lm-accent); margin-bottom: 10px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--lm-navy); margin-bottom: 14px; letter-spacing: -0.3px; }
.section-desc { font-size: 15px; color: var(--lm-muted); max-width: 580px; line-height: 1.7; }
.section-head { margin-bottom: 44px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }

/* ---- CATEGORIES GRID ---- */
.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cat-card {
    background: var(--lm-white); border: 1px solid var(--lm-border); border-radius: var(--radius);
    padding: 20px 12px; text-align: center; cursor: pointer;
    transition: all var(--trans); text-decoration: none; color: inherit;
    display: block;
}
.cat-card:hover { border-color: var(--lm-blue); box-shadow: 0 2px 12px rgba(26,79,138,0.12); transform: translateY(-2px); color: inherit; }
.cat-icon {
    width: 38px; height: 38px; background: #EBF2FA; border-radius: 7px;
    margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
}
.cat-name { font-size: 11.5px; font-weight: 600; color: var(--lm-navy); line-height: 1.3; }

/* ---- WHY US ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
    background: var(--lm-white); border: 1px solid var(--lm-border);
    border-radius: 6px; padding: 28px;
    transition: box-shadow var(--trans);
}
.why-card:hover { box-shadow: var(--shadow-md); }
.why-number { font-size: 36px; font-weight: 800; color: #EBF0F7; margin-bottom: 12px; line-height: 1; }
.why-title { font-size: 15px; font-weight: 700; color: var(--lm-navy); margin-bottom: 8px; }
.why-desc { font-size: 13.5px; color: var(--lm-muted); line-height: 1.6; }

/* ---- BRAND GRID ---- */
.brand-grid {
    display: grid; grid-template-columns: repeat(8, 1fr);
    gap: 1px; background: var(--lm-border);
    border: 1px solid var(--lm-border); border-radius: 6px; overflow: hidden;
}
.brand-cell {
    background: var(--lm-white); padding: 18px 10px;
    text-align: center; font-size: 12px; font-weight: 700;
    color: var(--lm-muted); letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center; min-height: 60px;
    transition: all var(--trans); cursor: default;
}
.brand-cell:hover { background: #F0F5FA; color: var(--lm-blue); }
.brand-section-label {
    grid-column: 1 / -1; background: var(--lm-navy);
    color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 16px;
    text-align: left;
}

/* ---- SERVICES ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
    border: 1px solid var(--lm-border); border-radius: 6px;
    padding: 28px; background: var(--lm-white); position: relative; overflow: hidden;
    transition: box-shadow var(--trans);
}
.svc-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--lm-blue);
}
.svc-card:hover { box-shadow: var(--shadow-md); }
.svc-icon-wrap {
    width: 46px; height: 46px; background: #EBF2FA;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.svc-title { font-size: 15px; font-weight: 700; color: var(--lm-navy); margin-bottom: 8px; }
.svc-desc { font-size: 13px; color: var(--lm-muted); line-height: 1.65; }

/* ---- CTA B2B ---- */
.cta-section { background: var(--lm-navy); padding: 64px 0; }
.cta-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.cta-text h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.cta-text p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.7; }
.cta-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.cta-list-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.72); }
.cta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lm-accent); flex-shrink: 0; }

/* ---- FORMS ---- */
.form-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; padding: 32px;
}
.form-card h3 { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 24px; }
.form-card-light {
    background: var(--lm-white);
    border: 1px solid var(--lm-border);
    border-radius: 8px; padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 600; margin-bottom: 6px; display: block; }
.form-card .form-group label { color: rgba(255,255,255,0.6); }
.form-card-light .form-group label { color: var(--lm-muted); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], select, textarea {
    width: 100%; padding: 10px 13px; border-radius: var(--radius);
    font-size: 14px; font-family: inherit; outline: none;
    transition: border-color var(--trans);
}
.form-card input, .form-card select, .form-card textarea {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}
.form-card input::placeholder { color: rgba(255,255,255,0.3); }
.form-card select option { background: var(--lm-navy); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    border-color: rgba(255,255,255,0.4);
}
.form-card-light input, .form-card-light select, .form-card-light textarea {
    background: var(--lm-white); border: 1px solid var(--lm-border); color: var(--lm-text);
}
.form-card-light input:focus, .form-card-light select:focus, .form-card-light textarea:focus {
    border-color: var(--lm-blue); box-shadow: 0 0 0 3px rgba(26,79,138,0.1);
}
.form-submit {
    width: 100%; background: var(--lm-accent); color: #fff; border: none;
    border-radius: var(--radius); padding: 13px; font-size: 14px;
    font-weight: 600; cursor: pointer; margin-top: 6px; font-family: inherit;
    transition: background var(--trans);
}
.form-submit:hover { background: var(--lm-accent-h); }
.form-note { font-size: 11.5px; margin-top: 12px; line-height: 1.5; }
.form-card .form-note { color: rgba(255,255,255,0.38); }
.form-card-light .form-note { color: var(--lm-muted); }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; }
.checkbox-group input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }
.checkbox-group label { font-size: 12.5px; }

/* ---- NEWS ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: var(--lm-white); border: 1px solid var(--lm-border);
    border-radius: 6px; overflow: hidden; cursor: pointer;
    transition: box-shadow var(--trans); text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); color: inherit; }
.news-thumb { height: 140px; background: var(--lm-light); display: flex; align-items: center; justify-content: center; }
.news-body { padding: 18px; flex: 1; }
.news-tag {
    display: inline-block; background: #EBF2FA; color: var(--lm-blue);
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 3px 9px; border-radius: 2px; margin-bottom: 9px;
}
.news-title { font-size: 14px; font-weight: 600; color: var(--lm-navy); margin-bottom: 8px; line-height: 1.4; }
.news-date { font-size: 11.5px; color: var(--lm-muted); }

/* ---- CONTACT STRIP ---- */
.contact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.contact-item { padding: 28px 20px; text-align: center; border-right: 1px solid var(--lm-border); }
.contact-item:last-child { border-right: none; }
.contact-icon {
    width: 50px; height: 50px; background: #EBF2FA; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.contact-label { font-size: 12px; color: var(--lm-muted); margin-bottom: 5px; }
.contact-value { font-size: 15px; font-weight: 600; color: var(--lm-navy); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--lm-navy) 0%, var(--lm-blue) 100%);
    padding: 48px 0; color: #fff;
}
.page-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 600px; }
.breadcrumb { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---- ALERT MESSAGES ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #EAF5EE; border: 1px solid #A3D4B3; color: #1E6035; }
.alert-error { background: #FEF0EE; border: 1px solid #F4B8B3; color: #8B2020; }
.alert-info { background: #EAF0FA; border: 1px solid #B3CCEB; color: #1A4F8A; }

/* ---- FOOTER ---- */
.footer { background: #08192E; color: rgba(255,255,255,0.6); padding: 52px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-logo { height: 36px; opacity: 0.85; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-legal-data { margin-top: 14px; font-size: 11.5px; color: rgba(255,255,255,0.32); line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.38); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 9px; transition: color var(--trans); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); margin-top: 44px; }
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px; font-size: 11.5px; color: rgba(255,255,255,0.28); flex-wrap: wrap; gap: 10px;
}
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: rgba(255,255,255,0.28); text-decoration: none; font-size: 11.5px; }
.footer-legal-links a:hover { color: rgba(255,255,255,0.6); }

/* ---- SVG ICONS ---- */
.ico { width: 20px; height: 20px; fill: none; stroke: var(--lm-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.ico-accent { stroke: var(--lm-accent); }

/* ---- ADMIN PANEL ---- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--lm-navy); padding: 24px 0; flex-shrink: 0; }
.admin-sidebar .logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar .logo span { color: #fff; font-weight: 700; font-size: 15px; }
.admin-nav { padding: 16px 0; }
.admin-nav a { display: block; padding: 10px 20px; color: rgba(255,255,255,0.65); font-size: 13.5px; text-decoration: none; transition: all var(--trans); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { flex: 1; background: var(--lm-light); padding: 32px; }
.admin-header { margin-bottom: 28px; }
.admin-header h1 { font-size: 22px; font-weight: 700; color: var(--lm-navy); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--lm-white); border-radius: 6px; padding: 20px 24px; border: 1px solid var(--lm-border); }
.stat-card .num { font-size: 32px; font-weight: 700; color: var(--lm-navy); }
.stat-card .lbl { font-size: 13px; color: var(--lm-muted); margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--lm-white); border-radius: 6px; overflow: hidden; border: 1px solid var(--lm-border); }
.data-table th { background: var(--lm-navy); color: #fff; padding: 12px 16px; font-size: 12px; font-weight: 600; text-align: left; letter-spacing: 0.5px; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--lm-border); font-size: 13.5px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #F8FAFB; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.badge-waiting { background: #FEF3CD; color: #7A5A00; }
.badge-approved { background: #D4EDDA; color: #1E5631; }
.badge-refused  { background: #FEE2E2; color: #7A0000; }
.badge-new   { background: #DBEAFE; color: #1A3A6A; }
.badge-read  { background: #E8F5E9; color: #1B5E20; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .brand-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--lm-white); flex-direction: column; border-bottom: 1px solid var(--lm-border); box-shadow: var(--shadow-md); z-index: 300; }
    .nav.open { display: flex; }
    .nav a { padding: 14px 24px; border-bottom: 1px solid var(--lm-border); border-left: 2px solid transparent; }
    .nav a.active { border-left-color: var(--lm-blue); }
    .nav-toggle { display: flex; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-strip { grid-template-columns: 1fr 1fr; }
    .contact-item { border-right: none; border-bottom: 1px solid var(--lm-border); }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 26px; }
    .section { padding: 44px 0; }
    .section-title { font-size: 22px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .why-grid { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .topbar-left .hide-mobile { display: none; }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
}

/* ==========================================
   PAGINA SOLUZIONI - CATEGORIE FULL
   ========================================== */
.section-intro { max-width: 780px; margin: 0 auto 3rem; text-align: center; }
.section-intro h2 { font-size: 1.9rem; color: var(--navy); margin-bottom: .75rem; }
.section-intro p  { color: #555; font-size: 1.05rem; line-height: 1.7; }

.cat-grid-full { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }

.cat-card-full {
  display: flex; gap: 2rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem;
  transition: box-shadow .2s;
}
.cat-card-full:hover { box-shadow: 0 4px 20px rgba(13,43,78,.08); }

.cat-icon-full {
  font-size: 2.5rem; flex-shrink: 0;
  width: 64px; height: 64px;
  background: var(--light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.cat-content-full h3  { font-size: 1.2rem; color: var(--navy); margin: 0 0 .5rem; }
.cat-content-full p   { color: #555; margin: 0 0 .75rem; line-height: 1.6; }
.cat-content-full ul  { margin: 0 0 .75rem; padding-left: 1.2rem; color: #555; }
.cat-content-full ul li { margin-bottom: .3rem; }
.cat-brands-tag {
  display: inline-block; font-size: .8rem; color: var(--blue);
  background: rgba(26,79,138,.08); padding: .3rem .7rem;
  border-radius: 4px; font-weight: 600;
}

.cta-center { text-align: center; margin-top: 3rem; padding: 2.5rem; background: var(--light); border-radius: 8px; }
.cta-center p { font-size: 1.1rem; color: #555; margin-bottom: 1.25rem; }
.cta-center .btn-primary, .cta-center .btn-secondary { margin: .4rem; }

/* ==========================================
   PAGINA BRAND
   ========================================== */
.brand-section { margin-bottom: 3rem; }
.brand-section-title {
  font-size: 1.4rem; color: var(--navy);
  padding-bottom: .5rem; border-bottom: 2px solid var(--accent);
  margin-bottom: .6rem; display: inline-block;
}
.brand-section-desc { color: #666; margin-bottom: 1.5rem; }

.brand-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.brand-item-page {
  text-align: center; padding: 1.25rem .75rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; transition: box-shadow .2s;
}
.brand-item-page:hover { box-shadow: 0 4px 16px rgba(13,43,78,.1); }
.brand-logo-box {
  font-size: 1rem; font-weight: 800; color: var(--navy);
  letter-spacing: .04em; margin-bottom: .5rem;
  height: 40px; display: flex; align-items: center; justify-content: center;
}
.brand-item-page span { font-size: .8rem; color: #777; }

.brand-cta-box {
  margin-top: 3rem; padding: 2.5rem; text-align: center;
  background: var(--navy); border-radius: 8px; color: #fff;
}
.brand-cta-box h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.brand-cta-box p  { opacity: .85; margin-bottom: 1.5rem; }
.brand-cta-box .btn-primary, .brand-cta-box .btn-secondary { margin: .4rem; }

/* ==========================================
   PAGINA SERVIZI
   ========================================== */
.servizi-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }

.servizio-card-full {
  display: flex; gap: 2rem; align-items: flex-start;
  border-left: 4px solid var(--accent); padding: 1.75rem 2rem;
  background: #fff; border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 8px rgba(13,43,78,.06);
}
.servizio-num {
  font-size: 2.5rem; font-weight: 900; color: var(--accent);
  opacity: .3; flex-shrink: 0; width: 60px; text-align: center;
  line-height: 1;
}
.servizio-body h3 { font-size: 1.2rem; color: var(--navy); margin: 0 0 .6rem; }
.servizio-body p  { color: #555; margin: 0 0 .75rem; line-height: 1.7; }
.servizio-body ul { margin: 0; padding-left: 1.2rem; color: #555; }
.servizio-body ul li { margin-bottom: .3rem; }

.modello-box {
  background: var(--navy); color: #fff; border-radius: 8px;
  padding: 2.5rem; margin: 3rem 0;
}
.modello-box h2 { text-align: center; font-size: 1.6rem; margin-bottom: 2rem; }
.modello-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.modello-step {
  text-align: center; max-width: 160px;
}
.step-num {
  display: inline-flex; width: 48px; height: 48px;
  background: var(--accent); border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; margin-bottom: .75rem;
}
.modello-step h4 { font-size: 1rem; margin-bottom: .4rem; }
.modello-step p  { font-size: .85rem; opacity: .8; }
.modello-arrow { font-size: 2rem; opacity: .4; padding-top: .75rem; }

/* ==========================================
   PAGINA AREA B2B
   ========================================== */
.b2b-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }

.b2b-vantaggi h2 { font-size: 1.7rem; color: var(--navy); margin-bottom: 1rem; }
.b2b-vantaggi > p { color: #555; margin-bottom: 2rem; line-height: 1.7; }

.b2b-vantaggio-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.b2b-icon {
  font-size: 1.5rem; width: 48px; height: 48px; flex-shrink: 0;
  background: var(--light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.b2b-vantaggio-item h4 { font-size: 1rem; color: var(--navy); margin: 0 0 .3rem; }
.b2b-vantaggio-item p  { font-size: .9rem; color: #666; margin: 0; }

.b2b-requisiti {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  background: var(--light); border-radius: 8px; border-left: 4px solid var(--accent);
}
.b2b-requisiti h4 { color: var(--navy); margin-bottom: .6rem; }
.b2b-requisiti ul { margin: 0; padding-left: 1.2rem; color: #555; }
.b2b-requisiti li { margin-bottom: .4rem; }

.accesso-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 1.75rem; margin-bottom: 1.25rem;
}
.accesso-card h3 { color: var(--navy); margin-bottom: .6rem; }
.accesso-card p   { color: #666; margin-bottom: 1.25rem; font-size: .95rem; }
.accesso-card-alt { border-color: var(--accent); }
.btn-full { display: block; text-align: center; }
.accesso-note { font-size: .82rem; color: #888; margin-top: .75rem; }
.accesso-note a { color: var(--blue); }

.accesso-steps {
  list-style: none; margin: 1rem 0 0; padding: 0;
}
.accesso-steps li {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem 0; border-bottom: 1px solid var(--light);
  font-size: .9rem; color: #555;
}
.accesso-steps li:last-child { border-bottom: none; }
.accesso-steps li span {
  width: 24px; height: 24px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.faq-item h4 { color: var(--navy); margin-bottom: .5rem; font-size: 1rem; }
.faq-item p  { color: #666; font-size: .9rem; margin: 0; }
.faq-item a  { color: var(--blue); }

/* ==========================================
   PAGINA NEWS
   ========================================== */
.news-list { display: flex; flex-direction: column; gap: 1.5rem; }
.news-list-item {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 1.75rem; background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
  transition: box-shadow .2s;
}
.news-list-item:hover { box-shadow: 0 4px 16px rgba(13,43,78,.08); }
.news-list-date {
  font-size: .85rem; color: #888; min-width: 90px;
  padding-top: .2rem; white-space: nowrap;
}
.news-list-content h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.news-list-content h2 a { color: var(--navy); text-decoration: none; }
.news-list-content h2 a:hover { color: var(--accent); }
.news-list-content p  { color: #666; font-size: .95rem; margin: 0 0 .75rem; }
.leggi-tutto { color: var(--blue); font-size: .9rem; font-weight: 600; text-decoration: none; }
.leggi-tutto:hover { color: var(--accent); }

.news-breadcrumb { margin-bottom: 1rem; }
.news-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.news-breadcrumb a:hover { color: #fff; }
.news-meta-hero { opacity: .75; margin: 0; }

.news-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
.news-article { background: #fff; padding: 2rem; border-radius: 8px; border: 1px solid var(--border); }
.news-sommario { font-size: 1.1rem; color: #444; font-style: italic; border-left: 4px solid var(--accent); padding-left: 1rem; margin-bottom: 1.5rem; }
.news-corpo { color: #444; line-height: 1.8; font-size: 1rem; }

.news-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.sidebar-box h4 { color: var(--navy); margin-bottom: .5rem; }
.sidebar-box p  { font-size: .9rem; color: #666; margin-bottom: 1rem; }

/* ==========================================
   PAGINA LEGAL
   ========================================== */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 { font-size: 1.35rem; color: var(--navy); margin: 2rem 0 .6rem; }
.legal-content h3 { font-size: 1.1rem; color: var(--blue); margin: 1.25rem 0 .5rem; }
.legal-content p  { color: #555; line-height: 1.8; margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.4rem; color: #555; line-height: 1.8; }
.last-update { font-size: .85rem; color: #888; margin-bottom: 2rem; }

.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.legal-table th, .legal-table td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.legal-table th { background: var(--light); color: var(--navy); font-weight: 600; width: 220px; }
.legal-table a { color: var(--blue); }

/* ==========================================
   ADMIN EXTRA STYLES
   ========================================== */
.admin-stat-pills { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.pill { padding: .3rem .9rem; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.pill-orange { background: #FFF3E0; color: #E65100; }
.pill-green  { background: #E8F5E9; color: #2E7D32; }
.pill-gray   { background: #ECEFF1; color: #546E7A; }

.admin-filters {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
  background: var(--light); padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 1.5rem;
}
.admin-filters input[type=text] {
  flex: 1; min-width: 200px; padding: .5rem .75rem;
  border: 1px solid var(--border); border-radius: 4px; font-size: .9rem;
}
.admin-filters select { padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 4px; font-size: .9rem; }

.row-unread { background: #FFFDE7; }
.row-unread td { font-weight: 500; }

.msg-preview { font-size: .85rem; color: #666; max-width: 220px; cursor: help; }
.note-preview { font-size: .8rem; cursor: help; }

.badge-in_attesa { background: #FFF3E0; color: #E65100; }
.badge-approvato  { background: #E8F5E9; color: #2E7D32; }
.badge-rifiutato  { background: #FFEBEE; color: #C62828; }

.btn-green { background: #2E7D32; color: #fff; }
.btn-red   { background: #C62828; color: #fff; }
.btn-gray  { background: #546E7A; color: #fff; }

.admin-pagination { display: flex; gap: .5rem; margin-top: 1.5rem; justify-content: center; }
.admin-pagination a { padding: .4rem .75rem; border: 1px solid var(--border); border-radius: 4px; color: var(--navy); text-decoration: none; font-size: .9rem; }
.admin-pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.admin-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; margin-bottom: 1.75rem; }
.admin-card h3 { color: var(--navy); margin-bottom: 1.25rem; }
.admin-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-check { display: flex; align-items: center; gap: .6rem; }
.form-check input { width: auto; }
.form-actions { display: flex; gap: 1rem; padding-top: .5rem; }

.inline-form { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.stato-select { font-size: .82rem; padding: .3rem .5rem; border: 1px solid var(--border); border-radius: 4px; }

/* ==========================================
   RESPONSIVE AGGIUNTIVO
   ========================================== */
@media (max-width: 900px) {
  .b2b-layout { grid-template-columns: 1fr; }
  .news-detail-layout { grid-template-columns: 1fr; }
  .cat-card-full { flex-direction: column; }
  .servizio-card-full { flex-direction: column; }
  .modello-steps { flex-direction: column; align-items: center; }
  .modello-arrow { transform: rotate(90deg); }
  .news-list-item { flex-direction: column; }
}
@media (max-width: 640px) {
  .brand-grid-page { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
}
