/* ========================================
   HAL — HARDWARE ANALOG LOGIC
   STILE PRINCIPALE
   ======================================== */


/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
    background: #ffffff;
    line-height: 1.6;
}

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

.container {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}


/* ---------- HEADER ---------- */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    width: min(1180px, 100%);
    min-height: 82px;
    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-main {
    font-size: 34px;
    font-weight: 700;
}


.logo span:not(.logo-main) {
    margin-top: 7px;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #777777;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 13px;
    color: #555555;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #000000;
}


/* ---------- HERO ---------- */

.hero {
    background: #e9e9e6;
    min-height: 650px;

    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.eyebrow {
    margin-bottom: 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #666666;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 700;
    margin-bottom: 35px;
}

.hero-description {
    max-width: 520px;
    margin-bottom: 35px;
    font-size: 20px;
    line-height: 1.5;
    color: #555555;
}

.button {
    display: inline-block;
    padding: 15px 24px;

    background: #171717;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: #444444;
    transform: translateY(-2px);
}


/* ---------- HERO VISUAL ---------- */

.hero-visual {
    width: 100%;
}
.hero-visual img {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: block;

    object-fit: cover;

    filter: grayscale(100%);

    transition: filter 0.3s ease;
}

.hero-visual img:hover {
    filter: grayscale(0%);
}


/* ---------- DISCIPLINES ---------- */

.disciplines {
    border-bottom: 1px solid #363B3F;
    background: #1D2125;
}

.discipline h2 {
    color: #FFFFFF;
}

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

.discipline {
    min-height: 150px;
    padding: 35px 25px;

    border-right: 1px solid #363B3F;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.discipline:first-child {
    border-left: 1px solid #363B3F;
}

.discipline span {
    font-size: 10px;
    color: #888888;
    letter-spacing: 0.1em;
}

.discipline h2 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* ---------- SECTIONS ---------- */

.section {
    padding: 120px 0;
    background: #151719;
    color: #F1F1ED;
}

.section .section-label {
    color: #D6A84F;
}

.section h2 {
    color: #FFFFFF;
}

.section p {
    color: #F1F1ED;
    font-weight: 500;
}

.section-light {
    background: #e9e9e6;
}

.section-label {
    margin-bottom: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #777777;
}

/* ---------- APPROACH ---------- */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.two-column h2 {
    max-width: 520px;

    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.two-column > div:last-child {
    max-width: 570px;
}

.two-column p:not(.section-label) {
    margin-bottom: 22px;

    font-size: 17px;
    line-height: 1.75;
    color: #F1F1ED;
}


/* ---------- HEADINGS ---------- */

.section-heading {
    max-width: 700px;
    margin-bottom: 60px;

    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}


/* ---------- CARDS ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;

    background: #cfcfcb;
    border: 1px solid #cfcfcb;
}

.card {
    background: #e9e9e6;
    padding: 40px;
    min-height: 260px;
}

.card-number {
    display: block;
    margin-bottom: 45px;

    font-size: 10px;
    color: #888888;
}

.card h3 {
    margin-bottom: 15px;

    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.card p {
    max-width: 440px;

    font-size: 15px;
    line-height: 1.7;
    color: #666666;
}


/* ---------- INTERVENTIONS ---------- */

.intervention-list {
    border-top: 1px solid #d5d5d5;
}

.intervention {
    display: grid;
    grid-template-columns:  1fr 1.5fr;
    gap: 30px;

    padding: 28px 0;

    border-bottom: 1px solid #d5d5d5;
    align-items: center;
}

.intervention span {
    font-size: 10px;
    color: #888888;
}

.intervention h3 {
    font-size: 20px;
    font-weight: 500;
}

.intervention p {
    color: #F1F1ED;
    font-size: 15px;
}


/* ---------- EXPERIENCE ---------- */

.experience {
    padding: 120px 0;
    background: #171717;
    color: #ffffff;
}

.experience .section-label {
    color: #D6A84F;
}

.experience h2 {
    max-width: 850px;
    margin-bottom: 70px;

    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.experience-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;

    padding: 25px 0;

    border-top: 1px solid #444444;
    border-bottom: 1px solid #444444;

    font-size: 14px;
}

.experience-line span:nth-child(even) {
    color: #666666;
}

.experience-text {
    max-width: 650px;
    margin-top: 40px;

    color: #F1F1ED;
    font-size: 16px;
    line-height: 1.7;

}

.experience-intro {
    max-width: 850px;
    margin-bottom: 70px;

}

.experience-intro p {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.75;
    color: #F1F1ED;
}

.experience-intro p:last-child {
    margin-bottom: 0;
}
/* ---------- EXPERIENCE INTRO ---------- */



/* ---------- CONTACT ---------- */

.contact {
    padding: 130px 0;
    background: #e9e9e6;
}

.contact-container {
    max-width: 1000px;
}
.contact h2 {
    max-width: 850px;
    margin-bottom: 30px;

    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.contact > .container > p:not(.section-label) {
    margin-bottom: 50px;

    font-size: 18px;
    color: #555555;
}

.contact-placeholder {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 50px;

    padding-top: 30px;
    border-top: 1px solid #c9c9c6;
}

.contact-placeholder p {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666666;
}


/* ---------- FOOTER ---------- */

footer {
    background: #111111;
    color: #ffffff;
    padding: 45px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-container strong {
    display: block;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.footer-container span {
    display: block;
    margin-top: 6px;

    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #888888;
}

.footer-container > p {
    max-width: 350px;

    font-size: 13px;
    line-height: 1.6;
    color: #888888;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 800px) {

    .header-container {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 20px;

        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 15px 25px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;

        padding-top: 70px;
        padding-bottom: 70px;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 52px;
    }

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

    .discipline {
        border-bottom: 1px solid #dedede;
    }

    .discipline:nth-child(odd) {
        border-left: 1px solid #dedede;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section {
        padding: 85px 0;
    }

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

    .intervention {
        grid-template-columns: 1fr;
        gap: 10px;
    }


.intervention h3,
.intervention p {
    grid-column: 1;
}

.intervention h3 {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 4px;
}

.intervention p {
    font-size: 15px;
    line-height: 1.5;
}

    .experience {
        padding: 85px 0;
    }

    .contact {
        padding: 90px 0;
    }

    .footer-container {
        flex-direction: column;
    }
}


@media (max-width: 500px) {

    .discipline {
        min-height: 90px;
        padding: 20px 15px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-description {
        font-size: 18px;
    }

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

    .discipline,
    .discipline:first-child {
        border-left: 1px solid #dedede;
        border-right: 1px solid #dedede;
    }

    .card {
        padding: 30px;
    }

    .experience-line {
        gap: 10px;
    }




}

/* ==============================
   CARD ESPERIENZA — DARK
   ============================== */

.experience .cards {
    background: #333333;
    border-color: #333333;
}

.experience .card {
    background: #202020;
    color: #ffffff;
    border: 1px solid #333333;
}

.experience .card-number {
    color: #888888;
}

.experience .card h3 {
    color: #ffffff;
}

.experience .card p {
    color: #b5b5b5;
}
/* ==============================
   SFONDO CARD ELETTRONICA
   ============================== */

.experience .card-elettronica {
    background-image: url("../img/Elettronica_color_overlay.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==============================
   TESTO CARD ELETTRONICA — SCURO
   ============================== */

.experience .card-elettronica {
    color: #171717;
}

.experience .card-elettronica .card-number {
    color: #555555;
}

.experience .card-elettronica h3 {
    color: #171717;
    font-weight: 600;
}

.experience .card-elettronica p {
    color: #444444;
    font-weight: 500;
}

/* ==============================
   SFONDO CARD FIRMWARE
   ============================== */

.experience .card-firmware {
    background-image: url("../img/SW_01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* ==============================
   TESTO CARD FIRMWARE — SCURO
   ============================== */

.experience .card-firmware {
    color: #171717;
}

.experience .card-firmware .card-number {
    color: #555555;
}

.experience .card-firmware h3 {
    color: #171717;
    font-weight: 600;
}

.experience .card-firmware p {
    color: #444444;
    font-weight: 500;
}


* ==============================
   TESTO CARD CON IMMAGINE
   ============================== */

.experience .card-elettronica h3,
.experience .card-firmware h3 {
    font-size: 26px;
    font-weight: 600;
}

.experience .card-elettronica p,
.experience .card-firmware p {
    font-size: 18px;
    font-weight: 600;
}
.experience .card-firmware h3 {
    white-space: nowrap;
}
/* ==============================
   SFONDO CARD MECCANICA
   ============================== */

.experience .card-meccanica {
    background-image: url("../img/meccanica_03.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
/* ==============================
   TESTO CARD MECCANICA — SCURO
   ============================== */

.experience .card-meccanica {
    color: #171717;
}

.experience .card-meccanica .card-number {
    color: #555555;
}

.experience .card-meccanica h3 {
    color: #171717;
    font-size: 26px;
    font-weight: 600;
}

.experience .card-meccanica p {
    color: #444444;
    font-size: 18px;
    font-weight: 600;
}
/* ==============================
   SFONDO CARD TEAM & SVILUPPO
   ============================== */

.experience .card-team {
    background-image: url("../img/Team 1.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
/* ==============================
   TESTO CARD TEAM & SVILUPPO — SCURO
   ============================== */

.experience .card-team {
    color: #171717;
}

.experience .card-team .card-number {
    color: #555555;
}

.experience .card-team h3 {
    color: #171717;
    font-size: 26px;
    font-weight: 600;
}

.experience .card-team p {
    color: #444444;
    font-size: 18px;
    font-weight: 600;
}
/* Nasconde i numeri delle card */

.card-number {
    display: none;
}
/* ==============================
   SFONDO CARD PROGETTI BLOCCATI
   ============================== */

.card-bloccato {
    background-image: url("../img/Bloccato.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* ==============================
   SFONDO CARD PROBLEMI COMPLESSI
   ============================== */

.card-complesso {
    background-image: url("../img/Complesso.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* ==============================
   SFONDO CARD VISIONE ESTERNA
   ============================== */

.card-visione {
    background-image: url("../img/Visione_esterna.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* ==============================
   SFONDO CARD PROBLEMI NEL PROCESSO
   ============================== */

.card-processo {
    background-image: url("../img/Processo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* ==============================
   IMMAGINI CARD INTERVENTI — 85%
   ============================== */

.card-bloccato,
.card-complesso,
.card-visione,
.card-processo {
    background-size: 85% auto;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #cfcfcb;
}
/* ==============================
   TESTO CARD INTERVENTI
   ============================== */

.card-bloccato h3,
.card-complesso h3,
.card-visione h3,
.card-processo h3 {
    color: #171717;
    font-size: 26px;
    font-weight: 600;
}

.card-bloccato p,
.card-complesso p,
.card-visione p,
.card-processo p {
    color: #444444;
    font-size: 18px;
    font-weight: 600;
}
/* ---------- INTERVENTI — TEMA SCURO ---------- */

#interventi {
    background: #1D2125;
    color: #F1F1ED;
}

#interventi .section-label {
    color: #D6A84F;
}

#interventi .section-heading {
    color: #FFFFFF;
}
/* ---------- TESTO CARD INTERVENTI ---------- */

#interventi .card p {
    color: #444444;
}
/* ---------- NASCONDE NUMERI INTERVENTI ---------- */

.intervention span {
    display: none;
}
/* ---------- NASCONDE NUMERI DISCIPLINE ---------- */

.discipline span {
    display: none;
}
.hero {
    background: #25292C;
    min-height: 650px;

    display: flex;
    align-items: center;
}

.hero .eyebrow {
    color: #D6A84F;
}

.hero h1 {
    color: #FFFFFF;
}

.hero-description {
    color: #F1F1ED;
}

.hero .button {
    background: #D6A84F;
    color: #171717;
}

.hero .button:hover {
    background: #FFFFFF;
    color: #171717;
}
/* ---------- CONTACT — TEMA SCURO ---------- */

.contact {
    background: #25292C;
    color: #F1F1ED;
}

.contact .section-label {
    color: #D6A84F;
}

.contact h2 {
    color: #FFFFFF;
}

.contact > .container > p:not(.section-label) {
    color: #F1F1ED;
}

.contact-placeholder {
    border-top-color: #363B3F;
}

.contact-placeholder p {
    color: #B8BCBE;
}
/* ---------- MENU — STILE PULSANTI ---------- */

nav ul {
    gap: 10px;
}

nav a {
    display: inline-block;
    padding: 9px 14px;

    color: #FFFFFF;
    background: #171717;
    border: 1px solid #363B3F;
    border-radius: 4px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

nav a:hover {
    color: #171717;
    background: #D6A84F;
    border-color: #D6A84F;
}
/* ---------- HERO — NOME HAL ---------- */

.hero .eyebrow {
    font-size: 22px;
    letter-spacing: 0.16em;
}
/* ---------- FORM CONTATTI ---------- */

.contact-form {
    max-width: 850px;
    margin-top: 50px;
}

.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #F1F1ED;
    font-size: 14px;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: #1D2125;
    color: #F1F1ED;
    border: 1px solid #363B3F;
    border-radius: 3px;
    font-family: inherit;
    font-size: 16px;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #D6A84F;
}

.contact-form button {
    padding: 14px 24px;
    background: #D6A84F;
    color: #171717;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

