/* ============================================
   FrAnge Couture — static fashion site
   Style inspired by elygaby.com (white, editorial)
   ============================================ */

:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-soft: #363636;
  --line: rgba(17, 17, 17, 0.14);
  --logo: "Antic Didone", "Didot", "Bodoni MT", serif;
  --serif: "Gilda Display", "Didot", "Bodoni MT", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --letterspace: 0em;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 4vw;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--logo);
  color: #0c0b0b;
  white-space: nowrap;
  line-height: 1;
}
.brand img {
  height: 64px;
  width: auto;
  display: block;
}
.brand em {
  font-style: normal;
  color: inherit;
}

nav.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.6rem;
}

nav.main-nav a {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: #838383;
  transition: color 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

nav.main-nav a:hover {
  color: #a5a5a5;
}

nav.main-nav a.active {
  color: #000000;
  border-bottom: 1.5px solid #000000;
}

.dropdown {
  position: relative;
}

.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.caret {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.dropdown.open .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  min-width: 200px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  text-align: center;
  display: block;
}

nav.main-nav .dropdown-menu a {
  display: block;
}

.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 0.35rem 1.5rem;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0em;
  color: #5c5c5c;
  border-bottom: 0;
  line-height: 1.3;
}
.dropdown-menu a:hover {
  color: #8e8e8e;
  background: transparent;
}

.social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social a {
  color: var(--ink-soft);
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
}
.social a:hover {
  color: #a5a5a5;
  transform: translateY(-1px);
}
.social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ---------- Hamburger ---------- */
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 60;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  font-family: var(--sans);
  font-size: 24px;
  letter-spacing: 0em;
  text-transform: uppercase;
}

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.26);
  z-index: 1;
}
.home-hero-links {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9rem;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  color: #fff;
}
.home-hero-links::before {
  content: "";
  position: absolute;
  inset: -5rem -8rem;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}
.home-hero-links a,
.hero-servizi {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: color 0.35s ease;
}
.home-hero-links a:hover,
.hero-servizi:hover {
  color: #dcbf8c;
}
.home-hero-links .hl-title,
.hero-servizi .hl-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: 0em;
  line-height: 1.2;
}
.home-hero-links .hl-sub,
.hero-servizi .hl-sub {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}
.home-hero-links a:hover .hl-sub,
.hero-servizi:hover .hl-sub {
  opacity: 1;
}

.hero-servizi {
  position: relative;
  z-index: 2;
  align-items: center;
  text-align: center;
  color: #fff;
}

/* ---------- Chi Siamo ---------- */
.chi-siamo-lead {
  max-width: 1100px;
  margin: 0 auto 4rem;
}
.chi-siamo-lead img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

/* ---------- Story ---------- */
.story {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 6vw;
}
.story .kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #838383;
  margin-bottom: 1.6rem;
}
.story h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  letter-spacing: 0em;
  color: #363636;
  margin-bottom: 2rem;
}
.story p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
  line-height: 1.85;
}
.story p.strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.story .signature {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.btn-explore {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: #0c0b0b;
  padding: 1rem 2.6rem;
  border: 0;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-explore:hover {
  background: #dcbf8c;
  color: #0c0b0b;
}

/* ---------- Section pages ---------- */
.page {
  padding: 5rem 4vw 7rem;
  max-width: 1480px;
  margin: 0 auto;
}
.page-head {
  text-align: center;
  margin-bottom: 4rem;
}
.page-head .kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #838383;
  margin-bottom: 1rem;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0em;
  text-transform: none;
  color: #363636;
}
.page-head p {
  max-width: 560px;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Gallery grid ---------- */
.gallery {
  columns: 3 300px;
  column-gap: 1.2rem;
}
.gallery a {
  display: block;
  margin-bottom: 1.2rem;
  break-inside: avoid;
  overflow: hidden;
  position: relative;
  background: transparent;
}
.gallery img {
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}
.gallery a:hover img {
  transform: scale(1.04);
}
.gallery figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1rem;
  background: none;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gallery figcaption .fig-credit {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 0.85;
}
.gallery figcaption .fig-credit a,
.lightbox .lb-caption .lb-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gallery figcaption .fig-credit a:hover,
.lightbox .lb-caption .lb-credit a:hover {
  opacity: 1;
}
.gallery a:hover figcaption {
  opacity: 1;
}

/* ---------- Subnav (haute couture) ---------- */
.subnav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
}
.subnav a {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: #838383;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.subnav a:hover {
  color: #a5a5a5;
}
.subnav a.active {
  color: #000000;
  border-color: #000000;
}

/* ---------- Services ---------- */
.services {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.service {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: 0em;
  color: #363636;
  margin-bottom: 1.2rem;
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.service p {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.btn-explore[hidden] {
  display: none;
}

.service .btn-explore {
  margin-top: auto;
}
.service .steps {
  list-style: none;
  text-align: left;
  margin: 2.5rem 0 2rem;
}
.service .steps li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.service .steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.service .steps h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.service .steps .step-sub {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b08a4f;
  margin-bottom: 0.6rem;
}
.service .steps p {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

/* ---------- Service detail (single service page) ---------- */
.service-detail {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--sans);
  color: var(--ink-soft);
}
.service-detail p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.service-detail p.lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-align: center;
}
.service-detail .steps {
  list-style: none;
  text-align: left;
  margin: 2.5rem 0 2rem;
}
.service-detail .steps li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.service-detail .steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.service-detail .steps h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.service-detail .steps .step-sub {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b08a4f;
  margin-bottom: 0.6rem;
}
.service-detail .steps p {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}
.service-detail .btn-explore {
  margin-top: 1.5rem;
}

/* ---------- Contact form (servizi) ---------- */
.contact-form {
  max-width: 460px;
  margin: 2rem auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form[hidden] {
  display: none;
}
.contact-form label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.contact-form .form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-form .btn-explore {
  margin-top: 0;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  text-transform: uppercase;
}
.contact-form .btn-cancel {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.6rem 0;
}
.contact-form .btn-cancel:hover {
  color: var(--ink);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-height: 82vh;
  max-width: 92vw;
  box-shadow: 0 20px 70px rgba(17, 17, 17, 0.25);
}
.lightbox .lb-caption {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.lightbox .lb-caption .lb-credit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #838383;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  padding: 1.2rem;
  font-size: 2.2rem;
  font-family: var(--serif);
  line-height: 1;
}
.lightbox .lb-prev { left: 2vw; }
.lightbox .lb-next { right: 2vw; }
.lightbox .lb-close {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 4vw;
  text-align: center;
}
.site-footer .social {
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.site-footer .social svg {
  width: 19px;
  height: 19px;
}
.site-footer p {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-footer .credit {
  margin-top: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #a9a9a3;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .home-hero-links {
    flex-direction: column;
    gap: 2.2rem;
  }
  .services {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 940px) {
  nav.main-nav,
  .header-social {
    display: none;
  }
  .burger {
    display: block;
  }
  .header-inner {
    height: 72px;
  }
}
