/* =========================================================
   Studio Genovese — foglio di stile
   ========================================================= */

/* Font ospitati sul sito (nessuna richiesta a Google) — licenza SIL OFL 1.1 */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
  --red: #a4242c;
  --red-dark: #7e1a21;
  --red-deep: #5c1217;
  --ink: #1d1a19;
  --ink-soft: #4a4442;
  --muted: #7a716d;
  --cream: #f7f3ec;
  --cream-2: #efe8dc;
  --paper: #fffdf9;
  --line: #e2d9cb;
  --gold: #b8945a;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 20px 50px -24px rgba(40, 20, 15, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-variant-numeric: lining-nums;
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
em.accent { font-style: italic; color: var(--red); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--radius);
  font: 700 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--red-deep); }
.btn--light:hover { background: var(--cream); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--red-deep); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red); text-decoration: none;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar { background: var(--red-deep); color: rgba(255,255,255,.85); font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__items { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__items span, .topbar__items a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--red); letter-spacing: .005em; }
.brand__tag { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a:not(.btn) {
  white-space: nowrap; position: relative; text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  padding: 6px 0; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 13px 22px; }

.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.burger span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--red); font-weight: 500; }
.hero .lead { margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__badges li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.hero__badges svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.hero__badges { padding-left: 0; margin-bottom: 0; }

.hero__media { position: relative; }
.hero__media .frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::before {
  content: ""; position: absolute; top: 28px; right: -28px; bottom: -28px; left: 28px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.hero__media .frame { z-index: 1; }
.hero__card {
  position: absolute; z-index: 2; left: -40px; bottom: 40px; background: var(--paper); padding: 20px 24px;
  border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center; max-width: 290px;
}
.hero__card img { width: 44px; }
.hero__card strong { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.hero__card span { font-size: .8rem; color: var(--muted); }
.hero__emblem { position: absolute; right: -120px; top: -120px; width: 420px; opacity: .05; pointer-events: none; }

/* ---------- Page hero (interne) ---------- */
.page-hero { position: relative; background: var(--red-deep); color: #fff; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(100deg, rgba(92,18,23,.96) 0%, rgba(92,18,23,.88) 45%, rgba(92,18,23,.55) 100%);
}
.page-hero > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(64px, 9vw, 110px); }
.page-hero .eyebrow { color: #e9c9a4; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { color: rgba(255,255,255,.85); }
.crumbs { font-size: .8rem; letter-spacing: .08em; color: rgba(255,255,255,.65); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.pillar { padding: 40px 36px 8px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar__num { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--gold); margin-bottom: 12px; display: block; }
.pillar h3 { font-size: 1.75rem; }
.pillar p { color: var(--ink-soft); margin: 0; }

/* ---------- Services grid ---------- */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.head-row h2 { margin: 0; max-width: 18ch; }
.head-row .lead { margin: 0; max-width: 46ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  position: relative; background: var(--paper); padding: 40px 36px 36px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: background .3s var(--ease);
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width .4s var(--ease); }
.card:hover { background: #fff; }
.card:hover::before { width: 100%; }
.card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--red); display: grid; place-items: center; margin-bottom: 26px; transition: background .3s, color .3s; }
.card:hover .card__icon { background: var(--red); color: #fff; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.card .link-arrow { margin-top: 8px; }
.card__tag { position: absolute; top: 20px; right: 20px; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); background: #f6e3e1; padding: 5px 10px; border-radius: 99px; }

/* ---------- Spotlight controllo di gestione ---------- */
.spotlight { background: var(--red-deep); color: #fff; position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(900px 500px at 85% 20%, rgba(164,36,44,.75), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(30,8,10,.6), transparent 60%);
}
.spotlight .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.spotlight .eyebrow { color: #e9c9a4; }
.spotlight .lead { color: rgba(255,255,255,.82); }
.checks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #e9c9a4; }
.spotlight .btns { display: flex; gap: 14px; flex-wrap: wrap; }

.dash {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 28px;
  backdrop-filter: blur(6px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.dash__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { background: rgba(255,255,255,.07); border-radius: 6px; padding: 14px 16px; }
.kpi small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.kpi b { display: block; white-space: nowrap; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.kpi em { display: block; font-style: normal; font-size: .75rem; color: #9fd8a8; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,.18); }
.bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(233,201,164,.35), rgba(233,201,164,.9)); height: var(--h); transform-origin: bottom; }
.bars span.is-budget { background: rgba(255,255,255,.18); }
.reveal .bars span { transform: scaleY(0); transition: transform 1s var(--ease); }
.reveal.is-in .bars span { transform: scaleY(1); }
.bars span:nth-child(2n) { transition-delay: .08s; } .bars span:nth-child(3n) { transition-delay: .16s; }
.dash__legend { display: flex; gap: 20px; margin-top: 14px; font-size: .75rem; color: rgba(255,255,255,.65); }
.dash__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Method ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: -15px; left: 0; background: var(--paper); padding-right: 12px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--red); }
.section--cream .step::before { background: var(--cream); }
.step h3 { font-size: 1.45rem; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- Split (team / studio) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__media--tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.split__media .caption { position: absolute; right: -20px; bottom: 32px; background: var(--red); color: #fff; padding: 18px 22px; border-radius: var(--radius); font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; box-shadow: var(--shadow); max-width: 240px; }
.split__media .caption small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-top: 6px; }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.aud { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; }
.aud h3 { display: flex; align-items: center; gap: 14px; font-size: 1.55rem; }
.aud h3 svg { width: 26px; height: 26px; color: var(--red); flex: none; }
.aud ul { list-style: none; padding: 0; margin: 18px 0 0; }
.aud li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.aud li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 1px; background: var(--red); }

/* ---------- Quote ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote img { width: 56px; margin: 0 auto 28px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; font-style: italic; }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-top: 72px; padding-bottom: 72px; position: relative; }
.cta-band h2 { margin: 0 0 8px; max-width: 20ch; }
.cta-band p { margin: 0; color: rgba(255,255,255,.7); }
.cta-band .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band__emblem { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 340px; opacity: .06; }

/* ---------- Team (studio) ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 16 / 11; overflow: hidden; background: var(--cream-2); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .8s var(--ease); }
.person:hover .person__photo img { transform: scale(1.03); }
.person__body { padding: 36px 36px 40px; flex: 1; }
.person__role { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.person h3 { font-size: 2.1rem; margin-bottom: 14px; }
.person__bio { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.chips li { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--cream); color: var(--ink-soft); }
.person h4 { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.cv { list-style: none; padding: 0; margin: 0; }
.cv li { position: relative; padding: 8px 0 8px 22px; font-size: .93rem; line-height: 1.55; border-top: 1px solid var(--line); }
.cv li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border: 1.5px solid var(--red); border-radius: 50%; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.value h3 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.value h3 svg { width: 24px; height: 24px; color: var(--red); }
.value p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.gallery figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,253,249,.92); padding: 6px 12px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }

/* ---------- Servizi page ---------- */
.svc-layout { display: grid; grid-template-columns: 270px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-nav { position: sticky; top: 110px; }
.svc-nav p { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.svc-nav ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.svc-nav a:not(.btn) { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-soft); transition: color .2s, border-color .2s; }
.svc-nav a:not(.btn):hover { color: var(--ink); }
.svc-nav a.is-active { color: var(--red); border-left-color: var(--red); }

.svc { padding: 0 0 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.svc:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc__head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 22px; }
.svc__icon { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--cream); color: var(--red); display: grid; place-items: center; }
.svc__icon svg { width: 26px; height: 26px; }
.svc__head small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.svc h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0; }
.svc > p { color: var(--ink-soft); font-size: 1.05rem; max-width: 70ch; }
.svc__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.svc__list li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: .96rem; line-height: 1.5; }
.svc__list svg { flex: none; width: 18px; height: 18px; color: var(--red); margin-top: 2px; }
.svc--feature { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 48px; border-bottom: 1px solid var(--line); }
.svc--feature .svc__icon { background: var(--red); color: #fff; }
.badge-new { display: inline-block; margin-left: 10px; vertical-align: middle; font-family: var(--sans); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 10px; border-radius: 99px; }
.note { font-size: .82rem; color: var(--muted); margin-top: 22px; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0; }
.contact-list li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: var(--red); display: grid; place-items: center; }
.contact-list .ico svg { width: 21px; height: 21px; }
.contact-list small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span.v { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; text-decoration: none; line-height: 1.3; }
.contact-list a:hover { color: var(--red); }
.contact-list li > div, .contact-grid > * { min-width: 0; }
.contact-list a, .contact-list span.v { overflow-wrap: break-word; word-wrap: break-word; }

.form { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: clamp(28px, 4vw, 48px); }
.form h2 { font-size: 2.2rem; }
.form > p { color: var(--ink-soft); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(164,36,44,.12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); grid-column: 1 / -1; }
.consent input { margin-top: 5px; accent-color: var(--red); }
.form .btn { margin-top: 8px; }
.form__hint { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

.map-card { position: relative; margin-top: 8px; border-radius: 8px; overflow: hidden; }
.map-card iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border: 1px solid var(--line); border-radius: 8px; filter: saturate(.85); }
.map-card .btn { box-shadow: var(--shadow); }
.map-card .btn { position: absolute; left: 20px; bottom: 20px; }
/* Mappa caricata solo dopo il clic (privacy) */
.map-consent {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
  aspect-ratio: 16 / 10; padding: 28px 28px 88px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px;
}
.map-consent p { margin: 0; font-size: .88rem; color: var(--ink-soft); max-width: 46ch; }
.map-consent p a { color: var(--red); }
.map-consent .btn--ghost { position: static; box-shadow: none; }
@supports not (aspect-ratio: 1 / 1) { .map-consent { min-height: 340px; } }

/* ---------- Pagine di testo (privacy, grazie, 404) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--red); }
.prose .updated { font-size: .85rem; color: var(--muted); }
.consent a { color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { background: #141110; color: rgba(255,255,255,.7); font-size: .92rem; }
.footer .wrap { padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer .brand { color: #fff; }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: rgba(255,255,255,.5); }
.footer__about { margin-top: 22px; max-width: 34ch; }
.footer h4 { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.45); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .1s; } .js .reveal-d2 { transition-delay: .2s; } .js .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .reveal .bars span { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .hero__card { left: 16px; }
}
@media (max-width: 1180px) {
  .topbar__hide-sm { display: none !important; }
  .burger { display: block; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: 88vw; max-width: 360px; background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 28px; padding: 110px 32px 32px; transform: translateX(100%); transition: transform .4s var(--ease), visibility 0s linear .4s; box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); z-index: 60;
    /* a menu chiuso: niente ombra visibile sul bordo destro e link non raggiungibili col tasto Tab */
    visibility: hidden;
  }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a:not(.btn) { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); padding: 8px 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--red); }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .burger { position: relative; z-index: 70; }
  .nav-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(20,10,10,.4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 55; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }

}
@media (max-width: 960px) {
  .hero .wrap, .spotlight .wrap, .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .hero__media { max-width: 520px; }
  .hero__media::before { top: 20px; right: -14px; bottom: -20px; left: 20px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .audience, .people { grid-template-columns: 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { display: none; }
  .split__media .caption { right: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .header .wrap { min-height: 70px; }
  .brand img { width: 38px; }
  .brand__name { font-size: 1.45rem; }
  .brand__tag { font-size: .58rem; letter-spacing: .14em; }
  .cards, .checks, .svc__list, .fields, .values, .steps, .kpis, .gallery, .footer__grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px; } .kpi b { font-size: 1.3rem; }
  .card { padding: 32px 26px; }
  .hero__card { position: relative; left: 0; bottom: 0; margin-top: -40px; margin-left: 16px; }
  .hero__media::before { display: none; }
  .svc--feature { padding: 28px 22px; }
  .person__body { padding: 28px 24px 32px; }
  .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.35; }
  .hero__ctas .btn, .cta-band .btn, .spotlight .btn { width: 100%; }
  .map-card .btn { width: auto; }
  .contact-list a, .contact-list span.v { font-size: 1.2rem; }
  .contact-list .ico { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .brand__tag { display: none; }
}

/* ---------- Compatibilità browser meno recenti ---------- */
@supports not (aspect-ratio: 1 / 1) {
  .hero__media .frame { height: 620px; }
  .person__photo { height: 300px; }
  .gallery figure { height: 360px; }
  .split__media--tall img { height: 560px; }
  .map-card iframe { height: 340px; }
  @media (max-width: 640px) {
    .hero__media .frame { height: 440px; }
    .person__photo { height: 220px; }
    .gallery figure, .map-card iframe { height: 240px; }
  }
}

/* --- Versione con tre professionisti (fino a dicembre 2026) --- */
.brand__amp { font-style: normal; }
.people--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.people--3 .person__body { padding: 30px 28px 34px; }
.people--3 .person h3 { font-size: 1.85rem; }
@media (max-width: 1080px) { .people--3 { grid-template-columns: 1fr; } }
.header .brand__tag { white-space: nowrap; }
.hero__media .frame--wide { aspect-ratio: 1 / 1; height: auto; }
