:root {
  --cream: #F1E9DC;
  --cream-deep: #E8DCC8;
  --ink: #2B221C;
  --ink-soft: #4A3F35;
  --bronze: #A87C4F;
  --bronze-bright: #D4A373;
  --bronze-dark: #8A6238;
  --line: rgba(43, 34, 28, 0.14);
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }

/* ----- KEYBOARD MOTIF ----- */
.keyline { display: flex; width: 100%; height: 6px; }
.keyline span { flex: 1; border-right: 1px solid rgba(43,34,28,0.5); }
.keyline span:last-child { border-right: none; }
.keyline.dark span { background: var(--ink); border-right-color: rgba(241,233,220,0.4); }

/* ----- NAV ----- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px; transition: background 0.4s ease, padding 0.4s ease;
  background: rgba(43, 34, 28, 0.95);
}
nav.scrolled {
  backdrop-filter: blur(8px);
  padding: 16px 48px; border-bottom: 1px solid rgba(212, 163, 115, 0.2);
}

.nav-name { 
  font-family: 'Cormorant Garamond', serif; 
  font-size: 26px; 
  font-weight: 700;
  letter-spacing: 0.05em; 
  color: var(--bronze-bright);
}

.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.nav-links a { position: relative; color: var(--cream); opacity: 0.9; transition: opacity 0.3s, color 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--bronze-bright); }

/* ----- HERO ----- */
.hero {
  min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 140px 48px 80px;
  background-image: url('assets/hero-piano.jpeg'); background-size: cover;
  background-position: center 30%; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,34,28,0.65) 0%, rgba(43,34,28,0.3) 35%, rgba(43,34,28,0.8) 100%);
}
.hero-eyebrow { 
  position: relative; z-index: 1; 
  font-size: clamp(16px, 1.8vw, 22px); font-weight: 500; letter-spacing: 0.22em; 
  text-transform: uppercase; color: var(--bronze-bright); margin-bottom: 24px; 
}
.hero h1 { position: relative; z-index: 1; color: var(--cream); font-size: clamp(56px, 9vw, 124px); line-height: 0.96; }
.hero-sub { position: relative; z-index: 1; margin-top: 28px; font-size: clamp(16px, 2vw, 20px); font-style: italic; font-family: 'Cormorant Garamond', serif; color: rgba(241,233,220,0.9); max-width: 560px; }

/* ----- PATHS GRID ----- */
.paths { padding: 100px 0 140px; }
.paths-head { text-align: center; margin-bottom: 60px; }
.paths-head .eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 18px; }
.paths-head h2 { font-size: clamp(32px, 4vw, 46px); }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-card { padding: 56px 40px; border-right: 1px solid var(--line); position: relative; cursor: pointer; transition: background 0.4s; }
.path-card:last-child { border-right: none; }
.path-card:hover { background: var(--cream-deep); }
.path-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; color: var(--bronze); margin-bottom: 32px; display: block; }
.path-card h3 { font-size: 30px; margin-bottom: 18px; }
.path-card p { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 28px; }
.path-more { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-dark); font-weight: 500; }

/* ----- BIO & TENDA VENEZIANA ----- */
.bio { padding: 80px 0; }
.bio-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
/* --- citazione nel medaglione: ovale, sfumatura radiale, doppia cornice sottile --- */
.bio-portal {
  position: relative; aspect-ratio: 4/5; max-width: 460px; margin: 0 auto; width: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 36%, #4a3a2e 0%, #2B221C 52%, #17110d 100%);
  box-shadow: 0 0 0 7px var(--cream), 0 0 0 8px rgba(168,124,79,.55), 0 34px 70px -28px rgba(43,34,28,.6), inset 0 0 90px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; padding: 20% 15%;
  overflow: hidden;
}
.bio-portal::before {
  content: ""; position: absolute; inset: 13px; border-radius: 50%;
  border: 1px solid rgba(212,163,115,.5); pointer-events: none;
}
.bio-portal::after { /* luce calda dall'alto */
  content: ""; position: absolute; left: 15%; right: 15%; top: -35%; height: 65%;
  background: radial-gradient(ellipse at center, rgba(212,163,115,.22) 0%, rgba(212,163,115,0) 70%);
  pointer-events: none;
}
.bio-portal-inner { position: relative; z-index: 1; width: 100%; text-align: center; }
.bio-portal-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.bio-portal-orn span { display: block; height: 1px; width: 38px; background: var(--bronze-bright); opacity: .7; }
.bio-portal-orn span:nth-child(2) { width: 5px; height: 5px; border-radius: 50%; }
.bio-portal .bio-quote {
  margin: 0; font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-size: clamp(34px, 3.6vw, 48px); line-height: 1.3; color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.bio-quote::before { content: "\201C"; color: var(--bronze-bright); margin-right: .06em; opacity: 0; transition: opacity 1.2s ease; }
.bio-quote::after  { content: "\201D"; color: var(--bronze-bright); margin-left: .06em; opacity: 0; transition: opacity 1.2s ease; }
.bio-portal.typing .bio-quote::before, .bio-portal.done .bio-quote::before, .bio-portal.done .bio-quote::after { opacity: .9; }
.is-rtl .bio-quote::before { content: "\201D"; margin: 0 0 0 .06em; }
.is-rtl .bio-quote::after  { content: "\201C"; margin: 0 .06em 0 0; }
.bio-quote .ch {
  display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(4px);
  transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s ease;
}
.bio-quote .ch.on { opacity: 1; filter: blur(0); transform: none; }
.bio-portal .bio-quote-author {
  margin: 22px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 18px; letter-spacing: .16em; color: var(--bronze-bright);
  opacity: 0; transform: translateY(6px); filter: blur(5px);
  transition: opacity 1.3s ease .15s, transform 1.3s ease .15s, filter 1.3s ease .15s;
}
.bio-portal.done .bio-quote-author { opacity: 1; transform: none; filter: blur(0); }
.is-cyrillic .bio-portal .bio-quote { font-family: 'Marck Script', 'Cormorant Garamond', cursive; font-size: clamp(30px, 3.2vw, 42px); }
.is-cjk .bio-portal .bio-quote { font-family: 'Noto Serif SC', 'Noto Serif JP', serif; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: .08em; line-height: 1.7; }
.is-arabic .bio-portal .bio-quote { font-family: 'Noto Naskh Arabic', serif; font-size: clamp(26px, 3vw, 38px); line-height: 1.8; }
.is-cjk .bio-portal .bio-quote-author, .is-arabic .bio-portal .bio-quote-author { font-style: normal; letter-spacing: .1em; }
@media (prefers-reduced-motion: reduce) { .bio-quote .ch, .bio-quote-author, .bio-quote::before, .bio-quote::after { transition: none; } }

.bio h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 28px; }
.bio p { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 20px; }

/* ----- WORKS / AUDIO ----- */
.works { padding: 60px 0; color: var(--ink); }
.works-head { text-align: center; margin-bottom: 60px; }
.works-head h2 { font-size: clamp(32px, 4vw, 46px); }
.works-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 90px 1fr 140px 60px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.work-year { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--bronze); font-size: 17px; }
.work-title { font-size: clamp(20px, 2.4vw, 27px); font-family: 'Cormorant Garamond', serif; }

.work-progress {
  height: 3px;
  background: rgba(43, 34, 28, 0.15);
  width: 100%;
  max-width: 140px;
  justify-self: end;
  border-radius: 2px;
  overflow: hidden;
}

.work-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--bronze-dark);
  transition: width 0.1s linear;
}

.work-play {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.work-play:hover { background: var(--ink); }
.work-play svg { width: 12px; height: 12px; fill: var(--ink); transition: fill 0.3s ease; }
.work-play:hover svg { fill: var(--cream); }

/* ----- VIDEOS (CAROSELLO / SLIDER ORIZZONTALE) ----- */
.videos { padding: 60px 0; }
.videos-head { text-align: center; margin-bottom: 60px; }
.videos-head .eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 18px; }
.videos-head h2 { font-size: clamp(32px, 4vw, 46px); }

.video-grid { 
  display: flex !important; 
  gap: 32px !important; 
  overflow-x: auto !important; 
  scroll-snap-type: x mandatory;
  padding-bottom: 30px;
  -webkit-overflow-scrolling: touch;
}

.video-grid::-webkit-scrollbar { height: 6px; }
.video-grid::-webkit-scrollbar-track { background: rgba(43, 34, 28, 0.08); border-radius: 3px; }
.video-grid::-webkit-scrollbar-thumb { background: var(--bronze); border-radius: 3px; }

.video-card {
  flex: 0 0 46% !important;
  min-width: 320px !important;
  scroll-snap-align: start;
}

.video-wrapper { 
  position: relative; 
  padding-bottom: 56.25%; 
  height: 0; 
  overflow: hidden; 
  background: #000; 
  border: 1px solid var(--line); 
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; margin-top: 14px; text-align: center; color: var(--ink-soft); }

/* ----- FORM CONTATTI ----- */
.cta-section { padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: clamp(36px, 5.5vw, 64px); margin: 24px 0 32px; }
.contact-info { margin-bottom: 32px; font-size: 18px; color: var(--ink-soft); }
.contact-email-link { color: var(--bronze-dark); font-weight: 500; text-decoration: underline; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-dark); font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); font-family: 'Jost', sans-serif; font-size: 15px; color: var(--ink); outline: none; border-radius: 2px; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--bronze); background: #fff; }

.submit-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 18px 40px; 
  border: 1px solid var(--ink); 
  font-size: 13px; 
  letter-spacing: 0.1em; 
  text-transform: uppercase; 
  background: transparent; 
  color: var(--ink);
  cursor: pointer; 
  transition: all 0.35s ease; 
  align-self: flex-start;
  margin-top: 10px;
}
.submit-btn:hover { background: var(--ink); color: var(--cream); }

/* ----- FOOTER ----- */
footer { padding: 50px 0 40px; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-soft); }

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .path-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .video-card {
    flex: 0 0 85% !important;
  }
}
/* =========================================================================
   AGGIUNTE — selettore lingue, menu mobile, aforisma, RTL, CJK
   ========================================================================= */

/* --- i numeri romani delle schede sono stati rimossi dal markup --- */
.path-num { display: none !important; }
.path-card { padding-top: 48px; }

/* --- link di salto per tastiera e screen reader --- */
.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 300;
  background: var(--ink); color: var(--cream); padding: 12px 20px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  /* nascosto senza spostarlo fuori pagina: in RTL creava scorrimento */
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none; width: auto; height: auto; overflow: visible;
}

:focus-visible { outline: 2px solid var(--bronze-bright); outline-offset: 3px; }
body.no-scroll { overflow: hidden; }

/* --- navigazione --- */
nav { gap: 24px; }
.nav-links a { position: relative; padding-bottom: 3px; color: var(--cream); opacity: .82; transition: opacity .25s; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--bronze-bright); transition: right .3s ease;
}
.nav-links a:hover::after { right: 0; }

/* --- selettore di lingua --- */
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid rgba(212,163,115,.55);
  color: var(--bronze-bright); padding: 6px 12px; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: .12em; transition: border-color .3s, color .3s;
  line-height: 1.2;
}
.lang-toggle:hover { border-color: var(--bronze-bright); }
.lang-toggle .chev { width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform .3s; }
.lang-switch.open .lang-toggle .chev { transform: rotate(-135deg) translate(-3px,-3px); }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200;
  display: none; flex-direction: column; min-width: 158px;
  background: var(--cream); border: 1px solid rgba(43,34,28,.18);
  box-shadow: 0 18px 44px rgba(43,34,28,.22);
}
.is-rtl .lang-menu { right: auto; left: 0; }
.lang-switch.open .lang-menu { display: flex; }
.lang-option {
  background: transparent; border: 0; cursor: pointer; text-align: left;
  padding: 11px 18px; font-family: 'Jost', sans-serif; font-size: 14px;
  color: var(--ink); transition: background .2s;
  border-bottom: 1px solid rgba(43,34,28,.08);
}
.is-rtl .lang-option { text-align: right; }
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--cream-deep); }
.lang-option[aria-current="true"] { color: var(--bronze-dark); font-weight: 600; }
.lang-option[aria-current="true"]::before { content: "— "; }

/* --- pulsante menu mobile --- */
.menu-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 34px; height: 26px; position: relative; padding: 0;
}
.menu-toggle span {
  position: absolute; left: 2px; right: 2px; height: 1.5px;
  background: var(--bronze-bright); transition: transform .35s, opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 4px; }
.menu-toggle span:nth-child(2) { top: 12px; }
.menu-toggle span:nth-child(3) { top: 20px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- scrittura da destra a sinistra (arabo) --- */
.is-rtl { direction: rtl; }
.is-rtl .nav-links, .is-rtl .nav-right { flex-direction: row-reverse; }
.is-rtl .footer-row { flex-direction: row-reverse; }
.is-rtl .path-card { border-right: none; border-left: 1px solid var(--line); }
.is-rtl .path-card:last-child { border-left: none; }
.is-rtl .path-more { direction: rtl; }
.is-rtl .work-row { direction: rtl; }
.is-rtl .form-group label, .is-rtl .contact-info { text-align: right; }
.is-rtl .nav-links a::after { right: 0; left: 100%; transition: left .3s ease; }
.is-rtl .nav-links a:hover::after { left: 0; }

/* --- caratteri per cinese, giapponese e arabo --- */
.is-cjk body, .is-cjk, .is-cjk h1, .is-cjk h2, .is-cjk h3, .is-cjk .serif,
.is-cjk .aphorism-line, .is-cjk .nav-name {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', 'Noto Serif JP',
               'Hiragino Mincho ProN', 'Songti SC', serif;
}
.is-cjk .aphorism-line { font-style: normal; letter-spacing: .06em; }
.is-cjk .nav-links, .is-cjk body { letter-spacing: .02em; }
.is-cjk .nav-links { text-transform: none; }

.is-arabic body, .is-arabic, .is-arabic h1, .is-arabic h2, .is-arabic h3,
.is-arabic .serif, .is-arabic .aphorism-line,
.is-arabic .nav-name, .is-arabic p, .is-arabic .nav-links {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Geeza Pro', serif;
}
.is-arabic .aphorism-line { font-style: normal; line-height: 1.75; }
.is-arabic .nav-links, .is-arabic .hero-eyebrow, .is-arabic .eyebrow,
.is-arabic .path-more, .is-arabic .aphorism-author { text-transform: none; letter-spacing: 0; }
.is-arabic .hero h1 { font-family: 'Cormorant Garamond', serif; } /* il nome resta latino */

/* --- adattamento mobile --- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-name { font-size: 21px; }
  .menu-toggle { display: block; }
  .nav-right { gap: 14px; }
  .nav-links {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(31, 24, 20, .985);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 26px; font-size: 17px; letter-spacing: .14em;
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  .menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--cream); }
  .path-grid { grid-template-columns: 1fr !important; }
  .path-card { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 0; }
  .is-rtl .path-card { border-left: none; }
  .path-card:last-child { border-bottom: none; }
  .bio-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 120px 24px 72px; min-height: 86vh; }
  .aphorism { min-height: 3.4em; }
  .lang-menu { max-height: 62vh; overflow-y: auto; }
}
@media (max-width: 420px) {
  .lang-toggle { padding: 5px 9px; font-size: 11px; }
}

/* --- commento sotto ogni composizione --- */
.work-note {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 18px; line-height: 1.7; color: var(--ink-soft);
  max-width: none; padding: 10px 0 30px; margin: 0;
  padding-inline-end: 36%;
  border-bottom: 1px solid var(--line);
}
.work-row + .work-note { margin-top: -1px; }
.is-rtl .work-note { text-align: right; }
@media (max-width: 900px) { .work-note { padding-inline-end: 0; font-size: 17px; } }
.is-cjk .work-note, .is-arabic .work-note { font-style: normal; }
.is-cjk .work-note { font-size: 16px; line-height: 1.9; }


/* =========================================================================
   SCHERMATA D'INGRESSO — l'aforisma emerge dal nulla, poi la home
   ========================================================================= */
body.intro-on { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 42%, #3a2d24 0%, #2B221C 48%, #1a1410 100%);
  color: var(--cream); text-align: center;
  padding: 24px; cursor: pointer;
  transition: opacity 1.6s ease, visibility 1.6s;
}
.intro.leave { opacity: 0; visibility: hidden; }
.intro-inner { max-width: 1000px; width: 100%; }

.intro-line {
  margin: 0; display: block; text-align: center;
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-size: clamp(44px, 7.6vw, 104px);
  line-height: 1.25; color: var(--cream);
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
  text-wrap: balance;
}
.intro-line::before { content: "\201C"; color: var(--bronze-bright); margin-right: .05em; opacity: 0; transition: opacity 1.4s ease; }
.intro.typing .intro-line::before, .intro.done .intro-line::before { opacity: .9; }
.intro-line::after  { content: "\201D"; color: var(--bronze-bright); margin-left: .05em; opacity: 0; transition: opacity 1.2s ease; }
.intro.done .intro-line::after { opacity: .9; }

/* ogni lettera e' gia' al suo posto, invisibile; si accende sfumando dal nulla */
.intro-line .ch {
  opacity: 0; filter: blur(9px); transform: translateY(5px);
  transition: opacity 1.3s ease, filter 1.3s ease, transform 1.3s ease;
  will-change: opacity, filter;
}
.intro-line .ch.on { opacity: 1; filter: blur(0); transform: none; }

/* la firma, nello stesso corsivo, appare a frase finita */
.intro-author {
  margin: 26px 0 0;
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.2;
  letter-spacing: .02em; text-transform: none; color: var(--bronze-bright);
  opacity: 0; transform: translateY(8px); filter: blur(6px);
  transition: opacity 1.4s ease .2s, transform 1.4s ease .2s, filter 1.4s ease .2s;
}
.intro.done .intro-author { opacity: 1; transform: none; filter: blur(0); }

/* nessun pulsante: si salta cliccando ovunque */
.intro-skip { display: none; }

/* caratteri per alfabeto */
.is-cyrillic .intro-line { font-family: 'Marck Script', 'Cormorant Garamond', cursive; font-size: clamp(38px, 6.4vw, 88px); }
.is-cjk .intro-line { font-family: 'Noto Serif SC', 'Noto Serif JP', serif; font-size: clamp(30px, 5vw, 64px); font-weight: 400; letter-spacing: .08em; }
.is-arabic .intro-line { font-family: 'Noto Naskh Arabic', serif; font-size: clamp(34px, 5.6vw, 72px); line-height: 1.7; }
.is-rtl .intro-line::before { content: "\201D"; margin: 0 0 0 .05em; }
.is-rtl .intro-line::after  { content: "\201C"; margin: 0 .05em 0 0; }
.is-cyrillic .intro-author { font-family: 'Marck Script', 'Cormorant Garamond', cursive; }
.is-cjk .intro-author { font-family: 'Noto Serif SC', 'Noto Serif JP', serif; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: .14em; }
.is-arabic .intro-author { font-family: 'Noto Naskh Arabic', serif; font-size: clamp(20px, 2.6vw, 34px); }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro-author, .intro-line::after, .intro-line .ch { transition: none; }
}

/* =========================================================================
   GALLERIA
   ========================================================================= */
.gallery { padding-bottom: 120px; }
.gal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  grid-auto-rows: 240px; grid-auto-flow: dense;
}
.gal-item { display: block; overflow: hidden; background: var(--ink); position: relative; }
.gal-item.tall { grid-row: span 2; }
.gal-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: .96;
}
.gal-item:hover img { transform: scale(1.04); opacity: 1; }
.gal-item:focus-visible { outline: 2px solid var(--bronze-bright); outline-offset: 3px; }
@media (max-width: 900px) { .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 12px; } }
@media (max-width: 520px) { .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; } .gal-item.tall { grid-row: span 1; } }

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(20, 15, 12, .96);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 72px;
}
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-figure figcaption { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-bright); text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: transparent; border: 0; color: var(--cream);
  cursor: pointer; font-family: 'Cormorant Garamond', serif; line-height: 1; opacity: .75; transition: opacity .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 18px; right: 26px; font-size: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 72px; padding: 20px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.is-rtl .lb-close { right: auto; left: 26px; }
@media (max-width: 900px) {
  .lightbox { padding: 60px 8px 40px; }
  .lb-prev, .lb-next { font-size: 54px; padding: 10px; top: auto; bottom: 8px; transform: none; }
  .lb-figure img { max-height: calc(100vh - 170px); }
}

/* --- home: sei schede, tre per riga --- */
@media (min-width: 1024px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
  .path-card { padding: 50px 36px 44px; border-bottom: 1px solid var(--line); }
  .path-card:nth-child(3n) { border-right: none; }
  .is-rtl .path-card:nth-child(3n) { border-left: none; }
  .is-rtl .path-card:not(:nth-child(3n)) { border-right: none; border-left: 1px solid var(--line); }
  .path-card:nth-last-child(-n+3) { border-bottom: none; }
  .path-card h3 { font-size: 27px; }
  .path-card p { font-size: 14px; line-height: 1.75; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .path-card { border-bottom: 1px solid var(--line); }
  .path-card:nth-child(2n) { border-right: none; }
  .path-card:nth-last-child(-n+1) { border-bottom: none; }
}

/* =========================================================================
   ALBUM — copertina e presentazione nella pagina Composizioni
   ========================================================================= */
.album { padding: 20px 0 70px; }
.album-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 64px; align-items: center; }
.album-cover { display: block; background: #0b0f1a; box-shadow: 0 30px 70px rgba(43,34,28,.28); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.album-cover:hover { transform: translateY(-4px); }
.album-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.album-info .eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 18px; }
.album-title { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.02; margin: 0 0 14px; text-wrap: balance; }
.album-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; color: var(--bronze-dark); margin: 0 0 22px; }
.album-text { font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); max-width: 48ch; margin: 0; }
.is-rtl .album-grid { direction: rtl; }
.is-cjk .album-sub, .is-arabic .album-sub { font-style: normal; }
@media (max-width: 900px) {
  .album-grid { grid-template-columns: 1fr; gap: 32px; }
  .album-cover { max-width: 360px; margin: 0 auto; }
  .album-info { text-align: center; }
  .album-text { margin: 0 auto; }
}

/* --- righe dei brani su telefono: anno sopra, titolo, barra e tasto in una riga --- */
@media (max-width: 600px) {
  .work-row { grid-template-columns: 1fr 44px; grid-template-areas: "anno anno" "titolo play" "barra barra"; gap: 8px 12px; padding: 22px 0; }
  .work-year { grid-area: anno; }
  .work-title { grid-area: titolo; min-width: 0; }
  .work-progress { grid-area: barra; width: 100%; }
  .work-play { grid-area: play; justify-self: end; }
}

/* --- pulsante "biografia completa" nella pagina biografia --- */
.bio-more-wrap { margin-top: 30px; }
.bio-more-link { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--bronze-dark); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .3s; }
.bio-more-link:hover { border-bottom-color: var(--bronze); }

/* =========================================================================
   CURRICULUM — biografia completa, impaginata come il sito
   ========================================================================= */
.cv { padding: 20px 0 90px; }
.cv-head { text-align: center; margin-bottom: 20px; }
.cv-head .eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 16px; }
.cv-head h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0; }
.cv-actions { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 26px 0 50px; }
.cv-download {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--bronze); color: var(--bronze-dark);
  padding: 11px 22px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  transition: background .3s, color .3s;
}
.cv-download:hover { background: var(--bronze); color: var(--cream); }
.cv-back { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, var(--ink-soft)); align-self: center; }
.cv-body { max-width: 760px; margin: 0 auto; }
.cv-body p { font-size: 16px; line-height: 1.95; color: var(--ink-soft); margin: 0 0 26px; }
.cv-body p:first-child { font-size: 17px; }
.cv-body p:first-child::first-letter { font-family: 'Cormorant Garamond', serif; font-size: 3.4em; line-height: .9; float: left; margin: 6px 12px 0 0; color: var(--bronze-dark); }
.is-rtl .cv-body { text-align: right; }
.is-rtl .cv-body p:first-child::first-letter { float: right; margin: 6px 0 0 12px; }
.is-cjk .cv-body p:first-child::first-letter, .is-arabic .cv-body p:first-child::first-letter { float: none; font-size: 1em; margin: 0; font-family: inherit; color: inherit; }
.is-cjk .cv-body p { line-height: 2.1; }
.is-arabic .cv-body p { line-height: 2.2; }
@media (max-width: 700px) { .cv-body p { font-size: 15.5px; } }

/* =========================================================================
   VIDEO — griglia stile YouTube con caricamento al clic
   ========================================================================= */
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.yt-card { display: flex; flex-direction: column; min-width: 0; }
.yt-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: #0b0f1a; border-radius: 4px;
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; opacity: .95; }
.yt-thumb:hover img { transform: scale(1.05); opacity: 1; }
.yt-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(11,15,26,.55) 100%); pointer-events: none; }
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 66px; height: 46px; border-radius: 12px;
  background: rgba(20,15,12,.72); transition: background .3s, transform .3s; z-index: 1;
}
.yt-thumb:hover .yt-play { background: var(--accent-strong, #c0392b); transform: translate(-50%,-50%) scale(1.06); background: #b5342c; }
.yt-play::before { content: ""; position: absolute; top: 50%; left: 52%; transform: translate(-50%,-50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-caption { margin: 14px 2px 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); font-family: 'Cormorant Garamond', serif; font-style: italic; min-width: 0; }
.is-cjk .yt-caption, .is-arabic .yt-caption { font-style: normal; font-size: 14px; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .yt-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; } }
@media (max-width: 560px) { .yt-grid { grid-template-columns: 1fr; gap: 26px; } }

/* =========================================================================
   REPERTORIO — epoche, compositori, brani
   ========================================================================= */
.era-block { margin: 0 auto 72px; max-width: 1040px; }
.era-block:last-child { margin-bottom: 20px; }

/* titolo d'epoca: corsivo grande, filetto bronzo, numerazione implicita assente */
.era-title {
  position: relative; margin: 0 0 34px;
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-style: italic;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; color: var(--ink);
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.era-title::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -1px;
  width: 72px; height: 2px; background: var(--bronze);
}

/* compositori su due colonne (una sola su schermi stretti) */
.era-block { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 34px; }
.era-title { grid-column: 1 / -1; }
.composer-block { padding-inline-start: 18px; border-inline-start: 1px solid var(--line); break-inside: avoid; }
.composer-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: 21px; line-height: 1.25; letter-spacing: .01em; color: var(--ink); margin-bottom: 10px;
}
.pieces-list { list-style: none; margin: 0; padding: 0; }
.pieces-list li {
  position: relative; padding-inline-start: 22px; margin-bottom: 7px;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft);
}
.pieces-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .72em;
  width: 11px; height: 1px; background: var(--bronze);
}

/* i blocchi con molti brani (Beethoven, Chopin...) occupano tutta la larghezza */
.composer-block.wide { grid-column: 1 / -1; }
.composer-block.wide .pieces-list { columns: 2; column-gap: 48px; }
.composer-block.wide .pieces-list li { break-inside: avoid; }

@media (max-width: 760px) {
  .era-block { grid-template-columns: 1fr; row-gap: 26px; margin-bottom: 56px; }
  .composer-block.wide .pieces-list { columns: 1; }
}

/* alfabeti */
.is-cjk .era-title { font-family: 'Noto Serif SC', 'Noto Serif JP', serif; font-style: normal; font-weight: 600; letter-spacing: .06em; }
.is-cjk .composer-name { font-family: 'Noto Serif SC', 'Noto Serif JP', 'Cormorant Garamond', serif; }
.is-cjk .pieces-list li { font-family: 'Noto Serif SC', 'Noto Serif JP', sans-serif; font-weight: 400; }
.is-arabic .era-title { font-family: 'Noto Naskh Arabic', serif; font-style: normal; }
.is-arabic .composer-name { font-family: 'Noto Naskh Arabic', 'Cormorant Garamond', serif; }
.is-arabic .pieces-list li { font-family: 'Noto Naskh Arabic', sans-serif; font-weight: 400; font-size: 17px; line-height: 1.8; }

/* =========================================================================
   PROGETTI — L'ultimo Beethoven 2027
   ========================================================================= */
.project { padding: 10px 0 100px; }
.project-grid { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 72px; align-items: start; }
.project-poster { position: sticky; top: 110px; }
.project-poster > a { display: block; box-shadow: 0 34px 70px -20px rgba(43,34,28,.55); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-poster > a:hover { transform: translateY(-4px); }
.project-poster img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1415; }
.project-dl { display: inline-block; margin-top: 16px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--bronze-dark); border-bottom: 1px solid transparent; transition: border-color .3s; }
.project-dl:hover { border-bottom-color: var(--bronze); }
.project-info .eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 18px; }
.project-title { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin: 0 0 12px; text-wrap: balance; }
.project-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 24px; color: var(--bronze-dark); margin: 0 0 28px; }
.project-lead { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.55; color: var(--ink); margin: 0 0 36px; max-width: 58ch; }
.project-prog-title { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-dark); font-family: 'Jost', sans-serif; font-weight: 500; margin: 0 0 10px; }
.project-prog { list-style: none; margin: 0 0 34px; padding: 0; border-top: 1px solid var(--line); max-width: 560px; }
.project-prog li { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.project-prog .op { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--bronze-dark); letter-spacing: .02em; }
.project-text { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 18px; max-width: 60ch; }
.project-cta { margin: 34px 0 0; }
.project-btn { display: inline-block; padding: 14px 30px; border: 1px solid var(--ink); color: var(--ink); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: background .3s, color .3s; }
.project-btn:hover { background: var(--ink); color: var(--cream); }
.is-rtl .project-grid { direction: rtl; }
.is-cjk .project-sub, .is-arabic .project-sub { font-style: normal; }
.is-cjk .project-lead { font-family: 'Noto Serif SC', 'Noto Serif JP', serif; font-size: 19px; line-height: 1.9; }
.is-arabic .project-lead { font-family: 'Noto Naskh Arabic', serif; font-size: 21px; line-height: 1.9; }
.is-cjk .project-prog li, .is-arabic .project-prog li { font-family: inherit; }
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-poster { position: static; max-width: 420px; margin: 0 auto; }
  .project-info { text-align: center; }
  .project-lead, .project-text, .project-prog { margin-left: auto; margin-right: auto; }
  .project-prog li { text-align: left; }
  .is-rtl .project-prog li { text-align: right; }
}
.is-cjk .project-title { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.2; }

/* --- barra con otto voci: fra 1024 e 1230px si stringe; fra 901 e 1023 usa il menu a tendina --- */
@media (min-width: 1081px) and (max-width: 1230px) {
  .nav-links { gap: 20px; font-size: 12px; letter-spacing: .08em; }
  .nav-name { font-size: 22px; white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .nav-name { white-space: nowrap; }
  .menu-toggle { display: block; }
  .nav-right { gap: 16px; }
  .nav-links {
    position: fixed; inset: 0; z-index: 150; display: flex;
    background: rgba(31, 24, 20, .985);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 26px; font-size: 17px; letter-spacing: .14em;
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  .menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--cream); }
}

/* secondo progetto: separatore e copertina quadrata */
.project-second { border-top: 1px solid var(--line); padding-top: 90px; }
.project-poster-square > a { display: block; background: #0b0f1a; }
.project-poster-square img { aspect-ratio: 1 / 1; }

/* =========================================================================
   LETTORE AUDIO — forma d'onda, tempi, pulsante
   ========================================================================= */
.tracks { border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 64px 1fr; gap: 0 26px; align-items: center;
  padding: 34px 0 26px; border-bottom: 1px solid var(--line);
}
.track-play {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.track-play svg { width: 26px; height: 26px; fill: currentColor; }
.track-play .icon-pause { display: none; }
.track.playing .track-play .icon-play { display: none; }
.track.playing .track-play .icon-pause { display: block; }
.track-play:hover, .track.playing .track-play { background: var(--ink); color: var(--cream); }
.track-play:hover { transform: scale(1.04); box-shadow: 0 10px 26px -12px rgba(43,34,28,.6); }
.track-play:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.track-play:disabled:hover { background: transparent; color: var(--ink); }
.track-body { min-width: 0; }
.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.track-title { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; color: var(--ink); }
.track-year { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--bronze); font-size: 17px; white-space: nowrap; }
.track-wave { position: relative; height: 56px; cursor: pointer; outline: none; border-radius: 6px; }
.track-wave:focus-visible { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--bronze-bright); }
.track-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.track-hover {
  position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-soft); opacity: .5;
  inset-inline-start: -9999px; pointer-events: none;
}
.track-hover::after {
  content: attr(data-t); position: absolute; top: -22px; inset-inline-start: 50%; transform: translateX(-50%);
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .06em; color: var(--ink-soft); white-space: nowrap;
  background: var(--cream); padding: 1px 6px; border-radius: 3px;
}
.is-rtl .track-hover::after { transform: translateX(50%); }
.track-times {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .08em; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.track-status { color: var(--bronze-dark); font-style: italic; letter-spacing: .02em; }
.track-missing .track-wave { cursor: default; opacity: .45; }
.track-missing .track-cur, .track-missing .track-dur { visibility: hidden; }
.is-cjk .track-title, .is-arabic .track-title { font-family: inherit; }
.is-cjk .track-year, .is-arabic .track-year { font-style: normal; }
@media (max-width: 700px) {
  .track { grid-template-columns: 52px 1fr; gap: 0 16px; padding: 26px 0 20px; }
  .track-play { width: 52px; height: 52px; }
  .track-play svg { width: 22px; height: 22px; }
  .track-wave { height: 44px; }
  .track-head { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 8px; }
  .is-rtl .track-head { align-items: flex-end; }
}

/* =========================================================================
   PIÈ DI PAGINA e PAGINA LEGALE
   ========================================================================= */
.footer-row { flex-wrap: wrap; gap: 10px 24px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-soft); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.footer-links a:hover { color: var(--bronze-dark); border-bottom-color: var(--bronze); }
.is-rtl .footer-links { flex-direction: row-reverse; }
@media (max-width: 600px) { .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; } .is-rtl .footer-row { align-items: flex-end; } .footer-links { flex-wrap: wrap; gap: 10px 18px; } }
.legal-updated { margin: 14px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; color: var(--bronze-dark); }
.legal-body p:first-child::first-letter { font-family: inherit; font-size: inherit; float: none; margin: 0; color: inherit; line-height: inherit; }
.legal-body p:first-child { font-size: 16px; }
.legal-body h2 { font-size: 24px; margin: 34px 0 10px; }
.legal-body p { margin-bottom: 18px; }
.is-cjk .legal-updated, .is-arabic .legal-updated { font-style: normal; }

/* ----- Classi che sostituiscono gli stili inline (compatibilità CSP) ----- */
.page-main { padding-top: 140px; }
.page-tall { min-height: 80vh; }
.no-top-border { border-top: none; }
.on-paper { background: transparent; color: var(--ink); }
a.path-card { display: block; color: inherit; }
a.path-card:focus-visible { outline: 2px solid var(--bronze); outline-offset: -6px; }
/* campo trappola anti-spam: invisibile alle persone, compilato dai bot */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer-home { opacity: .7; }
.msg-box { max-width: 640px; }
.msg-box p { font-size: 17px; line-height: 1.8; color: var(--ink-soft); margin-top: 18px; }
.msg-box .msg-back { display: inline-block; margin-top: 32px; color: var(--bronze-dark); border-bottom: 1px solid currentColor; }
