/* Mecotec srl — foglio di stile principale */

:root {
    --navy: #0a2540;
    --navy-2: #113a63;
    --accent: #2f8fd6;
    --accent-dark: #1c6dad;
    --ink: #1d2733;
    --muted: #5b6a7a;
    --bg: #ffffff;
    --bg-alt: #f2f6fa;
    --border: #dde5ec;
    --radius: 10px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
}

img { max-width: 100%; display: block; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--navy);
    text-decoration: none;
}

.brand span {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover { color: var(--accent-dark); }

.lang-switch {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.8rem;
    color: var(--muted);
}

.lang-switch strong { color: var(--navy); }

/* Hero */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #eaf2fa;
    padding: 72px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: #8fc1e8;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 18px;
    color: #ffffff;
}

.hero .subtitle {
    color: #c2d7ea;
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 540px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover { background: var(--accent-dark); }

.hero-media img {
    width: 100%;
    border-radius: var(--radius);
}

/* Sezioni */
.section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); }

.section h2 {
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 22px;
}

.center { text-align: center; }

h2.center { margin-bottom: 36px; }

/* Chi siamo */
.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.split-media img { border-radius: var(--radius); }

.split-text p { color: var(--muted); }

/* Card servizi */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #e3f0fa;
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.93rem;
    color: var(--muted);
}

/* Perché sceglierci */
.why-list {
    list-style: none;
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.why-list li {
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
}

/* Contatti */
.section-dark {
    background: var(--navy);
    color: #eaf2fa;
}

.section-dark h2 { color: #ffffff; }

.contact-intro {
    color: #c2d7ea;
    max-width: 560px;
    margin: -16px auto 36px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.contact-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: #8fc1e8;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    word-break: break-word;
}

.contact-item a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
    background: #071b30;
    color: #7f95a9;
    font-size: 0.85rem;
    padding: 20px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 820px) {
    .hero-inner, .split { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .cards, .contact-grid { grid-template-columns: 1fr; }
    .site-nav { gap: 14px; }
    .site-nav a { font-size: 0.85rem; }
    .section, .hero { padding: 48px 0; }
}
