/* common.css — regole base condivise (root, reset, layout, navbar, footer)
   Estratte da privacy.html. Usate da landing e pagine legali. */

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

:root {
    --primary-color: #25D366;
    --secondary-color: #128C7E;
    --accent-color: #075E54;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.5rem; font-weight: 700;
    color: var(--primary-color); text-decoration: none;
}
.logo i { font-size: 2rem; }
.nav-menu {
    display: flex; list-style: none; gap: 2rem; align-items: center;
}
.nav-menu a {
    text-decoration: none; color: var(--text-dark);
    font-weight: 500; transition: color 0.3s ease; position: relative;
}
.nav-menu a:hover { color: var(--primary-color); }
.nav-menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }

/* ===== FOOTER ===== */
.footer { background: var(--text-dark); color: var(--white); padding: 3rem 0 1rem; }
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}
.footer-section h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary-color); }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: var(--primary-color); }
.footer-bottom {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6);
}
.footer-bottom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ===== Media query — parte navbar ===== */
@media (max-width: 768px) {
    .nav-menu { display: none; }
}
