/* ============================================
   5G ITALIA - Editorial Style System
   ============================================ */

/* Root Variables */
:root {
    --bg-color: #f8f7f5;
    --text-primary: #2a2a2a;
    --text-secondary: #5a5a5a;
    --heading-color: #1a1a1a;
    --accent-color: #b87333;
    --accent-hover: #9a5f2a;
    --border-color: #e0ded9;
    --white: #ffffff;
    --spacing-unit: 1rem;
    --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-color);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 800px;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wrapper {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 2rem auto;
    max-width: var(--max-width);
}

/* Header */
header {
    background: var(--white);
    border-bottom: 3px solid var(--accent-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

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

.logo {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

/* Navigation */
nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

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

/* Main Content */
main {
    padding: 3rem 2rem;
    min-height: 60vh;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

section:last-child {
    margin-bottom: 0;
}

.intro-box {
    background: var(--bg-color);
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
    font-style: italic;
}

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

li {
    margin-bottom: 0.75rem;
}

/* Info Cards */
.info-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.info-card h3 {
    color: var(--accent-color);
}

/* Diagrams */
.diagram {
    background: var(--bg-color);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    text-align: center;
}

.diagram img {
    max-width: 100%;
    height: auto;
}

.diagram-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--heading-color);
    color: var(--white);
    font-weight: 600;
}

tr:nth-child(even) {
    background: var(--bg-color);
}

/* Forms */
form {
    margin: 2rem 0;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 600;
    color: var(--heading-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1rem;
    background: var(--white);
    border-radius: 2px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 2px;
}

button[type="submit"]:hover {
    background: var(--accent-hover);
}

/* Disclaimers */
.disclaimer {
    background: var(--bg-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
    font-size: 0.95rem;
    font-style: italic;
}

.disclaimer strong {
    color: var(--heading-color);
    font-style: normal;
}

/* Footer */
footer {
    background: var(--heading-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    max-width: none;
    color: rgba(255, 255, 255, 0.8);
}

footer a {
    color: var(--accent-color);
}

footer .disclaimer-text {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    main {
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        background: var(--white);
    }

    header {
        position: static;
        box-shadow: none;
    }

    nav {
        display: none;
    }

    .content-wrapper {
        box-shadow: none;
        margin: 0;
    }

    footer {
        background: none;
        color: var(--text-primary);
    }
}