/* =================================================
   Copycomp.it - Modern Light Enterprise CSS (Completo)
   ================================================== */
:root {
    --primary-blue: #0284c7;
    --primary-dark: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-body: #f1f5f9;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

#page {
    max-width: 1320px;
    margin: 30px auto;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Header Sticky / Fisso in alto */
/* header {
    background: var(--bg-surface);
    padding: 20px 40px 0 40px;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
} */

header {
    background: var(--bg-surface);
    padding: 20px 40px 0 40px;
    position: relative;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.brand img {
    height: 44px;
    width: auto;
    display: block;
}

.brand h2 {
    margin: 3px 0 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-badge {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.phone-badge:hover { 
    background: var(--primary-blue); 
    color: #fff; 
    border-color: var(--primary-blue); 
}

/* Navigazione */
nav { 
    background: transparent; 
    width: 100%; 
}

nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 25px; 
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 14px 0;
    display: block;
    position: relative;
    transition: color 0.2s;
}

nav ul li a:hover, 
nav ul li a.active { 
    color: var(--accent); 
}

nav ul li a.active::after {
    content: '';
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 3px;
    background: var(--accent); 
    border-radius: 3px 3px 0 0;
}

/* Sezione Hero */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    color: var(--primary-dark);
    padding: 90px 60px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.hero h1 { 
    font-size: 3.2rem; 
    font-weight: 900; 
    margin: 0 0 20px 0; 
    letter-spacing: -1.5px; 
    line-height: 1.2; 
    color: #0f172a; 
}
.hero p { 
    font-size: 1.25rem; 
    max-width: 800px; 
    margin: 0 auto 35px auto; 
    color: var(--text-muted); 
}

.btn-main {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s, background 0.2s;
}
.btn-main:hover { 
    background: var(--accent-hover); 
    transform: translateY(-2px); 
}

/* Sezioni di Contenuto & Grid */
.content-section { 
    padding: 80px 60px; 
}
.content-section.alt-bg { 
    background: #f8fafc; 
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border); 
}

.section-title { 
    text-align: center; 
    max-width: 750px; 
    margin: 0 auto 50px auto; 
}
.section-title h2 { 
    font-size: 2.4rem; 
    color: var(--primary-dark); 
    font-weight: 900; 
    margin-bottom: 15px; 
    letter-spacing: -1px; 
}
.section-title p { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
    margin: 0; 
}

.modules-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 30px; 
}
.module-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.module-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-soft); 
    border-color: var(--accent); 
}
.module-card h3 { 
    color: var(--primary-dark); 
    font-size: 1.5rem; 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-weight: 800; 
}
.module-card p { 
    color: var(--text-muted); 
    margin-bottom: 25px; 
}

/* Moduli di Contatto / Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--primary-dark);
}
.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: #f8fafc;
    color: var(--text-main);
    transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    font-weight: 600;
}
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Footer */
footer { 
    background: #0f172a; 
    color: #94a3b8; 
    padding: 50px; 
    text-align: center; 
    font-size: 0.95rem; 
}
footer a { 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: 600; 
}