:root {
    --primary-color: #0d47a1; /* Deep Blue */
    --secondary-color: #ff6f00; /* Orange Accent (like Kuka) */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white: #fff;
    --text-color: #333;
    --heading-font: 'Titillium Web', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

/* Header */
header {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
#hero {
    background: url('hero-background.png') no-repeat center center/cover;
    color: var(--white);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e65100; /* Darker orange */
}

/* Main Content */
main {
    padding-top: 80px; /* Adjust for fixed header */
}

/* Services */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Brands */
.brand-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand {
    text-align: center;
}

.brand img {
    height: 150px;
    width: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.brand p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    font-family: var(--heading-font);
}

/* --- Contatti --- */
.contact-section {
  text-align: center; /* centra tutto il contenuto */
}

.contact-intro {
  text-align: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 18px;
}

.contact-info {
  display: inline-block; /* mantiene centrato il blocco di contatti */
  text-align: left;      /* ma lascia allineati a sinistra i testi interni */
  line-height: 1.8;
}

.contact-info a {
  color: var(--magenta);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media(max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    header .container {
        flex-direction: column;
    }

    header nav {
        margin-top: 10px;
    }

    #hero h2 {
        font-size: 2.5rem;
    }

    .brand-logos {
        flex-direction: column;
    }
}