/* ============================================================
   ANDREA TOSI – andreatosi.net  |  style.css  v5
   ============================================================ */

:root {
  --bg: #09090B;
  --surface: #111113;
  --gold: #C38A3D;
  --gold-light: #D4A45A;
  --text: #E8E4DC;
  --muted: #9A9590;
  --border: rgba(195,138,61,0.22);
  --max-w: 960px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

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

/* ── NAV (hamburger-only, sempre fisso) ── */
.site-nav {
  position: static;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  overflow: visible;
}
.nav-logo { display: none; }
.nav-links { display: none; }

.nav-hamburger {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(9,9,11,0.70);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  padding: 10px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-lang {
  position: fixed;
  top: 18px;
  right: 76px;
  z-index: 9998;
  display: block;
  height: 46px;
  line-height: 46px;
  padding: 0 14px;
  background: rgba(9,9,11,0.70);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-family: sans-serif;
}
.nav-lang a { color: var(--muted); }
.nav-lang a:hover { color: var(--gold); }
.nav-lang .active { color: var(--gold); font-weight: 600; }

/* ── MENU OVERLAY ── */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  max-height: 100vh;
  overflow-y: auto;
  background: rgba(9,9,11,0.97);
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 70px 0 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.5);
}
.menu-overlay.open { transform: translateX(0); }
.menu-overlay a {
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 28px;
  transition: color 0.15s, background 0.15s;
  font-family: sans-serif;
  border-bottom: 1px solid rgba(195,138,61,0.10);
}
.menu-overlay a:last-child { border-bottom: none; }
.menu-overlay a:hover, .menu-overlay a.active {
  color: var(--gold);
  background: rgba(195,138,61,0.06);
}
.menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.menu-close:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: brightness(0.80);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.hero-eyebrow {
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}
.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text);
  max-width: 560px;
  opacity: 0.9;
}
.hero-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover { background: var(--gold); color: #000; }

/* ── PAGE HEADER (pagine interne) ── */
.page-header {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: brightness(0.45);
  z-index: 0;
}
.page-header-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.page-header h1 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: normal;
}
.page-header .page-sub {
  color: var(--gold);
  font-family: sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 28px;
}

section { margin-bottom: 60px; }

.section-label {
  font-family: sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: normal;
  margin-bottom: 16px;
}
h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: normal;
  margin-bottom: 10px;
}
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--gold); }
.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card-body { padding: 16px; }
.card-body h3 { font-size: 16px; margin-bottom: 6px; }
.card-body p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.card-body .artist { color: var(--gold); font-size: 13px; font-family: sans-serif; margin-bottom: 4px; }

/* ── FILM / THEATRE PROJECT ROW ── */
.project-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.project-row:first-child { border-top: 1px solid var(--border); }
.project-thumb {
  flex: 0 0 80px;
  width: 80px;
}
.project-thumb img {
  width: 80px;
  height: 112px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.project-thumb.no-img {
  width: 80px;
  height: 112px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb.no-img::after {
  content: '♪';
  color: var(--border);
  font-size: 24px;
}
.project-info { flex: 1; }
.project-info h3 { font-size: 18px; margin-bottom: 4px; }
.project-role {
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.project-awards {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 8px;
}
.project-info p { font-size: 15px; color: var(--muted); }

/* ── NEWS ── */
.news-entry {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.news-thumb {
  flex: 0 0 120px;
}
.news-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
}
.news-body { flex: 1; }
.news-year {
  font-family: sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.news-body h3 { font-size: 17px; margin-bottom: 8px; }
.news-body p { font-size: 15px; color: var(--muted); }

/* ── MEDIA GRID ── */
.media-section-label {
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.media-card:hover { border-color: var(--gold); }
.media-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.media-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.media-card:hover .media-thumb-wrap img { opacity: 1; }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.media-card:hover .play-btn { background: rgba(0,0,0,0.1); }
.play-btn svg {
  width: 48px;
  height: 48px;
  fill: white;
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.media-info { padding: 12px 14px; }
.media-info h3 { font-size: 14px; line-height: 1.4; margin-bottom: 4px; }
.media-info p { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ── VIDEO MODAL ── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: min(90vw, 900px);
  aspect-ratio: 16/9;
}
.video-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ── PORTFOLIO ── */
.portfolio-section { margin-bottom: 48px; }
.portfolio-section h2 {
  font-size: 20px;
  font-family: sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.portfolio-list { list-style: none; }
.portfolio-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 15px;
}
.portfolio-list li:last-child { border-bottom: none; }
.p-year {
  font-family: sans-serif;
  font-size: 12px;
  color: var(--gold);
  min-width: 44px;
  flex-shrink: 0;
}
.p-title { font-weight: normal; flex: 1; min-width: 160px; }
.p-role { color: var(--muted); font-size: 13px; font-style: italic; margin-left: auto; text-align: right; }
.p-award { color: var(--gold-light); font-size: 12px; font-style: italic; margin-left: auto; text-align: right; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.contact-block h3 {
  font-size: 14px;
  font-family: sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-block p { color: var(--muted); font-size: 15px; }
.contact-block a { color: var(--text); }
.contact-block a:hover { color: var(--gold); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  text-align: center;
  font-family: sans-serif;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--gold); }

/* ── UTILS ── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.italic { font-style: italic; }
.mb-small { margin-bottom: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .project-row { flex-direction: column; }
  .news-entry { flex-direction: column; }
  .news-thumb { flex: none; }
  .news-thumb img { width: 100%; height: 180px; }
  .card-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Home collaborazioni ── */
.home-collabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-width: var(--max-w, 900px);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.home-collab-item {
  background: var(--surface, #111113);
  border-radius: 6px;
  padding: 14px 16px;
}
.collab-name {
  display: block;
  color: var(--gold, #C38A3D);
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.collab-role {
  display: block;
  font-size: 13px;
  opacity: 0.75;
}

/* ── Hero CTA gold ── */
.hero-cta-gold {
  background: var(--gold, #C38A3D);
  color: #000 !important;
  border-color: var(--gold, #C38A3D);
  font-weight: 700;
}
.hero-cta-gold:hover {
  background: #b07a2e;
  border-color: #b07a2e;
}

/* ── Home sections ── */
.home-section {
  max-width: var(--max-w, 900px);
  margin: 40px auto 0;
  padding: 0 28px;
  width: 100%;
}
.home-section .section-label {
  display: block;
  width: 100%;
}

/* ── Mobile hero fix ── */
@media (max-width: 640px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 40px;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(9,9,11,0.92) 0%, rgba(9,9,11,0.5) 60%, transparent 100%);
    z-index: 0;
  }
  .hero-content {
    position: relative;
    z-index: 1;
  }
  .hero-bg {
    object-position: center 30%;
  }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
}
