/* ============================================================
   style.css — M.N.G. Future Works Ltd
   Design v3: Dark premium, EB Garamond + Raleway
   ============================================================ */

/* --- RESET & VARIABILI --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #0D1520;
  --dark-2:  #111D2B;
  --dark-3:  #162235;
  --dark-4:  #080E18;
  --gold:    #C4973E;
  --gold-l:  #D9B468;
  --gold-d:  #9A7530;
  --cream:   #EDE8DE;
  --cream-d: #C8C0B0;
  --white:   #F7F3EC;
  --muted:   rgba(237,232,222,0.45);
  --line:    rgba(196,151,62,0.18);
  --nav-h:   76px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--cream);
  background: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- NAVBAR --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 64px; height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(13,21,32,0.97);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}

.nav-left {
  display: flex; gap: 32px; list-style: none;
}
.nav-left a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.nav-left a:hover { color: var(--cream); }

.nav-logo-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.nlc-name {
  font-family: 'EB Garamond', serif;
  font-size: 17px; font-weight: 500; color: var(--white);
  letter-spacing: 0.12em; white-space: nowrap;
}
.nlc-sub {
  font-size: 9px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); white-space: nowrap;
}

.nav-logo-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: contain;
}

.nav-right { display: flex; align-items: center; gap: 28px; }

.lang-btn {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--muted); background: none; border: none; cursor: pointer;
  font-family: 'Raleway', sans-serif; transition: color 0.2s;
  padding: 0;
}
.lang-btn:hover,
.lang-btn.active { color: var(--gold); }

.nav-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid rgba(196,151,62,0.4);
  padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.nav-cta:hover { color: var(--gold-l); border-color: var(--gold-l); }

/* Hamburger mobile */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px; background: var(--cream);
  transition: all 0.3s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--dark-4); border-top: 1px solid var(--line);
  padding: 32px 32px 40px; z-index: 199; flex-direction: column; gap: 24px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a, .nav-drawer button {
  font-size: 15px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--cream); text-transform: uppercase;
  background: none; border: none; cursor: pointer;
  font-family: 'Raleway', sans-serif; text-align: left; padding: 0;
}
.nav-drawer .lang-row {
  display: flex; gap: 16px; margin-top: 8px;
  border-top: 1px solid var(--line); padding-top: 20px;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: var(--nav-h) 40px 160px;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 40%, var(--dark) 100%);
  pointer-events: none; z-index: 1;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; opacity: 0.5;
}

.hero-ornament {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 780px; height: 780px;
  border: 1px solid rgba(196,151,62,0.07); border-radius: 50%;
  pointer-events: none;
}
.hero-ornament::before {
  content: ''; position: absolute; inset: 80px;
  border: 1px solid rgba(196,151,62,0.05); border-radius: 50%;
}
.hero-ornament::after {
  content: ''; position: absolute; inset: 180px;
  border: 1px solid rgba(196,151,62,0.04); border-radius: 50%;
}

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

.hero-overline {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 36px;
}
.hero-overline-rule { width: 60px; height: 1px; background: var(--gold); opacity: 0.5; }
.hero-overline span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
}

.hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: 88px; font-weight: 400; line-height: 1.04;
  color: var(--white); letter-spacing: -0.01em; margin-bottom: 30px;
}
.hero h1 em { font-style: italic; color: var(--gold-l); }

.hero-tagline {
  font-size: 15px; font-weight: 300; letter-spacing: 0.03em;
  color: var(--muted); max-width: 560px; margin: 0 auto 52px; line-height: 1.9;
}

.ornament-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 44px;
}
.od-line  { width: 40px; height: 1px; background: var(--gold); opacity: 0.3; }
.od-diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); opacity: 0.6; }
.od-dot   { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; opacity: 0.4; }

.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}

/* --- BOTTONI --- */
.btn-primary {
  padding: 15px 42px;
  border: 1px solid var(--gold);
  color: var(--dark); background: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-l); border-color: var(--gold-l); }

.btn-ghost {
  padding: 15px 42px;
  border: 1px solid rgba(196,151,62,0.35);
  color: var(--gold); background: transparent;
  font-family: 'Raleway', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-l); }

/* Hero stats bar */
.hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; border-top: 1px solid var(--line);
}
.hb-item {
  flex: 1; padding: 26px 0; text-align: center;
  border-right: 1px solid var(--line);
}
.hb-item:last-child { border-right: none; }
.hb-val {
  font-family: 'EB Garamond', serif;
  font-size: 30px; color: var(--gold-l); line-height: 1; margin-bottom: 4px;
}
.hb-key {
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

/* --- SECTION MARKER (riutilizzabile) --- */
.section-marker {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 20px;
}
.sm-rule { width: 40px; height: 1px; background: var(--gold); opacity: 0.4; }
.sm-text {
  font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
}

/* --- ABOUT --- */
.section-about {
  padding: 130px 40px;
  max-width: 900px; margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.section-about h2 {
  font-family: 'EB Garamond', serif;
  font-size: 52px; font-weight: 400; line-height: 1.2;
  color: var(--white); margin-bottom: 28px;
}
.section-about h2 em { font-style: italic; color: var(--gold-l); }

.section-about p {
  font-size: 15px; font-weight: 300; color: var(--muted);
  line-height: 1.9; max-width: 660px; margin: 0 auto;
}
.section-about p + p { margin-top: 18px; }

.about-cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: var(--line);
  margin-top: 80px; border: 1px solid var(--line);
}
.about-col {
  background: var(--dark); padding: 44px 36px; text-align: center;
}
.ac-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(196,151,62,0.35);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.about-col h3 {
  font-family: 'EB Garamond', serif;
  font-size: 22px; font-weight: 500; color: var(--white); margin-bottom: 10px;
}
.about-col p {
  font-size: 13px; font-weight: 300; color: var(--muted);
  line-height: 1.75; max-width: 200px; margin: 0 auto;
}

/* --- SERVICES --- */
.section-services {
  padding: 130px 64px; border-bottom: 1px solid var(--line);
}
.services-intro {
  text-align: center; max-width: 660px; margin: 0 auto 90px;
}
.services-intro h2 {
  font-family: 'EB Garamond', serif;
  font-size: 52px; font-weight: 400; color: var(--white);
  line-height: 1.15; margin-bottom: 16px;
}
.services-intro h2 em { font-style: italic; color: var(--gold-l); }
.services-intro p {
  font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.8;
}

.services-panels {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--line); border: 1px solid var(--line);
}
.svc-panel {
  background: var(--dark-2); padding: 60px 56px;
  position: relative; overflow: hidden; transition: background 0.3s;
}
.svc-panel:hover { background: var(--dark-3); }

.svc-panel-num {
  font-family: 'EB Garamond', serif;
  font-size: 120px; font-weight: 800;
  color: rgba(196,151,62,0.06);
  position: absolute; bottom: -20px; right: 20px;
  line-height: 1; pointer-events: none; user-select: none;
}
.svc-corner {
  position: absolute; top: 24px; right: 24px;
  width: 28px; height: 28px;
  border-top: 1px solid rgba(196,151,62,0.4);
  border-right: 1px solid rgba(196,151,62,0.4);
}
.svc-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 28px; display: block;
}
.svc-panel h3 {
  font-family: 'EB Garamond', serif;
  font-size: 38px; font-weight: 500; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
}
.svc-panel > p {
  font-size: 14px; font-weight: 300; color: var(--muted);
  line-height: 1.85; margin-bottom: 40px; max-width: 380px;
}
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc-list li {
  font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
  color: rgba(237,232,222,0.5);
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(196,151,62,0.08);
}
.svc-list li:last-child { border-bottom: none; }
.svc-bullet { width: 16px; height: 1px; background: var(--gold); opacity: 0.5; flex-shrink: 0; }

/* --- QUOTE --- */
.section-quote {
  padding: 110px 64px; text-align: center;
  border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
.section-quote::before {
  content: '\201C';
  font-family: 'EB Garamond', serif;
  font-size: 400px; font-weight: 800;
  color: rgba(196,151,62,0.04);
  position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%);
  line-height: 1; pointer-events: none;
}
.section-quote blockquote {
  font-family: 'EB Garamond', serif;
  font-size: 42px; font-style: italic; font-weight: 400;
  color: var(--white); line-height: 1.4;
  max-width: 820px; margin: 0 auto 28px; position: relative; z-index: 1;
}
.section-quote blockquote strong { font-style: normal; color: var(--gold-l); }
.quote-attr {
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); position: relative; z-index: 1;
}

/* --- VALUES --- */
.section-values {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.val-cell { background: var(--dark); padding: 52px 40px; text-align: center; }
.val-num {
  font-family: 'EB Garamond', serif;
  font-size: 48px; font-weight: 400; color: rgba(196,151,62,0.25);
  line-height: 1; margin-bottom: 18px;
}
.val-cell h4 {
  font-family: 'EB Garamond', serif;
  font-size: 20px; font-weight: 500; color: var(--white);
  margin-bottom: 12px; line-height: 1.3;
}
.val-cell p { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.8; }

/* --- CTA --- */
.section-cta {
  padding: 130px 40px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.section-cta h2 {
  font-family: 'EB Garamond', serif;
  font-size: 66px; font-weight: 400; color: var(--white);
  line-height: 1.1; margin-bottom: 20px;
}
.section-cta h2 em { font-style: italic; color: var(--gold-l); }
.section-cta p {
  font-size: 14px; font-weight: 300; color: var(--muted);
  max-width: 440px; margin: 0 auto 48px; line-height: 1.85;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* --- CONTACT FORM --- */
.section-contact {
  padding: 130px 64px; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-info h2 {
  font-family: 'EB Garamond', serif;
  font-size: 44px; font-weight: 400; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.contact-info h2 em { font-style: italic; color: var(--gold-l); }
.contact-info > p {
  font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.85; margin-bottom: 36px;
}
.contact-detail {
  border-left: 1px solid var(--gold); padding-left: 20px; margin-bottom: 20px;
}
.contact-detail span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px;
}
.contact-detail p { font-size: 14px; color: var(--cream-d); font-weight: 300; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: 'Raleway', sans-serif;
  font-size: 14px; font-weight: 300;
  padding: 14px 18px; outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(196,151,62,0.5); }
.form-group textarea { resize: vertical; min-height: 130px; }

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

.form-msg {
  padding: 14px 20px; font-size: 13px; font-weight: 400;
  border: 1px solid; margin-bottom: 8px;
}
.form-msg.ok { border-color: rgba(196,151,62,0.4); color: var(--gold-l); background: rgba(196,151,62,0.06); }
.form-msg.err { border-color: rgba(200,80,80,0.4); color: #E07070; background: rgba(200,80,80,0.06); }

/* --- FOOTER --- */
footer {
  background: var(--dark-4); padding: 64px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 80px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 36px;
}
.ft-brand-name {
  font-family: 'EB Garamond', serif;
  font-size: 22px; font-weight: 500; color: var(--white);
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.ft-brand-sub {
  font-size: 10px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.ft-brand-desc {
  font-size: 13px; font-weight: 300;
  color: rgba(237,232,222,0.35); line-height: 1.8; max-width: 300px;
}
.ft-col h5 {
  font-size: 10px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col ul li a {
  font-size: 13px; font-weight: 300;
  color: rgba(237,232,222,0.4); transition: color 0.2s;
}
.ft-col ul li a:hover { color: rgba(237,232,222,0.8); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.2); font-weight: 300; }

/* --- PRIVACY PAGE --- */
.page-hero {
  min-height: 40vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 60px) 40px 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: 56px; font-weight: 400; color: var(--white); line-height: 1.15;
}
.page-hero h1 em { font-style: italic; color: var(--gold-l); }
.page-hero p { font-size: 13px; color: var(--muted); margin-top: 12px; letter-spacing: 0.05em; }

.page-content {
  max-width: 780px; margin: 0 auto; padding: 80px 40px 120px;
}
.page-content h2 {
  font-family: 'EB Garamond', serif;
  font-size: 28px; font-weight: 500; color: var(--white);
  margin: 48px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p, .page-content li {
  font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.85;
}
.page-content p + p { margin-top: 14px; }
.page-content ul { margin: 14px 0 14px 24px; display: flex; flex-direction: column; gap: 8px; }
.page-content a { color: var(--gold); border-bottom: 1px solid rgba(196,151,62,0.3); }
.page-content a:hover { color: var(--gold-l); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .navbar { padding: 0 40px; }
  .hero h1 { font-size: 64px; }
  .section-services { padding: 100px 40px; }
  .services-panels { grid-template-columns: 1fr; }
  .section-contact { grid-template-columns: 1fr; padding: 100px 40px; }
  .section-values { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-left, .nav-cta, .nav-right .lang-btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-center { position: static; transform: none; }
  .navbar { justify-content: space-between; }

  .hero h1 { font-size: 44px; }
  .hero-overline span { font-size: 9px; letter-spacing: 0.2em; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; max-width: 280px; text-align: center; }
  .hero-ornament { width: 380px; height: 380px; }
  .hero-bottom { flex-wrap: wrap; }
  .hb-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid var(--line); }
  .hb-item:nth-child(odd) { border-right: 1px solid var(--line); }

  .section-about { padding: 80px 24px; }
  .section-about h2 { font-size: 36px; }
  .about-cols { grid-template-columns: 1fr; }

  .section-services { padding: 80px 24px; }
  .services-intro h2 { font-size: 36px; }
  .svc-panel { padding: 40px 28px; }
  .svc-panel h3 { font-size: 30px; }

  .section-quote { padding: 80px 24px; }
  .section-quote blockquote { font-size: 26px; }

  .section-values { grid-template-columns: 1fr 1fr; }
  .val-cell { padding: 36px 20px; }

  .section-cta { padding: 80px 24px; }
  .section-cta h2 { font-size: 44px; }
  .cta-actions { flex-direction: column; align-items: center; }

  .section-contact { padding: 80px 24px; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  footer { padding: 48px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---- Link Portal nella navbar ---- */
.nav-portal {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold) !important;
  font-weight: 500;
  border: 1px solid rgba(196, 151, 62, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-portal:hover {
  background: rgba(196, 151, 62, 0.12);
  border-color: var(--gold);
}
