* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
    }

body {
    background-image: url('../img_webp/sfondi/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff; 
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100vh; 
    background-image: url('../img_webp/sfondi/bg_Medial.webp') !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem; /* Slightly larger font */
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff; /* White text for better contrast */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Add shadow for readability */
}

.hero-content p {
    font-size: 2rem; /* Slightly larger font */
    font-weight: 400;
    color: #ffffff; /* White text for better contrast */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* Add shadow for readability */
}

.contact-container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 40px;
}

.office-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.office-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(12, 130, 193, 0.1);
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(12, 130, 193, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #0C82C1, #0a6da3); /* Ensure header background is dark */
    color: #ffffff; /* White text for better contrast */
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header .header-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 15px;
}

.card-header .header-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: transparent; /* Ensure no background color interferes */
    transition: opacity 0.3s ease;
}

.card-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: white;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.card-content {
    padding: 30px;
    color: #000000; /* Black text */
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(12, 130, 193, 0.03);
    border-radius: 12px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #0C82C1;
    text-align: left; /* Align text to the left */
    justify-content: flex-start; /* Move content to the left */
}

.section-title i {
    font-size: 1.2rem;
}

.section-title h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000; /* Black text for section titles */
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #000000; /* Black text for schedule items */
}

.schedule-item.closed {
    color: #666;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000000; /* Black text for contact links */
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #333333; /* Slightly darker text on hover */
    transform: translateX(5px);
}

.card-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0C82C1; /* Ensure badge background is dark */
    color: #ffffff; /* White text for better contrast */
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
}

.card-badge i {
    font-size: 1.2rem;
}

.location-section {
    margin-bottom: 25px;
}

.address-details {
    margin-top: 15px;
}

.address-text {
    margin-bottom: 15px;
}

.address-text p {
    margin: 0;
    line-height: 1.5;
    color: #000000; /* Black text for address details */
}

.street {
    font-size: 1.1em;
    font-weight: 500;
    color: #2c3e50;
}

.city {
    color: #34495e;
}

.region {
    color: #7f8c8d;
    font-size: 0.9em;
}

.map-preview {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.map-preview:hover {
    transform: translateY(-5px);
}

.map-preview iframe {
    display: block;
    width: 100%;
}

.map-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #0C82C1;
    color: white;
    padding: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.map-button:hover {
    background-color: #0a6da3;
}

.map-button i {
    font-size: 1.2em;
}

.map-button span {
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 20px;
    }

    .office-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .office-card {
        padding: 30px;
        margin-bottom: 30px;
    }

    .office-card h2 {
        font-size: 1.8rem;
    }

    .office-info span {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .contact-form,
    .contact-info-container {
        padding: 20px;
    }

    .card-header {
        padding: 25px;
    }
    
    .card-content {
        padding: 20px;
    }

    .hero-image {
        background-image: url('../img_webp/sfondi/bg_Medial_2.webp') !important;
    }
}

