:root {
    --primary: #1a5f7a;
    --secondary: #159895;
    --dark-blue: #002b5b;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --text: #333;
    --border: #e1e4e8;
    --danger: #dc3545;
    --accent: #28a745;
    --warning-bg: #fff3cd;
}

/* RESET E BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: var(--text); scroll-behavior: smooth; background: var(--white); }

/* NAVBAR */
.navbar { background: rgba(0, 43, 91, 0.95); color: white; padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; padding: 0 2rem; }
.logo { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: white; display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: #ccc; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.btn-nav { background: var(--secondary); color: white !important; padding: 0.5rem 1.2rem; border-radius: 5px; }

/* HERO SECTION */
.hero { height: 100vh; background: linear-gradient(rgba(0, 43, 91, 0.75), rgba(0, 43, 91, 0.75)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&q=80&w=1000') no-repeat center center/cover; background-attachment: fixed; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: white; padding: 0 2rem; }
.hero h1 { font-size: 4rem; font-weight: 800; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.4rem; max-width: 800px; margin-bottom: 2.5rem; }

/* GRID E CARDS (Tutte le 6 card) */
.main-container { max-width: 1100px; margin: auto; padding: 5rem 2rem; }
.section { padding: 5rem 0; }
.section-title { font-size: 2.5rem; color: var(--dark-blue); text-align: center; margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--white); padding: 2.5rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid var(--primary); transition: 0.3s; }
.card:hover { transform: translateY(-10px); }
.card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1.5rem; }

/* PANORAMICA 2x2 */
.feature-box-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.feature-item { padding: 25px; background: #f0f7ff; border-radius: 12px; border-left: 6px solid var(--primary); }

/* TABELLE E SIDEBAR */
.sidebar { width: 300px; background: var(--light-bg); border-right: 1px solid var(--border); height: 100vh; position: fixed; top: 70px; left: 0; padding: 2rem; overflow-y: auto; }
.doc-main { margin-left: 300px; margin-top: 80px; padding: 2rem; }
.config-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.config-table th, .config-table td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.config-table th { background: var(--dark-blue); color: white; }
.badge { padding: 4px 8px; border-radius: 4px; color: white; font-weight: bold; font-size: 0.8rem; }

/* BOTTONI */
.btn-primary { background: var(--secondary); color: white; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; }
.btn-outline:hover { background: var(--primary); color: white; }

footer { background: var(--dark-blue); color: white; padding: 4rem 0; text-align: center; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .feature-box-2x2 { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .doc-main { margin-left: 0; }
}