:root {
    --primary-color: #0a2342;
    --secondary-color: #3a7bd5;
    /* Changed to a bright blue */
    --text-color: #333333;
    --light-bg: #f0f4f8;
    /* Slightly bluish light gray */
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--secondary-color);
}

.btn:hover {
    background: transparent;
    color: var(--secondary-color);
}

.section-padding {
    padding: 5rem 0;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    /* Reset margin since header is fixed */
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Services Section */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

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

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 4rem;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Interactive Map Styles */
.map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.map-container {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.italy-map {
    margin-top: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.italy-map svg {
    width: 100%;
    height: auto;
    max-height: 600px;
}

.region-group {
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-group circle {
    fill: var(--white);
    stroke: var(--secondary-color);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.region-group text {
    font-size: 10px;
    font-weight: 700;
    fill: var(--primary-color);
    text-anchor: middle;
    pointer-events: none;
    transition: all 0.3s ease;
}

.region-group:hover circle {
    fill: var(--secondary-color);
    stroke: var(--primary-color);
    transform: scale(1.1);
    transform-origin: center;
}

.region-group:hover text {
    fill: var(--white);
}

.region-group.active-region circle {
    fill: var(--primary-color);
    stroke: var(--secondary-color);
    stroke-width: 3;
    transform: scale(1.2);
    transform-origin: center;
}

.region-group.active-region text {
    fill: var(--white);
}

/* Tenders Display */
.tenders-display {
    width: 100%;
    max-width: 800px;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tenders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tender-card {
    border-left: 4px solid var(--secondary-color);
    text-align: left;
}

.placeholder-text {
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (min-width: 992px) {
    .map-section {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .map-container {
        flex: 1;
    }

    .tenders-display {
        flex: 1;
        margin-top: 2rem;
    }
}