
/* =========================================================
   EDITORIAL V4 — refined photographic portfolio
   Photos and galleries unchanged. Focus: hierarchy, rhythm,
   quieter UI, cinematic motion, and responsive polish.
   ========================================================= */

:root {
  --editorial-cream: #f1ede6;
  --editorial-muted: rgba(241,237,230,.58);
  --editorial-line: rgba(241,237,230,.14);
  --editorial-line-soft: rgba(241,237,230,.08);
}

/* ---------- Global atmosphere ---------- */
html { scroll-behavior: smooth; }
body { background:#090909; }
body::before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:98;
  opacity:.032;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

/* ---------- Navigation: quieter, more integrated ---------- */
nav {
  padding:30px 52px;
  background:linear-gradient(to bottom,rgba(6,6,6,.78),rgba(6,6,6,0));
  transition:padding .45s ease,background .45s ease,backdrop-filter .45s ease;
}
nav.scrolled {
  padding:16px 52px;
  background:rgba(8,8,8,.84);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--editorial-line-soft);
}
.nav-brand {
  font-family:var(--serif);
  font-size:22px;
  font-weight:300;
  letter-spacing:.13em;
  text-transform:none;
  line-height:1;
  color:var(--white);
}
.nav-brand span { color:var(--accent); font-family:var(--serif); font-style:normal; font-weight:300; letter-spacing:.13em; }
.nav-links { gap:29px; }
.nav-links a {
  font-size:9px;
  letter-spacing:.18em;
  transition:color .35s ease,opacity .35s ease;
}
.nav-links a:not(.active) { opacity:.72; }
.nav-links a:hover,.nav-links a.active { opacity:1; }

/* ---------- Hero ---------- */
.hero { background:#090909; }
.slide-bg {
  transform:scale(1.055);
  filter:saturate(.9) contrast(1.035);
  transition:transform 9s cubic-bezier(.2,.6,.2,1),filter 1.5s ease;
}
.slide.active .slide-bg {
  transform:scale(1);
  filter:saturate(.96) contrast(1.045);
}
.slide-overlay {
  background:
    linear-gradient(90deg,rgba(5,5,5,.68) 0%,rgba(5,5,5,.18) 56%,rgba(5,5,5,.24) 100%),
    linear-gradient(0deg,rgba(5,5,5,.76) 0%,transparent 42%,rgba(5,5,5,.12) 100%);
}
.hero-content {
  left:52px;
  bottom:108px;
  max-width:min(760px,72vw);
}
.hero-label {
  font-size:9px;
  letter-spacing:.27em;
  margin-bottom:16px;
  color:rgba(245,242,238,.68);
}
.hero-title {
  font-size:clamp(45px,6.1vw,84px);
  line-height:.96;
  letter-spacing:-.028em;
  text-shadow:0 14px 45px rgba(0,0,0,.25);
}
.hero-title em {
  color:var(--editorial-cream);
  font-weight:300;
}
.hero-index {
  right:52px;
  top:50%;
  transform:translateY(-50%);
  gap:10px;
  font-family:var(--serif);
  color:rgba(245,242,238,.52);
}
.hero-index-current { color:var(--white); font-size:20px; }
.hero-index-total { font-size:10px; }
.hero-index-rule { height:48px; background:var(--accent); opacity:.6; }
.hero-nav { right:52px; bottom:108px; gap:7px; }
.hero-btn {
  width:46px;
  height:46px;
  border-color:rgba(245,242,238,.28);
  background:rgba(8,8,8,.08);
  backdrop-filter:blur(7px);
  transition:transform .35s ease,background .35s ease,border-color .35s ease;
}
.hero-btn:hover {
  transform:translateY(-2px);
  border-color:rgba(200,169,110,.8);
  background:rgba(200,169,110,.10);
}
.hero-progress {
  left:52px;
  right:52px;
  bottom:30px;
  height:1px;
  background:rgba(245,242,238,.17);
}
.hero-progress span {
  background:var(--accent);
  box-shadow:0 0 12px rgba(200,169,110,.18);
}
.scroll-hint { bottom:31px; opacity:.55; }
.scroll-hint span { font-size:8px; letter-spacing:.25em; }

/* ---------- Home gallery ---------- */
.gallery-home {
  background:#0c0c0c;
  padding-bottom:8vw;
}
.editorial-gallery { padding-top:118px; }
.section-header {
  margin-bottom:42px;
  padding-bottom:22px;
  border-bottom-color:var(--editorial-line);
}
.section-label { font-size:9px; letter-spacing:.27em; }
.section-title {
  font-size:clamp(42px,5vw,67px);
  letter-spacing:-.025em;
}
.section-title em { color:var(--editorial-cream); }
.section-link {
  font-size:9px;
  letter-spacing:.19em;
  transition:letter-spacing .35s ease,color .35s ease;
}
.section-link:hover { letter-spacing:.24em; }
.gallery-categories {
  margin-bottom:32px;
  gap:24px;
}
.cat-btn {
  font-size:9px;
  letter-spacing:.18em;
  padding:9px 0;
  border:0;
  border-bottom:1px solid transparent;
  border-radius:0;
  opacity:.62;
  transition:opacity .3s ease,border-color .3s ease;
}
.cat-btn:hover,.cat-btn.active { opacity:1; }
.cat-btn.active { border-bottom-color:var(--accent); }

.grid-masonry { columns:5; column-gap:2px; }
.grid-item {
  margin-bottom:2px;
  break-inside:avoid;
  cursor:pointer;
}
.grid-item img {
  filter:brightness(.91) saturate(.92);
  transition:transform 1.05s cubic-bezier(.2,.6,.2,1),filter .7s ease;
}
.grid-item:hover img {
  transform:scale(1.028);
  filter:brightness(1) saturate(1);
}
.grid-item-info {
  padding:24px 20px 19px;
  background:linear-gradient(to top,rgba(5,5,5,.78),transparent 64%);
}
.grid-item-info p {
  font-size:8.5px;
  letter-spacing:.18em;
}
.grid-placeholder {
  min-height:120px;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
}
.grid-placeholder .placeholder-mark {
  color:rgba(245,242,238,.10);
  font-size:28px;
  font-weight:200;
}

/* ---------- About strip ---------- */
.about-strip {
  background:#111;
  padding:108px 52px;
  gap:96px;
}
.about-img-wrap {
  box-shadow:0 28px 80px rgba(0,0,0,.3);
}
.about-text .lead {
  font-family:var(--serif);
  font-size:clamp(30px,3.25vw,47px);
  line-height:1.06;
  letter-spacing:-.015em;
}
.about-text > p:not(.lead):not(.section-label) {
  max-width:560px;
  color:rgba(245,242,238,.6);
  line-height:1.9;
}
.btn-outline {
  border-color:rgba(245,242,238,.3);
  transition:background .35s ease,color .35s ease,border-color .35s ease;
}
.btn-outline:hover {
  background:var(--white);
  color:#090909;
  border-color:var(--white);
}

/* ---------- Projects ---------- */
.projects { background:#0d0d0d; }
.project-current-text h3 {
  font-size:clamp(36px,4vw,58px);
  letter-spacing:-.02em;
}
.project-current-text p { color:rgba(245,242,238,.62); line-height:1.85; }
.project-thumb { overflow:hidden; cursor:pointer; }
.project-thumb img { transition:transform 1.15s cubic-bezier(.2,.6,.2,1); }
.project-thumb:hover img { transform:scale(1.04); }

/* ---------- Contact ---------- */
.contact { background:#111; }
.contact h2 {
  font-size:clamp(44px,6vw,82px);
  letter-spacing:-.025em;
}
.contact h2 em { color:var(--editorial-cream); }

/* ---------- Lightbox ---------- */
.lightbox {
  background:rgba(5,5,5,.987);
  backdrop-filter:blur(14px);
}
.lightbox img {
  max-height:84vh;
  max-width:84vw;
  box-shadow:0 32px 100px rgba(0,0,0,.45);
}
.lightbox-caption {
  font-family:var(--serif);
  font-size:17px;
  letter-spacing:.02em;
  text-transform:none;
  color:rgba(245,242,238,.68);
}
.lightbox-close {
  top:30px;
  right:38px;
  transition:transform .3s ease,color .3s ease;
}
.lightbox-close:hover { transform:rotate(90deg); }
.lightbox-nav-btn {
  border-color:rgba(245,242,238,.2);
  background:rgba(10,10,10,.16);
}

/* ---------- Interior pages: carry the same language ---------- */
.page-hero {
  min-height:38vh;
  display:flex;
  align-items:flex-end;
  padding:150px 52px 54px;
  background:linear-gradient(to bottom,#0a0a0a,#101010);
}
.page-hero h1 {
  font-family:var(--serif);
  font-weight:300;
  font-size:clamp(48px,7vw,92px);
  letter-spacing:-.035em;
}
.page-hero h1 em { color:var(--editorial-cream); }
.gallery-full { padding-top:24px; padding-bottom:90px; }

/* ---------- Mobile ---------- */
@media (max-width:768px) {
  nav,nav.scrolled {
    padding:20px 24px;
  }
  nav.scrolled { background:rgba(8,8,8,.9); }
  .nav-brand { font-size:19px; }
  .hero-content {
    left:24px;
    bottom:91px;
    max-width:calc(100vw - 48px);
  }
  .hero-label { font-size:8px; letter-spacing:.22em; }
  .hero-title { font-size:clamp(40px,12vw,62px); }
  .hero-index { display:none; }
  .hero-nav { right:24px; bottom:90px; }
  .hero-btn { width:42px;height:42px; }
  .hero-progress { left:24px;right:24px;bottom:24px; }
  .scroll-hint { display:none; }
  .editorial-gallery { padding-top:82px; }
  .grid-masonry { columns:2; column-gap:2px; }
  .grid-item { margin-bottom:2px; }
  .about-strip { padding:76px 24px; gap:50px; }
  .page-hero { min-height:32vh; padding:120px 24px 40px; }
}

@media (max-width:480px) {
  .hero-content { bottom:82px; }
  .hero-nav { bottom:20px; right:20px; }
  .hero-progress { bottom:12px; }
  .grid-masonry { columns:1; column-gap:2px; }
  .section-header { align-items:flex-end; }
}

/* FOTO DI SCENA — dropdown */
.nav-links > li.has-submenu { position: relative; }
.nav-links > li.has-submenu > a { display:inline-flex; align-items:center; gap:6px; }
.nav-links .scene-submenu { position:absolute; top:100%; left:0; transform:none; min-width:150px; padding:14px 0 10px; margin:0; list-style:none; background:transparent; border:0; box-shadow:none; backdrop-filter:none; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s ease, visibility .25s ease; z-index:120; }
.nav-links > li.has-submenu:hover .scene-submenu, .nav-links > li.has-submenu:focus-within .scene-submenu, .nav-links > li.has-submenu.is-open .scene-submenu { opacity:1; visibility:visible; pointer-events:auto; transform:none; }
.nav-links .scene-submenu li { margin:0; padding:0; }
.nav-links .scene-submenu a { display:block; padding:9px 0; white-space:nowrap; font-size:9px; letter-spacing:.18em; text-transform:uppercase; opacity:.72; }
.nav-links .scene-submenu a:hover, .nav-links .scene-submenu a.active { opacity:1; }
@media (max-width:768px) { .nav-links.mobile-open > li.has-submenu > a { display:flex; justify-content:space-between; align-items:center; } .nav-links.mobile-open > li.has-submenu > a::after { content:'+'; font-size:14px; letter-spacing:0; opacity:.6; } .nav-links.mobile-open > li.has-submenu.is-open > a::after { content:'−'; } .nav-links.mobile-open .scene-submenu { position:static; transform:none !important; min-width:0; padding:0 0 8px 18px; background:transparent; border:0; backdrop-filter:none; opacity:1; visibility:visible; pointer-events:auto; display:none; } .nav-links.mobile-open > li.has-submenu.is-open .scene-submenu { display:block; } .nav-links.mobile-open .scene-submenu a { padding:10px 0; font-size:10px; border-bottom:0; opacity:.68; } }


/* V56 — typography color correction from reference image */
.nav-brand { color:var(--white); text-transform:none; }
.nav-brand span { color:var(--accent); font-family:var(--serif); font-style:normal; font-weight:300; }
.hero-title em,
.section-title em,
.project-current-text h3 em,
.contact h2 em,
.page-hero h1 em,
.about-page h1 em { color:var(--accent) !important; font-style:italic; }
/* Any editorial italic is intentionally gold, matching the supplied reference. */
em { color:var(--accent); }


/* V59 — requested typography and submenu underline sizing */
.nav-brand { font-size: 28.6px; }
.nav-brand span { font-size: inherit; }
.nav-links .scene-submenu a::after { width: 82px; }
.nav-links .scene-submenu a:hover::after,
.nav-links .scene-submenu a.active::after { width: 82px; }
@media (max-width:768px) { .nav-brand { font-size: 26px; } }


/* V59 — requested typography and submenu underline sizing */
.nav-brand { font-size: 28.6px; }
.nav-brand span { font-size: inherit; }
.nav-links .scene-submenu a::after { width: 82px; }
.nav-links .scene-submenu a:hover::after, .nav-links .scene-submenu a.active::after { width: 82px; }
@media (max-width:768px) { .nav-brand { font-size: 26px; } }
