/* --- STILI GENERALI --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* --- HEADER & NAVIGAZIONE --- */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 24px;
    color: #d9381e; /* Rosso Soccorso */
    font-weight: bold;
}

.logo-text p {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

nav ul li a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b00; /* Arancione fluo */
}

/* --- HERO SECTION (COPERTINA) --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('ambulanze.jpg');
    background-position: center;
    background-size: cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin-bottom: 30px;
}

.btn-call {
    background-color: #ff6b00;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    transition: transform 0.3s, background 0.3s;
}

.btn-call:hover {
    transform: translateY(-3px);
    background-color: #e05e00;
}

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

.section-title {
    text-align: center;
    font-size: 32px;
    color: #d9381e;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff6b00;
    margin: 10px auto 0;
}

.chi-siamo-text {
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto;
}

/* --- SCHEDE SERVIZI --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid #ff6b00;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* --- GALLERIA PARCO MEZZI --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.726);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-desc {
    padding: 15px;
    font-weight: 600;
    text-align: center;
    background: #fff;
    color: #555;
    border-top: 1px solid #eee;
}

/* --- SEZIONE CONTATTI --- */
.contact-info {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-info2 {
    background: #ffffff;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 0px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.phone-number {
    font-size: 36px;
    color: #d9381e;
    font-weight: bold;
    margin: 20px 0;
    display: block;
    text-decoration: none;
}

.Social {
    font-size: 20px;
    color: #004caf;
    font-weight: bold;
    margin: 20px 0;
    display: block;
    text-decoration: none;
}

.Posizione {
    margin: 20px 0;
    display: block;
    margin: 20px 0;
}

.mappe-container {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mappa-1, .mappa-2 {
  flex: 1;
  height: 450px; 
  margin: 0 10px;
}

.contact-sub {
    margin-top: 10px; 
    color: #666;
}

/* --- FOOTER --- */
footer {
    background-color: #222;
    color: #bbb;
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

/* --- RESPONSIVE (SMARTPHONE) --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .hero h2 {
        font-size: 30px;
    }
    .hero p {
        font-size: 16px;
    }
}