/* =========================================
   GLOBAL RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background .3s, color .3s;
}

/* =========================================
   COLORS LIGHT / DARK
========================================= */
:root {
    --bg: #ffffff;
    --text: #333;
    --primary: #2a7de1;
    --accent: #f4a261;
    --card-bg: #f7f7f7;
}

body.dark-mode {
    --bg: #1d1d1d;
    --text: #e7e7e7;
    --card-bg: #2b2b2b;
    --primary: #76a8ff;
    --accent: #e9a55b;
}

/* =========================================
   SPACING SECTIONS
========================================= */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Gradient dark mode */
body.dark-mode section {
    background: linear-gradient(135deg, #2b2b2b, #1d1d1d);
}

/* =========================================
   CARDS
========================================= */
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}

/* =========================================
   HEADINGS
========================================= */
h1, h2 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

body.dark-mode h1, body.dark-mode h2 {
    color: #76a8ff;
}

p, li {
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   RIPPLE EFFECT
========================================= */
.ripple {
    position: absolute;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple .6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =========================================
   FOOTER
========================================= */
footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 14px;
    border-top: 1px solid #ddd;
}

/* =========================================
   LINKS GENERALI
========================================= */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================
   LISTE
========================================= */
ul {
    margin: 15px 0;
    padding-left: 20px;
}
