:root {
  --noir: #0d1520;
  --noir-mid: #131d2e;
  --noir-light: #1c2a3f;
  --gold: #c9a84c;
  --gold-light: #e0c06a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --white: #f5f0e8;
  --white-dim: rgba(245, 240, 232, 0.55);
  --white-faint: rgba(245, 240, 232, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--noir);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── DRAWER ─── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 80vw);
  height: 100vh;
  background: var(--noir-mid);
  border-left: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 6rem 2.5rem 3rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-links li {
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.drawer-links a {
  display: block;
  padding: 1.1rem 0;
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    color 0.2s,
    padding-left 0.2s;
}

.drawer-links a:hover {
  color: var(--gold);
  padding-left: 0.5rem;
}

.drawer-lang {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer-lang button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white-dim);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

.drawer-lang button.active,
.drawer-lang button:hover {
  color: var(--gold);
}

.drawer-lang span {
  color: rgba(201, 168, 76, 0.3);
  align-self: center;
}

/* ─── OVERLAY ─── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-lang {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(13, 21, 32, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  transition: background 0.3s;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--gold);
}

.nav-lang {
  display: flex;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-lang button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white-dim);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: color 0.2s;
  padding: 0.2rem 0.4rem;
}
.nav-lang button.active,
.nav-lang button:hover {
  color: var(--gold);
}
.nav-lang span {
  color: rgba(201, 168, 76, 0.3);
  align-self: center;
}

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

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 20% 80%, rgba(13, 21, 32, 0.8) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-headline em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: 1rem;
  color: var(--white-dim);
  max-width: 480px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--gold);
  color: var(--noir);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-bird {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.04;
  width: min(420px, 40vw);
  animation: fadeIn 1.5s 1s forwards;
}

/* ─── SECTIONS COMMON ─── */
section {
  position: relative;
  z-index: 1;
  padding: 7rem 4rem;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ─── CHI SIAMO ─── */
#chi-siamo {
  background: var(--noir-mid);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  max-width: 1300px;
  margin: 0 auto;
}

.about-text p {
  color: var(--white-dim);
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.stat-box {
  background: var(--white-faint);
  border: 1px solid rgba(201, 168, 76, 0.1);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.stat-box:hover {
  background: rgba(201, 168, 76, 0.06);
}

.stat-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.stat-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ─── TEAM ─── */
#team {
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  min-height: 450px;
}

.team-title {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--gold);
}

.team-header {
  max-width: 1300px;
  margin: 0 auto 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(201, 168, 76, 0.08);
}

.team-card {
  background: var(--noir);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.team-card:hover {
  background: var(--noir-mid);
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.team-card:hover::before {
  transform: scaleX(1);
}

.team-role {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.team-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.team-desc {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.65;
}

.team-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

/* ─── VALORI ─── */
#valori {
  background: var(--noir-mid);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 3rem auto 0;
  background: rgba(201, 168, 76, 0.06);
}

.valore-item {
  background: var(--noir-mid);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.3s;
}
.valore-item:hover {
  background: rgba(201, 168, 76, 0.04);
}

.valore-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.valore-title {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.valore-desc {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.7;
}

/* ─── PRODOTTI ─── */
#prodotti {
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.prodotti-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.prodotti-header {
  margin-bottom: 4rem;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.product-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.product-logo {
  height: 40px;
  width: auto;
}

.product-desc {
  color: var(--white-dim);
  font-size: 0.98rem;
  line-height: 1.75;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(201, 168, 76, 0.06);
}

.product-feature {
  background: var(--noir);
  padding: 2rem 2.5rem;
  position: relative;
  transition: background 0.3s;
}
.product-feature:hover {
  background: var(--noir-mid);
}
.product-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: scaleY(0);
  transition: transform 0.4s;
}
.product-feature:hover::before {
  transform: scaleY(1);
}

.product-feature-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.product-feature-title {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.product-feature-desc {
  font-size: 0.86rem;
  color: var(--white-dim);
  line-height: 1.7;
}

/* ─── CONTATTI ─── */
#contatti {
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-label {
  justify-content: center;
}
.contact-inner .section-label::before {
  display: none;
}

.contact-tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact-sub {
  color: var(--white-dim);
  font-size: 0.92rem;
  margin-bottom: 3rem;
}

.contact-email {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  padding-bottom: 0.25rem;
  margin-bottom: 3rem;
  display: block;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.contact-email:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
}
footer > * {
  flex: 1;
}

.footer-logo img {
  height: 22px;
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.3);
  letter-spacing: 0.08em;
  text-align: center;
}

.footer-links {
  display: block;
  gap: 2rem;
  color: rgba(245, 240, 232, 0.3);
  list-style: none;
  text-align: right;
}
.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--gold);
}

/* ─── DIVIDER ─── */
.gold-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 2rem 0;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.04;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .nav-lang {
    display: none;
  }
  section {
    padding: 4rem 1.5rem;
  }
  #hero {
    padding: 0 1.5rem;
  }
  .product-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .valori-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .hero-bird {
    display: none;
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
}
