/* Internet Coverage Italy - Civic/Public Service Design System */

/* CSS Variables */
:root {
    --color-warm-grey: #8C8C8C;
    --color-forest-green: #2E5A2E;
    --color-muted-red: #A85C5C;
    --color-light-bg: #FAFAFA;
    --color-white: #FFFFFF;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-border: #E0E0E0;
    --color-hover: #245824;
}

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

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

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

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-forest-green);
    text-decoration: none;
}

/* Navigation */
nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: var(--color-forest-green);
    color: var(--color-white);
}

/* Main Content */
main {
    min-height: 600px;
    padding: 40px 0;
}

/* Page Title */
.page-title {
    color: var(--color-forest-green);
    font-size: 36px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-muted-red);
    padding-bottom: 10px;
}

/* Sections */
section {
    margin-bottom: 40px;
}

h2 {
    color: var(--color-forest-green);
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 30px;
}

h3 {
    color: var(--color-text-main);
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 25px;
}

p {
    margin-bottom: 15px;
    color: var(--color-text-main);
}

ul, ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

li {
    margin-bottom: 10px;
    color: var(--color-text-main);
}

/* Disclaimer Box */
.disclaimer-box {
    background-color: #FFF3E0;
    border-left: 4px solid var(--color-muted-red);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.disclaimer-box p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--color-text-main);
}

/* Info Cards */
.info-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-card h3 {
    color: var(--color-forest-green);
    margin-top: 0;
}

/* FAQ Styles */
.faq-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-item h3 {
    margin-top: 0;
    color: var(--color-forest-green);
    font-size: 18px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-main);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-forest-green);
    box-shadow: 0 0 0 3px rgba(46, 90, 46, 0.1);
}

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

.form-submit {
    background-color: var(--color-forest-green);
    color: var(--color-white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: var(--color-hover);
}

/* Footer */
footer {
    background-color: var(--color-white);
    border-top: 3px solid var(--color-forest-green);
    padding: 40px 0;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: var(--color-forest-green);
    margin-top: 0;
    font-size: 18px;
}

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

.footer-section a {
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--color-forest-green);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    margin-top: 30px;
    color: var(--color-text-light);
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    nav a {
        text-align: center;
        padding: 10px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
}

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

/* Print Styles */
@media print {
    header,
    footer {
        display: none;
    }
    
    .form-submit {
        display: none;
    }
}