/* RESET E VARIABILI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #004b87; /* Blu aziendale */
    --secondary-color: #f39c12; /* Arancione per accenti */
    --text-color: #333333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* STRUTTURA DI BASE */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* HEADER E NAVIGAZIONE */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

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

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

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

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

/* MAIN CONTENT */
main {
    flex: 1;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.hero {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-box {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-box h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* GRID SERVIZI E CONTATTI */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card ul {
    list-style-position: inside;
    margin-top: 10px;
}

.card li {
    margin-bottom: 8px;
}

/* TABELLA ORARI */
.table-container {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: var(--primary-color);
    color: white;
}
.closed {
    color: #e74c3c;
    font-weight: bold;
}

/* MAPPA TESTUALE */
.text-map {
    background: #e9ecef;
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    margin-top: 20px;
    font-style: italic;
}

/* CONTATTI LIST */
.contact-list {
    list-style: none;
    font-size: 1.2rem;
}
.contact-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
.contact-link:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .features {
        flex-direction: column;
        align-items: center;
    }
    .feature-box {
        width: 100%;
    }
}