:root {
    --blue: #063568;
    --blue-deep: #05294f;

    /* oro elegante/satinato, non giallo acceso */
    --gold: #C5A15A;
    --gold-soft: #D4B774;

    --white: #ffffff;
    --white-soft: rgba(255,255,255,.82);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--blue-deep);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    font: inherit;
}

.page-shell {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;

    width: 100%;
    height: 100px;
    padding: 0 clamp(28px, 5vw, 84px);

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

    border-bottom: 1px solid rgba(255,255,255,.13);
}

/* =========================================================
   LOGO TESTUALE
   "STUDIO LEGALE / PEZZELLA"
   ========================================================= */

.logo-wordmark {
    position: relative;

    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 154px;
    padding: 8px 0 10px;

    line-height: 1;
    transition: opacity .22s ease, transform .22s ease;
}

.logo-wordmark:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.logo-top {
    margin-left: 2px;
    margin-bottom: 7px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .31em;
    text-transform: uppercase;

    color: var(--gold-soft);
}

.logo-bottom {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
    letter-spacing: .015em;

    color: var(--gold);
}

.logo-rule {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 42px;
    height: 1px;

    background: var(--gold);
    opacity: .82;

    transition: width .25s ease;
}

.logo-wordmark:hover .logo-rule {
    width: 72px;
}

/* =========================================================
   MENU
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.3vw, 42px);
}

.main-nav a {
    position: relative;
    padding: 39px 0 35px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);

    transition: color .22s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;

    height: 1px;
    background: var(--gold);

    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    margin: 6px auto;
    background: var(--gold);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: var(--blue);
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: -3;

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(0, 34, 76, .92) 0%,
            rgba(0, 38, 80, .80) 24%,
            rgba(0, 42, 84, .43) 42%,
            rgba(0, 42, 84, .10) 58%,
            rgba(0, 28, 60, .08) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 22, 49, .22) 0%,
            transparent 28%,
            transparent 72%,
            rgba(0, 20, 42, .47) 100%
        );
}

.hero-content {
    position: absolute;
    left: clamp(30px, 6vw, 110px);
    top: 50%;
    transform: translateY(-44%);

    width: min(650px, 43vw);
}

.eyebrow {
    margin: 0 0 18px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(56px, 5.6vw, 96px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.048em;
}

h1 span {
    display: block;
}

.hero-text {
    max-width: 520px;
    margin: 30px 0 0;

    font-size: clamp(17px, 1.2vw, 21px);
    line-height: 1.55;
    color: rgba(255,255,255,.84);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 38px;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    min-height: 52px;
    padding: 0 22px;

    border: 1px solid #ffffff;
    background: #ffffff;
    color: var(--blue-deep);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.primary-link:hover {
    transform: translateY(-2px);
    background: #f3f5f7;
    border-color: #f3f5f7;
    color: var(--blue-deep);
}

.secondary-link {
    position: relative;
    padding: 15px 0;

    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.secondary-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;

    height: 1px;
    background: var(--gold);
}

/* =========================================================
   META + COPYRIGHT
   ========================================================= */

.hero-meta {
    position: absolute;
    left: clamp(30px, 6vw, 110px);
    bottom: 30px;

    display: flex;
    align-items: center;
    gap: 18px;

    font-size: 11px;
    letter-spacing: .055em;
    color: rgba(255,255,255,.62);
}

.hero-meta a {
    transition: color .2s ease;
}

.hero-meta a:hover {
    color: var(--gold-soft);
}

.meta-line {
    width: 38px;
    height: 1px;
    background: rgba(197,161,90,.55);
}

.hero-copyright {
    position: absolute;
    right: clamp(28px, 5vw, 84px);
    bottom: 30px;

    font-size: 10px;
    letter-spacing: .055em;
    color: rgba(255,255,255,.46);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {

    .site-header {
        height: 84px;
        padding-inline: 24px;
    }

    .logo-wordmark {
        min-width: auto;
    }

    .logo-top {
        font-size: 8px;
    }

    .logo-bottom {
        font-size: 27px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 31;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 30;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;

        padding: 110px 30px 50px;
        background: rgba(3, 35, 72, .985);

        transform: translateX(100%);
        transition: transform .3s ease;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255,255,255,.14);

        font-family: Georgia, "Times New Roman", serif;
        font-size: 28px;
        font-weight: 400;
        text-transform: none;
    }

    .main-nav a::after {
        display: none;
    }

    .hero-content {
        left: 28px;
        top: auto;
        bottom: 138px;
        transform: none;

        width: min(650px, calc(100% - 56px));
    }

    .hero-image {
        object-position: 58% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 31, 68, .32) 0%,
                rgba(0, 31, 68, .12) 35%,
                rgba(0, 31, 68, .48) 64%,
                rgba(0, 27, 60, .94) 100%
            );
    }

    h1 {
        font-size: clamp(50px, 11vw, 78px);
    }

    .hero-meta {
        left: 28px;
        bottom: 58px;
    }

    .hero-copyright {
        left: 28px;
        right: auto;
        bottom: 26px;
    }
}

@media (max-width: 620px) {

    .site-header {
        padding-inline: 20px;
    }

    .logo-bottom {
        font-size: 25px;
    }

    .hero-image {
        object-position: 59% center;
    }

    .hero-content {
        left: 22px;
        bottom: 128px;
        width: calc(100% - 44px);
    }

    .eyebrow {
        margin-bottom: 12px;
    }

    h1 {
        font-size: clamp(44px, 13vw, 62px);
    }

    .hero-text {
        margin-top: 20px;
        font-size: 16px;
    }

    .hero-actions {
        gap: 22px;
        margin-top: 28px;
        flex-wrap: wrap;
    }

    .primary-link {
        min-height: 48px;
        padding-inline: 18px;
    }

    .hero-meta {
        left: 22px;
        bottom: 54px;
        right: 22px;
        gap: 10px;
        font-size: 10px;
    }

    .meta-line {
        width: 20px;
    }

    .hero-copyright {
        left: 22px;
        bottom: 22px;
    }
}

@media (max-width: 420px) {

    .hero-meta span:first-child {
        display: none;
    }

    .meta-line {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
