/* ============================================================
   FRANCESCA TIBURZI — Stylesheet globale
   Palette: bianco, avorio, bordeaux scuro, oro antico
   ============================================================ */

:root {
  --white:      #ffffff;
  --ivory:      #f9f6f0;
  --ivory-mid:  #ede8de;
  --gold:       #9a7d4a;
  --gold-light: #c4a96a;
  --bordeaux:   #6b1f2a;
  --text:       #2a2318;
  --text-mid:   #5a5040;
  --text-light: #9a8f7a;
  --nav-h:      80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--white);
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
p, li { font-family: 'Lato', Arial, sans-serif; font-size: 1rem; line-height: 1.8; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bordeaux); }
em, i { font-style: italic; }

/* ── Google Fonts import (inline fallback) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--ivory-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  font-family: 'Lato', sans-serif;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: .3s;
}

/* ── Page wrapper ── */
.page-body {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── Hero (index) ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.72);
}
.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 64px 72px;
  color: var(--white);
  width: 100%;
}
.hero-name {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
}
.hero-title {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 12px;
}
.hero-credit {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,.45);
  margin-top: 32px;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.35);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

/* ── Section header ── */
.section-header {
  text-align: center;
  padding: 80px 24px 48px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.section-divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── Container ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Bio layout ── */
.bio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 80px;
}

/* ── Bio toggle ── */
.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.lang-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 8px 24px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn:first-child { border-right: none; }
.lang-btn.active {
  background: var(--gold);
  color: var(--white);
}
.lang-btn:hover:not(.active) { background: var(--ivory); }

.bio-content { display: none; }
.bio-content.visible { display: block; }

.bio-text p { margin-bottom: 1.3em; color: var(--text-mid); }
.bio-text p:last-child { margin-bottom: 0; }

.bio-expand-btn {
  display: inline-block;
  margin-top: 24px;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0 0 3px;
  transition: color .2s;
}
.bio-expand-btn:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

.bio-long { display: none; margin-top: 24px; }
.bio-long.visible { display: block; }

/* ── Repertorio visivo ── */
.rep-visual {
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: 1100px;
  margin: 0 auto 80px;
  background: var(--ivory);
}
.rep-visual-photo {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.rep-visual-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.rep-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(42,35,24,.62) 0%, rgba(42,35,24,.15) 100%);
}
.rep-visual-label {
  position: absolute;
  bottom: 40px; left: 32px;
  color: #fff;
}
.rep-visual-label h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
}
.rep-visual-label span {
  font-family: 'Lato', sans-serif;
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--gold-light);
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
}
.rep-visual-list {
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  align-content: center;
}
.rep-visual-item h4 {
  font-family: 'Lato', sans-serif;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 6px;
  font-weight: 700;
}
.rep-visual-item p {
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.65;
}

/* legacy grid (keep for any leftover references) */
.repertory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin: 0 0 80px;
}
.repertory-item h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}
.repertory-item p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-bottom: 80px;
}
.gallery-item {
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
  position: relative;
}
.gallery-item.portrait { aspect-ratio: 2/3; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s;
  filter: brightness(.88);
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.02); }
.gallery-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; }
.gallery-item-caption em {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  display: block;
}
.gallery-item-caption span {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  opacity: .75;
  display: block;
  margin-top: 2px;
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-credit {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

/* ── Rassegna stampa ── */
.rassegna-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 80px;
}
.recensione {
  border-left: 2px solid var(--gold);
  padding-left: 28px;
}
.recensione blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.recensione cite {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-style: normal;
}

/* ── Video ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  padding-bottom: 80px;
}
.video-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-embed {
  position: relative;
  padding-top: 56.25%;
  background: var(--ivory);
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.video-caption strong {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

/* ── Calendario ── */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 80px;
}
.calendar-table th {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--ivory-mid);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}
.calendar-table td {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 18px 16px;
  border-bottom: 1px solid var(--ivory-mid);
  vertical-align: top;
}
.calendar-table td:first-child {
  white-space: nowrap;
  color: var(--text-light);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.calendar-table td strong {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 400;
}
.calendar-table tr:hover td { background: var(--ivory); }

/* ── Contatti ── */
.contact-section {
  padding: 40px 0 100px;
  text-align: center;
}
.contact-section p {
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto 40px;
}
.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color .2s;
}
.contact-email:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 700px;
  margin: 60px auto 0;
  text-align: left;
}
.contact-block h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}
.contact-block p, .contact-block a {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* ── Footer ── */
footer {
  background: var(--ivory);
  border-top: 1px solid var(--ivory-mid);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}
.footer-name span {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  display: block;
  font-weight: 300;
  margin-top: 3px;
}
.footer-credit {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  color: var(--text-light);
  margin-top: 8px;
  letter-spacing: 0.06em;
}
.footer-credit a { color: var(--text-light); border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-credit a:hover { border-bottom-color: var(--gold); color: var(--gold); }

/* ── Highlights grid (home) ── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.highlight-card {
  display: block;
  position: relative;
  overflow: hidden;
  padding-top: 66.67%; /* rapporto 3:2 robusto su iOS */
  background: var(--ivory-mid);
}
.highlight-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.85);
  transition: transform .5s, filter .3s;
}
.highlight-card:hover img { transform: scale(1.04); filter: brightness(.7); }
.highlight-label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  pointer-events: none;
}

.footer-copy {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-align: right;
}

/* ── Placeholder box ── */
.placeholder-box {
  text-align: center;
  padding: 80px 32px;
  border: 1px dashed var(--ivory-mid);
  margin-bottom: 80px;
}
.placeholder-box p {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .hero-overlay { padding: 48px 32px; }
  .bio-grid { grid-template-columns: 1fr; gap: 32px; padding: 0 20px 60px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
  .rep-visual { grid-template-columns: 1fr; }
  .rep-visual-photo { min-height: 320px; }
  .rep-visual-list { grid-template-columns: 1fr; padding: 32px 24px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--ivory-mid); padding: 24px 32px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .gallery-grid { grid-template-columns: 1fr; }
  .repertory-grid { grid-template-columns: 1fr 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
}
