/* Design System - Telecomunicazioni in Italia */

/* Color Palette */
:root {
    --dark-blue: #1a3a5c;
    --anthracite-grey: #2d2d2d;
    --soft-silver: #c0c0c0;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-grey);
    font-size: 16px;
}

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

/* Header */
header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Mobile Navigation */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-blue);
        padding: 1rem;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.page-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Headings */
h1 {
    color: var(--dark-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    color: var(--anthracite-grey);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

/* Text Styles */
p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

/* Lists */
ul, ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Disclaimer Blocks */
.disclaimer {
    background-color: var(--light-grey);
    border-left: 4px solid var(--dark-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.disclaimer p {
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--anthracite-grey);
    color: var(--soft-silver);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--soft-silver);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-disclaimer {
    border-top: 1px solid var(--soft-silver);
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

.footer-disclaimer p {
    color: var(--soft-silver);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    main {
        padding: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--dark-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header,
    footer,
    nav {
        display: none;
    }
    
    body {
        background-color: var(--white);
    }
    
    .page-content {
        box-shadow: none;
        padding: 0;
    }
}