:root {
    --ink: #17232d;
    --muted: #66727a;
    --navy: #1d3445;
    --terra: #b75d4c;
    --terra-dark: #984638;
    --cream: #f6f3ee;
    --line: #e4e0d9;
    --white: #fff;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px
}

body {
    margin: 0;
    color: var(--ink);
    font: 16px/1.65 var(--sans);
    background: #fff
}

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

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

a:hover {
    color: var(--terra)
}

button,
input,
textarea {
    font: inherit
}

.wrap {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: #fff;
    padding: 10px 14px;
    z-index: 20
}

.skip:focus {
    left: 10px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(23, 35, 45, .08);
    backdrop-filter: blur(12px)
}

.header-inner {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: .13em;
    white-space: nowrap
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 600
}

.nav a {
    transition: color .2s
}

.nav a[aria-current=page] {
    color: var(--terra)
}

.nav .language {
    border-left: 1px solid var(--line);
    padding-left: 22px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    width: 44px;
    height: 44px;
    color: var(--ink);
    font-size: 22px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--terra);
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
    transition: background .2s, transform .2s
}

.button:hover {
    background: var(--terra-dark);
    color: #fff;
    transform: translateY(-1px)
}

.button.outline {
    border-color: rgba(255, 255, 255, .65);
    background: transparent;
    color: #fff
}

.button.outline:hover {
    background: #fff;
    color: var(--navy)
}

.button.dark {
    background: var(--navy)
}

.button.dark:hover {
    background: #102431
}

.eyebrow {
    display: block;
    color: var(--terra);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase
}

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--navy) url('images/assistenzafiscale.jpeg') center 53%/cover no-repeat
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 31, 42, .86), rgba(16, 31, 42, .55) 54%, rgba(16, 31, 42, .26))
}

.hero-content {
    position: relative;
    max-width: 760px;
    padding: 90px 0
}

.hero .eyebrow {
    color: #e2b4a8
}

.hero h1 {
    max-width: 770px;
    margin: 17px 0 20px;
    font: 500 clamp(43px, 6vw, 76px)/1.04 var(--serif);
    letter-spacing: -.035em
}

.hero p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 18px
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px
}

.hero-note {
    position: absolute;
    right: max(24px, calc((100vw - var(--max))/2));
    bottom: 30px;
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75)
}

.section {
    padding: 94px 0
}

.section.soft {
    background: var(--cream)
}

.section-heading {
    max-width: 680px;
    margin-bottom: 40px
}

.section-heading h2 {
    margin: 11px 0 12px;
    font: 500 clamp(34px, 4vw, 48px)/1.13 var(--serif);
    letter-spacing: -.025em
}

.section-heading p {
    margin: 0;
    color: var(--muted)
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.service-card {
    min-height: 226px;
    padding: 26px 26px 28px;
    border: 1px solid var(--line);
    background: #fff;
    transition: transform .2s, border-color .2s, box-shadow .2s
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #d6b3a9;
    box-shadow: 0 18px 36px rgba(23, 35, 45, .07)
}

.service-index {
    display: block;
    color: #c08a7f;
    font: italic 18px var(--serif)
}

.service-card h3 {
    margin: 21px 0 9px;
    font: 500 24px/1.18 var(--serif)
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.service-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--terra);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase
}

.cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 36px;
    padding: 28px 32px;
    background: var(--navy);
    color: #fff
}

.cta-strip p {
    margin: 0;
    font: 500 23px/1.3 var(--serif)
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 70px;
    align-items: center
}

.intro-copy h2 {
    margin: 12px 0 18px;
    font: 500 clamp(36px, 4.3vw, 54px)/1.12 var(--serif)
}

.intro-copy p {
    color: var(--muted)
}

.intro-photo {
    position: relative
}

.intro-photo img {
    width: 100%;
    height: 430px;
    object-fit: cover
}

.photo-caption {
    position: absolute;
    left: -30px;
    bottom: 25px;
    padding: 18px 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 35, 45, .12);
    font: italic 17px var(--serif)
}

.values {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 27px 0 31px
}

.value {
    padding-right: 20px;
    border-right: 1px solid var(--line);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase
}

.value:last-child {
    border: 0
}

.team-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 42px
}

.team-mini {
    display: flex;
    align-items: center;
    gap: 16px
}

.team-mini img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover
}

.team-mini .portrait-mario {
    object-position: center 0%
}

.team-mini .portrait-paola {
    object-position: center 10%
}

.team-mini .portrait-giampiero {
    object-position: center 0%
}

.team-mini strong {
    display: block;
    font: 500 18px var(--serif)
}

.team-mini span {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.page-hero {
    padding: 90px 0;
    background: var(--cream)
}

.page-hero h1 {
    margin: 10px 0 12px;
    font: 500 clamp(40px, 5vw, 62px)/1.08 var(--serif);
    letter-spacing: -.03em
}

.page-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 18px
}

.content-narrow {
    max-width: 860px
}

.service-detail {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    padding: 54px 0;
    border-bottom: 1px solid var(--line)
}

.service-detail:first-child {
    padding-top: 0
}

.service-detail h2 {
    margin: 0;
    font: 500 30px/1.2 var(--serif)
}

.service-detail p {
    margin: 0 0 16px;
    color: #52616a
}

.service-detail ul {
    margin: 13px 0 20px;
    padding-left: 22px;
    color: #52616a
}

.service-detail li {
    padding: 4px 0
}

.service-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    margin: 18px 0 0
}

.note {
    margin-top: 24px;
    padding: 20px 22px;
    border-left: 3px solid var(--terra);
    background: var(--cream);
    font-size: 14px;
    color: var(--muted)
}

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

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

.person img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: top center
}

.person .portrait-paola {
    object-position: center 18%
}

.person .portrait-giampiero {
    object-position: center 14%
}

.person-copy {
    padding: 22px
}

.person h2 {
    margin: 0 0 5px;
    font: 500 25px var(--serif)
}

.person .role {
    margin: 0 0 14px;
    color: var(--terra);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em
}

.person p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 54px;
    align-items: start
}

.contact-intro h2 {
    font: 500 36px/1.15 var(--serif);
    margin: 11px 0 16px
}

.contact-intro p {
    color: var(--muted)
}

.contact-methods {
    display: grid;
    gap: 15px;
    margin-top: 25px
}

.contact-method {
    padding: 17px 19px;
    background: var(--cream);
    border-left: 2px solid var(--terra)
}

.contact-method small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase
}

.contact-method a,
.contact-method strong {
    font: 500 19px var(--serif)
}

.offices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.office {
    padding: 24px;
    border: 1px solid var(--line)
}

.office h3 {
    margin: 0 0 9px;
    font: 500 23px var(--serif)
}

.office p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px
}

.office a {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--terra)
}

.contact-form {
    padding: 30px;
    background: var(--cream)
}

.contact-form h2 {
    margin: 0 0 6px;
    font: 500 28px var(--serif)
}

.contact-form>p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field {
    display: grid;
    gap: 6px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: 12px;
    font-weight: 700
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #d6d2cb;
    background: #fff;
    padding: 12px 13px;
    border-radius: 2px;
    color: var(--ink)
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid rgba(183, 93, 76, .23);
    border-color: var(--terra)
}

.field textarea {
    min-height: 135px;
    resize: vertical
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 17px 0;
    font-size: 12px;
    color: var(--muted)
}

.consent input {
    margin-top: 4px
}

.form-message {
    min-height: 24px;
    color: var(--terra);
    font-size: 13px
}

.form-message[data-state="success"] {
    color: #276344
}

.form-message[data-state="error"] {
    color: #9d332b
}

.form-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.footer {
    padding: 56px 0 24px;
    background: #172b38;
    color: #fff
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 48px;
    padding-bottom: 38px
}

.footer .brand {
    color: #fff
}

.footer p,
.footer address {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-style: normal
}

.footer h3 {
    margin: 4px 0 15px;
    color: #e3c2b9;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase
}

.footer-links {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, .76);
    font-size: 13px
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding-top: 20px;
    color: rgba(255, 255, 255, .56);
    font-size: 11px
}

.footer a:hover {
    color: white
}

.legal {
    max-width: 760px;
    color: var(--muted)
}

.legal h2 {
    font: 500 27px var(--serif);
    color: var(--ink);
    margin: 34px 0 10px
}

.legal p {
    margin: 0 0 14px
}

.reduced {
    font-size: 12px;
    color: var(--muted)
}

@media(max-width:850px) {
    .header-inner {
        height: 72px
    }

    .menu-toggle {
        display: block
    }

    .nav {
        display: none;
        position: absolute;
        top: 71px;
        left: 0;
        right: 0;
        padding: 16px 24px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 18px rgba(23, 35, 45, .06);
        align-items: stretch;
        gap: 0;
        flex-direction: column
    }

    .nav.open {
        display: flex
    }

    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid #f0ede8
    }

    .nav .language {
        margin-top: 9px;
        padding: 12px 0;
        border: 0
    }

    .hero {
        min-height: 540px
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .intro-photo img {
        height: 360px
    }

    .photo-caption {
        left: 16px
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .service-detail h2 {
        max-width: 580px
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px
    }

    .footer-main {
        grid-template-columns: 1fr 1fr
    }

    .footer-main>div:first-child {
        grid-column: 1/-1
    }
}

@media(max-width:580px) {
    .wrap {
        width: min(calc(100% - 34px), var(--max))
    }

    .brand {
        font-size: 12px;
        gap: 8px
    }

    .brand img {
        width: 38px;
        height: 38px
    }

    .hero {
        min-height: 600px;
        background-position: 59% center
    }

    .hero-content {
        padding: 65px 0
    }

    .hero h1 {
        font-size: 50px
    }

    .hero p {
        font-size: 16px
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 280px
    }

    .hero-note {
        display: none
    }

    .section {
        padding: 68px 0
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr
    }

    .service-card {
        min-height: 0
    }

    .cta-strip {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px
    }

    .cta-strip p {
        font-size: 21px
    }

    .team-row {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .page-hero {
        padding: 66px 0
    }

    .page-hero p {
        font-size: 16px
    }

    .service-detail {
        padding: 38px 0
    }

    .service-detail h2 {
        font-size: 27px
    }

    .person img {
        height: 360px
    }

    .offices {
        grid-template-columns: 1fr
    }

    .contact-form {
        padding: 23px 18px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .footer-main>div:first-child {
        grid-column: auto
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px
    }

    .intro-photo img {
        height: 300px
    }
}
