:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-alt: #eef2f6;
    --primary: #163a59;
    --primary-strong: #122f47;
    --accent: #1f6f8b;
    --text: #1f2933;
    --muted: #526271;
    --border: #d5dee7;
    --border-strong: #bdc9d6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 6px 20px rgba(22, 58, 89, 0.08);
    --shadow-md: 0 12px 28px rgba(22, 58, 89, 0.12);
    --transition: 180ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
}

h1,
h2,
h3,
h4,
.logo {
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 88px 0;
}

.bg-light {
    background: var(--surface-alt);
}

.bg-dark {
    background: var(--primary);
    color: #fff;
}

.white {
    color: #fff;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: #f8fafc;
    color: var(--primary);
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge.accent {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(22, 58, 89, 0.06);
}

.flex-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-image {
    display: block;
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1b446a;
    text-transform: uppercase;
}

.logo.has-logo-image .logo-fallback {
    display: none;
}

nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
}

.nav-links a:hover {
    background: var(--surface-alt);
}

.btn-cta {
    background: var(--primary);
    color: #fff !important;
}

.btn-cta:hover {
    background: var(--primary-strong);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--primary);
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
}

.hero {
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background-color: #365f7d;
    background-image: url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&q=80");
    background-position: center;
    background-size: cover;
    background-blend-mode: normal;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 34, 52, 0.32);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 760px;
}

.tagline {
    display: inline-block;
    color: #dce7f2;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin-top: 14px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    color: #fff;
}

.hero h1 span {
    color: #d8eaf7;
}

.hero p {
    margin-top: 18px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    padding: 12px 24px;
}

.btn-primary:hover {
    background: #1a5f78;
    border-color: #1a5f78;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
    padding: 12px 24px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.section-title {
    margin-bottom: 42px;
}

.section-title.centered {
    text-align: center;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

#azienda .grid-2 {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.align-center {
    align-items: center;
}

.about-text h2,
.contact-data h2,
.policy-page h2 {
    margin-top: 14px;
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.about-text p {
    color: var(--muted);
    margin-bottom: 14px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.team-member,
.service-card,
.safety-item,
.hiring-card,
.contact-form,
.policy-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
}

.team-member strong {
    display: block;
    margin-bottom: 2px;
    color: var(--primary);
}

.team-member span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.team-member .member-email {
    white-space: nowrap;
    font-size: 0.9rem;
}

.team-member p {
    margin-top: 8px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.about-image {
    position: relative;
}

.about-image img {
    min-height: 420px;
    object-fit: cover;
}

.experience-box {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(22, 58, 89, 0.86);
    color: #fff;
    padding: 12px 14px;
    min-width: 120px;
    text-align: center;
}

.experience-box strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
}

.experience-box span {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-card {
    padding: 24px 22px;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.service-card:hover,
.safety-item:hover,
.team-member:hover,
.docu-card:hover {
    border-color: #adc0d3;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e9f0f6;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-card h4 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

#marcatura .grid-2 h3 {
    margin-bottom: 8px;
}

#marcatura ul {
    list-style: disc;
    color: var(--muted);
}

#marcatura li {
    margin-bottom: 6px;
}

.docu-text p {
    color: rgba(255, 255, 255, 0.9);
}

.white-list {
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.white-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.92);
}

.white-list i {
    margin-top: 4px;
    color: #bcd8ea;
}

.docu-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.docu-card i {
    color: #d6e8f5;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.docu-card h3 {
    margin-bottom: 8px;
}

.safety-grid-full {
    display: grid;
    gap: 14px;
}

.safety-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 20px;
    transition: var(--transition);
}

.safety-item i {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e9f0f6;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
}

.safety-item p {
    color: var(--muted);
}

.hiring-card {
    padding: clamp(24px, 3vw, 38px);
    text-align: center;
}

.hiring-card h3 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin-bottom: 10px;
}

.hiring-card p {
    color: var(--muted);
}

.jobs {
    margin: 18px 0;
    font-weight: 600;
    color: var(--primary);
}

.small {
    font-size: 0.92rem;
}

.contact-data {
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.contact-data p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.contact-data i {
    width: 24px;
    color: #d4e7f6;
}

.tekom-logo {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.tekom-logo p {
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form {
    padding: clamp(22px, 3vw, 34px);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    padding: 12px 13px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.16);
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.privacy-consent input {
    width: auto;
    margin-top: 4px;
    padding: 0;
    border: none;
}

.privacy-consent a {
    color: var(--accent);
    text-decoration: underline;
}

footer {
    background: #0f2437;
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

footer a,
.footer-link-button {
    color: #c7def0 !important;
}

.footer-link-button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    padding: 0;
}

.cookie-banner {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: flex-end;
    padding: 12px;
    background: rgba(15, 36, 55, 0.42);
    z-index: 9999;
}

.cookie-box {
    width: min(900px, 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 24px;
    position: relative;
}

.cookie-box h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    color: var(--primary);
}

.cookie-box p {
    color: var(--muted);
    font-size: 0.94rem;
}

.cookie-box a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-note {
    margin-top: 8px;
    font-size: 0.84rem;
    color: #6a7b8c;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cookie-btn {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 0.88rem;
}

.cookie-btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.cookie-btn.dark {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cookie-btn.outline {
    background: #fff;
    color: var(--primary);
    border-color: var(--border-strong);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: rgba(15, 36, 55, 0.5);
    z-index: 10000;
}

.cookie-modal-content {
    width: min(420px, 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 22px;
    position: relative;
}

.cookie-option {
    margin: 14px 0;
    color: var(--text);
}

.cookie-option input {
    margin-right: 8px;
}

.cookie-close,
.cookie-close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--primary);
    font-size: 1.12rem;
    cursor: pointer;
}

.policy-page {
    max-width: 920px;
}

.policy-box {
    padding: clamp(22px, 3vw, 38px);
}

.policy-intro {
    padding: 16px;
    margin-bottom: 22px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    background: #eef4f9;
    color: var(--text);
}

.policy-page h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

.policy-page h3 {
    color: var(--primary);
    font-size: 1.26rem;
    margin-top: 26px;
    margin-bottom: 8px;
}

.policy-page h4 {
    color: var(--accent);
    margin-top: 16px;
    margin-bottom: 8px;
}

.policy-page p,
.policy-page li {
    color: var(--muted);
    font-size: 0.95rem;
}

.policy-page ul {
    margin: 8px 0 14px 18px;
    list-style: disc;
}

.policy-links a {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 1080px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .section-padding {
        padding: 76px 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    #azienda .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-flex;
    }

    nav {
        margin-left: 0;
    }

    .nav-links {
        position: absolute;
        top: 74px;
        right: 20px;
        width: min(280px, calc(100vw - 40px));
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-md);
        background: #fff;
        box-shadow: var(--shadow-md);
        padding: 12px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero {
        min-height: 78vh;
        padding-top: 126px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .about-image img {
        min-height: 300px;
    }

    .safety-item {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        gap: 6px;
    }

    .logo-image {
        height: 34px;
    }

    .logo-fallback {
        font-size: 1.1rem;
        letter-spacing: 0.03em;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .contact-data,
    .contact-form,
    .policy-box,
    .cookie-box,
    .cookie-modal-content {
        padding: 18px;
    }
}
