/* FILE: style.css - VERSIONE DEFINITIVA */

/* --- 1. VARIABILI & COLORI GLOBALI --- */
:root {
    --primary-navy: #1a253a; /* Blu scuro Corporate */
    --accent-gold: #c5a065;  /* Oro CSA */
    --light-gray: #f4f4f4;
    --text-dark: #333;
    --text-light: #889bb0;
    --ey-gray: #f6f6fa;      /* Grigio "Big 4" per sfondi leggeri */
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.site-main {
    flex: 1 0 auto;
    overflow-x: clip;
    width: 100%;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-navy);
}

/* --- 2. TOP BAR (BANDA NERA/BLU) --- */
/* Questo è il pezzo che mancava */
.top-bar { 
    background: var(--primary-navy); /* Usa il colore corporate per eleganza */
    color: #fff; 
    font-size: 0.75rem; 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar span {
    opacity: 0.9;
    margin-right: auto; /* Spinge i link a destra */
    font-weight: 500;
    letter-spacing: 0.5px;
}

.top-bar a { 
    color: var(--accent-gold); /* Link color oro */
    text-decoration: none; 
    margin-left: 20px; 
    transition: color 0.3s ease;
}

.top-bar a:hover { 
    color: #fff; 
    text-decoration: underline;
}

/* --- 3. NAVBAR --- */
.navbar {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 0.4rem 0;
}
.navbar-brand img {
    max-height: 42px;
    width: auto;
}
.main-surface-nav-shell {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    position: relative;
    width: 100%;
}
.main-surface-primary-nav {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.main-surface-primary-nav::marker,
.main-surface-utility-nav::marker,
.main-surface-primary-nav > .nav-item::marker,
.main-surface-utility-nav > .nav-item::marker {
    content: "";
}
.main-surface-primary-nav .nav-link,
.main-surface-utility-nav .nav-link {
    margin-left: 0;
}
.main-surface-primary-nav > .nav-item {
    display: block;
    flex: 0 0 auto;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.main-surface-utility-nav > .nav-item {
    align-items: center;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-surface-primary-nav > .nav-item > .nav-link,
.main-surface-utility-nav > .nav-item > .nav-link {
    align-items: center;
    display: inline-flex;
    line-height: 1;
    min-height: 40px;
}
.main-surface-primary-nav > .nav-item > .nav-link {
    gap: 0.35rem;
    padding-inline: 0.72rem;
}
.main-surface-primary-nav .dropdown-toggle::after,
.main-surface-utility-nav .dropdown-toggle::after {
    flex: 0 0 auto;
    margin-left: 0.08rem;
    transform: translateY(0.02rem);
    vertical-align: middle;
}
.main-surface-utility-nav {
    align-items: center;
    flex: 0 0 auto;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding-left: 0;
    white-space: nowrap;
}
.main-surface-utility-nav .nav-item {
    align-items: center;
    display: flex;
}
.main-surface-utility-nav .nav-item.border-start {
    margin-left: 0.2rem;
    padding-left: 0.9rem !important;
}
.surface-chip {
    align-items: center;
    border: 1px solid #d9dee7;
    border-radius: 999px;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-left: 0.6rem;
    padding: 0.3rem 0.75rem;
    text-transform: uppercase;
}
.nav-link {
    color: var(--primary-navy) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-left: 16px;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-gold) !important;
}
.portal-cta {
    background: #f3d26b;
    border: 1px solid rgba(197,160,101,0.55);
    border-radius: 999px;
    color: #122036;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.52rem 0.88rem;
    white-space: nowrap;
}
.main-surface-utility-nav .btn {
    white-space: nowrap;
}
.portal-cta:hover {
    background: #e7c45b;
    color: #0f1d32;
}

/* --- 4. HERO SECTIONS & HEADERS --- */

/* Hero per Pagine Interne (About, Services) */
.page-header {
    background-color: var(--primary-navy);
    color: white;
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Hero Specifica per Home Page (Big 4 Style) */
.hero-big4 {
    min-height: 68vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #081626 0%, #102235 48%, #17314d 100%);
    display: flex;
    align-items: center;
    color: white;
    padding: 72px 0 60px;
}
.hero-big4::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(92deg, rgba(8, 18, 32, 0.94) 0%, rgba(11, 24, 41, 0.88) 34%, rgba(12, 28, 49, 0.45) 58%, rgba(12, 28, 49, 0.18) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 28%);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}
.hero-big4::after {
    content: "";
    position: absolute;
    inset: auto -8% -34% auto;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197,160,101,0.22) 0%, rgba(197,160,101,0) 70%);
    pointer-events: none;
    z-index: 1;
}
.home-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.9) contrast(1.02) brightness(0.82);
}
.hero-content {
    background: rgba(16, 31, 53, 0.9);
    padding: 2.3rem;
    max-width: 720px;
    border-left: 5px solid var(--accent-gold);
    box-shadow: 0 28px 60px rgba(0,0,0,0.16);
}

.hero-editorial {
    min-height: 520px;
    padding: 88px 0 72px;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.hero-editorial::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(98deg, rgba(6,16,29,0.9) 0%, rgba(8,18,32,0.78) 34%, rgba(8,18,32,0.52) 58%, rgba(8,18,32,0.34) 100%),
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 24%);
    z-index: 1;
    pointer-events: none;
}

.hero-editorial::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 32%;
    background: linear-gradient(180deg, rgba(7,18,34,0) 0%, rgba(7,18,34,0.38) 58%, rgba(7,18,34,0.62) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-panel {
    position: relative;
    z-index: 2;
    max-width: 640px;
    width: 100%;
    min-height: 220px;
    padding: 26px 28px;
    background: linear-gradient(180deg, rgba(7, 18, 34, 0.92), rgba(9, 22, 39, 0.88));
    border: 1px solid rgba(255,255,255,0.16);
    border-left: 4px solid var(--accent-gold);
    border-radius: 16px;
    box-shadow: 0 28px 60px rgba(8, 18, 34, 0.34);
    backdrop-filter: blur(9px);
}

.hero-panel .hero-kicker {
    letter-spacing: 2px;
    font-weight: 700;
}

.hero-panel .hero-title {
    line-height: 1.02;
    text-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

.hero-panel .hero-subtitle {
    max-width: 54ch;
    font-size: 1.04rem;
    line-height: 1.55;
    text-shadow: 0 8px 20px rgba(0,0,0,0.24);
}

.surface-media-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: 22px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: #0f2138;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.surface-media-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.94) contrast(1.03) brightness(0.84);
}

.surface-media-card img[src$=".svg"] {
    height: 240px;
    min-height: 240px;
    object-fit: contain;
    object-position: center center;
    padding: 1.15rem 1.15rem 0.85rem;
    background: linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%);
    filter: none;
}

@supports selector(.surface-media-card:has(> img[src$=".svg"])) {
    .surface-media-card:has(> img[src$=".svg"]) {
        background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
        box-shadow: 0 20px 42px rgba(15, 23, 42, 0.09);
    }

    .surface-media-card:has(> img[src$=".svg"])::after {
        background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(11, 24, 39, 0.12) 46%, rgba(11, 24, 39, 0.8) 100%);
    }
}

.surface-media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,18,32,0.12) 0%, rgba(8,18,32,0.34) 40%, rgba(8,18,32,0.84) 100%);
    pointer-events: none;
}

.surface-media-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 1.2rem 1.2rem 1.25rem;
}

.surface-media-kicker {
    color: #f3d26b;
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.surface-media-body h3,
.surface-media-body h4 {
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1;
    margin-bottom: 0.45rem;
}

.surface-media-body p {
    color: rgba(235, 241, 247, 0.86);
    font-size: 0.92rem;
    line-height: 1.58;
    margin-bottom: 0;
    max-width: 40ch;
}

.surface-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.surface-chip-row span {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    color: rgba(245,247,250,0.92);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
}

.surface-note-card {
    border: 1px solid #e3e8f0;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
    padding: 1.15rem 1.2rem;
}

.surface-note-card h3,
.surface-note-card h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.surface-note-card p,
.surface-note-card li {
    color: #536273;
    font-size: 0.92rem;
}

.connected-surfaces-menu {
    inset: 100% 0 auto auto !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    width: min(980px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    padding: 0;
    border-radius: 22px;
    overflow: hidden;
    pointer-events: auto;
    z-index: 1080;
}

@media (min-width: 992px) {
    .navbar-nav .connected-surfaces-nav-item:hover > .connected-surfaces-menu,
    .navbar-nav .connected-surfaces-nav-item:focus-within > .connected-surfaces-menu {
        animation: fadeIn 0.15s ease-in-out;
        display: block;
    }
}

.connected-surfaces-shell {
    padding: 1.15rem 1.15rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.connected-surfaces-lead {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.2rem;
    align-items: end;
    margin-bottom: 1rem;
}

.connected-surfaces-lead strong {
    color: #15253c;
    display: block;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.connected-surfaces-lead p {
    color: #5a6574;
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
    max-width: 46ch;
}

.surface-nav-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 1rem;
}

.surface-nav-card .surface-nav-cta {
    align-self: flex-start;
    margin-top: auto;
}

.advisory-mega-menu .container {
    max-width: 1180px;
}

.advisory-menu-shell {
    display: grid;
    gap: 1.35rem;
}

.advisory-menu-topline {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.advisory-menu-topline strong {
    color: #14253d;
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.advisory-menu-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.6rem;
}

.advisory-menu-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advisory-menu-group {
    min-width: 0;
}

.advisory-link-stack {
    display: grid;
    gap: 0.8rem;
}

.advisory-menu-link {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    color: inherit;
    display: block;
    padding: 0.95rem 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.advisory-menu-link:hover,
.advisory-menu-link:focus {
    border-color: #d4aa64;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.advisory-menu-link-title {
    color: #13233b;
    display: block;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.advisory-menu-link-copy {
    color: #5a6574;
    display: block;
    font-size: 0.84rem;
    line-height: 1.5;
}

.advisory-menu-link-featured {
    border-left: 4px solid #c5a065;
    padding-left: 0.9rem;
}

.advisory-entry-band {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1rem 1.05rem 1.1rem;
}

.advisory-entry-band-label {
    color: #8b6a36;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.advisory-entry-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.advisory-entry-pill {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 999px;
    color: #13233b;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.advisory-entry-pill:hover,
.advisory-entry-pill:focus {
    background: #fff9ef;
    border-color: #c5a065;
    transform: translateY(-1px);
}

.advisory-entry-pill-muted {
    color: #506073;
}

.surface-section-bridge {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
    padding: 1.2rem 1.25rem;
}

.home-hero-shell {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-card {
    background: linear-gradient(180deg, rgba(7, 18, 34, 0.92), rgba(9, 22, 40, 0.86));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(7,18,34,0.34);
    max-width: 600px;
    padding: clamp(1.35rem, 1.8vw, 2rem);
    backdrop-filter: blur(10px);
}

.home-kicker {
    color: #f3d26b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

.home-hero-title {
    color: #ffffff;
    font-size: clamp(1.68rem, 2.3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.98;
    margin-bottom: 0.8rem;
    max-width: none;
    text-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.home-hero-title span {
    color: inherit;
    display: inline;
}

.home-hero-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: clamp(0.98rem, 1.05vw, 1.12rem);
    font-weight: 600;
    line-height: 1.42;
    margin-bottom: 0.75rem;
    max-width: 40ch;
    text-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.home-hero-text {
    color: rgba(238, 244, 250, 0.84);
    font-size: 0.97rem;
    line-height: 1.62;
    margin-bottom: 0.9rem;
    max-width: 44ch;
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.home-hero-brief {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    margin-bottom: 0.95rem;
    max-width: 47ch;
    padding: 0.85rem 0.95rem;
}

.home-hero-brief span {
    color: #f3d26b;
    display: block;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.28rem;
    text-transform: uppercase;
}

.home-hero-brief p {
    color: rgba(240,244,248,0.86);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.home-proof-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-proof-inline-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    flex: 1 1 220px;
    padding: 0.7rem 0.85rem;
}

.home-proof-inline-item strong {
    color: #ffffff;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.12rem;
    text-transform: uppercase;
}

.home-proof-inline-item span {
    color: rgba(237,242,247,0.84);
    display: block;
    font-size: 0.74rem;
    line-height: 1.4;
}

.home-hero-caption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.75rem;
    max-width: 24rem;
}

.home-hero-caption span {
    color: rgba(243,210,107,0.92);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero-caption p {
    color: rgba(232,237,244,0.72);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.home-proof-kicker {
    color: #5b6473;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
}

.home-proof-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.95rem 1rem;
}

.home-proof-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.home-proof-card p,
.home-proof-card li {
    color: #4b5563;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.home-proof-list {
    margin: 0;
    padding-left: 1rem;
}

.home-proof-strip {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.home-first-fold {
    background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
    border-bottom: 1px solid #e7ebf2;
    padding: 2rem 0 2.2rem;
}

.home-first-fold-shell {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    align-items: stretch;
}

.home-first-fold-intro {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e3e8f0;
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(10,25,44,0.05);
    padding: 1.35rem 1.4rem;
}

.home-first-fold-intro h2 {
    color: #13233b;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    line-height: 1.02;
    margin-bottom: 0.7rem;
    max-width: 15ch;
}

.home-first-fold-intro p {
    color: #516173;
    margin: 0 0 1rem;
    max-width: 49ch;
}

.home-first-fold-points {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

.home-bridge-point {
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
    border: 1px solid #e6ebf3;
    padding: 0.8rem 0.88rem;
}

.home-bridge-point strong {
    color: #13233b;
    display: block;
    font-size: 0.87rem;
    margin-bottom: 0.18rem;
}

.home-bridge-point span {
    color: #5b6473;
    display: block;
    font-size: 0.8rem;
    line-height: 1.48;
}

.home-first-fold-media {
    display: grid;
    gap: 0;
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(10,25,44,0.06);
    overflow: hidden;
}

.home-first-fold-media img {
    width: 100%;
    height: 336px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.home-first-fold-media-note {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.1rem 1.2rem 1.2rem;
}

.home-first-fold-media-note h3 {
    color: #13233b;
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
    line-height: 1.08;
    margin-bottom: 0.65rem;
    max-width: 22ch;
}

.home-first-fold-media-note p {
    color: #516173;
    margin: 0;
    max-width: 46ch;
}

.home-proof-pill {
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    box-shadow: 0 14px 28px rgba(12, 23, 40, 0.05);
}

.home-proof-pill strong {
    color: #13233b;
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.home-proof-pill span {
    color: #5b6473;
    font-size: 0.83rem;
}

.home-section-lead {
    color: #445165;
    font-size: 1.03rem;
    max-width: 60ch;
}

.home-executive-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 18px 34px rgba(11,31,58,0.06);
}

.home-executive-panel h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.home-executive-list {
    margin: 0;
    padding-left: 1rem;
}

.home-executive-list li {
    color: #4b5563;
    margin-bottom: 0.55rem;
}

.home-methodology-stack {
    display: grid;
    gap: 1rem;
}

.home-method-note {
    background: #f7f8fb;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 1rem 1.15rem;
}

.home-method-note h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.diagram-shell {
    width: 100%;
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f6f9 100%);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 38px rgba(11, 31, 58, 0.08);
}

.diagram-shell img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0;
}

.surface-table-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e3e8f0;
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(10,25,44,0.05);
    overflow: hidden;
}

.surface-table-shell .table {
    margin-bottom: 0;
}

.surface-table-shell .table-responsive {
    margin: 0;
}

.surface-table-shell thead th {
    background: #13233b;
    border-bottom: 0;
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.surface-table-shell td,
.surface-table-shell th {
    border-color: #e3e8f0;
    padding: 1rem 1.05rem;
    vertical-align: top;
}

.surface-table-shell tbody th {
    color: #13233b;
    font-size: 0.88rem;
    font-weight: 800;
    min-width: 12rem;
}

.surface-table-shell td {
    color: #526173;
    font-size: 0.9rem;
    line-height: 1.58;
}

/* Sezione Aerospace (Industries) */
.aerospace-section {
    background: linear-gradient(to right, #1a253a 0%, #2c3e50 100%);
    color: white;
    padding: 80px 0;
}
.industry-header {
    background: var(--primary-navy);
    color: white;
    padding: 100px 0;
    text-align: center;
}

/* --- 5. COMPONENTI (Bottoni, ecc.) --- */
.btn-gold {
    background-color: var(--accent-gold);
    color: #fff;
    border-radius: 0;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}
.btn-gold:hover {
    background-color: #b08d55;
    color: #fff;
}
.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 2rem; 
    position: relative; 
}
.section-title::after { 
    content: ''; 
    display: block; 
    width: 50px; 
    height: 3px; 
    background: var(--accent-gold); 
    margin-top: 15px; 
}

/* --- 6. CARDS (Tutti i tipi) --- */

/* Card Tecniche (Industries) & Servizi Standard */
.tech-card, .service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    height: 100%;
    transition: 0.3s;
    overflow: hidden;
}
.tech-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-gold);
}
.tech-card-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tech-card-body { padding: 25px; }
.tech-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary-navy);
    color: white;
    padding: 5px 10px;
    border-radius: 2px;
}
.tech-icon { color: var(--accent-gold); font-size: 1.5rem; margin-bottom: 15px; }

/* Service Card Minimal (Home Page) */
.service-card-minimal { 
    border: 1px solid #e0e0e0; 
    padding: 2rem; 
    transition: 0.3s; 
    height: 100%; 
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.04);
}
.service-card-minimal:hover { 
    border-color: var(--accent-gold); 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.legacy-framework-card {
    --legacy-accent: var(--accent-gold);
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #dfe7f0;
    border-top: 4px solid var(--legacy-accent);
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(11, 31, 58, 0.06);
    height: 100%;
    padding: 1.35rem 1.3rem;
}

.legacy-framework-card--dark {
    background: linear-gradient(180deg, #14263f 0%, #0b1f3a 100%);
    border-color: rgba(255,255,255,0.08);
    color: #f8fafc;
}

.legacy-framework-card h3,
.legacy-framework-card h4,
.legacy-framework-card h5,
.legacy-framework-card h6 {
    color: #13233b;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

.legacy-framework-card--dark h3,
.legacy-framework-card--dark h4,
.legacy-framework-card--dark h5,
.legacy-framework-card--dark h6 {
    color: #f8fafc;
}

.legacy-framework-card p,
.legacy-framework-card li {
    color: #526173;
    font-size: 0.92rem;
    line-height: 1.62;
}

.legacy-framework-card--dark p,
.legacy-framework-card--dark li {
    color: rgba(241, 245, 249, 0.82);
}

.legacy-mini-callout {
    background: linear-gradient(180deg, #f8fafc 0%, #edf3f9 100%);
    border: 1px solid #dbe5ef;
    border-left: 4px solid var(--accent-gold);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(11, 31, 58, 0.05);
    padding: 1rem 1.1rem;
}

.legacy-mini-callout p:last-child {
    margin-bottom: 0;
}

.legacy-icon-badge {
    align-items: center;
    background: rgba(182, 142, 73, 0.12);
    border-radius: 999px;
    color: #9f7a35;
    display: inline-flex;
    font-size: 0.82rem;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding: 0.42rem 0.78rem;
}

.legacy-iceberg-card {
    background: linear-gradient(180deg, #f8fbff 0%, #eaf2fb 34%, #0f2138 34%, #0b1f3a 100%);
    border: 1px solid #d8e3ef;
    border-radius: 24px;
    box-shadow: 0 22px 42px rgba(11, 31, 58, 0.11);
    overflow: hidden;
}

.legacy-iceberg-head {
    padding: 1.35rem 1.25rem 0.5rem;
    text-align: center;
}

.legacy-iceberg-visible {
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(11, 31, 58, 0.08);
    color: #1f3a5a;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.55rem 0.95rem;
}

.legacy-iceberg-caption {
    color: #5d6c7f;
    font-size: 0.84rem;
    margin-top: 0.45rem;
}

.legacy-iceberg-waterline {
    border-top: 2px solid rgba(14, 165, 233, 0.56);
    margin: 0.8rem 1.2rem 0;
}

.legacy-iceberg-layers {
    display: grid;
    gap: 0.7rem;
    padding: 1.1rem 1.2rem 1.2rem;
}

.legacy-iceberg-layer {
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 16px;
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.8rem 0.9rem;
}

.legacy-ownership-math {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: space-between;
}

.legacy-ownership-node,
.legacy-ownership-result {
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(11, 31, 58, 0.06);
    color: #13233b;
    flex: 1 1 150px;
    font-size: 0.86rem;
    font-weight: 700;
    min-width: 135px;
    padding: 0.85rem 0.9rem;
    text-align: center;
}

.legacy-ownership-result {
    background: linear-gradient(180deg, #8b1e2a 0%, #6f1520 100%);
    border-color: #7a1c28;
    color: #f8fafc;
}

.legacy-ownership-operator {
    color: #b68e49;
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    width: 1.5rem;
}

.legacy-timeline-card {
    background: linear-gradient(180deg, #162944 0%, #0b1f3a 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(11, 31, 58, 0.16);
    color: #f8fafc;
    height: 100%;
    padding: 1.4rem 1.3rem;
}

.legacy-timeline-card h3,
.legacy-timeline-card h4 {
    color: #f8fafc;
}

.legacy-timeline-step {
    border-left: 3px solid var(--accent-gold);
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.legacy-timeline-step:last-child {
    margin-bottom: 0;
}

.legacy-timeline-step strong {
    color: #f3d26b;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.legacy-timeline-step span {
    color: rgba(241, 245, 249, 0.82);
    font-size: 0.88rem;
    line-height: 1.58;
}

.legacy-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.legacy-badge-row .badge {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.58rem 0.84rem;
}

.process-step {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dfe7f0;
    border-top: 4px solid var(--accent-gold);
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(11, 31, 58, 0.05);
    height: 100%;
    padding: 1.3rem 1.15rem;
    text-align: center;
}

.process-step h5 {
    color: #13233b;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

.process-arrow {
    align-items: center;
    color: #b68e49;
    display: flex;
    font-size: 2rem;
    justify-content: center;
}

.home-first-fold-note {
    margin-bottom: 1.2rem;
}

.public-business-shell {
    margin-top: clamp(2.75rem, 5vw, 4.2rem);
}

.public-business-grid {
    margin-top: 0.2rem;
}

.public-business-callout {
    align-items: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    border: 1px solid #dbe5ef;
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(11, 31, 58, 0.06);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: 1.2rem 1.3rem;
}

.public-business-callout h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.public-business-callout p {
    color: #536273;
    font-size: 0.94rem;
    line-height: 1.58;
}

/* Process Card (Methodology) */
.process-card {
    background: #fff;
    padding: 2rem;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s;
    position: relative;
}
.process-card:hover { transform: translateY(-5px); }
.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: #e9ecef;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

/* Insight Card (Home Page) */
.insight-card img { width: 100%; height: 200px; object-fit: cover; }
.insight-meta { font-size: 0.8rem; color: #888; margin: 10px 0; text-transform: uppercase; letter-spacing: 1px; }

/* Leader Card (About) */
.leader-card { 
    border-left: 5px solid var(--accent-gold); 
    background: #fff; 
    padding: 2rem; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

/* --- 7. TABS SERVIZI --- */
.nav-pills .nav-link {
    color: var(--primary-navy);
    background-color: white;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: 500;
    text-align: left;
    padding: 15px 20px;
}
.nav-pills .nav-link.active {
    background-color: var(--primary-navy);
    color: var(--accent-gold);
}

/* --- 8. FOOTER --- */
footer {
    background-color: var(--primary-navy);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 4rem 0;
}
footer h5 { 
    color: #fff; 
    margin-bottom: 1.5rem; 
    font-family: 'Roboto', sans-serif; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
}
footer ul li { margin-bottom: 10px; }
footer a { color: var(--text-light); text-decoration: none; }
footer a:hover { color: var(--accent-gold); }

@media (max-width: 991.98px) {
    .process-arrow i {
        transform: rotate(90deg);
    }

    .legacy-ownership-math {
        justify-content: flex-start;
    }

    .main-surface-nav-shell,
    .main-surface-primary-nav,
    .main-surface-utility-nav {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    .main-surface-primary-nav {
        justify-content: flex-start;
        margin: 0;
    }

    .main-surface-utility-nav .nav-item.border-start {
        border-left: 0 !important;
        margin-left: 0;
        padding-left: 0 !important;
    }

    .connected-surfaces-menu {
        inset: auto !important;
        left: 0 !important;
        right: auto !important;
        max-width: none;
        width: 100%;
    }

    .connected-surfaces-shell {
        padding: 1rem;
    }

    .advisory-menu-topline {
        align-items: stretch;
        flex-direction: column;
    }

    .advisory-menu-actions {
        flex-wrap: wrap;
    }

    .advisory-menu-grid,
    .advisory-entry-grid {
        grid-template-columns: 1fr;
    }

    .hero-big4 {
        min-height: auto;
        padding: 56px 0;
    }

    .hero-content,
    .hero-panel {
        padding: 1.6rem;
    }

    .hero-editorial {
        min-height: auto;
        padding: 68px 0 56px;
    }

    .surface-media-card img {
        min-height: 250px;
    }

    .home-hero-grid,
    .home-proof-strip,
    .home-signal-row,
    .home-visual-grid,
    .home-visual-footer,
    .home-first-fold-shell,
    .home-first-fold-cards,
    .home-first-fold-bridge,
    .home-first-fold-bridge-points {
        grid-template-columns: 1fr;
    }

    .home-hero-title {
        max-width: none;
    }

    .home-first-fold-intro h2 {
        max-width: none;
    }

    .home-first-fold-media img {
        height: 240px;
    }

    .public-business-callout {
        align-items: flex-start;
        flex-direction: column;
    }

    .surface-chip {
        display: none !important;
    }
}
