@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --primary-color: #ffc107; /* Giallo */
    --secondary-color: #003366; /* Blu Scuro */
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: #333;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Hero Section */
.hero {
    background: url('telo.jpg') no-repeat center center/contain;
    background-color: var(--secondary-color); /* Aggiunto per riempire lo spazio vuoto */
    color: var(--white);
    text-align: center;
    padding: 40px 20px; /* Ridotto padding per dare più spazio all'immagine */
    position: relative;
    min-height: 500px; /* Assicura un'altezza minima per la visibilità */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Overlay più leggero */
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(0, 51, 102, 0.7); /* Sfondo semi-trasparente per leggibilità */
    padding: 20px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Main Content Sections */
.section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

/* Services */
#services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 0;
}

/* Contact Section */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media(max-width: 768px) {
    header h1, .hero h2 {
        font-size: 2rem;
    }
    .hero {
        min-height: 300px;
    }
}
