/* ================================================================
   Studio Azzopardi — site.css
   Editorial-medical refined direction
   ================================================================ */

:root {
    /* Palette */
    --paper:        #f5f1e8;
    --paper-soft:   #ebe5d2;
    --paper-warm:   #ece5d0;
    --ink:          #1a1a1a;
    --ink-soft:     #3a3a36;
    --ink-mute:     #6b6a63;
    --rule:         rgba(26, 26, 26, 0.14);
    --rule-soft:    rgba(26, 26, 26, 0.08);
    --brass:        #8b6f3a;
    --brass-deep:   #5b4823;
    --sage:         #3d4f3d;
    --sage-deep:    #233523;

    /* Typography */
    --font-display: "Fraunces", "Times New Roman", Times, serif;
    --font-body:    "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --font-mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Sizing scale */
    --shell-max:   1280px;
    --shell-wide:  1440px;
    --gutter:      clamp(1.25rem, 4vw, 3rem);
    --section-y:   clamp(5rem, 10vw, 9rem);

    /* Motion */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.7, 0, .3, 1);
}

/* ----------------------------------------------------------------
   Reset & base
   ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color .25s var(--ease-out), text-decoration-color .25s var(--ease-out);
}

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 380;
    letter-spacing: -.015em;
    line-height: 1.05;
    font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 em, h2 em, h3 em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
    color: var(--brass-deep);
}

p { margin: 0 0 1em; }

::selection { background: var(--ink); color: var(--paper); }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    top: -100px; left: 1rem;
    background: var(--ink); color: var(--paper);
    padding: .75rem 1rem;
    font-size: .85rem;
    z-index: 200;
    transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ----------------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.shell--wide { max-width: var(--shell-wide); }

.section { padding: var(--section-y) 0; position: relative; }

.section--dark {
    background: var(--ink);
    color: var(--paper);
}
.section--dark { --rule: rgba(245, 241, 232, 0.18); }
.section--dark h1 em,
.section--dark h2 em,
.section--dark h3 em { color: #d6b87a; }
.section--dark .section-num { color: #d6b87a; }

/* ----------------------------------------------------------------
   Reusable bits
   ---------------------------------------------------------------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    margin: 0 0 2rem;
}
.eyebrow__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 0 4px rgba(139,111,58,0.18);
}

.section-head {
    margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}
.section-head--center { text-align: center; }

.section-num {
    display: block;
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .18em;
    color: var(--brass);
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .005em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .25s var(--ease-out),
                color .25s var(--ease-out),
                border-color .25s var(--ease-out),
                transform .25s var(--ease-out);
}
.btn--ghost {
    color: var(--ink);
    border-color: var(--ink);
    background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--solid {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn--solid:hover { background: var(--brass-deep); border-color: var(--brass-deep); }
.btn--solid svg { transition: transform .35s var(--ease-out); }
.btn--solid:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 241, 232, 0.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.site-header[data-scrolled="true"] {
    border-bottom-color: var(--rule);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}
.wordmark__mark {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 380;
    background: var(--paper);
}
.wordmark__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.wordmark__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: -.01em;
    font-weight: 400;
}
.wordmark__sub {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: .3rem;
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2.4rem;
}
.nav__list a {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    font-size: .92rem;
    position: relative;
    padding: .4rem 0;
}
.nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transition: right .35s var(--ease-out);
}
.nav__list a:hover::after { right: 0; }
.nav__num {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--brass);
}

.site-header__cta { display: inline-flex; }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 50%;
    position: relative;
}
.nav-toggle__bar {
    position: absolute;
    left: 50%; top: 50%;
    width: 16px; height: 1px;
    background: var(--ink);
    transition: transform .3s var(--ease-out), opacity .2s var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { transform: translate(-50%, -4px); }
.nav-toggle__bar:nth-child(2) { transform: translate(-50%, 3px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translate(-50%, 0) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    transform: translate(-50%, 0) rotate(-45deg);
}

.mobile-nav {
    border-top: 1px solid var(--rule);
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--paper);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.mobile-nav ul a {
    font-family: var(--font-display);
    font-size: 1.85rem;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: .65rem;
    padding: .35rem 0;
    border-bottom: 1px solid var(--rule-soft);
}
.mobile-nav ul em {
    font-family: var(--font-mono);
    font-style: normal;
    font-size: .7rem;
    color: var(--brass);
    letter-spacing: .12em;
}

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 70% 30%, rgba(139,111,58,.10), transparent 60%),
        radial-gradient(ellipse 70% 50% at 10% 90%, rgba(61,79,61,.08), transparent 70%),
        var(--paper);
}

.hero__grain {
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .35;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero__shell { position: relative; z-index: 2; }

.hero__title {
    font-size: clamp(3.8rem, 12vw, 11rem);
    line-height: .92;
    letter-spacing: -.035em;
    margin: 0 0 clamp(3rem, 6vw, 5rem);
    font-weight: 320;
}

.hero__line {
    display: block;
}
.hero__line--italic {
    font-style: italic;
    color: var(--brass-deep);
    padding-left: clamp(2rem, 12vw, 12rem);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.hero__meta {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    border-top: 1px solid var(--rule);
    padding-top: 2.5rem;
}

.hero__quote {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 1.45;
    color: var(--ink-soft);
    max-width: 36ch;
    position: relative;
    margin: 0;
    font-weight: 360;
}
.hero__quote-mark {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 4.5rem;
    line-height: 0;
    color: var(--brass);
    position: absolute;
    left: -1.6rem;
    top: 1.4rem;
}

.hero__facts {
    margin: 0;
    display: grid;
    gap: 1.25rem;
}
.hero__facts > div {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule-soft);
}
.hero__facts > div:last-child { border-bottom: none; padding-bottom: 0; }
.hero__facts dt {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--ink-mute);
    margin: 0;
}
.hero__facts dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
}
.hero__facts a { border-bottom: 1px solid transparent; }
.hero__facts a:hover { border-bottom-color: var(--ink); }

.hero__scroll {
    position: absolute;
    bottom: 2.2rem;
    right: var(--gutter);
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.hero__scroll svg { animation: scrollNudge 2.4s var(--ease-in-out) infinite; }
@keyframes scrollNudge {
    0%, 100% { transform: translateY(0); opacity: .8; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* ----------------------------------------------------------------
   Bio
   ---------------------------------------------------------------- */
.bio { background: var(--paper); }

.bio__shell {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: 3rem;
    align-items: start;
}

.bio .section-head { grid-column: 1 / -1; }

.bio__portrait {
    margin: 0;
    position: relative;
    grid-column: 1;
    grid-row: 2;
}
.bio__portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    border-radius: 2px;
    box-shadow:
        0 0 0 1px var(--rule),
        20px 28px 60px -30px rgba(26,26,26,0.4);
    transition: filter .8s var(--ease-out);
}
.bio__portrait:hover img { filter: grayscale(0) contrast(1); }
.bio__portrait figcaption {
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--ink-mute);
    margin-top: 1rem;
    padding-left: 1.2rem;
    border-left: 1px solid var(--brass);
}

.bio__text { grid-column: 2; grid-row: 2; }

.lede {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.35;
    color: var(--ink);
    margin: 0 0 2rem;
    max-width: 32ch;
    font-weight: 360;
}
.lede::first-letter {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 3.2em;
    line-height: .85;
    float: left;
    margin: .12em .15em 0 -.05em;
    color: var(--brass-deep);
    font-weight: 380;
}

.bio__columns {
    columns: 2;
    column-gap: 2.5rem;
    font-size: .98rem;
    line-height: 1.65;
    color: var(--ink-soft);
}
.bio__columns p { break-inside: avoid; margin: 0 0 1em; }
.bio__columns em {
    font-style: italic;
    color: var(--ink);
    font-family: var(--font-display);
}

.bio__credentials {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem 2rem;
}
.bio__credentials li {
    font-size: .87rem;
    color: var(--ink-soft);
    padding: .35rem 0;
    display: flex;
    gap: .8rem;
    align-items: baseline;
}
.bio__credentials span {
    font-family: var(--font-mono);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--brass);
    flex-shrink: 0;
    width: 2.5rem;
}

/* ----------------------------------------------------------------
   Aree (dark section)
   ---------------------------------------------------------------- */
.aree__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
}

.area {
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: relative;
    transition: background .4s var(--ease-out);
}
.area:nth-child(3n) { border-right: none; }
.area:hover {
    background: rgba(245, 241, 232, 0.04);
}

.area__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.6rem;
    color: #d6b87a;
    margin-bottom: 1.2rem;
    font-weight: 380;
}

.area__title {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    margin: 0 0 1rem;
    color: var(--paper);
    font-weight: 360;
}

.area__lede {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(245,241,232,0.8);
    margin: 0 0 1.8rem;
    font-style: italic;
    font-weight: 340;
}

.area__list {
    list-style: none;
    margin: 0;
    padding: 1.2rem 0 0;
    border-top: 1px solid rgba(245,241,232,0.15);
}
.area__list li {
    font-size: .9rem;
    color: rgba(245,241,232,0.78);
    padding: .55rem 0;
    border-bottom: 1px solid rgba(245,241,232,0.08);
    display: flex;
    gap: .8rem;
    align-items: baseline;
}
.area__list li::before {
    content: "";
    width: 4px; height: 4px;
    background: #d6b87a;
    border-radius: 50%;
    flex-shrink: 0;
    transform: translateY(-3px);
}
.area__list li:last-child { border-bottom: none; }

/* ----------------------------------------------------------------
   Percorso (timeline)
   ---------------------------------------------------------------- */
.percorso { background: var(--paper); }

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 920px;
    margin-inline: auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: clamp(7rem, 14vw, 12rem);
    width: 1px;
    background: linear-gradient(to bottom,
        transparent,
        var(--rule) 8%,
        var(--rule) 92%,
        transparent);
}

.timeline__item {
    display: grid;
    grid-template-columns: clamp(6rem, 12vw, 10rem) 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding: 2rem 0 2rem clamp(.5rem, 1vw, 1rem);
    position: relative;
}

.timeline__item::after {
    content: "";
    position: absolute;
    left: clamp(7rem, 14vw, 12rem);
    top: 2.5rem;
    width: 9px; height: 9px;
    background: var(--paper);
    border: 1px solid var(--brass);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.timeline__item:hover::after {
    background: var(--brass);
    transform: translateX(-50%) scale(1.3);
}

.timeline__item--current::after {
    background: var(--brass);
    box-shadow: 0 0 0 4px rgba(139,111,58,0.18);
}

.timeline__year {
    font-family: var(--font-mono);
    font-size: .85rem;
    letter-spacing: .06em;
    color: var(--brass-deep);
    padding-top: .5rem;
    text-align: right;
    align-self: start;
}
.timeline__item--current .timeline__year {
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--brass);
}

.timeline__body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    margin: 0 0 .5rem;
    line-height: 1.25;
    font-weight: 380;
}
.timeline__body h3 em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink);
}
.timeline__body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.55;
    max-width: 50ch;
}

/* ----------------------------------------------------------------
   Contatti
   ---------------------------------------------------------------- */
.contatti {
    background: var(--paper-soft);
    background:
        linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 35%);
}

.contatti__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.contatti__info {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
}

.info-block {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: baseline;
}
.info-block__label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.info-block p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--ink);
}
.info-block a {
    border-bottom: 1px solid var(--brass);
    padding-bottom: 1px;
}
.info-block a:hover { color: var(--brass-deep); }

.info-block--note {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    border-bottom: none;
}
.info-block--note p {
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-top: .8rem;
}

/* ----------------------------------------------------------------
   Form
   ---------------------------------------------------------------- */
.form {
    background: var(--paper);
    padding: clamp(2rem, 3vw, 2.8rem);
    border: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.field { display: flex; flex-direction: column; gap: .5rem; }
.field__label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.field__opt {
    text-transform: none;
    letter-spacing: 0;
    font-size: .68rem;
    color: var(--ink-mute);
    opacity: .7;
    font-style: italic;
}
.field input,
.field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    padding: .55rem 0;
    transition: border-color .25s var(--ease-out);
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--ink);
}
.field textarea {
    resize: vertical;
    min-height: 5rem;
    line-height: 1.55;
}

.form__honeypot {
    position: absolute;
    left: -10000px;
    top: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    flex-wrap: wrap;
}
.form__privacy {
    margin: 0;
    font-size: .8rem;
    color: var(--ink-mute);
    max-width: 28ch;
}

.form__status {
    margin: 0;
    font-size: .9rem;
    min-height: 1.2em;
}
.form__status[data-state="success"] { color: var(--sage-deep); }
.form__status[data-state="error"] { color: #a13c2e; }

/* ----------------------------------------------------------------
   Map
   ---------------------------------------------------------------- */
.map {
    margin: clamp(3rem, 6vw, 5rem) 0 0;
    grid-column: 1 / -1;
}

.map__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--paper-soft);
    box-shadow: 0 0 0 1px var(--rule-soft),
                30px 36px 80px -40px rgba(26,26,26,0.35);
}
.map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(.85) contrast(1.02) sepia(.08);
    transition: filter .8s var(--ease-out);
}
.map__frame:hover iframe { filter: grayscale(0) contrast(1) sepia(0); }

.map__caption {
    margin-top: 1.25rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 1.2rem;
    border-left: 1px solid var(--brass);
    flex-wrap: wrap;
}
.map__label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.map__link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-body);
    font-size: .88rem;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: color .25s var(--ease-out), border-bottom-color .25s var(--ease-out);
}
.map__link:hover {
    color: var(--brass-deep);
    border-bottom-color: var(--brass);
}
.map__link svg { transition: transform .35s var(--ease-out); }
.map__link:hover svg { transform: translate(2px, -2px); }

@media (max-width: 540px) {
    .map__frame { aspect-ratio: 4 / 3; }
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--rule);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-footer__brand .wordmark__mark {
    background: transparent;
    border-color: var(--paper);
    color: var(--paper);
}
.site-footer__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 380;
}
.site-footer__addr {
    margin: .25rem 0 0;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(245,241,232,0.6);
}

.site-footer__nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.site-footer__nav a {
    font-size: .85rem;
    color: rgba(245,241,232,0.7);
    transition: color .25s var(--ease-out);
}
.site-footer__nav a:hover { color: var(--paper); }

.site-footer__legal {
    margin: 0;
    text-align: right;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    color: rgba(245,241,232,0.55);
    line-height: 1.7;
}
.site-footer__credit { color: rgba(245,241,232,0.45); }

/* ----------------------------------------------------------------
   Reveal animations
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-out) var(--d, 0s),
                transform 1s var(--ease-out) var(--d, 0s);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: .75rem;
    }
    .nav,
    .site-header__cta { display: none; }
    .nav-toggle { display: grid; place-items: center; }

    .hero__title { font-size: clamp(3rem, 14vw, 6rem); }
    .hero__line--italic { padding-left: 2.5rem; }

    .hero__meta {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero__quote-mark {
        position: static;
        font-size: 3rem;
        display: block;
        margin-bottom: -1.4rem;
    }

    .bio__shell {
        grid-template-columns: 1fr;
    }
    .bio__portrait { grid-column: 1; grid-row: 2; max-width: 420px; }
    .bio__text { grid-column: 1; grid-row: 3; }
    .bio__columns { columns: 1; }
    .bio__credentials { grid-template-columns: 1fr; }

    .aree__grid {
        grid-template-columns: 1fr;
    }
    .area { border-right: none !important; }

    .timeline::before { left: clamp(4rem, 18vw, 6rem); }
    .timeline__item { grid-template-columns: clamp(4rem, 16vw, 5.5rem) 1fr; gap: 1.5rem; }
    .timeline__item::after { left: clamp(4rem, 18vw, 6rem); top: 2.3rem; }

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

    .site-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .site-footer__brand { justify-content: center; }
    .site-footer__legal { text-align: center; }
}

@media (max-width: 540px) {
    body { font-size: 16px; }
    .form__row { grid-template-columns: 1fr; }
    .info-block { grid-template-columns: 1fr; gap: .35rem; }
    .info-block--note { padding-top: 1.5rem; }
    .form__footer { flex-direction: column; align-items: flex-start; }
    .hero__facts > div { grid-template-columns: 1fr; gap: .35rem; }
    .lede::first-letter { font-size: 2.6em; }
    .timeline__item { padding-left: 0; }
}

/* ----------------------------------------------------------------
   Print
   ---------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .hero__scroll, .nav-toggle, .mobile-nav, .form { display: none; }
    body { background: white; color: black; font-size: 11pt; }
    .section { padding: 1.5rem 0; }
    .reveal { opacity: 1; transform: none; }
}
