:root {
    --bg: #f4f2f0;
    --ink: #1c2541;
    --muted: #6b7084;
    --rose: #e8dad4;
    --rose-text: #d3b4a3;
    --blue: #e3eff4;
    --sand: #efebdc;
    --sage: #cfd9d6;
    --gold: #c8a25e;
    --white: #fff;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Jost", Arial, sans-serif;
    --pad: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.container { width: min(1100px, 100% - 2 * var(--pad)); margin-inline: auto; }
.script { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 0 0 1.2rem; }

/* Bottoni */
.btn {
    display: inline-block;
    padding: .55rem 1.4rem;
    background: var(--white);
    color: var(--ink);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 1px solid var(--white);
    cursor: pointer;
    font-family: var(--sans);
    transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark { background: transparent; border-color: var(--ink); }

/* Header */
.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.2rem var(--pad);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { padding: .2rem 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { border-color: var(--ink); }
.brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .3em; text-transform: uppercase; }
.header-cta { justify-self: end; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 6px 0; }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    align-items: center;
    padding-top: 4rem;
    overflow: hidden;
}
.hero-text { padding: 0 var(--pad) 0 clamp(2rem, 11vw, 10rem); }
.hero h1 { font-size: clamp(3rem, 6.5vw, 5.4rem); color: var(--ink); max-width: 7em; }
.hero .script { font-size: 1.3rem; }
.hero-media { position: relative; align-self: stretch; }
.hero-media::before {
    content: "";
    position: absolute;
    top: 0; right: 18%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--sage);
    transform: translateY(-8%);
}
.hero-media img {
    position: relative;
    width: 100%; height: 100%;
    max-height: 640px;
    object-fit: cover;
    object-position: 60% 20%;
}
.hero .btn { margin-top: .5rem; }

/* Parole sfumate */
.ghost {
    font-family: var(--serif);
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 1;
    margin: 0;
    color: rgba(211, 180, 163, .28);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
.ghost--rose { color: var(--rose-text); text-align: center; position: relative; z-index: 1; margin-top: -4rem; }

.intro { position: relative; padding: 4rem var(--pad) 3rem; min-height: 420px; overflow: hidden; }
.intro .ghost--left { position: absolute; left: -1%; top: 0; }
.intro .ghost--right { position: absolute; right: -1%; top: 5.5rem; }
.intro-body { position: relative; max-width: 420px; margin: 6rem auto 0; text-align: center; font-family: var(--serif); font-size: 1.3rem; }
.circle-link {
    display: grid; place-items: center;
    width: 86px; height: 86px;
    margin: 1.2rem auto 0;
    border: 1px solid var(--white);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1.3;
}
.circle-link:hover { background: var(--white); }

/* Selezione */
.selected { padding: 3rem 0 5rem; }
.label { font-size: 1.2rem; margin-bottom: 1.2rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: start; }
.product-img { background: var(--white); aspect-ratio: 1; margin-bottom: .7rem; overflow: hidden; }
.product--tall .product-img { aspect-ratio: 3 / 4; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product-img img { transform: scale(1.05); }
.product h3 { font-family: var(--sans); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; display: flex; justify-content: space-between; gap: .5rem; }
.product p { margin: 0; font-size: .68rem; color: var(--muted); }

/* Blocco rosa */
.feature-rose { position: relative; min-height: 340px; display: flex; align-items: center; margin-top: 2rem; }
.feature-rose-block { position: absolute; left: 0; top: 0; bottom: 0; width: 56%; background: var(--rose); }
.feature-rose-text { position: relative; margin-left: 56%; padding: 2rem var(--pad) 2rem 3rem; max-width: 560px; }
.feature-rose-text .btn, .match-text .btn { background: var(--white); }
.swatches {
    width: 190px; height: 18px;
    margin: 1.2rem 0 0 17%;
    background: linear-gradient(90deg, #c9a37c 0 25%, #d8b695 25% 50%, #a89aa6 50% 62%, #8d7f88 62% 75%, #e6d5c6 75% 100%);
}

/* Abbinamento */
.match { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 7rem; min-height: 420px; }
.match-text { text-align: right; padding: 2rem 2rem 2rem var(--pad); justify-self: end; max-width: 520px; }
.match-media { position: relative; height: 100%; min-height: 360px; display: flex; align-items: flex-end; }
.match-blue { position: absolute; top: 0; right: 0; bottom: 20%; left: 0; background: var(--blue); }
.match-media img { position: relative; width: 62%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: -3rem; margin-left: 4%; }

/* Collezioni */
.collections-head { text-align: center; margin-top: 7rem; overflow: hidden; }
.hand {
    width: min(220px, 40vw);
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
}
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 3rem 0; }
.category { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.category img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.category:hover img { transform: scale(1.05); }
.category::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(28, 37, 65, .35)); }
.category span {
    position: absolute; z-index: 1;
    left: 0; right: 0; bottom: 1.5rem;
    text-align: center;
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--white);
}
.mini-label {
    text-align: center;
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 1rem 0 5rem;
}

/* Collezione antica */
.ancient { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; align-items: center; }
.ancient-photos { display: grid; grid-template-columns: 1fr; gap: 0; justify-self: end; width: min(260px, 100%); margin-right: -1px; position: relative; z-index: 1; }
.ancient-photos img { width: 100%; object-fit: cover; }
.ancient-photos img:first-child { height: 90px; object-position: center 30%; }
.ancient-photos img:last-child { aspect-ratio: 3 / 4; }
.ancient-panel {
    background: var(--sand);
    padding: 7rem var(--pad) 3rem;
    text-align: center;
    position: relative;
    margin: 4rem 0;
}
.ancient-panel img { position: absolute; top: -3rem; left: 50%; transform: translateX(-50%); width: min(260px, 60%); }
.ancient-panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.ancient-panel .meta { font-size: .68rem; color: var(--muted); letter-spacing: .06em; }

/* Journal */
.journal { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 7rem 0 5rem; }
.journal-text { text-align: right; justify-self: end; max-width: 360px; }
.journal-text h2 { font-size: clamp(2rem, 4vw, 3rem); }
.journal-media { position: relative; min-height: 440px; }
.journal-media .j1 { position: absolute; top: 0; left: 0; width: 52%; aspect-ratio: 7 / 5; object-fit: cover; }
.journal-media .j2 { position: absolute; top: 3.5rem; left: 15%; width: 62%; aspect-ratio: 7 / 9; object-fit: cover; box-shadow: 0 20px 40px rgba(28, 37, 65, .15); }

/* Footer */
.site-footer { text-align: center; padding: 3rem var(--pad) 2rem; overflow: hidden; }
.brand--footer { display: inline-block; font-size: 1rem; margin-bottom: 1.5rem; }
.footer-cols { display: flex; justify-content: center; gap: clamp(2rem, 8vw, 6rem); font-size: .7rem; margin-bottom: 1rem; }
.footer-cols h3 { font-family: var(--sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .7rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .3rem; }
.footer-cols a:hover { text-decoration: underline; }
.ghost--footer { font-size: clamp(2.2rem, 7vw, 5.5rem); margin: 1.5rem 0; }
.legal { font-size: .65rem; color: var(--muted); margin: 0; }
.legal a:hover { text-decoration: underline; }

/* Pagine interne */
.page-head { padding: 9rem var(--pad) 2rem; text-align: center; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.prose { padding-bottom: 2.5rem; max-width: 720px; }
.prose p { margin: 0 0 1rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-bottom: 5rem; }
.form label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.form input, .form textarea {
    display: block; width: 100%;
    margin-top: .3rem;
    padding: .7rem .8rem;
    font: inherit; font-size: 1rem;
    text-transform: none; letter-spacing: 0;
    border: 1px solid var(--rose-text);
    background: var(--white);
    color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: .9rem 1rem; margin: 0 0 1.5rem; }
.notice--ok { background: var(--blue); }
.notice--err { background: var(--rose); }

/* Animazioni */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
    .site-header { grid-template-columns: auto 1fr auto; }
    .brand { justify-self: center; }
    .header-cta { display: none; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--bg);
        padding: .5rem var(--pad) 1rem;
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: .8rem 0; }

    .hero { grid-template-columns: 1fr; padding-top: 5rem; }
    .hero-text { padding: 2rem var(--pad); }
    .hero-media { height: 440px; }
    .intro .ghost--right { top: 4rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-rose { flex-direction: column; align-items: flex-start; }
    .feature-rose-block { width: 80%; height: 180px; bottom: auto; }
    .feature-rose-text { margin: 120px 0 0 0; padding: 1.5rem var(--pad); }
    .swatches { margin-left: var(--pad); }
    .match { grid-template-columns: 1fr; margin-top: 4rem; }
    .match-text { text-align: left; justify-self: start; }
    .match-media { min-height: 320px; }
    .categories { grid-template-columns: 1fr; max-width: 420px; }
    .ancient { grid-template-columns: 1fr; }
    .ancient-photos { grid-template-columns: 1fr 1fr; width: 100%; }
    .ancient-photos img:first-child { height: auto; aspect-ratio: 7 / 5; }
    .ancient-panel { margin: 5rem 0 2rem; }
    .journal { grid-template-columns: 1fr; padding-top: 4rem; }
    .journal-text { text-align: left; justify-self: start; }
    .journal-media { min-height: 460px; }
    .footer-cols { gap: 1.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
}
