﻿/* =========================
   Variabili e stile di base
   ========================= */

:root {
    --ink: #15243c;
    --ink-2: #243855;
    --blue: #263f64;
    --paper: #f7f5f0;
    --white: #fff;
    --gold: #b99a63;
    --muted: #6b7280;
    --line: #dcd8ce;
    --serif: "Libre Caslon Display",Georgia,serif;
    --sans: "DM Sans",Arial,sans-serif;
    --shell: min(1180px,calc(100% - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 99;
    padding: .7rem 1rem;
    background: #fff;
}

.skip-link:focus {
    top: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* Header e navigazione */

.topline {
    background: var(--ink);
    color: #fff;
    font-size: .78rem;
    letter-spacing: .08em;
}

.topline-inner {
    display: flex;
    justify-content: space-between;
    padding: .42rem 0;
}

.topline a {
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247,245,240,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(21,36,60,.1);
}

.nav-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 300px;
    max-height: 70px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    position: relative;
}

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 1px;
    background: var(--gold);
    transition: right .25s;
}

.main-nav a:hover::after,.main-nav a.active::after {
    right: 0;
}

.nav-cta {
    border: 1px solid var(--ink);
    padding: .65rem 1.05rem;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    padding: .5rem;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ink);
    margin: 5px;
}

/* Homepage: apertura */

.hero {
    min-height: 700px;
    display: grid;
    align-items: center;
    padding: 72px 0 90px;
    background: radial-gradient(circle at 15% 20%,#fff 0,transparent 33%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 7vw;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 1.2rem;
}

.hero h1,.section h2,.page-hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.02em;
    margin: 0;
}

.hero h1 {
    font-size: clamp(3.5rem,6.5vw,6.4rem);
    max-width: 720px;
}

.hero-lead {
    max-width: 620px;
    font-size: 1.12rem;
    color: #4a5567;
    margin: 2rem 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .92rem 1.3rem;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: .2s;
}

.button.primary {
    background: var(--ink);
    color: #fff;
}

.button.primary:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.text-link {
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    border-bottom: 1px solid var(--gold);
    padding-bottom: .15rem;
}

.text-link span {
    display: inline-block;
    margin-left: .3rem;
    transition: transform .2s;
}

.text-link:hover span {
    transform: translateX(4px);
}

.hero-visual {
    position: relative;
    min-height: 535px;
    background: var(--ink);
}

.hero-visual>img {
    width: 100%;
    height: 535px;
    object-fit: cover;
    opacity: .83;
    filter: saturate(.72) contrast(1.04);
}

.hero-note {
    position: absolute;
    left: -45px;
    bottom: -32px;
    background: #fff;
    width: 310px;
    padding: 1.4rem 1.5rem;
    border-left: 3px solid var(--gold);
    box-shadow: 0 16px 40px rgba(21,36,60,.12);
}

.hero-note strong,.hero-note span {
    display: block;
}

.hero-note strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
}

.hero-note span {
    font-size: .84rem;
    color: var(--muted);
    margin-top: .35rem;
}

/* Sezioni generali */

.section {
    padding: 115px 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
}

.section h2 {
    font-size: clamp(2.6rem,4.2vw,4.5rem);
    max-width: 720px;
}

.prose {
    font-size: 1.08rem;
    color: #4a5567;
    padding-top: 2rem;
}

.prose p:first-child {
    margin-top: 0;
}

.prose .text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--ink);
}

.services-preview {
    background: #fff;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 3.4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-card {
    position: relative;
    min-height: 330px;
    padding: 2rem 1.6rem;
    text-decoration: none;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: .25s;
}

.service-card>span {
    font-size: .74rem;
    color: var(--gold);
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 3.5rem 0 1rem;
}

.service-card p {
    font-size: .9rem;
    color: var(--muted);
}

.service-card b {
    position: absolute;
    right: 1.6rem;
    bottom: 1.5rem;
    font-weight: 400;
    font-size: 1.2rem;
}

.service-card:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(21,36,60,.15);
}

.service-card:hover p {
    color: #c8d0dc;
}

/* Anteprima del team */

.team-teaser {
    background: var(--ink);
    color: #fff;
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 9vw;
}

.teaser-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg,#30496e,#1b2c47);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,.14);
    padding: 2rem;
}

.teaser-placeholder span {
    font-family: var(--serif);
    font-size: clamp(2.3rem,4vw,4.4rem);
    line-height: 1.05;
}

.teaser-placeholder small {
    margin-top: 2rem;
    color: #b6c0cf;
}

.eyebrow.light {
    color: #d7bd8b;
}

.team-teaser h2 {
    font-size: clamp(2.8rem,4.5vw,4.8rem);
    color: #fff;
}

.team-teaser p {
    color: #c4ccd7;
    font-size: 1.05rem;
    margin: 1.7rem 0 2rem;
}

.light-button {
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
}

.light-button:hover {
    background: #fff;
    color: var(--ink);
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 9vw;
    align-items: start;
}

.contact-section p {
    color: #596274;
    max-width: 600px;
}

.locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.locations article {
    padding: 2rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.locations h3 {
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 400;
    margin: .3rem 0 1.2rem;
}

.locations .eyebrow {
    color: var(--gold);
}

/* Footer */

.footer {
    background: #0e1a2c;
    color: #c3cad4;
    padding: 65px 0 28px;
    font-size: .86rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
    gap: 3rem;
}

.footer img {
    width: 140px;
    filter: brightness(0) invert(1);
    opacity: .9;
    margin-bottom: 1.2rem;
}

.footer h3 {
    color: #fff;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 1.1rem;
}

.footer a,.footer span {
    display: block;
    text-decoration: none;
    margin: .45rem 0;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 3.5rem;
    padding-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    font-size: .74rem;
    color: #7f8a9a;
}

/* Pagine interne */

.page-hero {
    padding: 100px 0 80px;
    background: #fff;
}

.page-hero .shell {
    max-width: 1180px;
}

.page-hero h1 {
    font-size: clamp(3.6rem,7vw,7rem);
    max-width: 900px;
}

.page-lead {
    font-size: 1.15rem;
    color: #566071;
    max-width: 700px;
    margin: 1.8rem 0 0;
}

.content-section {
    padding: 95px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 9vw;
}

.story-grid h2 {
    font-family: var(--serif);
    font-size: clamp(2.6rem,4vw,4.3rem);
    font-weight: 400;
    line-height: 1.08;
    margin: 0;
}

.story-body {
    font-size: 1.05rem;
    color: #4f596a;
}

.principles {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.principle {
    background: var(--paper);
    padding: 2.3rem;
}

.principle span {
    color: var(--gold);
    font-size: .74rem;
}

.principle h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
    margin: 1.8rem 0 .8rem;
}

.principle p {
    color: var(--muted);
    font-size: .92rem;
}

/* Pagina servizi */

.services-list {
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 90px 1fr 1.2fr;
    gap: 3rem;
    padding: 3.2rem 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 140px;
}

.service-row>span {
    color: var(--gold);
    font-size: .75rem;
}

.service-row h2 {
    font-family: var(--serif);
    font-size: 2.1rem;
    line-height: 1.12;
    font-weight: 400;
    margin: 0;
}

.service-row p {
    color: #586172;
    margin: 0;
}

.service-row ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: #586172;
}

/* Pagina professionisti */

.team-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9vw;
    margin-bottom: 4rem;
}

.team-intro p {
    color: #586172;
    font-size: 1.05rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
}

.person {
    background: #fff;
    border: 1px solid var(--line);
}

.photo-slot {
    aspect-ratio: 4/5;
    background: linear-gradient(145deg,#e4e3de,#cfd4d7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #728093;
    font-family: var(--serif);
    font-size: 4rem;
    position: relative;
}

.photo-slot small {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font: 500 .68rem var(--sans);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.person-info {
    padding: 1.5rem;
}

.person-info h2 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
    margin: 0 0 .35rem;
}

.role {
    color: var(--gold);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.person-info p {
    color: var(--muted);
    font-size: .9rem;
}

.network {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--line);
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
}

.network-card {
    background: #fff;
    padding: 1.6rem;
    border-left: 2px solid var(--gold);
}

.network-card h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin: 0;
}

.network-card p {
    color: var(--muted);
    font-size: .88rem;
    margin: .5rem 0 0;
}

/* Animazioni leggere allo scroll */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease,transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tablet */

@media (max-width: 900px) {
    :root {
        --shell: min(100% - 32px,1180px);
    }
    .nav-wrap {
        height: 76px;
    }
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 1.4rem 24px 2rem;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .main-nav.open {
        display: flex;
    }
    .nav-cta {
        width: 100%;
        text-align: center;
    }
    .hero {
        padding: 55px 0 80px;
        min-height: auto;
    }
    .hero-grid,.split,.teaser-grid,.contact-grid,.story-grid,.team-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero h1 {
        font-size: clamp(3.1rem,12vw,5.2rem);
    }
    .hero-visual {
        margin-left: 24px;
        min-height: 420px;
    }
    .hero-visual>img {
        height: 420px;
    }
    .hero-note {
        left: -24px;
    }
    .section {
        padding: 80px 0;
    }
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        gap: 4rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-row {
        grid-template-columns: 60px 1fr;
    }
    .service-row>div {
        grid-column: 2;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    .desktop-link {
        display: none;
    }
}

/* Smartphone */

@media (max-width: 580px) {
    .topline-inner span {
        display: none;
    }
    .topline-inner {
        justify-content: flex-end;
    }
    .hero-visual {
        margin-left: 12px;
    }
    .hero-note {
        width: calc(100% - 18px);
        left: -12px;
    }
    .section-head {
        align-items: start;
    }
    .service-grid,.locations,.principles,.team-grid,.network-grid,.footer-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        min-height: 265px;
    }
    .footer-bottom {
        display: block;
    }
    .footer-bottom span+span {
        margin-top: .8rem;
    }
    .service-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-row>div {
        grid-column: auto;
    }
    .page-hero {
        padding: 70px 0 60px;
    }
    .page-hero h1 {
        font-size: 3.7rem;
    }
}



