/* ==========================================================================
   Andrea Costa — Composer · Pianist
   Direzione visiva: "partitura notturna". Fondo inchiostro come una sala a
   luci spente, carta avorio come le pagine di uno spartito, accenti presi dal
   monogramma AC (verde acqua + rame). Il rame è riservato alle azioni.
   ========================================================================== */

@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-normal.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --ink: #0e0d0c;          /* fondo scuro principale */
  --ink-2: #171512;        /* superfici su scuro */
  --ink-3: #221f1b;
  --ivory: #ece4d6;        /* testo su scuro */
  --ivory-dim: #a9a092;    /* testo secondario su scuro */
  --paper: #f4efe6;        /* fondo chiaro */
  --paper-2: #ebe3d5;
  --text: #2a2622;         /* testo su chiaro */
  --muted: #6b6358;
  --teal: #46b394;         /* dal monogramma */
  --teal-deep: #1d6f59;
  --copper: #e27c46;       /* CTA */
  --copper-hover: #f08d58;
  --copper-text: #a4512a;  /* rame leggibile su carta (AA) */
  --line-dark: rgba(236, 228, 214, .14);
  --line-light: rgba(42, 38, 34, .14);
  /* tipografia */
  --font-display: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(0,0,0,.18);
  --shadow-md: 0 14px 40px rgba(0,0,0,.28);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.45);
  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bg: var(--ink);
  --line: var(--line-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--ivory);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75; font-weight: 350;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* grana leggera da carta stampata su tutto il sito */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.15em; }
strong { font-weight: 600; }
::selection { background: var(--copper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.9rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.55rem, 2.3vw, 2rem); line-height: 1.15; }
h4 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--teal); }
.on-paper h1 em, .on-paper h2 em, .on-paper h3 em { color: var(--teal-deep); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(60px, 7vw, 96px) 0; }
.on-paper { background: var(--paper); color: var(--text); --line: var(--line-light); }
.on-paper-2 { background: var(--paper-2); color: var(--text); --line: var(--line-light); }
.on-ink-2 { background: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ''; width: 38px; height: 1px; background: currentColor; }
.on-paper .eyebrow, .on-paper-2 .eyebrow { color: var(--copper-text); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.7; color: var(--ivory-dim); max-width: 640px; }
.on-paper .lead, .on-paper-2 .lead { color: var(--muted); }
.muted { color: var(--ivory-dim); }
.on-paper .muted { color: var(--muted); }

/* ---------- bottoni ---------- */
.btn {
  --b: var(--copper);
  display: inline-flex; align-items: center; gap: 12px; padding: 17px 30px; min-height: 52px;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--b); border-radius: 999px; cursor: pointer; position: relative; overflow: hidden;
  transition: color .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--copper); color: #1a0f08; }
.btn-primary:hover { background: var(--copper-hover); border-color: var(--copper-hover); }
.btn-outline { background: transparent; color: var(--ivory); --b: rgba(236,228,214,.4); }
.btn-outline:hover { --b: var(--ivory); background: rgba(236,228,214,.06); }
.on-paper .btn-outline, .on-paper-2 .btn-outline { color: var(--text); --b: rgba(42,38,34,.35); }
.on-paper .btn-outline:hover, .on-paper-2 .btn-outline:hover { --b: var(--text); background: rgba(42,38,34,.04); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: gap .4s var(--ease), color .3s;
}
.link-arrow:hover { gap: 16px; color: var(--copper); }
.on-paper .link-arrow:hover { color: var(--copper-text); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 13, 12, .82); border-color: var(--line-dark); height: 72px;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.site-header.solid { background: var(--ink); border-color: var(--line-dark); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; line-height: 1; }
.brand img { width: 50px; height: auto; }
.brand-name { display: flex; flex-direction: column; gap: 6px; }
.brand-name strong { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-name small { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ivory-dim); }
.nav-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-menu a:not(.btn) {
  position: relative; display: block; padding: 10px 14px; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-dim);
  transition: color .3s;
}
.nav-menu a:not(.btn)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"] { color: var(--ivory); }
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 14px; }
.nav-cta .btn { padding: 13px 22px; min-height: 44px; font-size: .72rem; }

/* menu mobile (da templates/menu.css) */
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(--ink); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 999px; 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.5px; background: var(--ivory); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) 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.5px) rotate(-45deg); }

@media (max-width: 1100px) { .nav-menu a:not(.btn) { padding: 10px 9px; letter-spacing: .12em; } .nav-menu a:not(.btn)::after { left: 9px; right: 9px; } }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(0,0,0,.6); 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(88vw, 380px); background: var(--ink-2);
    border-left: 1px solid var(--line-dark);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; padding: 110px 30px 40px;
    box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s linear 0s; }
  .nav-menu a:not(.btn) { padding: 14px 4px; font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ivory); border-bottom: 1px solid var(--line-dark); }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu a[aria-current="page"] { color: var(--teal); }
  .nav-cta { margin: 26px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; min-height: 54px; }
}
html { overflow-x: hidden; }

/* ---------- pentagramma decorativo ---------- */
.staff { position: absolute; left: 0; right: 0; height: 64px; pointer-events: none; opacity: .5; }
.staff svg { width: 100%; height: 100%; }
.staff path { fill: none; stroke: var(--line-dark); stroke-width: 1; vector-effect: non-scaling-stroke; }
.staff .wave { stroke: var(--teal); stroke-width: 1.3; opacity: .7; stroke-dasharray: 6 10; animation: flow 18s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -320; } }

/* ---------- hero home ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 40px) 0 0; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,13,12,.94) 0%, rgba(14,13,12,.78) 34%, rgba(14,13,12,.15) 70%, rgba(14,13,12,.35) 100%),
    linear-gradient(0deg, rgba(14,13,12,1) 0%, rgba(14,13,12,0) 38%);
}
.hero-inner { position: relative; padding-bottom: clamp(40px, 6vw, 70px); }
.hero-kicker { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ivory-dim); }
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 6px rgba(226,124,70,.15); }
.hero h1 { max-width: 13ch; margin-bottom: 30px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero .lead { margin-bottom: 40px; opacity: 0; animation: fadeUp 1s .5s var(--ease) forwards; }
.hero .btn-row { opacity: 0; animation: fadeUp 1s .65s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-signature {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ivory-dim);
}
.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(50px, 8vw, 90px); border-top: 1px solid var(--line-dark);
}
.hero-facts > div { padding: 26px 26px 0 0; display: flex; gap: 16px; align-items: baseline; }
.hero-facts > div + div { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.hero-facts strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--ivory); }
.hero-facts span { font-size: .86rem; line-height: 1.5; color: var(--ivory-dim); }
.scroll-cue { position: absolute; left: 50%; bottom: 0; width: 1px; height: 56px; background: var(--line-dark); overflow: hidden; }
.scroll-cue::after { content: ''; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--copper); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- nastro scorrevole ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); padding: 26px 0; background: var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee span { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 3rem); padding: 0 34px; white-space: nowrap; color: var(--ivory); }
.marquee i { font-style: normal; color: var(--copper); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- intestazioni di sezione ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(50px, 6vw, 80px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center .eyebrow::after { content: ''; width: 38px; height: 1px; background: currentColor; }

/* ---------- valori numerati ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { padding: 44px 40px 10px 0; position: relative; }
.value + .value { padding-left: 40px; border-left: 1px solid var(--line); }
.value .num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--copper-text); display: block; margin-bottom: 40px; }
.value h3 { margin-bottom: 16px; }
.value p { color: var(--muted); font-size: 1rem; }
.value-icon { width: 44px; height: 44px; color: var(--teal-deep); margin-bottom: 24px; }

/* ---------- split immagine/testo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.frame { position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.frame::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--teal); border-radius: var(--radius); z-index: -1; opacity: .55;
}
.frame.landscape img { aspect-ratio: 4 / 3; }
.frame-caption {
  position: absolute; left: -30px; bottom: 40px; background: var(--ink); color: var(--ivory); padding: 22px 26px; max-width: 260px;
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.3; border-left: 2px solid var(--copper);
  box-shadow: var(--shadow-md);
}
.split-text h2 { margin-bottom: 28px; }
.split-text .btn-row, .split-text .link-arrow { margin-top: 18px; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--teal-deep); margin: 8px 0 20px; line-height: 1; }

/* ---------- servizi come "movimenti" ---------- */
.movements { border-top: 1px solid var(--line-dark); counter-reset: mv; }
.movement {
  display: grid; grid-template-columns: 90px 1.1fr 1.3fr 120px; gap: 30px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line-dark); position: relative; transition: padding .5s var(--ease);
}
.movement::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(70,179,148,.08), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.movement:hover::before { opacity: 1; }
.movement:hover { padding-left: 14px; }
.movement .roman { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--copper); }
.movement h3 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.movement h3 small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.movement p { margin: 0; color: var(--ivory-dim); font-size: .98rem; }
.movement .thumb { width: 120px; height: 84px; object-fit: cover; border-radius: var(--radius); filter: grayscale(.6) brightness(.8); transition: filter .5s var(--ease), transform .5s var(--ease); }
.movement:hover .thumb { filter: none; transform: scale(1.04); }
.movement a.cover { position: absolute; inset: 0; z-index: 1; }

/* ---------- citazione su palcoscenico ---------- */
.stage { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.stage-bg { position: absolute; inset: 0; z-index: -2; }
.stage-bg img { width: 100%; height: 100%; object-fit: cover; }
.stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(14,13,12,.55), rgba(14,13,12,.92) 75%); }
.quote { max-width: 980px; margin-inline: auto; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.15; }
.quote blockquote::before { content: '“'; display: block; font-size: 1.6em; line-height: .6; color: var(--copper); font-style: normal; margin-bottom: 20px; }
.quote cite { display: block; margin-top: 34px; font-style: normal; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-dim); }

/* ---------- galleria anteprima ---------- */
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; }
.mosaic a { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.mosaic a:first-child { grid-row: span 2; }
.mosaic a:nth-child(4) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.mosaic a:hover img { transform: scale(1.05); }

/* ---------- galleria completa ---------- */
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery img { width: 100%; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-size: .82rem; color: var(--ivory);
  background: linear-gradient(0deg, rgba(14,13,12,.85), transparent); opacity: 0; transform: translateY(8px); transition: .5s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,7,6,.96); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { margin-top: 16px; color: var(--ivory-dim); font-size: .9rem; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(14,13,12,.6); color: var(--ivory); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { border-color: var(--ivory); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.post-card { display: flex; flex-direction: column; }
.post-card .media { overflow: hidden; border-radius: var(--radius); margin-bottom: 26px; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover img { transform: scale(1.05); }
.post-meta { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 12px; }
.post-card h3 { margin-bottom: 14px; transition: color .3s; }
.post-card:hover h3 { color: var(--teal-deep); }
.post-card p { color: var(--muted); }

/* ---------- CTA finale ---------- */
.cta { position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 20% 30%, rgba(70,179,148,.16), transparent 45%), radial-gradient(circle at 80% 70%, rgba(226,124,70,.14), transparent 45%);
}
.cta h2 { max-width: 16ch; margin: 0 auto 26px; }
.cta .lead { margin: 0 auto 42px; }
.cta .btn-row { justify-content: center; }
.keys { height: 46px; opacity: .14; background: repeating-linear-gradient(90deg, var(--ivory) 0 2px, transparent 2px 34px); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); margin: 0 auto 50px; max-width: 520px; position: relative; }
.keys::after { content: ''; position: absolute; inset: 0 0 40% 0; background: repeating-linear-gradient(90deg, transparent 0 22px, var(--ivory) 22px 34px, transparent 34px 68px, var(--ivory) 68px 80px, transparent 80px 102px, var(--ivory) 102px 114px, transparent 114px 170px, var(--ivory) 170px 182px, transparent 182px 204px, var(--ivory) 204px 216px, transparent 216px 238px); }

/* ---------- pagine interne ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(70px, 10vw, 130px)) 0 clamp(60px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,13,12,.97) 20%, rgba(14,13,12,.55)), linear-gradient(0deg, var(--ink), transparent 50%); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 16ch; }
.page-hero .lead { margin-top: 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-dim); }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; opacity: .5; }
.breadcrumb a:hover { color: var(--copper); }

.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 1.6em 0 .55em; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--copper-text); }
.prose a:not(.btn) { color: var(--teal-deep); border-bottom: 1px solid currentColor; }
.prose a:not(.btn):hover { color: var(--copper-text); }
.prose .answer { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; border-left: 2px solid var(--copper); padding: 4px 0 4px 26px; margin: 0 0 1.6em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* servizio dettagliato */
.service { padding: clamp(60px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service .split-text h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.service .roman { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--copper-text); display: block; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 30px; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.ticks li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: .62em; border-radius: 50%; border: 1px solid var(--teal-deep); }

.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.toc a { padding: 10px 18px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .78rem; letter-spacing: .1em; color: var(--ivory-dim); transition: .3s; }
.toc a:hover { color: var(--ivory); border-color: var(--copper); }

/* timeline biografia */
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.chapter { padding: 44px 36px 20px 0; }
.chapter + .chapter { padding-left: 36px; border-left: 1px solid var(--line-dark); }
.chapter .roman { font-family: var(--font-display); font-style: italic; font-size: 4rem; line-height: 1; color: var(--copper); opacity: .9; display: block; margin-bottom: 24px; }
.chapter p { color: var(--ivory-dim); font-size: 1rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative; font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 300; font-size: 1.8rem; color: var(--copper-text); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 50px 22px 0; color: var(--muted); margin: 0; }

/* contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal-deep); }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; }
.contact-list a:hover { color: var(--copper-text); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 50px); box-shadow: 0 30px 70px rgba(42,38,34,.08); }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); border: 1px solid transparent; border-bottom-color: rgba(42,38,34,.25);
  border-radius: var(--radius) var(--radius) 0 0; padding: 14px 16px; transition: border-color .3s, background-color .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--teal-deep); background: #fff; box-shadow: 0 2px 0 var(--teal-deep); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 26px; }
.check input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--teal-deep); flex-shrink: 0; }
.check a { color: var(--teal-deep); border-bottom: 1px solid currentColor; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-wa { --b: #1f8f5a; background: transparent; color: var(--text); }
.btn-wa:hover { background: #1f8f5a; color: #fff; }
.form-status { margin-top: 16px; font-size: .92rem; color: var(--teal-deep); min-height: 1.4em; }

/* ---------- footer ---------- */
.site-footer { background: #090807; border-top: 1px solid var(--line-dark); padding: clamp(70px, 9vw, 110px) 0 0; position: relative; overflow: hidden; }
.footer-word {
  font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(3.4rem, 13vw, 12rem); line-height: .9; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(236,228,214,.16); white-space: nowrap; margin: 0 0 clamp(50px, 6vw, 80px);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand img { width: 84px; margin-bottom: 22px; }
.footer-brand p { color: var(--ivory-dim); font-size: .95rem; max-width: 34ch; }
.site-footer h4 { color: var(--teal); margin-bottom: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: .95rem; color: var(--ivory-dim); }
.site-footer li a:hover { color: var(--copper); }
.footer-bottom { margin-top: 70px; padding: 26px 0 30px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; font-size: .8rem; color: var(--ivory-dim); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a:hover { color: var(--copper); }

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

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.notfound .big { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(7rem, 22vw, 16rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--copper); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .movement { grid-template-columns: 70px 1fr 1fr; }
  .movement .thumb { display: none; }
}
@media (max-width: 900px) {
  .section-head, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .values, .chapters { grid-template-columns: 1fr; }
  .value, .value + .value, .chapter, .chapter + .chapter { padding: 34px 0 10px; border-left: 0; }
  .value + .value, .chapter + .chapter { border-top: 1px solid var(--line); }
  .chapter + .chapter { border-top-color: var(--line-dark); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div, .hero-facts > div + div { padding: 18px 0; border-left: 0; }
  .hero-facts > div + div { border-top: 1px solid var(--line-dark); }
  .hero-signature { display: none; }
  .frame-caption { left: 14px; bottom: 14px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 200px 200px; }
  .mosaic a:first-child { grid-column: span 2; grid-row: auto; }
  .mosaic a:nth-child(4) { grid-column: auto; }
}
@media (max-width: 768px) {
  .movement { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .posts { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(14,13,12,1) 8%, rgba(14,13,12,.82) 50%, rgba(14,13,12,.35) 100%); }
  .hero-media img { object-position: 60% 30%; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .brand img { width: 42px; }
  .brand-name strong { font-size: 1.2rem; }
  .brand-name small { letter-spacing: .24em; }
  .frame::before { inset: 12px -10px -12px 12px; }
  .lightbox { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .btn { padding: 16px 22px; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .mosaic { grid-template-rows: 200px 160px 160px; gap: 8px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* sottotitolo hero (testo originale del sito) */
.hero-sub { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.2; color: var(--ivory); margin: -6px 0 16px; opacity: 0; animation: fadeUp 1s .4s var(--ease) forwards; }
.hero h1 { max-width: none; }
.chapters-img { width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: grayscale(.3); }
@media (max-width: 900px) { .chapters-img { display: none; } }

/* ==========================================================================
   Motivi musicali più presenti (17/11): pentagramma, tastiera, equalizzatore
   ========================================================================== */
.staff { opacity: 1; height: 70px; }
.staff .lines { stroke: rgba(236, 228, 214, .22); }
.staff .wave { stroke: var(--teal); stroke-width: 1.6; opacity: .95; }
.staff .notes ellipse { fill: rgba(236, 228, 214, .38); stroke: none; }
.staff .notes path { stroke: rgba(236, 228, 214, .38); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.staff-ink .lines { stroke: rgba(42, 38, 34, .16); }
.staff-ink .wave { stroke: var(--copper-text); opacity: .7; }
.staff-ink .notes ellipse { fill: rgba(42, 38, 34, .28); }
.staff-ink .notes path { stroke: rgba(42, 38, 34, .28); }
.staff-hero { bottom: 18px; }
.hero .staff-hero { bottom: 26px; z-index: 0; }
.hero-inner { padding-bottom: clamp(110px, 12vw, 140px); }
.page-hero { padding-bottom: clamp(100px, 10vw, 130px); }
@media (max-width: 768px) { .staff .notes { display: none; } .staff { height: 54px; } }

/* tastiera: più leggibile nella CTA e striscia a tutta larghezza nel footer */
.keys { opacity: .32; height: 54px; }
.keys-strip { max-width: none; height: 38px; margin: 0; opacity: .2; position: absolute; top: 0; left: 0; right: 0;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }

/* equalizzatore accanto al sottotitolo dell'hero */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq i { display: block; width: 3px; height: 100%; background: var(--copper); border-radius: 1px; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.35s; background: var(--teal); }
.eq i:nth-child(3) { animation-delay: -.7s; }
.eq i:nth-child(4) { animation-delay: -.2s; background: var(--teal); }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* scritta del footer più presente */
.footer-word { -webkit-text-stroke: 1px rgba(236, 228, 214, .55); color: rgba(236, 228, 214, .05); }
.footer-word { background: linear-gradient(90deg, rgba(70,179,148,.22), rgba(226,124,70,.18)); -webkit-background-clip: text; background-clip: text; }

/* 17/11 bis — "Musica & Danza" con contorni netti */
.footer-word {
  -webkit-text-stroke: 1.4px rgba(236, 228, 214, .88);
  color: transparent;
  background: linear-gradient(90deg, rgba(70,179,148,.42), rgba(226,124,70,.36));
  -webkit-background-clip: text; background-clip: text;
}

/* tastiera come motivo di apertura sezione, alternata al pentagramma */
.keys { --k: var(--ivory); background: repeating-linear-gradient(90deg, var(--k) 0 2px, transparent 2px 34px); }
.keys::after { background: repeating-linear-gradient(90deg, transparent 0 22px, var(--k) 22px 34px, transparent 34px 68px, var(--k) 68px 80px, transparent 80px 102px, var(--k) 102px 114px, transparent 114px 170px, var(--k) 170px 182px, transparent 182px 204px, var(--k) 204px 216px, transparent 216px 238px); }
.keys-band { position: absolute; left: 0; right: 0; max-width: none; margin: 0; height: 42px; opacity: .26;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.keys-ink { --k: var(--text); opacity: .14; }
.keys-hero { bottom: 32px; }
@media (max-width: 768px) { .keys-band { height: 32px; } }
