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

:root {
    --bg: #FAFAF7;
    --bg-alt: #F2F1EC;
    --ink: #1A1A1A;
    --ink-soft: #3A3A3A;
    --ink-mute: #6E6A63;
    --line: #1A1A1A1A;
    --line-soft: #1A1A1A12;
    --accent: #E8C547;
    --accent-soft: #E8C54730;
    --white: #FFFFFF;

    --font-serif: 'Times New Roman', Times, serif;
    --font-sans: 'Times New Roman', Times, serif;

    --max: 1180px;
    --pad-section: clamp(64px, 9vw, 140px);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink-soft); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: 1.35rem; font-weight: 500; }

h1 em, h2 em {
    font-style: italic;
    color: var(--ink);
    position: relative;
}

h1 em::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0.08em;
    height: 0.15em;
    background: var(--accent);
    z-index: -1;
    opacity: 0.85;
}

p { color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.eyebrow::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--accent);
}

.eyebrow-light { color: rgba(250, 250, 247, 0.7); }
.eyebrow-light::before { background: var(--accent); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--line-soft);
}

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

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

.brand-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.brand-mark .accent { color: var(--accent); margin: 0 1px; }

.brand-text {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.nav a {
    font-size: 0.88rem;
    color: var(--ink-soft);
    position: relative;
}

.nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .25s ease;
}

.nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    background: var(--ink);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
}

.nav-cta:hover { background: #000; transform: translateY(-1px); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: 32px; height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(80px, 13vw, 160px) 0 clamp(80px, 11vw, 140px);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.hero-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-title {
    margin: 0.5rem 0 1.8rem;
    max-width: 14ch;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 52ch;
    margin-bottom: 2.4rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 2.2rem;
    max-width: 720px;
}

.hero-meta > div {
    display: flex;
    flex-direction: column;
    padding-right: 1.5rem;
    border-right: 1px solid var(--line-soft);
}

.hero-meta > div:last-child { border-right: 0; padding-right: 0; }
.hero-meta > div:not(:first-child) { padding-left: 1.5rem; }

.meta-num {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 4px;
}

.meta-label {
    font-size: 0.78rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    font-family: inherit;
    font-weight: 400;
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent);
    color: var(--ink) !important;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--ink);
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--white) !important;
}

.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section {
    padding: var(--pad-section) 0;
    border-bottom: 1px solid var(--line-soft);
}

.section-alt { background: var(--bg-alt); }

.section-head {
    margin-bottom: clamp(40px, 6vw, 80px);
    max-width: 700px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

/* ---------- Profilo ---------- */
.profile-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
}

.profile-text h2 { margin-bottom: 1.5rem; }
.profile-text p { margin-bottom: 1rem; }

.credentials {
    list-style: none;
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1.5rem;
}

.credentials li {
    font-size: 0.88rem;
    color: var(--ink-soft);
    padding-left: 18px;
    position: relative;
}

.credentials li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.7em;
    width: 8px; height: 1px;
    background: var(--accent);
}

/* ---------- Aree (lista editoriale) ---------- */
.section-head-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: end;
    max-width: none;
}

.section-head-split h2 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
}

.section-intro {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 42ch;
    padding-bottom: 0.4rem;
}

.areas-list {
    list-style: none;
    border-top: 1px solid var(--line);
}

.area-item {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) 2fr 40px;
    gap: 2.4rem;
    align-items: center;
    min-height: 140px;
    padding: 1.5rem 1.8rem;
    margin: 0 -1.8rem;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    position: relative;
    isolation: isolate;
}

.area-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: -1;
}

.area-item:hover::before { transform: scaleY(1); }

.area-index {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--ink-mute);
    letter-spacing: 0.08em;
    transition: color .35s ease;
}

.area-item h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 400;
    transition: color .35s ease;
    margin: 0;
}

.area-item p {
    font-size: 0.95rem;
    color: var(--ink-mute);
    margin: 0;
    max-width: 56ch;
    transition: color .35s ease;
}

.area-icon {
    justify-self: end;
    align-self: center;
    width: 28px;
    height: 28px;
    color: var(--ink-mute);
    opacity: 0.55;
    transition: opacity .35s ease, color .35s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.area-icon svg {
    width: 100%;
    height: 100%;
}

.area-item:hover h3 { color: var(--white); }
.area-item:hover p { color: rgba(250, 250, 247, 0.7); }
.area-item:hover .area-icon {
    opacity: 1;
    color: var(--accent);
}

/* ---------- Metodo ---------- */
.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.method-step {
    padding: 0 2rem 0 0;
    border-left: 1px solid var(--line);
    padding-left: 2rem;
    position: relative;
}

.method-step:first-child { border-left: 0; padding-left: 0; }

.method-step h3 { margin-bottom: 0.7rem; padding-top: 1.4rem; position: relative; }

.method-step h3::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--accent);
}
.method-step p { font-size: 0.92rem; }

/* ---------- Studio (dark) ---------- */
.section-dark {
    background: var(--ink);
    color: var(--white);
    border-bottom: 0;
}

.section-dark h2 { color: var(--white); margin-bottom: 1.5rem; }
.section-dark p { color: rgba(250, 250, 247, 0.75); margin-bottom: 1rem; }

.studio-image img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    filter: grayscale(60%) brightness(0.95);
    border-radius: 2px;
}

/* ---------- Contatti ---------- */
.contact-grid { align-items: start; }

.contact-grid h2 { margin-bottom: 1.5rem; }
.contact-grid > div > p { margin-bottom: 2.4rem; }

.contact-info {
    list-style: none;
    border-top: 1px solid var(--line);
}

.contact-info li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
}

.contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    padding-top: 2px;
}

.contact-form {
    background: var(--white);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
}

.form-row {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.form-row input,
.form-row textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    transition: border-color .2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 0;
    border-bottom-color: var(--accent);
}

.form-row textarea { resize: vertical; min-height: 100px; }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 1.6rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox input { margin-top: 4px; accent-color: var(--ink); }

.form-feedback {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
    text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(250, 250, 247, 0.7);
    padding: 80px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(250, 250, 247, 0.1);
}

.footer-brand .brand-mark {
    color: var(--white);
    font-size: 1.8rem;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(250, 250, 247, 0.75);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-meta p {
    font-size: 0.85rem;
    color: rgba(250, 250, 247, 0.55);
    margin-bottom: 0.5rem;
    max-width: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(250, 250, 247, 0.75);
    transition: color .2s ease;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(250, 250, 247, 0.45);
    text-align: center;
    max-width: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .section-head-split { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
    .area-item {
        grid-template-columns: 1fr auto;
        gap: 0.6rem 1.2rem;
    }
    .area-item h3 { grid-column: 1; }
    .area-item p { grid-column: 1 / -1; }
    .area-icon { grid-row: 1; grid-column: 2; align-self: center; }
    .method-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
    .method-step:nth-child(3) { border-left: 0; padding-left: 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .credentials { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .brand-text { display: none; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg);
        padding: 20px 24px 32px;
        gap: 1.2rem;
        border-bottom: 1px solid var(--line);
    }
    .nav.is-open { display: flex; }
    .nav-cta { text-align: center; }
    .nav-toggle { display: flex; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .hero-meta { grid-template-columns: 1fr; gap: 1.2rem; }
    .hero-meta > div { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 0 0 1.2rem !important; }
    .hero-meta > div:last-child { border-bottom: 0; padding-bottom: 0 !important; }

    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-image { order: -1; aspect-ratio: 4 / 3; max-height: 380px; }

    .areas-grid { grid-template-columns: 1fr; }
    .method-grid { grid-template-columns: 1fr; }
    .method-step { border-left: 0; padding-left: 0; }

    .contact-info li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---------- Legal pages (Privacy, Cookie, Note legali) ---------- */
.legal-page {
    padding-top: clamp(60px, 9vw, 110px);
}

.legal-container {
    max-width: 780px;
}

.legal-head {
    margin-bottom: 3.5rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--line-soft);
}

.legal-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    margin: 0 0 0.8rem;
}

.legal-head h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 1.4rem;
}

.legal-sub {
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 60ch;
    margin-bottom: 1.2rem;
}

.legal-meta {
    font-size: 0.82rem;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    margin: 0;
}

.legal-meta span {
    color: var(--ink-soft);
}

.legal-body h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 2.6rem 0 1rem;
    line-height: 1.25;
    scroll-margin-top: 100px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

.legal-body p {
    margin: 0 0 1.1rem;
}

.legal-body strong {
    color: var(--ink);
    font-weight: 500;
}

.legal-body ul {
    margin: 0 0 1.4rem;
    padding-left: 1.2rem;
}

.legal-body li {
    margin-bottom: 0.55rem;
}

.legal-body a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.legal-body a:hover {
    color: var(--accent);
}

.legal-contacts {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 1.6rem;
    display: grid;
    gap: 0.4rem;
}

.legal-contacts li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    align-items: baseline;
    margin: 0;
}

.legal-contacts li > span {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.legal-back {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-soft);
    font-size: 0.92rem;
}

.legal-back a {
    color: var(--ink-soft);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.legal-back a:hover {
    color: var(--ink);
}

@media (max-width: 720px) {
    .legal-contacts li {
        grid-template-columns: 1fr;
        gap: 0.15rem;
        margin-bottom: 0.4rem;
    }
}
