/* NUMA Massaggi Professionali — foglio di stile unico
   Palette dal logo: cacao, terracotta, sabbia su fondo crema. */

@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --cocoa: #2a1a14;
  --cocoa-2: #38241d;
  --cocoa-3: #4a3128;
  --terra: #974e2b;
  --terra-dark: #7a3d20;
  --sand: #f2d3a5;
  --sand-soft: #e9c99a;
  --cream: #fbf5ec;
  --cream-2: #f4e9da;
  --ink: #2a1a14;
  --text: #4d3c34;
  --muted: #7d6a5f;
  --line: #e7d6c1;
  --on-dark: #f6ebdc;
  --on-dark-muted: #cdb9a5;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(42, 26, 20, .06);
  --shadow-md: 0 14px 34px rgba(42, 26, 20, .10);
  --shadow-lg: 0 30px 70px rgba(42, 26, 20, .22);
  --radius: 14px;
  --radius-lg: 26px;
  --arch: 999px 999px 26px 26px;
  --container: 1220px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bg: var(--cocoa);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--sand); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--terra); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--cocoa); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark h2 em, .section-dark h3 em { color: var(--sand); }
.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 70px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--terra); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sand); }

/* bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 26px rgba(151, 78, 43, .28); }
.btn-primary:hover { background: var(--terra-dark); color: #fff; transform: translateY(-2px); }
.btn-sand { background: var(--sand); color: var(--cocoa); }
.btn-sand:hover { background: #fff; color: var(--cocoa); transform: translateY(-2px); }
.btn-outline { border-color: var(--terra); color: var(--terra); background: transparent; }
.btn-outline:hover { background: var(--terra); color: #fff; }
.btn-ghost { border-color: rgba(242, 211, 165, .55); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { background: rgba(242, 211, 165, .12); border-color: var(--sand); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; letter-spacing: .03em; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(42, 26, 20, .86); height: 72px;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand img { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.85rem; font-weight: 500; letter-spacing: .02em; color: var(--on-dark); }
.brand-sub { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sand); margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: block; padding: 10px 14px; color: var(--on-dark); text-decoration: none;
  font-size: .9rem; letter-spacing: .06em; position: relative;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: var(--sand); }
.nav-cta { margin-left: 12px; }
.nav-cta .btn { padding: 12px 22px; font-size: .85rem; }

/* menu mobile (templates/menu.css, token adattati) */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cocoa); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(242, 211, 165, .4); border-radius: 50%;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  position: relative; z-index: 2;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--on-dark); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(20, 12, 9, .55);
    border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--cocoa);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
    padding: 104px 26px 40px; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a:not(.btn) { padding: 14px 16px; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .01em; border-bottom: 1px solid rgba(242, 211, 165, .12); }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-cta { margin: 22px 0 0; }
  .nav-cta .btn { width: 100%; padding: 16px; font-size: .95rem; }
}

/* ---------- hero home ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--on-dark); background: var(--cocoa); overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 40px) 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; animation: heroZoom 18s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 75% 45%, rgba(42, 26, 20, .15), transparent 60%),
    linear-gradient(90deg, rgba(30, 18, 13, .92) 0%, rgba(30, 18, 13, .72) 45%, rgba(30, 18, 13, .35) 100%),
    linear-gradient(0deg, rgba(30, 18, 13, .7) 0%, transparent 35%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { max-width: 720px; }
.hero h1 { color: var(--on-dark); margin-bottom: 26px; }
.hero h1 em { color: var(--sand); }
.hero .lead { color: var(--on-dark-muted); margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 48px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--on-dark-muted); }
.hero-badges li { display: flex; align-items: center; gap: 10px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--sand); flex: none; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(242, 211, 165, .5); border-radius: 20px;
}
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--sand); border-radius: 3px; animation: scrollDot 2s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- hero pagine interne ---------- */
.page-hero {
  position: relative; color: var(--on-dark); background: var(--cocoa); overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 110px)) 0 clamp(60px, 8vw, 100px);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 18, 13, .94), rgba(30, 18, 13, .55)); }
.page-hero h1 { color: var(--on-dark); font-size: clamp(2.5rem, 5.6vw, 4.3rem); max-width: 18ch; }
.page-hero h1 em { color: var(--sand); }
.page-hero .lead { color: var(--on-dark-muted); margin: 0; }
.breadcrumb { margin-bottom: 26px; font-size: .82rem; letter-spacing: .08em; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--sand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- valori / perché ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 34px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--terra); margin-bottom: 24px; }
.value-icon svg { width: 26px; height: 26px; }
.value p { margin: 0; color: var(--muted); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.arch-media { position: relative; }
.arch-media .arch { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.arch-media .arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-media .float {
  position: absolute; width: 42%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  right: -6%; bottom: -6%; border: 8px solid var(--cream); box-shadow: var(--shadow-md);
}
.section-alt .arch-media .float { border-color: var(--cream-2); }
.arch-media .float img { width: 100%; height: 100%; object-fit: cover; }
.arch-media .ring { position: absolute; inset: -18px auto auto -18px; width: 120px; height: 120px; border: 1px solid var(--sand-soft); border-radius: 50%; z-index: -1; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--terra); margin-top: 6px; }
.check-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 5px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23974e2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- servizi (card) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cocoa-2); color: var(--on-dark); text-decoration: none; min-height: 420px; isolation: isolate;
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 18, 13, 0) 30%, rgba(30, 18, 13, .92) 100%); }
.service-card:hover img { transform: scale(1.06); }
.service-card-body { margin-top: auto; padding: 30px; }
.service-card .tag { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); }
.service-card h3 { color: #fff; margin: 8px 0 10px; }
.service-card p { color: var(--on-dark-muted); font-size: .95rem; margin: 0 0 14px; }
.service-card .link-arrow { color: var(--sand); }
.service-card:hover { color: var(--on-dark); }

/* lista servizi dettagliata */
.svc-list { display: grid; gap: clamp(70px, 9vw, 120px); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; scroll-margin-top: 110px; }
.svc:nth-child(even) .svc-media { order: 2; }
.svc-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-md); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--terra); }
.svc h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 6px; }
.svc-for { background: var(--cream-2); border-left: 2px solid var(--terra); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; margin: 22px 0 28px; }
.svc-for strong { color: var(--ink); font-weight: 500; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-index { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.svc-index a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; background: #fff; transition: all .3s var(--ease); }
.svc-index a:hover { border-color: var(--terra); color: var(--terra); }

/* ---------- metodo / step ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: var(--font-display); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--sand);
}
.step::after { content: ""; position: absolute; top: 26px; left: 76px; right: -20px; height: 1px; background: rgba(242, 211, 165, .25); }
.step:last-child::after { display: none; }
.step p { margin: 0; font-size: .97rem; }

/* ---------- galleria / mosaico ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; grid-auto-flow: dense; }
.mosaic a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--cream-2); }
.mosaic a.tall { grid-row: span 2; }
.mosaic a.wide { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s var(--ease); }
.mosaic a:hover img { transform: scale(1.05); filter: brightness(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 12, 9, .94); display: none; align-items: center; justify-content: center; padding: 60px 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; background: transparent; border: 1px solid rgba(242, 211, 165, .4); color: var(--on-dark); width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(242, 211, 165, .15); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- quote ---------- */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.3; color: var(--on-dark); font-style: italic; }
.quote-band blockquote em { color: var(--sand); }
.quote-band .mark { width: 64px; margin: 0 auto 30px; opacity: .95; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--terra); }
.post-card p { color: var(--muted); }
.post-card .link-arrow { margin-top: auto; }

/* articolo */
.article { max-width: 760px; margin-inline: auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 50px; box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.3em; }
.article li { margin-bottom: .5em; }
.article li::marker { color: var(--terra); }
.answer-box { background: var(--cream-2); border-radius: var(--radius-lg); padding: 28px 32px; margin: 0 0 40px; border: 1px solid var(--line); }
.answer-box p:last-child { margin: 0; }
.answer-box strong { color: var(--ink); font-weight: 500; }
.note { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-weight: 500; color: var(--ink); background: var(--cream-2); }
.article-cta { background: var(--cocoa); color: var(--on-dark-muted); border-radius: var(--radius-lg); padding: 40px; margin-top: 50px; }
.article-cta h2 { color: var(--on-dark); margin-top: 0; }
.article-cta .hero-cta { margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 26px; transition: box-shadow .3s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 34px 22px 0; position: relative; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; color: var(--terra); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }
.article .faq { margin-top: 10px; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: var(--on-dark-muted); background: var(--cocoa); }
.cta-banner-bg { position: absolute; inset: 0; z-index: -2; }
.cta-banner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, rgba(42, 26, 20, .55), rgba(42, 26, 20, .95)); }
.cta-banner h2 { color: var(--on-dark); max-width: 18ch; margin-inline: auto; }
.cta-banner h2 em { color: var(--sand); }
.cta-banner p { max-width: 54ch; margin: 0 auto 34px; }
.cta-banner .hero-cta { justify-content: center; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-bottom: 30px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .3s var(--ease), transform .3s var(--ease); }
a.contact-card:hover { border-color: var(--terra); transform: translateX(4px); color: var(--text); }
.contact-card .ic { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--terra); }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-weight: 500; color: var(--ink); word-break: break-word; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 15px; width: 100%; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); background: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); grid-column: 1 / -1; }
.check input { margin-top: 6px; accent-color: var(--terra); width: 17px; height: 17px; flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.form-status { font-size: .92rem; color: var(--terra); margin: 0; min-height: 1.4em; }
.form-hint { font-size: .85rem; color: var(--muted); margin: 0; }
.map-link { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; aspect-ratio: 16 / 10; }
.map-link img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: transform 1s var(--ease); }
.map-link:hover img { transform: scale(1.04); }
.map-link span { position: absolute; inset: auto 24px 24px 24px; color: #fff; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.map-link span small { display: block; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); margin-top: 8px; }

/* ---------- testo legale ---------- */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: 1.9rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }

/* ---------- footer ---------- */
.site-footer { background: var(--cocoa); color: var(--on-dark-muted); padding: 90px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 60px; }
.footer-logo { width: 150px; height: auto; margin-bottom: 22px; }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); font-weight: 500; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(242, 211, 165, .3); display: grid; place-items: center; transition: all .3s var(--ease); }
.socials a:hover { background: var(--sand); color: var(--cocoa); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(242, 211, 165, .14); padding: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: var(--sand); }

/* WhatsApp flottante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* 404 */
.notfound { min-height: 100svh; display: flex; align-items: center; text-align: center; background: var(--cocoa); color: var(--on-dark-muted); padding: 140px 0 80px; }
.notfound .big { font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--sand); margin: 0; }
.notfound h1 { color: var(--on-dark); font-size: clamp(2rem, 4vw, 3rem); }
.notfound .hero-cta { justify-content: center; }

/* reveal (fallback: senza JS resta tutto visibile) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s !important; }
.reveal-d2 { transition-delay: .2s !important; }
.reveal-d3 { transition-delay: .3s !important; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .step:nth-child(2)::after { display: none; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic-home a:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 900px) {
  .split, .contact-grid, .svc { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .svc:nth-child(even) .svc-media { order: 0; }
  .arch-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .values { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 1rem; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 70px); }
  .hero-scroll { display: none; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .mosaic a.wide { grid-column: span 2; }
  .mosaic-home a:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 360px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
  .article-cta { padding: 30px 24px; }
  .hero-cta .btn { width: 100%; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 32px, var(--container)); }
  .brand-name { font-size: 1.6rem; }
  .value { padding: 32px 26px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
