﻿@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    /* ── UI / DARK THEME ── */
    --bg:          #080810;
    --surface:     #0E0E1A;
    --surface-up:  #1A1535;
    --border:      #2A2550;
    --ink:         #FFFFFF;
    --muted:       #AFA9EC;
    --brand:       #7F77DD;
    --brand-glow:  rgba(127, 119, 221, 0.12);
    --cyan:        #00FFF0;
    /* ── BRAND / CARTA INTESTATA ── */
    --brand-navy:  #0A1E2E;
    --brand-steel: #163A52;
    --brand-cyan:  #30C0E0;
    --brand-grey:  #707070;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

p { margin: 0; }

/* â”€â”€ LAYOUT â”€â”€ */
.container {
    width: min(1140px, 90%);
    margin: 0 auto;
}

/* ── HEADER ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--brand-steel);
}

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

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    margin-right: auto;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    margin-right: 20px;
}

.nav-links a {
    display: block;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 150ms, background 150ms;
}

.nav-links a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--brand-cyan);
    background: rgba(48, 192, 224, 0.08);
}

.lang-toggle {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 5px 13px;
    transition: color 150ms, border-color 150ms, background 150ms;
    flex-shrink: 0;
}

.lang-toggle:hover {
    color: var(--brand-cyan);
    border-color: var(--brand-cyan);
    background: rgba(48, 192, 224, 0.08);
}

/* ── HERO ── */
.hero {
    padding: 96px 0 80px;
    border-bottom: 1px solid var(--brand-steel);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text .lead {
    max-width: 60ch;
}

.hero-text h1 {
    max-width: 22ch;
}

.hero-visual {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--brand-steel);
    box-shadow: 0 0 60px rgba(0, 255, 240, 0.12);
}

.hero-visual img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    filter: saturate(0.7) brightness(0.85);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(127, 119, 221, 0.15) 0%, rgba(0, 255, 240, 0.05) 100%);
    pointer-events: none;
}

/* ── SECTION PHOTO ── */
.section-photo {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--brand-steel);
    margin-bottom: 40px;
}

.section-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    filter: saturate(0.65) brightness(0.8);
}

/* ── PAGE PHOTO STRIP ── */
.page-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: var(--r-md);
    border: 1px solid var(--brand-steel);
    filter: saturate(0.6) brightness(0.75);
    margin-bottom: 44px;
}

@media (max-width: 760px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -180px;
    left: -100px;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(127, 119, 221, 0.09) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -60px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(48, 192, 224, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 52px;
}

.hero-logo-main {
    height: 500px;
    width: auto;
    filter: drop-shadow(0 0 48px rgba(0, 255, 240, 0.35));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    max-width: 16ch;
    color: var(--ink);
    margin-bottom: 18px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero h1 em {
    font-style: normal;
    color: var(--cyan);
}

.lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 52ch;
    line-height: 1.7;
    margin-bottom: 36px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* â”€â”€ BUTTONS â”€â”€ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 150ms;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--brand-cyan);
    color: #080810;
    border-color: var(--brand-cyan);
}

.btn-primary:hover {
    background: #5DD8F0;
    border-color: #5DD8F0;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--brand-steel);
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--brand-cyan);
    background: rgba(48, 192, 224, 0.08);
}

/* â”€â”€ STATS STRIP â”€â”€ */
.stats-strip {
    background: linear-gradient(to right, var(--brand-navy), var(--surface), var(--brand-navy));
    border-bottom: 1px solid var(--brand-steel);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 26px 20px;
    border-right: 1px solid var(--brand-steel);
    text-align: center;
}

.stat:last-child { border-right: none; }

.stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-steel) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-lbl {
    display: block;
    font-size: 0.77rem;
    color: var(--muted);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

/* â”€â”€ SECTIONS â”€â”€ */
.section { padding: 80px 0; }

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--brand-steel);
    border-bottom: 1px solid var(--brand-steel);
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    color: var(--ink);
    margin-bottom: 14px;
    max-width: 32ch;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    color: var(--muted);
    font-size: 0.96rem;
    max-width: 56ch;
    margin-bottom: 44px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* â”€â”€ GRIDS â”€â”€ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* â”€â”€ CARDS â”€â”€ */
.card {
    background: var(--brand-navy);
    border: 1px solid var(--brand-steel);
    border-radius: var(--r-md);
    padding: 28px;
    text-align: center;
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: rgba(48, 192, 224, 0.07);
    border: 1px solid rgba(48, 192, 224, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--brand-cyan);
    margin: 0 auto 16px;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.card p,
.card li {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* â”€â”€ PAGE HEADER â”€â”€ */
.page-header {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--brand-steel);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -60px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 240, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    max-width: 22ch;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

.page-header p.desc {
    color: var(--muted);
    max-width: 56ch;
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* â”€â”€ SERVICE LIST â”€â”€ */
.svc-list {
    border: 1px solid var(--brand-steel);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 48px;
}

.svc-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--brand-steel);
    background: var(--brand-navy);
    transition: background 140ms;
}

.svc-item:last-child { border-bottom: none; }

.svc-item:hover { background: rgba(44, 100, 140, 0.3); }

.svc-arrow {
    color: var(--brand-cyan);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.svc-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
    display: block;
}

.svc-desc {
    font-size: 0.85rem;
    color: var(--muted);
}

/* â”€â”€ ENGAGEMENT CARDS â”€â”€ */
.eng-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.eng-card {
    background: var(--brand-navy);
    border: 1px solid var(--brand-steel);
    border-radius: var(--r-md);
    padding: 24px;
}

.eng-type {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 8px;
    display: block;
}

.eng-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.eng-desc {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.6;
}

/* â”€â”€ PROJECT CARDS â”€â”€ */
.project-list { display: grid; gap: 14px; }

.project-card {
    background: var(--brand-navy);
    border: 1px solid var(--brand-steel);
    border-left: 3px solid var(--brand-cyan);
    border-radius: var(--r-md);
    padding: 28px 32px;
    transition: background 140ms;
}

.project-card:hover { background: rgba(8, 56, 88, 0.7); }

.project-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 10px;
    display: block;
}

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

.project-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

.project-card p + p { margin-top: 6px; }

.project-badge { display: none; }

/* â”€â”€ CTA BLOCK â”€â”€ */
.cta-block {
    background: var(--brand-navy);
    border: 1px solid var(--brand-steel);
    border-radius: var(--r-lg);
    padding: 52px;
    text-align: center;
    margin-top: 64px;
}

.cta-block h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.cta-block p {
    color: var(--muted);
    font-size: 0.96rem;
    max-width: 50ch;
    margin: 0 auto 28px;
}

/* â”€â”€ VALUES LIST (about page) â”€â”€ */
.values-list {
    border: 1px solid var(--brand-steel);
    border-radius: var(--r-md);
    overflow: hidden;
}

.value-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    padding: 22px 28px;
    border-bottom: 1px solid var(--brand-steel);
    background: var(--brand-navy);
    transition: background 140ms;
}

.value-row:last-child { border-bottom: none; }

.value-row:hover { background: rgba(0, 255, 240, 0.03); }

.value-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-cyan);
    opacity: 0.7;
    padding-top: 2px;
}

.value-row h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.value-row p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
}

/* â”€â”€ CONTACT PAGE â”€â”€ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
    align-items: start;
}

.contact-side-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 20px;
    display: block;
}

.info-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-steel);
}

.info-row:last-child { border-bottom: none; }

.info-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 4px;
    display: block;
}

.info-value { font-size: 0.92rem; color: var(--ink); }
.info-value a { color: var(--brand-cyan); }
.info-value a:hover { text-decoration: underline; }

.form-card {
    background: var(--brand-navy);
    border: 1px solid var(--brand-steel);
    border-radius: var(--r-md);
    padding: 32px;
}

.form-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--brand-steel);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
    background: rgba(8, 8, 16, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: 0.9rem;
    font-family: inherit;
    padding: 10px 13px;
    width: 100%;
    transition: border-color 150ms;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(48, 192, 224, 0.15);
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.msg-field { margin-bottom: 0; }

.form-foot { margin-top: 18px; }

/* â”€â”€ FOOTER â”€â”€ */
.site-footer {
    border-top: 1px solid var(--brand-steel);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 28ch;
}

.footer-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 14px;
    display: block;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    font-size: 0.87rem;
    color: var(--muted);
    transition: color 140ms;
}

.footer-links a:hover { color: var(--ink); }

.footer-links li { font-size: 0.87rem; color: var(--muted); }

.footer-bottom {
    border-top: 1px solid var(--brand-steel);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy { font-size: 0.8rem; color: var(--muted); }

.footer-credit {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: var(--brand-cyan);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* ── SKILL TAGS ── */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skill-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 11px;
    border-radius: 4px;
    background: var(--brand-navy);
    border: 1px solid var(--brand-steel);
    color: var(--muted);
    transition: color 140ms, border-color 140ms;
}

.skill-tag:hover {
    color: var(--brand-cyan);
    border-color: var(--brand-cyan);
}

.skill-tag.primary {
    background: rgba(48, 192, 224, 0.08);
    border-color: rgba(48, 192, 224, 0.35);
    color: var(--brand-cyan);
}

.skill-tag.cyan {
    background: rgba(0,255,240,0.06);
    border-color: rgba(0,255,240,0.25);
    color: var(--cyan);
}

/* ── EXPERTISE GROUPS ── */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.expertise-card {
    background: var(--brand-navy);
    border: 1px solid var(--brand-steel);
    border-radius: var(--r-md);
    padding: 22px 20px;
}

.expertise-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 12px;
}

@media (max-width: 760px) {
    .expertise-grid { grid-template-columns: 1fr; }
}

/* ── TIMELINE / PILLAR ROW ── */
.pillar-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    padding: 22px 28px;
    border-bottom: 1px solid var(--brand-steel);
    background: var(--brand-navy);
    transition: background 140ms;
}
.pillar-row:last-child { border-bottom: none; }
.pillar-row:hover { background: rgba(44, 100, 140, 0.3); }
.pillar-icon {
    font-size: 1.3rem;
    padding-top: 2px;
}
.pillar-row h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.pillar-row p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
}

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 1000px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .eng-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 8px;
    }

    .brand { order: 1; flex: 1; }
    .lang-toggle { order: 2; }

    .nav-links {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        margin-right: 0;
        padding-bottom: 4px;
    }

    .hero { padding: 56px 0 48px; }

    .stats-inner { grid-template-columns: repeat(2, 1fr); }

    .grid-2,
    .grid-3,
    .eng-grid { grid-template-columns: 1fr; }

    .contact-layout { grid-template-columns: 1fr; }

    .form-grid { grid-template-columns: 1fr; }

    .project-card { grid-template-columns: 1fr; }

    .project-badge { display: none; }

    .value-row { grid-template-columns: 40px 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cta-block { padding: 36px 24px; }
}