/* ============================================================
   Emanuele Schillaci — site stylesheet
   Warm near-monochrome · EB Garamond throughout
   ============================================================ */

:root {
  /* palette — warm paper, deep ink, single bronze accent */
  --paper:      #FAF7F1;
  --paper-2:    #F1EBE0;
  --ink:        #1C1A16;
  --ink-soft:   #423D36;
  --muted:      #857F72;
  --line:       #E4DCCE;
  --line-soft:  #EFE9DD;
  --accent:     #9A7A45;   /* bronze / guitar wood, used sparingly */
  --accent-ink: #7A5F34;

  /* toni sopra i fondi scuri (sezioni .ink e footer) */
  --on-ink:      #CFC7B8;
  --on-ink-soft: #B0A797;
  --on-ink-dim:  #7E766A;
  --accent-warm: #C6A56A;

  /* single typeface: EB Garamond everywhere.
     --sans kept as an alias so label/nav rules stay legible. */
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "EB Garamond", Georgia, "Times New Roman", serif;

  /* raggio unico: superfici 12px, controlli a pastiglia */
  --radius: 12px;
  --radius-pill: 999px;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;          /* EB Garamond has a larger x-height than Cormorant */
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-ink); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ink); }

/* ---- layout helpers ---- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.narrow { max-width: 760px; }

/* ---- typography ---- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0;
}

/* Etichette maiuscolette: due misure sole.
   .eyebrow  = etichetta standard (occhielli di sezione, ruoli)
   .meta-label = misura piccola per i metadati (formato, mese, categoria) */
.eyebrow {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px 0;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--ink);
}

p { margin: 0 0 1.1em 0; }
p:last-child { margin-bottom: 0; }


/* ============================================================
   HEADER / NAV
   ============================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
header.site.scrolled { box-shadow: 0 6px 28px -18px rgba(0,0,0,0.35); }
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;            /* full-width bar on every page, so the nav sits in the same place as on the home */
  padding-top: 22px;
  padding-bottom: 22px;
  transition: padding 0.35s ease;
}
header.site.scrolled .bar { padding-top: 15px; padding-bottom: 15px; }

/* transparent header laid over the full-bleed hero (home) */
header.site.over-hero {
  position: fixed;
  left: 0; right: 0;
  background-color: transparent;
  border-bottom-color: transparent;
}
header.site.over-hero .brand,
header.site.over-hero nav.main a {
  color: #fff;
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
}
header.site.over-hero nav.main a { border-bottom-color: transparent; }
header.site.over-hero nav.main a:hover,
header.site.over-hero nav.main a.active { border-bottom-color: rgba(255,255,255,0.85); }
header.site.over-hero.scrolled {
  position: fixed;
  background-color: var(--paper);
  border-bottom-color: var(--line);
}
header.site.over-hero.scrolled .brand { color: var(--ink); text-shadow: none; }
header.site.over-hero.scrolled nav.main a { color: var(--ink-soft); text-shadow: none; }
header.site.over-hero.scrolled nav.main a:hover,
header.site.over-hero.scrolled nav.main a.active { color: var(--ink); border-bottom-color: var(--accent); }
.brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

nav.main { display: flex; gap: 28px; flex-wrap: wrap; }
nav.main a {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
nav.main a:hover,
nav.main a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* nav group holds the menu + the Press Kit button on the right */
.nav-group { display: flex; align-items: center; gap: clamp(18px, 3vw, 30px); flex-wrap: wrap; }

/* Press Kit button — warm paper-toned pill, consistent across header states */
.nav-cta {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  white-space: nowrap;
  text-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* la testata su telefono e' definita in fondo al foglio, in una griglia di due righe */

/* ============================================================
   HERO — full-bleed cover
   ============================================================ */
.hero-cover {
  position: relative;
  min-height: 100vh;   /* fallback first ... */
  min-height: 100svh;  /* ... then svh wins where supported (mobile URL bar) */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-cover .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url(../assets/images/hero-cover.jpg);
  background-size: cover;
  background-position: 50% 42%;
  transform: scale(1.06);
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}
.hero-cover::before {   /* editorial scrim: dark on the title side (left), photo stays clear on the right */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(16,14,11,0.68) 0%,
      rgba(16,14,11,0.48) 28%,
      rgba(16,14,11,0.20) 50%,
      rgba(16,14,11,0.00) 70%),
    linear-gradient(to bottom,
      rgba(16,14,11,0.38) 0%,
      rgba(16,14,11,0.14) 12%,
      rgba(16,14,11,0.08) 30%,
      rgba(16,14,11,0.04) 45%,
      rgba(16,14,11,0.16) 80%,
      rgba(16,14,11,0.36) 100%);
}
@media (max-width: 640px) {
  .hero-cover::before {   /* on narrow screens the title spans full width -> vertical scrim only */
    background:
      linear-gradient(to bottom,
        rgba(16,14,11,0.42) 0%,
        rgba(16,14,11,0.10) 14%,
        rgba(16,14,11,0.10) 40%,
        rgba(16,14,11,0.50) 72%,
        rgba(16,14,11,0.75) 100%);
  }
}
.hero-cover .hero-inner {
  width: 100%;
  max-width: none;
  margin: 0;                       /* hug the left gutter instead of centering in 1200px */
  padding: 0 var(--gutter) clamp(64px, 12vh, 130px);
  color: #fff;
}
/* align the home header to the same left gutter as the hero title */
header.site.over-hero .bar { max-width: none; }
.hero-cover .eyebrow {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 1px rgba(0,0,0,0.85), 0 1px 2px rgba(0,0,0,0.8), 0 1px 16px rgba(0,0,0,0.6);
}
.hero-cover h1 {
  color: #fff;
  font-size: clamp(42px, 7.2vw, 88px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: 0.004em;
  margin: 0 0 20px 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 3px 46px rgba(0,0,0,0.45);
}

.hero-cover .actions .btn {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.hero-cover .actions .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-cover .actions .btn.solid { background: #fff; color: var(--ink); border-color: #fff; }
.hero-cover .actions .btn.solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.hero-cover .scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-cover .scroll-cue::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0));
  animation: cueline 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueline {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cover .hero-bg { animation: none; transform: scale(1.04); }
  .hero-cover .scroll-cue::after { animation: none; }
}
@media (max-width: 640px) {
  .hero-cover .hero-inner { padding-bottom: clamp(48px, 10vh, 90px); }
}

/* La freccia "Scroll" e' ancorata al fondo della hero, fuori dal flusso:
   su telefono, dove le barre del browser accorciano lo schermo e i due
   bottoni vanno in colonna, finiva sopra "Booking & Contact". Su un
   touch e' anche l'indicazione piu' inutile che ci sia: si toglie.
   Stessa cosa su una finestra desktop bassa, dove si scontrerebbe uguale. */
@media (max-width: 640px), (max-height: 700px) {
  .hero-cover .scroll-cue { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }




/* ============================================================
   SECTIONS
   ============================================================ */
section.block { padding: clamp(64px, 10vw, 128px) 0; }
/* rhythm modifiers — vary vertical breathing between sections so the page
   doesn't scroll at one uniform pace: .tight compresses, .airy opens up */
section.block.tight { padding: clamp(46px, 6vw, 80px) 0; }
section.block.airy  { padding: clamp(96px, 15vw, 190px) 0; }
/* pull the Biography and the Listen block closer together on the home */
#bio    { padding-bottom: clamp(28px, 4vw, 52px); }
#listen { padding-top: clamp(44px, 6vw, 78px); }
section.block.tint { background: var(--paper-2); }
section.block.ink { background: var(--ink); color: var(--on-ink); }
section.block.ink h2, section.block.ink h3 { color: var(--paper); }
section.block.ink .eyebrow { color: var(--accent-warm); }

.section-head { margin-bottom: 52px; max-width: 720px; }
h2.section-title {
  font-size: clamp(25px, 3.4vw, 35px);
  line-height: 1.05;
  font-weight: 500;
}
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* page hero for inner pages */
.page-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(30px, 5vw, 52px); }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.0;
  font-weight: 500;
}
.page-hero p { margin-top: 18px; font-size: 22px; color: var(--muted); max-width: 54ch; }

/* featured video frame (used on My Compositions) */
.video-frame { margin: 0; }
.video-frame .ratio {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 64px -32px rgba(28,26,22,0.6);
}
.video-frame .ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame figcaption {
  margin-top: 14px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}

/* ============================================================
   MY COMPOSITIONS
   ============================================================ */
.compositions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(30px, 4vw, 48px);
}
.composition.video-frame figcaption { font-style: normal; font-size: 18px; color: var(--ink-soft); }
.composition .score-preview {
  display: block;
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.composition .score-preview img { width: 100%; display: block; }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda-group-label {
  font-family: var(--serif);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.agenda-group-label + .agenda-list { margin-bottom: 40px; }
.agenda-list:last-child { margin-bottom: 0; }
.agenda-list { list-style: none; margin: 0; padding: 0; }
/* past concerts: same layout, quieter — the date drops the bronze accent */
.agenda-list.past .ag-day { color: var(--muted); }
.agenda-list.past .ag-title { color: var(--ink-soft); }
.agenda-list li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 30px;
  align-items: baseline;
}
.agenda-list li:last-child { border-bottom: 1px solid var(--line); }
.ag-date { display: flex; flex-direction: column; }
.ag-day {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}
.ag-month {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ag-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}
.ag-loc { font-size: 15px; color: var(--accent-ink); margin-bottom: 6px; }
.ag-desc { font-size: 16px; color: var(--ink-soft); grid-column: 2; }
@media (max-width: 560px) {
  .agenda-list li { grid-template-columns: 1fr; }
  .ag-desc { grid-column: 1; }
  .ag-date { flex-direction: row; gap: 8px; align-items: baseline; }
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.bio-text { font-size: clamp(16px, 1.25vw, 17px); line-height: 1.6; }
.bio-figure { margin: 0; }
.bio-figure img {
  width: 100%;
  height: auto;              /* show the wide courtyard shot whole, don't crop it to a square */
  border-radius: var(--radius);
  box-shadow: 0 28px 64px -32px rgba(28,26,22,0.6);
}
.bio-figure figcaption {
  margin-top: 14px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}
@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; gap: 34px; }
  .bio-figure { order: -1; }
}

/* ============================================================
   FULL-BLEED PHOTO BAND
   ============================================================ */
.band {
  position: relative;
  height: clamp(340px, 56vw, 620px);
  overflow: hidden;
}
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 25%; }
.band .band-caption {
  position: absolute;
  left: var(--gutter); bottom: 34px;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  max-width: 20ch;
  line-height: 1.3;
}

/* ============================================================
   DISCOGRAPHY / RELEASE CARDS
   ============================================================ */
.release {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.release:last-child { border-bottom: 1px solid var(--line); }

/* release with cover artwork */
.release.featured {
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.release.featured .release-body { display: flex; flex-direction: column; gap: 8px; }
.release .cover { display: block; }
.release .cover img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 60px -30px rgba(28,26,22,0.55);
  transition: transform 0.5s cubic-bezier(.2,.6,.2,1), box-shadow 0.5s ease;
}
.release .cover:hover img {
  transform: translateY(-4px);
  box-shadow: 0 34px 70px -30px rgba(28,26,22,0.6);
}
/* mirrored: title/text on the left, cover on the right */
.release.featured.mirror { grid-template-columns: 1fr 300px; }
.release.featured.mirror .release-body { grid-column: 1; grid-row: 1; }
.release.featured.mirror .cover { grid-column: 2; grid-row: 1; }
@media (max-width: 620px) {
  .release.featured,
  .release.featured.mirror { grid-template-columns: 1fr; gap: 20px; }
  .release.featured.mirror .release-body,
  .release.featured.mirror .cover { grid-column: 1; grid-row: auto; }
  .release .cover img { max-width: 300px; }
}
.release .rel-year {
  font-family: var(--serif);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.release h2,
.release h3 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.05; }
.release .rel-meta { font-size: 16px; color: var(--muted); letter-spacing: 0.02em; }
.release p { font-size: 19px; color: var(--ink-soft); max-width: 60ch; margin-top: 6px; }

/* ============================================================
   NOTE (small italic caption under content blocks)
   ============================================================ */
.note { font-size: 17px; color: var(--muted); font-style: italic; margin-top: 28px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-grid figure { margin: 0; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.6,.2,1); }
.gallery-grid a { display: block; height: 100%; }
.gallery-grid a:hover img { transform: scale(1.045); }
.g-tall  { grid-column: span 5; aspect-ratio: 3/4; }
.g-wide  { grid-column: span 7; aspect-ratio: 3/2; }
.g-wide2 { grid-column: span 7; aspect-ratio: 3/2; }
.g-tall2 { grid-column: span 5; aspect-ratio: 3/4; }
.g-half  { grid-column: span 6; aspect-ratio: 3/2; }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-grid > * { grid-column: span 1 !important; aspect-ratio: 3/4 !important; }
}

/* ============================================================
   LISTEN EMBED
   ============================================================ */
.listen-embed { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px -30px rgba(0,0,0,0.35); }

/* ============================================================
   CONTACT
   ============================================================ */

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta { text-align: center; }
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.05; margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 30px; font-size: 18px; }
.cta .actions { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site {
  background: var(--ink);
  color: var(--on-ink-soft);
  padding: 72px 0 46px;
}
footer.site .foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site .foot-brand {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 8px;
}
footer.site .foot-brand + p { font-family: var(--serif); font-style: italic; color: var(--on-ink-soft); font-size: 19px; }
footer.site .f-label {
  font-family: var(--serif);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-warm); margin-bottom: 12px;
}
footer.site a { color: var(--on-ink); }
footer.site a:hover { color: var(--paper); }
footer.site .f-row { margin-bottom: 7px; font-size: 18px; }
footer.site .foot-bottom {
  padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 15px; color: var(--on-ink-dim);
}
@media (max-width: 760px) {
  footer.site .foot-top { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  transition: opacity 0.8s cubic-bezier(.2,.6,.2,1), transform 0.8s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
/* only hide when JS is active, so content never disappears without it */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PAPER GRAIN (very subtle, fixed overlay)
   ============================================================ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;              /* film grain sits above content, below header/lightbox */
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
/* header (40) and lightbox (60) already sit above the grain via their own rules */

/* ============================================================
   BUTTON / LINK MICRO-INTERACTIONS
   ============================================================ */
.btn { transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
.btn:hover { transform: translateY(-2px); }
nav.main a { transition: color 0.25s ease, border-color 0.25s ease; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16,14,11,0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox .lb-stage {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  animation: lbfade 0.4s ease;
}
.lightbox img.lb-in { animation: lbfade 0.35s ease; }
@keyframes lbfade { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lightbox .lb-count {
  font-family: var(--serif);
  font-size: 15px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
}
.lightbox button {
  position: absolute;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-family: var(--serif);
  transition: color 0.2s ease;
}
.lightbox button:hover { color: #fff; }
.lightbox .lb-close { top: 22px; right: 28px; font-size: 40px; line-height: 1; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); font-size: 40px; padding: 20px; }
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { right: 12px; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox img { transition: none; animation: none; }
}
@media (max-width: 560px) {
  .lightbox .lb-prev, .lightbox .lb-next { font-size: 30px; padding: 12px; }
  .lightbox .lb-close { top: 14px; right: 16px; }
}

/* ============================================================
   PRESS KIT DOWNLOADS
   ============================================================ */
.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.download-item:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px rgba(28,26,22,0.5);
}
.download-item .dl-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.download-item .dl-label { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.download-item .dl-meta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.download-item .dl-arrow {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--accent);
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.download-item:hover .dl-arrow { transform: translateY(3px); border-color: var(--accent); }
@media (max-width: 760px) {
  .downloads { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT PAGE
   Identita' del sito invariata: avorio/inchiostro/bronzo.
   Firma: il filetto a SEI CORDE (spessori decrescenti, come sulla
   chitarra il basso e' la corda piu' grossa) usato come divisore.
   ============================================================ */

/* ---- 1. testata: contatti + ritratto ---- */
.contact-hero-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(36px,5vw,72px); align-items:start;
}
.ch-copy .ch-intro{ margin-top:16px; font-size:18px; color:var(--muted); max-width:44ch; }
.ch-figure{ margin:0; }
.ch-figure img{
  width:100%; aspect-ratio:4/5; object-fit:cover; object-position:50% 50%;
  display:block; border-radius:var(--radius);
  box-shadow:0 34px 60px -44px rgba(28,26,22,.7);
}
.contact-cards{ display:grid; gap:14px; margin-top:30px; }
.c-card{
  background:var(--paper-2); border:1px solid var(--line);
  border-radius:var(--radius); padding:19px 24px;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.c-card:hover{ transform:translateY(-2px); box-shadow:0 20px 40px -32px rgba(28,26,22,.5); }
.c-card .c-label{
  font-size:13px; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent); margin-bottom:7px;
}
.c-card .c-name{ font-size:23px; font-weight:600; color:var(--ink); line-height:1.15; }

/* schermo stretto: la foto passa sopra i contatti e prende tutta la larghezza.
   (queste regole erano finite dentro il blocco dei programmi e sono state
   cancellate con quello: senza, la pagina restava a due colonne sul telefono) */
@media (max-width:900px){
  .contact-hero-grid{ grid-template-columns:1fr; }
  .ch-figure{ order:-1; max-width:none; }
}
@media (max-width:640px){
  .ch-figure img{ aspect-ratio:4/5; object-position:50% 50%; max-height:70vh; }
}
.c-card .c-org{ margin:1px 0 7px; color:var(--muted); font-size:16px; }
.c-card a{ font-size:16px; }

/* ---- 4. press kit su fondo inchiostro ---- */
.download-item .dl-arrow{
  width:32px; height:32px; flex:none; border-radius:50%;
  display:grid; place-items:center; background:var(--accent); color:#fff; font-size:15px;
  transition:background .2s ease, transform .2s ease;
}
.download-item:hover .dl-arrow{ background:var(--accent-ink); transform:translateY(2px); }

.contact-top{ padding-bottom:clamp(20px,3vw,40px) }

.download-item{ border-radius:var(--radius) }


/* ============================================================
   TELEFONO — correzioni verificate su viewport 390px
   ============================================================ */
@media (max-width: 640px) {
  /* la foto orizzontale, ritagliata in verticale, perdeva la chitarra e
     mezzo volto: su schermo stretto si usa un ritaglio fatto apposta */
  .hero-cover .hero-bg {
    background-image: url(../assets/images/hero-cover-mobile.jpg);
    background-position: 50% 22%;
  }
  /* il Ken Burns su schermo piccolo mangia altri bordi: si tiene fermo */
  .hero-cover .hero-bg { animation: none; transform: none; }
}


@media (max-width: 460px) {
  /* i due bottoni della hero non stanno in riga: uno sotto l'altro,
     a tutta larghezza, comodi da toccare */
  .hero-cover .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cover .actions .btn { justify-content: center; padding: 14px 20px; }
  .cta .actions { flex-direction: column; align-items: stretch; }
  .cta .actions .btn { justify-content: center; }
}

/* nota sotto il tasto d'ordine, in Music */
.buy-note { margin-top: 10px; font-size: 15px; color: var(--muted); font-style: italic; }

/* ============================================================
   MODULO DI CONTATTO
   ============================================================ */
.form { max-width: 720px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select { appearance: none; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}
/* il contorno resta visibile a chi naviga da tastiera */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.f-foot .btn { border: 1px solid var(--ink); cursor: pointer; font-family: var(--serif); }
.f-privacy { font-size: 15px; color: var(--muted); font-style: italic; max-width: 40ch; margin: 0; }

@media (max-width: 640px) {
  .f-grid { grid-template-columns: 1fr; gap: 0; }
  .f-foot { flex-direction: column; align-items: stretch; }
  .f-foot .btn { justify-content: center; }
}

/* credito fotografico */
.foot-credit { color: var(--on-ink-dim); }
.credit-line { margin-top: 40px; font-size: 16px; color: var(--muted); font-style: italic; }
.credit-line span { font-style: normal; color: var(--ink-soft); }

/* ============================================================
   TESTATA SU TELEFONO
   In colonna la barra veniva alta 169px su uno schermo da 390:
   un quinto dello schermo sempre occupato, e scorrendo copriva
   il titolo della pagina. Qui diventa una griglia di due righe
   (nome + Press Kit sopra, menu sotto) alta poco piu' di 80px.
   ============================================================ */

/* le ancore non devono finire sotto la testata */
html { scroll-padding-top: 96px; }
@media (max-width: 680px) { html { scroll-padding-top: 104px; } }

@media (max-width: 680px) {
  header.site .bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  header.site.scrolled .bar { padding-top: 10px; padding-bottom: 10px; }

  /* il gruppo sparisce come contenitore: i suoi due figli entrano
     direttamente nella griglia della barra */
  .nav-group { display: contents; }

  .brand { grid-column: 1; grid-row: 1; font-size: 19px; }

  .nav-cta {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  nav.main {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0 10px;
  }
  /* il padding verticale allarga l'area da toccare (16px -> 28px)
     senza far crescere la fascia: la riga guadagna quello che il
     row-gap ha lasciato */
  nav.main a {
    font-size: 11px;
    letter-spacing: 0.05em;
    padding-top: 8px;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  /* sulla home il nome sta gia' nella hero: in testata compare
     solo quando si scorre e quello della hero e' uscito */
  header.site.over-hero .brand {
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  header.site.over-hero.scrolled .brand {
    opacity: 1;
    pointer-events: auto;
  }
}

/* schermi molto stretti: il menu va a capo invece di stringersi oltre il leggibile */
@media (max-width: 360px) {
  nav.main { flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; }
  nav.main a { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  header.site.over-hero .brand { transition: none; }
}
