/* --- Global Styles (Italian / Artisan Theme) --- */
body {
    /* Warm, welcoming background (Cream/Ivory) */
    background-color: #fdf5e6; /* "Old Lace" */
    font-family: "Segoe UI", "Verdana", sans-serif; /* Clear, readable fonts */
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container */
.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft shadow */
    min-height: 80vh;
    border-top: 5px solid #008C45; /* Italian Green accent at top */
}

/* --- Header & Navigation --- */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    text-align: center; /* Centered for a friendlier look */
}

.header-logo {
    width: 120px;
    height: auto;
    vertical-align: middle;
}

h1 {
    color: #333;
    font-size: 1.6rem;
    margin: 0;
}

.top-nav {
    background-color: #fff; /* White nav bar for simplicity */
    border-bottom: 2px solid #CD212A; /* Italian Red accent */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center; /* Center links */
    flex-wrap: wrap;
}

.top-nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 10px;
}

.top-nav a:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #008C45; /* Green hover */
}

.time-widget {
    margin-left: auto;
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Language Toggle --- */
.lang-toggle-container {
    display: flex;
    justify-content: center; /* Center the flags */
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 20px; /* Rounded pill shape - friendly */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.flag-icon {
    width: 32px;
    height: auto;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Active State (Italy) */
.active-lang {
    border: 2px solid #DAA520; /* Gold */
    background-color: #fff;
    cursor: default;
}

/* Inactive State (USA) */
.inactive-lang {
    border: 2px solid transparent;
    background-color: rgba(255,255,255,0.5);
    color: #666;
    opacity: 0.8;
}

.inactive-lang:hover {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 1;
}

/* --- Content --- */
h2, h3, h4 {
    color: #006400; /* Dark Green text for headers - trustworthy & Italian */
}

.intro-section {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.engineering-hook {
    background-color: #fff8dc; /* Cornsilk - very light yellow */
    border-left: 5px solid #CD212A; /* Red accent line */
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.brand-link {
    color: #CD212A; /* Red link */
    font-weight: bold;
    text-decoration: underline;
}

.services-list ul {
    list-style-type: circle;
    padding-left: 20px;
}

.services-list li {
    margin-bottom: 8px;
}

/* --- Contact Form --- */
.contact-section {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 600px;
    margin: 0 auto; /* Center the form */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button {
    background-color: #008C45; /* Italian Green Button */
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-button:hover {
    background-color: #006400; /* Darker green */
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    font-size: 0.85rem;
    color: #888;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .time-widget {
        /* Was "display: none" - changed to show it */
        display: flex; 
        margin-top: 10px; /* Adds space between links and clock */
        justify-content: center; /* Centers it on the screen */
    }
    .top-nav {
        flex-direction: column;
    }
}