/* ===========================================================
   Dimora d'Autore — Studio di interior design, Milano
   Design system: warm editorial, cream/clay/charcoal
   Display: Cormorant Garamond (serif)   Body: Manrope
   =========================================================== */

:root {
  --paper:    #f6f1e9;
  --cream:    #efe7da;
  --ink:      #211d18;
  --ink-soft: #6b6359;
  --clay:     #b05a39;
  --clay-dk:  #8c4527;
  --olive:    #5d6048;
  --line:     #ddd2c0;
  --white:    #fffdf9;
  --gold:     #b89b5e;
  --radius:   4px;
  --maxw:     1200px;
  --shadow:   0 24px 60px -30px rgba(33, 29, 24, .35);
  --shadow-sm:0 12px 30px -18px rgba(33, 29, 24, .3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.section { padding: 110px 0; }
.section--tight { padding: 72px 0; }
.section--ink { background: var(--ink); color: var(--cream); }
.section--cream { background: var(--cream); }

.eyebrow {
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--clay);
}
.section--ink .eyebrow { color: var(--gold); }

.h-xl { font-size: clamp(3rem, 7.5vw, 6rem); }
.h-lg { font-size: clamp(2.4rem, 5vw, 4rem); }
.h-md { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; line-height: 1.75; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.serif-lead { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; line-height: 1.45; font-weight: 400; color: var(--ink); }

.hl { color: var(--clay); font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600; font-size: 14px;
  letter-spacing: .04em;
  padding: 15px 32px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-dk); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.section--ink .btn--ghost { border-color: rgba(255,253,249,.45); color: var(--cream); }
.section--ink .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn--text { padding: 0; color: var(--clay); font-weight: 600; position: relative; }
.btn--text::after { content: "→"; margin-left: 8px; transition: transform .2s ease; display: inline-block; }
.btn--text:hover::after { transform: translateX(5px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,233,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 86px; max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 27px; letter-spacing: .01em;
  display: inline-flex; align-items: baseline; gap: 3px;
}
.brand b { color: var(--clay); font-weight: 600; }
.brand small { font-family: 'Manrope', sans-serif; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-soft); margin-left: 8px; align-self: center; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px; background: var(--clay);
}
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* ---------- HERO ---------- */
.hero { padding: 60px 0 0; }
.hero__top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; padding-bottom: 50px; }
.hero h1 { margin: 22px 0 0; }
.hero__intro { padding-bottom: 8px; }
.hero__intro .lead { margin-bottom: 26px; }
.hero__cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero__full { position: relative; }
.hero__full img { width: 100%; height: clamp(360px, 56vh, 620px); object-fit: cover; border-radius: var(--radius); }
.hero__tag {
  position: absolute; left: 32px; bottom: 32px;
  background: var(--paper); color: var(--ink);
  padding: 16px 22px; border-radius: var(--radius); max-width: 280px;
  box-shadow: var(--shadow-sm);
}
.hero__tag span { font-family: 'Manrope'; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; color: var(--clay); font-weight: 700; }
.hero__tag p { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; line-height: 1.3; margin-top: 4px; }

/* ---------- meta strip ---------- */
.meta-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.meta {
  padding: 34px 28px; border-right: 1px solid var(--line);
}
.meta:last-child { border-right: 0; }
.meta__n { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; color: var(--clay); line-height: 1; }
.meta__l { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .14em; margin-top: 8px; }

/* ---------- sec head ---------- */
.sec-head { max-width: 760px; margin-bottom: 60px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head .eyebrow { display: block; margin-bottom: 18px; }
.sec-head h2 { margin-bottom: 20px; }

/* ---------- index list (services) ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 80px 1fr 1.2fr auto; gap: 30px; align-items: start;
  padding: 38px 0; border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}
.index-row:hover { padding-left: 14px; }
.index-row__n { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--clay); }
.index-row h3 { font-size: 2rem; }
.index-row p { color: var(--ink-soft); font-size: .98rem; }
.index-row__cta { align-self: center; }

/* ---------- feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature--rev .feature__media { order: 2; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.feature__copy .eyebrow { display: block; margin-bottom: 16px; }
.feature__copy h2 { margin-bottom: 18px; }
.feature ul { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.feature li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.feature li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 1px; background: var(--clay); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery--edit { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 240px; }
.figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.figure:hover img { transform: scale(1.04); }
.figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 20px;
  background: linear-gradient(transparent, rgba(33,29,24,.8)); color: var(--cream);
}
.figure figcaption span { font-family: 'Manrope'; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; color: var(--gold); }
.figure figcaption h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; margin-top: 3px; font-weight: 500; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }

/* ---------- quote / testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quote p { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; line-height: 1.4; color: var(--ink); }
.quote__who { margin-top: 22px; font-size: .88rem; color: var(--ink-soft); padding-top: 16px; border-top: 1px solid var(--line); }
.quote__who b { display: block; font-family: 'Manrope'; font-size: .95rem; color: var(--ink); }
.section--ink .quote p { color: var(--cream); }
.section--ink .quote__who { color: rgba(255,253,249,.6); border-color: rgba(255,253,249,.2); }
.section--ink .quote__who b { color: var(--cream); }

/* ---------- big statement ---------- */
.statement { text-align: center; max-width: 18ch; margin: 0 auto; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier { padding: 44px 38px; border-right: 1px solid var(--line); background: var(--white); }
.tier:last-child { border-right: 0; }
.tier--feat { background: var(--ink); color: var(--cream); }
.tier--feat .muted { color: rgba(255,253,249,.65); }
.tier__name { font-family: 'Manrope'; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--clay); }
.tier--feat .tier__name { color: var(--gold); }
.tier__price { font-family: 'Cormorant Garamond', serif; font-size: 3.4rem; margin: 14px 0 6px; line-height: 1; }
.tier__price small { font-size: 1rem; font-family: 'Manrope'; color: var(--ink-soft); }
.tier--feat .tier__price small { color: rgba(255,253,249,.65); }
.tier ul { list-style: none; margin: 26px 0 30px; display: grid; gap: 13px; }
.tier li { padding-left: 26px; position: relative; font-size: .95rem; }
.tier li::before { content: "—"; position: absolute; left: 0; color: var(--clay); }
.tier--feat li::before { color: var(--gold); }
.tier .btn { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 30px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: 'Manrope'; font-weight: 300; font-size: 1.7rem; color: var(--clay); flex: none; transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 30px; color: var(--ink-soft); max-width: 76ch; }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 130px 1fr; gap: 36px; padding: 32px 0; border-top: 1px solid var(--line); }
.tl__y { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--clay); }
.tl h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 8px; }
.tl p { color: var(--ink-soft); }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 64px; }
.value__n { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--clay); }
.value h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; margin: 6px 0 10px; }
.value p { color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { margin-bottom: 22px; }
.cta p { max-width: 50ch; margin: 0 auto 32px; }
.section--ink .cta p { color: rgba(255,253,249,.75); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.info-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-row b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin-bottom: 4px; }
.info-row span { font-size: 1.1rem; font-family: 'Cormorant Garamond', serif; }
.info-row span a { font-family: 'Manrope'; font-size: 1rem; }
.map-ph {
  margin-top: 30px; height: 240px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--cream), var(--paper));
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--clay);
}

/* ---------- forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; color: var(--ink-soft); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px;
  font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); }
.field textarea { min-height: 140px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }
.form__note { font-size: .82rem; color: var(--ink-soft); margin-top: 16px; }

/* ---------- page hero (inner) ---------- */
.page-hero { padding: 80px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { display: block; margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 20px; }
.page-hero p { color: var(--ink-soft); max-width: 60ch; font-size: 1.15rem; }
.crumbs { font-size: .8rem; color: var(--ink-soft); margin-bottom: 22px; text-transform: uppercase; letter-spacing: .16em; }
.crumbs a:hover { color: var(--clay); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: rgba(255,253,249,.7); padding: 84px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 48px; }
.footer .brand { color: var(--cream); }
.footer .brand b { color: var(--gold); }
.footer__about { margin-top: 20px; font-size: .96rem; max-width: 34ch; line-height: 1.7; }
.footer h5 { font-family: 'Manrope'; text-transform: uppercase; letter-spacing: .16em; color: var(--cream); font-size: .8rem; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255,253,249,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255,253,249,.5);
}

/* ---------- cookie ---------- */
.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 80; max-width: 760px; margin: 0 auto;
  background: var(--ink); color: var(--cream); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap;
}
.cookie p { font-size: .9rem; color: rgba(255,253,249,.8); flex: 1 1 320px; }
.cookie a { color: var(--gold); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; }
.cookie .btn { padding: 11px 22px; font-size: 13px; }

/* ---------- legal ---------- */
.legal { max-width: 800px; }
.legal h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; margin: 44px 0 14px; }
.legal h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 13px; }
.legal ul { margin: 0 0 18px 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.legal th { background: var(--cream); font-family: 'Manrope'; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .hero__top, .feature, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature--rev .feature__media { order: 0; }
  .meta-strip__grid { grid-template-columns: 1fr 1fr; }
  .meta:nth-child(2) { border-right: 0; }
  .meta:nth-child(1), .meta:nth-child(2) { border-bottom: 1px solid var(--line); }
  .index-row { grid-template-columns: 50px 1fr; }
  .index-row p, .index-row__cta { grid-column: 2; }
  .gallery, .quotes, .tiers { grid-template-columns: 1fr; }
  .gallery--edit { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .span-3, .span-2, .row-2 { grid-column: span 1; grid-row: span 1; }
  .tier { border-right: 0; border-bottom: 1px solid var(--line); }
  .values { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .meta-strip__grid, .footer__grid, .gallery--edit { grid-template-columns: 1fr; }
  .meta { border-right: 0; border-bottom: 1px solid var(--line); }
  .tl { grid-template-columns: 80px 1fr; gap: 18px; }
}
