/* ===== TOKENS, BASE E ACCESSIBILITÀ ===== */

:root {
    --ink: #08090a;
    --surface: #111314;
    --text: #f5f3ee;
    --muted: #b5b5af;
    --gold: #d6b878;
    --line: rgba(231, 215, 178, .22);
    --ease: cubic-bezier(.19, 1, .22, 1)
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    cursor: pointer
}

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

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

button,
a {
    touch-action: manipulation
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 6px
}

h1,
h2,
h3,
p {
    margin: 0
}

h1,
h2,
h3 {
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.045em
}

h2 {
    font-size: clamp(2.5rem, 5.3vw, 5.7rem)
}

.wrap {
    width: min(1392px, calc(100% - 112px));
    margin-inline: auto
}

.eyebrow {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .17em;
    color: var(--gold);
    line-height: 1.5
}

.muted {
    color: var(--muted)
}

.section {
    padding-block: 120px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

.skip {
    position: fixed;
    z-index: 30;
    left: 20px;
    top: -100px;
    background: white;
    color: black;
    padding: 15px
}

.skip:focus {
    top: 10px
}

.marble {
    position: fixed;
    inset: -45px 0;
    z-index: -1;
    background-image: linear-gradient( rgba(5, 7, 8, 0.58), rgba(5, 7, 8, 0.75)), url("../foto/brand-original.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    will-change: transform;
}


/* ===== TESTATA, LOGO E NAVIGAZIONE ===== */

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(#08090aea, #08090a66)
}

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

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

.logo-art {
    display: block;
    position: relative;
    overflow: hidden;
    width: 88px;
    height: 88px;
    flex: none
}

.logo-art img {
    position: absolute;
    width: 418%;
    max-width: none;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

.brand-wordmark {
    font-size: .85rem;
    letter-spacing: .19em;
    line-height: 1.35
}

.brand-wordmark small {
    display: block;
    font-size: .63rem;
    letter-spacing: .32em;
    margin-top: 5px;
    color: #d0c6b1
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: .88rem
}

.nav a {
    position: relative;
    padding-block: 12px
}

.nav a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s
}

.nav a:hover:after {
    transform: scaleX(1)
}

.nav .nav-contact {
    border: 1px solid #c2b18d88;
    padding: 11px 20px
}

.nav .nav-contact:after {
    display: none
}

.nav .nav-contact:hover {
    background: #d6b878;
    color: #111
}

.menu-toggle {
    display: none
}


/* ===== HERO E ANIMAZIONE DI APERTURA ===== */

.hero {
    position: relative;
    min-height: 860px;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: #171e22
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    z-index: -3;
    animation: hero-image 1.8s var(--ease) both
}

.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(3, 8, 12, .55), rgba(3, 8, 12, .19) 50%, rgba(3, 8, 12, .82)), linear-gradient(90deg, rgba(3, 8, 12, .42), transparent 65%)
}

.hero-content {
    position: relative;
    padding-top: clamp(160px, 20vh, 240px);
    padding-bottom: 280px
}

.hero .eyebrow {
    color: #eee4d1;
    margin-bottom: 26px
}

.hero h1 {
    font-size: clamp(3.8rem, 7.6vw, 8.8rem);
    max-width: 1000px;
    letter-spacing: -.06em;
    line-height: .99;
    text-shadow: 0 2px 40px #0002
}

.hero h1 span {
    display: block
}

.hero h1 .gold {
    color: var(--gold)
}

.hero-sub {
    max-width: 450px;
    margin-top: 24px;
    font-size: 1.05rem;
    color: #efeee8
}

.hero-heading {
    animation: rise 1.2s var(--ease) both;
    animation-delay: .12s
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: rise 1.2s var(--ease) both;
    animation-delay: .3s
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 24px;
    position: relative;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #15130e;
    font-size: .85rem;
    line-height: 1.4;
    font-weight: 600;
    transition: background .25s, transform .3s, box-shadow .3s
}

.button:hover {
    background: #ead09a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px #0002
}

.button.outline {
    background: transparent;
    color: var(--text);
    border-color: #a19b8d
}

.button.outline:hover {
    background: #ffffff10;
    border-color: var(--gold)
}

.hero-foot {
    position: absolute;
    inset: auto 0 36px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px
}

.hero-project {
    background: transparent;
    border: 0;
    border-left: 2px solid var(--gold);
    color: white;
    text-align: left;
    padding: 5px 0 5px 22px;
    max-width: 500px
}

.hero-project .eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: .68rem
}

.hero-project strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 400
}

.hero-project small {
    color: #d8dad9;
    font-size: .77rem
}

.hero-project:hover strong {
    text-decoration: underline;
    text-underline-offset: 5px
}

.scroll-cue {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .17em
}

.scroll-track {
    height: 52px;
    width: 1px;
    background: #ffffff4d;
    overflow: hidden
}

.scroll-track:before {
    content: '';
    display: block;
    width: 1px;
    height: 24px;
    background: var(--gold);
    animation: scroll 2.5s ease-in-out infinite
}


/* ===== PRESENTAZIONE DELL’IMPRESA ===== */

.intro {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    padding-block: 100px
}

.intro-title .eyebrow {
    margin-bottom: 28px
}

.intro-title h2 {
    font-size: clamp(2.7rem, 4.5vw, 4.8rem)
}

.intro-copy {
    padding-top: 42px;
    max-width: 550px
}

.intro-copy p {
    font-size: 1.1rem;
    color: #d0d1cd;
    line-height: 1.85
}

.territory {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 25px;
    margin-top: 32px
}

.territory span {
    font-size: .8rem;
    color: var(--muted)
}

.territory strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 4px
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;
    margin-bottom: 48px
}

.section-header .eyebrow {
    margin-bottom: 22px
}

.section-header p {
    max-width: 370px;
    color: var(--muted);
    font-size: .98rem
}


/* ===== GALLERIA PROGETTI ===== */

.projects-section {
    padding-top: 24px
}

.filters {
    display: flex;
    gap: 10px 28px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line)
}

.filter {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 10px 0;
    min-height: 44px;
    font-size: .86rem;
    position: relative
}

.filter[aria-pressed=true] {
    color: var(--gold)
}

.filter[aria-pressed=true]:after {
    content: '';
    position: absolute;
    inset: auto 0 3px;
    height: 1px;
    background: var(--gold)
}

.filter:hover {
    color: white
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 55px 26px
}

.project-card {
    grid-column: span 2;
    min-width: 0
}

.project-card.featured {
    grid-column: span 3
}

.project-card.featured:first-child {
    grid-column: span 6
}

.project-card[hidden] {
    display: none
}

.project-button {
    background: none;
    color: inherit;
    border: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    display: block
}

.project-media {
    position: relative;
    overflow: hidden;
    background: #1b1f20;
    aspect-ratio: 4/3
}

.project-card.featured:first-child .project-media {
    aspect-ratio: 2.15
}

.project-card.featured:not(:first-child) .project-media {
    aspect-ratio: 1.55
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter .5s
}

.project-button:hover img,
.project-button:focus-visible img {
    transform: scale(1.045);
    filter: brightness(1.08)
}

.project-media:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, #0005);
    pointer-events: none
}

.project-tag {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 7px 11px;
    background: #090b0bdd;
    color: #eee;
    font-size: .66rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    z-index: 1
}

.project-open {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #111a;
    color: #fff;
    border: 1px solid #ffffff66;
    font-size: 1.7rem;
    font-weight: 300;
    z-index: 1;
    transition: background .3s, transform .5s
}

.project-button:hover .project-open {
    background: var(--gold);
    color: #111;
    transform: rotate(90deg)
}

.project-meta {
    padding-top: 19px
}

.project-location {
    font-size: .72rem;
    color: var(--gold);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 9px;
    display: block
}

.project-meta h3 {
    font-size: clamp(1.5rem, 2.2vw, 2.15rem);
    line-height: 1.15
}

.project-card.featured:first-child h3 {
    font-size: clamp(2rem, 3.4vw, 3.4rem)
}

.project-meta small {
    display: block;
    font-size: .77rem;
    color: var(--muted);
    margin-top: 10px
}


/* ===== SERVIZI ===== */

.services-section {
    border-block: 1px solid var(--line);
    background: #090b0bbf
}

.services-layout {
    display: grid;
    grid-template-columns: .9fr 1.4fr;
    gap: 95px;
    align-items: start
}

.services-heading {
    position: sticky;
    top: 45px
}

.services-heading .eyebrow {
    margin-bottom: 23px
}

.services-heading p {
    color: var(--muted);
    margin-top: 25px;
    max-width: 360px
}

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

.service {
    border-bottom: 1px solid var(--line)
}

.service summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 35px 1fr 24px;
    align-items: center;
    gap: 15px;
    padding: 25px 0;
    min-height: 80px
}

.service summary::-webkit-details-marker {
    display: none
}

.service summary small {
    color: var(--gold);
    font-size: .7rem
}

.service summary h3 {
    font-size: clamp(1.18rem, 1.8vw, 1.65rem);
    line-height: 1.25;
    letter-spacing: -.02em
}

.service summary .plus {
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    transition: transform .3s
}

.service[open] .plus {
    transform: rotate(45deg)
}

.service p {
    padding: 0 35px 25px 50px;
    color: var(--muted);
    font-size: .96rem
}

.service[open] p {
    animation: rise .5s var(--ease)
}


/* ===== LAVORAZIONI SU MISURA ===== */

.craft {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 80px;
    align-items: center
}

.craft-visual {
    position: relative
}

.craft-visual img {
    width: 100%;
    height: 630px;
    object-fit: cover
}

.craft-visual figcaption {
    margin-top: 13px;
    font-size: .75rem;
    color: var(--muted)
}

figure {
    margin: 0
}

.craft-copy .eyebrow {
    margin-bottom: 23px
}

.craft-copy h2 {
    font-size: clamp(2.6rem, 4.3vw, 4.6rem)
}

.craft-copy p {
    margin-top: 25px;
    color: var(--muted);
    max-width: 440px;
    font-size: 1rem
}

.craft-copy .text-button {
    margin-top: 30px
}

.text-button {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--gold);
    padding: 10px 0;
    color: var(--gold);
    font-size: .9rem
}

.text-button:hover {
    color: white
}


/* ===== CONTATTI E FOOTER ===== */

.contact-section {
    border-top: 1px solid var(--line);
    background: #090b0bc9
}

.contact-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;
    margin-bottom: 55px
}

.contact-heading h2 {
    max-width: 800px
}

.contact-heading .eyebrow {
    margin-bottom: 23px
}

.contact-heading p {
    max-width: 320px;
    color: var(--muted)
}

.contacts {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px
}

.contact {
    border: 1px solid var(--line);
    padding: 38px;
    min-width: 0;
    background: #1517168c
}

.contact.primary {
    border-color: #ac8b48;
    background: linear-gradient(140deg, #d6b87814, transparent 70%)
}

.contact .eyebrow {
    font-size: .68rem
}

.contact h3 {
    font-size: clamp(1.7rem, 2.4vw, 2.6rem);
    margin-top: 24px;
    letter-spacing: -.03em
}

.contact-role {
    display: block;
    font-size: .86rem;
    color: var(--muted);
    margin: 8px 0 24px
}

.phone {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    letter-spacing: -.03em;
    display: block
}

.email {
    display: inline-block;
    font-size: .95rem;
    color: #d6d5cf;
    margin-top: 7px;
    overflow-wrap: anywhere
}

.contact a:not(.button):hover {
    color: var(--gold)
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px
}

.contact-actions .button {
    flex: 1;
    min-width: 120px
}

.site-footer {
    padding: 40px 0
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-size: .78rem;
    color: var(--muted)
}

.footer-grid strong {
    font-weight: 400;
    color: var(--text);
    font-size: .9rem
}

.footer-grid a {
    border-bottom: 1px solid #666;
    padding-block: 6px
}

.footer-grid a:hover {
    color: var(--gold)
}

.footer-grid p:last-child {
    text-align: right
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 7;
    background: #111e;
    border: 1px solid #a28b5e;
    color: var(--gold);
    padding: 12px 16px;
    font-size: .75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, visibility .3s
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none
}

.reveal {
    opacity: 1;
    transform: none
}

.js-motion .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .9s var(--ease), transform .9s var(--ease)
}

.js-motion .reveal.in-view {
    opacity: 1;
    transform: none
}

body.modal-open {
    overflow: hidden
}

.project-dialog {
    padding: 0;
    border: 1px solid #514733;
    width: min(1320px, calc(100vw - 48px));
    max-width: none;
    max-height: 94svh;
    background: #0c0f10;
    color: var(--text);
    overflow: auto
}

.project-dialog::backdrop {
    background: #000d;
    backdrop-filter: blur(7px)
}

.dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: #0c0f10;
    z-index: 2
}

.dialog-top .eyebrow {
    font-size: .69rem
}

.close-button {
    background: none;
    color: white;
    border: 1px solid #777;
    padding: 10px 17px;
    font-size: .85rem;
    min-height: 44px
}

.close-button:hover {
    border-color: var(--gold);
    color: var(--gold)
}

.dialog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr)
}

.gallery-column {
    padding: 26px;
    min-width: 0;
    background: #080a0b
}

.gallery-stage {
    position: relative;
    background: #101213;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center
}

.gallery-stage img {
    width: 100%;
    height: 55svh;
    object-fit: contain
}

.gallery-caption {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 14px;
    font-size: .77rem;
    color: var(--muted);
    min-height: 44px
}

.gallery-caption p {
    max-width: 85%
}

.gallery-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 16px
}

.gallery-controls button {
    flex: 1;
    min-height: 44px;
    border: 1px solid #45494a;
    background: transparent;
    color: #eee;
    font-size: .8rem;
    padding: 10px
}

.gallery-controls button:hover {
    border-color: var(--gold);
    color: var(--gold)
}

.thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 3px 12px;
    scrollbar-width: thin;
    scrollbar-color: #aa915f #111
}

.thumb {
    padding: 0;
    border: 2px solid transparent;
    flex: 0 0 70px;
    background: none;
    opacity: .6
}

.thumb img {
    width: 70px;
    height: 55px;
    object-fit: cover
}

.thumb[aria-pressed=true] {
    border-color: var(--gold);
    opacity: 1
}

.thumb:hover {
    opacity: 1
}

.project-detail {
    padding: 34px 30px
}

.project-detail h2 {
    font-size: clamp(2rem, 3vw, 3.4rem);
    margin-bottom: 22px
}

.project-detail p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.8
}

.project-detail ul {
    list-style: none;
    margin: 28px 0;
    padding: 0;
    border-top: 1px solid var(--line)
}

.project-detail li {
    font-size: .85rem;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: #ddd
}

.project-detail .button {
    width: 100%;
    margin-top: 12px
}

.stage-note {
    font-size: .69rem!important;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--gold)!important;
    margin-bottom: 20px
}

.noscript {
    padding: 18px;
    background: #302818;
    text-align: center
}

.noscript a {
    text-decoration: underline
}


/* ===== ANIMAZIONI ===== */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes hero-image {
    from {
        transform: scale(1.045);
        filter: brightness(.7)
    }
    to {
        transform: scale(1);
        filter: brightness(1)
    }
}

@keyframes scroll {
    0% {
        transform: translateY(-25px)
    }
    60%,
    100% {
        transform: translateY(55px)
    }
}

@media(min-width:1700px) {
    .hero-content {
        padding-bottom: 320px
    }
    .hero h1 {
        font-size: 8rem
    }
}

@media(max-width:1100px) {
    .wrap {
        width: calc(100% - 64px)
    }
    .nav {
        gap: 22px
    }
    .brand-wordmark {
        display: none
    }
    .hero h1 {
        font-size: 6.5rem
    }
    .services-layout {
        gap: 50px
    }
    .craft {
        gap: 45px
    }
    .project-card {
        grid-column: span 3
    }
    .craft-visual img {
        height: 530px
    }
    .contact {
        padding: 28px
    }
    .intro {
        gap: 40px
    }
    .dialog-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr)
    }
}

@media(max-width:740px) {
    html {
        scroll-padding-top: 25px
    }
    .wrap {
        width: calc(100% - 36px)
    }
    .section {
        padding-block: 72px
    }
    .header-inner {
        min-height: 88px;
        flex-wrap: wrap;
        gap: 0
    }
    .logo-art {
        width: 74px;
        height: 74px
    }
    .brand {
        gap: 10px
    }
    .brand-wordmark {
        display: block;
        font-size: .7rem;
        letter-spacing: .13em
    }
    .brand-wordmark small {
        font-size: .54rem
    }
    .menu-toggle {
        display: block;
        color: #fff;
        background: #0002;
        border: 1px solid #ffffff55;
        padding: 10px 15px;
        min-height: 44px;
        font-size: .8rem
    }
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px 18px;
        width: 100%;
        padding: 5px 0 20px;
        font-size: .82rem
    }
    .nav[hidden] {
        display: none
    }
    .site-header.menu-open {
        background: #0b0d0f
    }
    .hero {
        min-height: 820px;
        min-height: max(820px, 100svh)
    }
    .hero-photo {
        object-position: 48% center
    }
    .hero:before {
        background: linear-gradient(180deg, #071018b3, #07101838 55%, #071018ee), linear-gradient(90deg, #0003, transparent)
    }
    .hero-content {
        padding-top: 145px;
        padding-bottom: 320px
    }
    .hero h1 {
        font-size: clamp(3.3rem, 10.8vw, 5.2rem);
        line-height: 1.02
    }
    .hero .eyebrow {
        font-size: .66rem;
        margin-bottom: 22px
    }
    .hero-sub {
        font-size: .94rem;
        max-width: 330px;
        margin-top: 22px
    }
    .hero-actions {
        gap: 10px;
        margin-top: 25px
    }
    .button {
        font-size: .8rem;
        padding: 13px 18px
    }
    .hero-foot {
        bottom: 28px;
        gap: 16px;
        align-items: center
    }
    .hero-project {
        padding-left: 15px
    }
    .hero-project strong {
        font-size: 1rem
    }
    .hero-project small {
        font-size: .7rem
    }
    .scroll-cue>span:last-child {
        display: none
    }
    .intro {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 65px
    }
    .intro-title .eyebrow {
        margin-bottom: 22px
    }
    .intro-title h2 {
        font-size: 2.9rem
    }
    .intro-copy {
        padding-top: 0
    }
    .intro-copy p {
        font-size: 1rem
    }
    .territory {
        gap: 24px
    }
    .section-header {
        display: block;
        margin-bottom: 30px
    }
    .section-header p {
        margin-top: 22px;
        max-width: 100%
    }
    .section-header .eyebrow {
        margin-bottom: 18px
    }
    .projects-section {
        padding-top: 10px
    }
    .filters {
        gap: 2px 22px;
        margin-bottom: 28px
    }
    .filter {
        font-size: .8rem
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 34px
    }
    .project-card,
    .project-card.featured,
    .project-card.featured:first-child {
        grid-column: 1
    }
    .project-card.featured:first-child .project-media {
        aspect-ratio: 1.3
    }
    .project-card.featured:not(:first-child) .project-media,
    .project-media {
        aspect-ratio: 1.35
    }
    .project-meta {
        padding-top: 15px
    }
    .project-meta h3,
    .project-card.featured:first-child h3 {
        font-size: 1.8rem
    }
    .project-location {
        font-size: .67rem
    }
    .project-tag {
        top: 12px;
        left: 12px;
        font-size: .61rem
    }
    .project-meta small {
        font-size: .74rem
    }
    .services-layout {
        grid-template-columns: 1fr;
        gap: 35px
    }
    .services-heading {
        position: static
    }
    .services-heading h2 {
        font-size: 3rem
    }
    .services-heading p {
        max-width: 100%
    }
    .service summary {
        grid-template-columns: 25px 1fr 20px;
        gap: 10px;
        padding: 21px 0
    }
    .service summary h3 {
        font-size: 1.22rem
    }
    .service p {
        padding-left: 35px;
        padding-right: 10px;
        font-size: .93rem
    }
    .craft {
        grid-template-columns: 1fr;
        gap: 32px
    }
    .craft-visual img {
        height: 480px
    }
    .craft-copy h2 {
        font-size: 3rem
    }
    .contact-heading {
        display: block;
        margin-bottom: 35px
    }
    .contact-heading h2 {
        font-size: 3.1rem
    }
    .contact-heading p {
        margin-top: 24px
    }
    .contacts {
        grid-template-columns: 1fr;
        gap: 20px
    }
    .contact {
        padding: 28px 24px
    }
    .contact h3 {
        font-size: 2rem
    }
    .phone {
        font-size: 2.1rem
    }
    .email {
        font-size: .9rem
    }
    .footer-grid {
        display: block;
        font-size: .75rem
    }
    .footer-grid p+p {
        margin-top: 22px
    }
    .footer-grid p:last-child {
        text-align: left
    }
    .back-top {
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
        font-size: .68rem
    }
    .project-dialog {
        width: calc(100vw - 16px);
        max-height: 96svh
    }
    .dialog-top {
        padding: 14px;
        gap: 10px
    }
    .dialog-top .eyebrow {
        font-size: .62rem;
        max-width: 65%
    }
    .close-button {
        font-size: .75rem;
        padding: 9px 12px
    }
    .dialog-layout {
        display: flex;
        flex-direction: column
    }
    .gallery-column {
        padding: 12px
    }
    .gallery-stage {
        min-height: 200px
    }
    .gallery-stage img {
        height: 48svh
    }
    .gallery-caption {
        font-size: .73rem;
        margin-top: 10px
    }
    .project-detail {
        padding: 20px
    }
    .project-detail h2 {
        font-size: 2.3rem
    }
    .project-detail p {
        font-size: .92rem
    }
    .marble {
        background-size: auto, 300% auto
    }
    .js-motion .reveal {
        transform: translateY(22px)
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
    *,
    *:before,
    *:after {
        animation: none!important;
        transition: none!important
    }
    .js-motion .reveal {
        opacity: 1!important;
        transform: none!important
    }
    .marble {
        transform: none!important
    }
}

.plant-photo {
    margin: 0 35px 26px 50px
}

.plant-photo img {
    width: 100%;
    max-height: 330px;
    object-fit: cover;
    object-position: center 38%
}

.plant-photo figcaption {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 10px
}

@media(max-width:740px) {
    .plant-photo {
        margin-left: 35px;
        margin-right: 0
    }
}

@media(max-width:740px) {
    .hero {
        background: #10171c
    }
    .hero-photo {
        top: auto;
        bottom: 120px;
        height: auto;
        aspect-ratio: 1600/1028;
        object-fit: contain;
        object-position: center
    }
    .hero:before {
        background: linear-gradient(180deg, #07101855, transparent 45%, #07101800 80%, #071018dd)
    }
    .hero-content {
        padding-bottom: 390px
    }
    .hero-actions .button {
        flex: 1;
        min-width: 0;
        padding: 13px 10px;
        font-size: .76rem
    }
    .hero-foot {
        bottom: 25px
    }
    .hero-project strong {
        font-size: .9rem
    }
}

.plant-photo {
    margin: 0 35px 26px 50px
}

.plant-photo img {
    width: 100%;
    max-height: 330px;
    object-fit: cover;
    object-position: center 38%
}

.plant-photo figcaption {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 10px
}

@media(max-width:740px) {
    .plant-photo {
        margin-left: 35px;
        margin-right: 0
    }
}


/* ===== FONT CINZEL DEL MARCHIO ===== */

h1,
h2,
h3,
.brand-wordmark,
.nav,
.eyebrow,
.button,
.project-location,
.project-tag,
.hero-project {
    font-family: "Cinzel", Georgia, serif;
}


/* ==================================================
   FONT DEL SITO
   Cinzel: titoli principali
   Manrope: testi piccoli, menu e pulsanti
   ================================================== */

:root {
    --font-titoli: "Cinzel", Georgia, serif;
    --font-testi: "Manrope", Arial, sans-serif;
}


/* Testi normali, menu, pulsanti e descrizioni */

body,
button {
    font-family: var(--font-testi);
}


/* Titoli principali e nome dell’azienda */

h1,
h2,
h3,
.brand-wordmark,
.hero-project strong {
    font-family: var(--font-titoli);
    font-weight: 500;
}


/* Spaziatura ottimizzata per Cinzel */

h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

.hero h1 {
    letter-spacing: -0.025em;
}


/* =========================================================
   LOGO NELL'HEADER
   Mantiene il logo proporzionato senza deformarlo
   ========================================================= */

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
}

.logo-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
}


/* Dimensione del logo su smartphone */

@media (max-width: 768px) {
    .logo-art {
        width: 115px;
    }
    .logo-art img {
        max-height: 65px;
    }
}


/* =========================================================
   FOOTER PRINCIPALE
   ========================================================= */

.site-footer {
    position: relative;
    overflow: hidden;
    color: #f7f3eb;
    background: radial-gradient( circle at 50% 0%, rgba(194, 154, 83, 0.12), transparent 38%), #080808;
    border-top: 1px solid rgba(194, 154, 83, 0.35);
}


/* =========================================================
   STRUTTURA DELLE TRE COLONNE DEL FOOTER
   Facebook | Azienda | Instagram
   ========================================================= */

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: center;
    gap: 50px;
    min-height: 310px;
    padding-top: 65px;
    padding-bottom: 65px;
}

.footer-column {
    min-width: 0;
}


/* =========================================================
   SOCIAL NETWORK
   ========================================================= */

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-label {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: #d4af67;
    border: 1px solid rgba(212, 175, 103, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.social-link svg {
    display: block;
    width: 31px;
    height: 31px;
}


/* Icona Facebook */

.facebook-icon path {
    fill: currentColor;
}


/* Icona Instagram */

.instagram-icon rect,
.instagram-icon circle:not(.instagram-dot) {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.instagram-icon .instagram-dot {
    fill: currentColor;
    stroke: none;
}


/* Animazione al passaggio del mouse */

.social-link:hover,
.social-link:focus-visible {
    color: #080808;
    background-color: #d4af67;
    border-color: #d4af67;
    box-shadow: 0 0 20px rgba(212, 175, 103, 0.2), 0 0 45px rgba(212, 175, 103, 0.18);
    transform: translateY(-5px) scale(1.04);
}

.social-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}


/* =========================================================
   NOME AZIENDA CENTRALE
   ========================================================= */

.footer-brand {
    position: relative;
    text-align: center;
}

.footer-brand::before,
.footer-brand::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38px;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(212, 175, 103, 0.65));
}

.footer-brand::before {
    right: calc(100% + 10px);
}

.footer-brand::after {
    left: calc(100% + 10px);
    transform: rotate(180deg);
}

.footer-brand h2 {
    margin: 0;
    color: #d4af67;
    font-family: "Cinzel", serif;
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand p {
    margin: 8px 0 18px;
    color: #ffffff;
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.footer-brand span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================================
   VERSIONE SMARTPHONE E TABLET
   ========================================================= */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 55px;
    }
    .footer-brand::before,
    .footer-brand::after {
        display: none;
    }
}

@media (max-width: 650px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px 20px;
    }
    /* Il nome aziendale occupa tutta la prima riga */
    .footer-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    /* Facebook e Instagram affiancati sotto */
    .footer-social {
        grid-row: 2;
    }
    .footer-brand h2 {
        font-size: 1.65rem;
    }
    .footer-label {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }
    .social-link {
        width: 62px;
        height: 62px;
    }
    .social-link svg {
        width: 27px;
        height: 27px;
    }
}


/* =========================================================
   FASCIA DATI LEGALI
   ========================================================= */

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.3);
}

.footer-legal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.footer-legal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.7rem;
    line-height: 1.8;
}

.footer-legal strong {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.footer-policy {
    display: flex;
    flex-shrink: 0;
    gap: 20px;
}

.footer-policy a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 200ms ease;
}

.footer-policy a:hover {
    color: #d4af67;
}


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

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .footer-contacts {
        text-align: center;
    }
    .footer-person {
        align-items: center;
    }
    .footer-legal-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .footer-brand h2 {
        font-size: 1.65rem;
    }
    .footer-policy {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-legal p span {
        display: block;
        height: 2px;
        overflow: hidden;
        opacity: 0;
    }
}