:root {
  --bg: #070707;
  --bg-2: #101010;
  --bg-3: #161616;
  --ink: #f3ece0;
  --muted: #9a9084;
  --gold: #c4a574;
  --gold-2: #e0c797;
  --blood: #9a2a2a;
  --line: rgba(196, 165, 116, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --photo-grade: sepia(0.34) saturate(0.62) contrast(1.08) brightness(0.9);
  --photo-wash: linear-gradient(165deg, rgba(196, 165, 116, 0.2), rgba(18, 12, 8, 0.34));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* NAV */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(7,7,7,0.92), rgba(7,7,7,0));
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  height: 48px;
  margin-right: auto;
}
.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  padding: 13px 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: transparent;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn:hover {
  background: var(--gold);
  color: #111;
}

.btn-fill {
  background: var(--gold);
  color: #111;
}

.btn-fill:hover {
  background: var(--gold-2);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: end start;
  position: relative;
  background:
    linear-gradient(to top, rgba(7,7,7,0.92) 0%, rgba(7,7,7,0.35) 45%, rgba(7,7,7,0.2) 100%),
    url("../img/villa-adriana.jpg") center/cover no-repeat;
}

.hero-inner {
  padding: 0 28px 90px;
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.82;
  margin: 10px 0 22px;
}

.hero p {
  max-width: 480px;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* PORTFOLIO */
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.gallery-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.card {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  align-self: start;
  aspect-ratio: 3 / 4;
}

.card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease, filter 0.55s ease;
  filter: var(--photo-grade);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-wash);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(to top, #0c0c0c 0%, rgba(12, 12, 12, 0.62) 40%, rgba(12, 12, 12, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.card:hover img {
  transform: scale(1.03);
  filter: sepia(0.28) saturate(0.7) contrast(1.06) brightness(0.94);
}

/* Anteprime con inquadratura diversa: stesso riquadro, soggetto tenuto intero per quanto possibile */
.card[data-crop="fedi"] img {
  object-position: 52% 46%;
  transform: scale(1.72);
  transform-origin: 52% 46%;
}

.card[data-crop="fedi"]:hover img {
  transform: scale(1.78);
}

.card[data-crop="mani"] img {
  object-position: 48% 58%;
}

.card[data-crop="angelo"] img {
  object-position: 50% 42%;
}

.card[data-crop="lazio"] img {
  object-position: 50% 38%;
}

.card[data-crop="madonna"] img {
  object-position: 50% 36%;
}

/* Scritta molto alta: in anteprima resta intera */
.card:has(img[src="img/work-scritta.jpg"]) {
  aspect-ratio: auto;
}

.card:has(img[src="img/work-scritta.jpg"]) img {
  height: auto;
  object-fit: unset;
}

.card-meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3ece0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.card:hover .card-meta {
  opacity: 1;
}

/* ABOUT */
.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 36px 56px;
  align-items: center;
  padding: 110px 6vw 80px;
  background: #0c0c0c;
}
.about-visual {
  position: relative;
}
.about-visual img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.about-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to top, #0c0c0c 0%, rgba(12, 12, 12, 0.55) 42%, rgba(12, 12, 12, 0) 100%);
  pointer-events: none;
}
.about-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  align-self: end;
}
.about-copy h2 {
  max-width: 15ch;
}
.about-copy p {
  color: #ddd4c6;
  max-width: 58ch;
}
.about-copy .stats {
  max-width: 520px;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold);
  z-index: -1;
}

.split p {
  color: var(--muted);
  margin: 18px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.stat b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: var(--gold);
}

.stat span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* STYLES */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.style-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 28px 24px;
  min-height: 220px;
}

.style-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.style-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* PROCESS */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.step {
  border-top: 1px solid var(--gold);
  padding-top: 22px;
}

.step em {
  display: block;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 20px 0;
  font-size: 1.12rem;
  font-family: "Cormorant Garamond", serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.faq-item p {
  display: none;
  color: var(--muted);
  padding: 0 0 20px;
}

.faq-item.open p {
  display: block;
}

/* CONTACT */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info p {
  color: var(--muted);
  margin: 10px 0 28px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  margin: 12px 0;
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

form {
  display: grid;
  gap: 14px;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.booking-lead {
  margin: 20px 0 28px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.booking-lead span:first-child {
  display: block;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 8px;
}

.booking-form {
  max-width: 720px;
  margin-bottom: 72px;
}

.booking-form .btn {
  width: 100%;
}

.contact-only {
  max-width: 640px;
}

.contact-only h2 {
  margin-bottom: 14px;
}

.studio-address {
  color: var(--muted);
  margin-bottom: 22px;
}

#processo .process {
  margin-top: 6px;
}

.success {
  display: none;
  border: 1px solid var(--gold);
  padding: 16px;
  color: var(--gold-2);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 50px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.94);
  z-index: 80;
  place-items: center;
  padding: 54px 16px 28px;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-frame {
  position: relative;
  display: inline-block;
  max-height: 82vh;
  max-width: min(920px, 94vw);
  line-height: 0;
  isolation: isolate;
}

.lightbox img {
  max-height: 82vh;
  max-width: min(920px, 94vw);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: var(--photo-grade);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-wash);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--gold-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links, .nav .btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0b0b0b;
    padding: 24px;
    gap: 18px;
  }
  .styles-grid, .process, .split, .contact-wrap, form .row {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .card-meta {
    display: none;
  }
  .hero {
    place-items: end start;
  }
  .about-photo::after {
    display: none;
  }
  .about-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 92px 0 56px;
  }
  .about-visual img {
    width: 100%;
    max-height: none;
    object-fit: contain;
  }
  .about-visual::after {
    height: 26%;
  }
  .about-copy {
    width: min(680px, calc(100% - 40px));
    margin: -64px auto 0;
    padding-top: 8px;
  }
  .about-copy h2 {
    max-width: none;
  }
}

/* REVIEWS */
.reviews {
  overflow: hidden;
  padding-bottom: 90px;
}
.google-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 36px;
  max-width: 640px;
}
.g-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
  background: conic-gradient(from 200deg, #4285F4, #EA4335, #FBBC05, #34A853, #4285F4);
  flex-shrink: 0;
}
.google-badge strong {
  display: block;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.google-badge span {
  color: var(--muted);
  font-size: 0.88rem;
}
.reviews-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: review-scroll 90s linear infinite;
  padding: 0 20px;
}
.reviews:hover .reviews-track {
  animation-play-state: paused;
}
.review-card {
  width: min(380px, 82vw);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 26px 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.review-stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.85rem;
}
.google-pill {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 4px 8px;
}
.review-card p {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}
.review-card cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes review-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.portfolio-intro {
  padding-bottom: 36px;
}
.portfolio-grid {
  padding-top: 10px;
}
.about-plain {
  max-width: 760px;
}
.about-plain h2 {
  max-width: 15ch;
}
.about-plain p {
  color: #ddd4c6;
  max-width: 62ch;
  margin: 16px 0;
}
@media (max-width: 900px) {
  .portfolio-intro {
    padding-bottom: 28px;
  }
  .portfolio-grid {
    padding-top: 8px;
  }
  .nav-links {
    gap: 16px;
  }
}

.logo {
  margin-right: auto;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 22px;
  flex-shrink: 0;
}
.lang-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-flag,
.lang-globe {
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.lang-flag {
  font-size: 1.15rem;
}
.lang-globe svg {
  width: 22px;
  height: 22px;
  display: block;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  background: #111;
  border: 1px solid var(--line);
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 60;
}
.lang-menu[hidden] {
  display: none;
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 10px;
  cursor: pointer;
}
.lang-menu button.active,
.lang-menu button:hover {
  color: var(--gold-2);
}
@media (max-width: 900px) {
  .nav {
    padding: 16px 16px;
  }
  .nav-end {
    gap: 12px;
    margin-left: 16px;
  }
  .nav-end .btn {
    display: none;
  }
}
