/* ====================================================== */
/* VARIABILI GLOBALI                                      */
/* ====================================================== */

:root {
    --blue: #174f9d;
    --blue-dark: #0f3f82;
    --green: #3a9d23;
    --orange: #ef7d00;
    --text: #1f2937;
    --muted: #667085;
    --bg: #f7f9fc;
    --border: #e5e7eb;
    --white: #fff;
    --shadow: 0 10px 30px rgba(15,23,42,.08);
    --radius: 22px;
    --max: 1180px;
}
/* ====================================================== */
/* RESET E REGOLE GENERALI                                */
/* ====================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial,Helvetica,sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--max),calc(100% - 32px));
    margin: auto;
}
/* ====================================================== */
/* INTESTAZIONE E NAVIGAZIONE                             */
/* ====================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.brand-sub {
    font-size: .95rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: .95rem;
    color: #475467;
}
/* ====================================================== */
/* HERO PRINCIPALE                                        */
/* ====================================================== */

.hero {
    background: linear-gradient(135deg,#f8fbff 0%,#eef5ff 50%,#f9fcf7 100%);
    padding: 72px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--blue);
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 18px;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem,4vw,4.1rem);
    line-height: 1.08;
    color: #0f172a;
}

h2 {
    margin: 0;
    font-size: clamp(1.8rem,3vw,2.8rem);
    line-height: 1.15;
    color: #101828;
}

h3 {
    margin: 0 0 10px;
    color: var(--blue-dark);
}

.hero p {
    font-size: 1.08rem;
    color: #475467;
    margin: 18px 0 0;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    padding: 14px 22px;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--blue-dark);
    color: #fff;
}

.btn-secondary {
    border-color: #cfd4dc;
    background: #fff;
}

.hero-card,.feature-box,.card,.portrait {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.hero-card-body {
    padding: 22px;
}
/* ====================================================== */
/* SEZIONI E STRUTTURE GENERALI                           */
/* ====================================================== */

section {
    padding: 76px 0;
}

.section-alt {
    background: var(--bg);
}

.section-lead {
    max-width: 900px;
    color: var(--muted);
    font-size: 1.04rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-top: 36px;
}

.feature-box {
    padding: 26px;
}
/* ====================================================== */
/* CARTE DEI SERVIZI                                      */
/* ====================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
    margin-top: 34px;
}

.card {
    padding: 24px;
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(15,23,42,.04);
}

.card p,.card li {
    color: var(--muted);
}
/* ====================================================== */
/* FILOSOFIA PROGETTUALE                                  */
/* ====================================================== */

.philosophy-hero {
    background: linear-gradient(rgba(0,0,0,.36),rgba(0,0,0,.36)),url('../img/Ba_Surf_NoGlass_Horiz.jpeg') center/cover;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.philosophy-copy {
    padding: 60px 0;
}

.philosophy-copy h2 {
    color: #fff;
    max-width: 850px;
}

.quote {
    background: #fff;
    border-left: 5px solid var(--blue);
    padding: 32px;
    border-radius: 0 22px 22px 0;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
}

.values {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
    margin-top: 30px;
}

.value {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
}
/* ====================================================== */
/* PROFILO DELL’INGEGNERE BA ZHILI                        */
/* ====================================================== */

.engineer {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 36px;
    align-items: center;
    margin-top: 34px;
}

.portrait img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
/* ====================================================== */
/* CONTATTI                                               */
/* ====================================================== */

.contact-box {
    background: linear-gradient(135deg,#0f3f82,#174f9d 60%,#2166c7);
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
    margin-top: 34px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin-top: 16px;
}

.contact-item {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 18px;
}

footer {
    padding: 24px 0 36px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.section-title-spaced {
    margin-top: 54px;
}

.future-callout {
    margin-top: 34px;
    text-align: center;
    background: #0f3f82;
    color: #ffffff;
}

.text-white {
    color: #ffffff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
/* ====================================================== */
/* MENU A TENDINA PER LA SCELTA DELLA LINGUA              */
/* ====================================================== */

.language-picker {
    position: relative;
    flex: 0 0 auto;
}

.language-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 76px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
    .language-current: hover {
    border-color: var(--blue);
    background: #eef5ff;
}
    .language-current: focus-visible {
    outline: 3px solid rgba(23, 79, 157, 0.24);
    outline-offset: 3px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    display: none;
    width: 190px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.language-picker.open .language-menu {
    display: grid;
    gap: 4px;
}

.language-menu button {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
    .language-menu button: hover {
    background: #eef5ff;
    color: var(--blue-dark);
}

.language-menu button.active {
    background: var(--blue);
    color: var(--white);
}
/* ====================================================== */
/* PAGINE MULTILINGUA IN UN UNICO INDEX.HTML              */
/* ====================================================== */

.language-page {
    display: none;
}

.language-page.is-active {
    display: block;
}
/* ===================================================== */
/* PULSANTE CURRICULUM                                    */
/* ===================================================== */

.button-container
{
    margin-top: 30px;
}

.btn-primary
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 24px;
    background-color: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-primary:hover
{
    background-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

@media
(
    max-width: 768px
)
{
    .language-menu
    {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: auto;
        width: 210px;
        max-width: calc(100vw - 30px);
        transform: none;
        z-index: 2000;
    }
}