/* SempiPlancia - Modern Plino Design CSS */
/* Variabili globali */
:root {
    --sempi-orange: #F16926;
    --sempi-dark: #1a1a1a;
    --sempi-gray: #2c2c2c;
    --sempi-light-gray: #f5f5f5;
    --sempi-text-light: #666;
    --sempi-white: #ffffff;
    --sempi-black: #000000;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--sempi-dark);
    background-color: var(--sempi-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--sempi-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--sempi-text-light);
}

/* Links */
a {
    color: var(--sempi-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Buttons */
.btn, button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--sempi-orange);
    color: var(--sempi-white);
}

.btn:hover, button:hover {
    background-color: #d55a1f;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--sempi-orange);
    border: 2px solid var(--sempi-orange);
}

.btn-secondary:hover {
    background-color: var(--sempi-orange);
    color: var(--sempi-white);
}

/* Forms */
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--sempi-orange);
    box-shadow: 0 0 0 3px rgba(241, 105, 38, 0.1);
}

/* Cards */
.card {
    background: var(--sempi-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--sempi-white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sempi-orange);
}

/* Footer */
.footer {
    background: var(--sempi-dark);
    color: var(--sempi-white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn, button {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    :root {
        --sempi-white: #1a1a1a;
        --sempi-dark: #ffffff;
        --sempi-light-gray: #2c2c2c;
        --sempi-text-light: #cccccc;
    }
}
