/* 5G Italia - Informational Website
 * National Tech Overview Style
 * Colors: Midnight Grey, Deep Red, Soft Silver
 */

:root {
    /* Color Palette */
    --midnight-grey: #1a1a2e;
    --deep-red: #b91c1c;
    --soft-silver: #e5e7eb;
    --light-grey: #f9fafb;
    --white: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #d1d5db;
    
    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
}

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

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--light-grey);
}

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

/* Header */
header {
    background-color: var(--midnight-grey);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

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

nav a:hover {
    color: var(--soft-silver);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--midnight-grey) 0%, #16213e 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    background-color: var(--white);
}

.content-section.alt-bg {
    background-color: var(--light-grey);
}

.section-title {
    font-size: 32px;
    color: var(--midnight-grey);
    margin-bottom: 30px;
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--midnight-grey);
    font-weight: 700;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--midnight-grey);
    border-bottom: 3px solid var(--deep-red);
    padding-bottom: 10px;
}

h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--midnight-grey);
}

p {
    margin-bottom: 20px;
}

/* Lists */
ul, ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

li {
    margin-bottom: 10px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-left: 4px solid var(--deep-red);
}

/* Disclaimer Boxes */
.disclaimer {
    background-color: #fffbeb;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    font-size: 14px;
    color: #92400e;
}

.disclaimer.important {
    background-color: #fef2f2;
    border-color: var(--deep-red);
    color: #7f1d1d;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--white);
}

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

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

tr:hover {
    background-color: var(--light-grey);
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--midnight-grey);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-main);
}

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

button[type="submit"] {
    background-color: var(--deep-red);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #991b1b;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.faq-question {
    font-weight: 700;
    font-size: 18px;
    color: var(--midnight-grey);
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--midnight-grey);
    color: var(--white);
    padding: 40px 0 20px;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p,
.footer-section a {
    color: var(--soft-silver);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--soft-silver);
}

/* Images */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

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

/* Print Styles */
@media print {
    header,
    footer,
    nav {
        display: none;
    }
    
    body {
        background-color: var(--white);
        color: #000;
    }
}