/* =============================================
   NUOVA MAP — Stylesheet v2
   ============================================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Variables */
:root {
  --black:   #0a0a0a;
  --dark:    #141414;
  --dark2:   #1e1e1e;
  --white:   #ffffff;
  --off:     #f5f5f5;
  --off2:    #efefef;
  --text:    #1a1a1a;
  --muted:   #666666;
  --gold:    #c9a85c;
  --gold-lt: #e2c97a;
  --steel:   #7a9bb5;
  --steel-lt:#9bbad4;
  --border-d:#2a2a2a;
  --border-l:#e0e0e0;
  --nav-h:   88px;
}

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem);   font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1rem,  2vw, 1.25rem);   font-weight: 600; }

.tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.tag--gold  { color: var(--gold); }
.tag--dark  { color: var(--muted); }

.section-title { margin-bottom: .4rem; }
.section-sub   { max-width: 580px; margin-bottom: 3rem; font-size: .97rem; line-height: 1.7; }

/* ---- LAYOUT ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }

/* dark sections (hero, footer) */
.bg-dark   { background: var(--dark);  color: #fff; }
.bg-black  { background: var(--black); color: #fff; }
.bg-dark2  { background: var(--dark2); color: #fff; }

/* light sections */
.bg-white  { background: #fff; color: var(--text); }
.bg-off    { background: var(--off); color: var(--text); }

/* text helpers */
.text-muted-dark  { color: rgba(255,255,255,.65); }
.text-muted-light { color: var(--muted); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: .8rem 1.9rem; border-radius: 3px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: all .22s;
  border: 2px solid transparent;
}
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn--outline-w { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-w:hover { background: rgba(255,255,255,.12); }
.btn--outline-d { background: transparent; border-color: var(--text); color: var(--text); }
.btn--outline-d:hover { background: rgba(0,0,0,.06); }
.btn--gold-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--gold-outline:hover { background: var(--gold); color: var(--black); }
.btn--steel { background: var(--steel); border-color: var(--steel); color: #fff; }
.btn--steel:hover { background: var(--steel-lt); border-color: var(--steel-lt); }

.hero__cta-group .btn { min-width: 240px; text-align: center; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.nav--transparent { background: transparent; }
.nav--scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-l);
}
.nav__inner {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo       { height: 68px; width: auto; transition: opacity .2s; }
.nav__logo--dark { display: none; }
.nav--scrolled .nav__logo--white { display: none; }
.nav--scrolled .nav__logo--dark  { display: block; }

.nav__links { display: flex; gap: 1.75rem; align-items: center; }
.nav__links a {
  font-size: .77rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.8); transition: color .2s;
}
.nav--scrolled .nav__links a { color: #444; }
.nav__links a:hover { color: var(--gold) !important; }

.lang-toggle { display: flex; gap: .3rem; margin-left: .5rem; }
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.55);
  padding: .2rem .5rem; border-radius: 2px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  cursor: pointer; transition: all .2s;
}
.nav--scrolled .lang-btn { border-color: #ccc; color: #888; }
.lang-btn.active,
.lang-btn:hover {
  background: var(--gold); border-color: var(--gold); color: var(--black) !important;
}

/* ---- HERO (video, dark) ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--black);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: .4;
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.65) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  text-align: center; padding: 2rem; max-width: 860px;
}
.hero__title { color: #fff; margin-bottom: 1rem; }
.hero__sub {
  font-size: 1.05rem; color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem; line-height: 1.7;
}
.hero__cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- SPLIT CARDS (index) ---- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; width: 100%; max-width: 860px; margin: 0 auto;
}
.split__card {
  position: relative; aspect-ratio: 4/3;
  border-radius: 4px; overflow: hidden;
  cursor: pointer; transition: transform .3s; display: block;
}
.split__card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.split__card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s ease;
}
.split__card:hover .split__card-bg { transform: scale(1.06); }
.split__card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.1) 55%);
}
.split__card--compositi .split__card-bg {
  background-color: #0b0d14;
  background-image:
    repeating-linear-gradient(45deg,  rgba(201,168,92,.08) 0, rgba(201,168,92,.08) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(201,168,92,.08) 0, rgba(201,168,92,.08) 1px, transparent 1px, transparent 14px);
}
.split__card-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.75rem;
}
.split__card-kw {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .45rem;
}
.split__card-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.split__card-sub { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; line-height: 1.55; }
.split__card-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--gold); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.split__card-arrow::after { content: ' →'; }

/* ---- PHOTO STRIP (full-width) ---- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 300px;
  overflow: hidden;
}
.photo-strip--3col { grid-template-columns: repeat(3, 1fr); }
.photo-strip__img {
  background-size: cover;
  background-position: center;
  transition: transform .5s ease, filter .5s ease;
  filter: brightness(.9) saturate(.9);
  overflow: hidden;
}
.photo-strip__img:hover { filter: brightness(1.05) saturate(1.1); transform: scale(1.02); }

/* ---- FEATURE IMAGE (half-width) ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 460px;
}
.split-section--reverse { direction: rtl; }
.split-section--reverse > * { direction: ltr; }
.split-section__img {
  background-size: cover;
  background-position: center;
}
.split-section__content {
  padding: 4rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
}
.split-section__content .tag { display: block; }

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 780px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
}
.card {
  background: #fff;
  border: 1px solid var(--border-l);
  border-radius: 4px; padding: 1.75rem;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.bg-off .card { background: #fff; }
.card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.card__num {
  font-size: 2rem; font-weight: 700; line-height: 1;
  color: rgba(201,168,92,.25); margin-bottom: .75rem;
}
.card__title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; }
.card__text  { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ---- FEATURES ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-top: .55rem; flex-shrink: 0;
}
.feature__title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.feature__text  { font-size: .87rem; color: var(--muted); line-height: 1.65; }

/* dark features */
.features--dark .feature__title { color: #fff; }
.features--dark .feature__text  { color: rgba(255,255,255,.6); }

/* ---- QUALITY BAND ---- */
.quality-band {
  background: var(--dark);
  padding: 3.5rem 0; text-align: center;
}
.quality-band h3 { color: #fff; margin-bottom: .6rem; }
.quality-band p  { color: rgba(255,255,255,.55); max-width: 520px; margin: 0 auto 1.5rem; font-size: .9rem; }
.quality-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 1.4rem; border: 1px solid var(--gold);
  border-radius: 3px; color: var(--gold);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }
.ci-label {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .2rem;
}
.ci-value { font-size: .95rem; color: var(--text); }
.ci-value a { transition: color .2s; }
.ci-value a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: .85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: #fff; border: 1px solid var(--border-l);
  border-radius: 3px; padding: .72rem 1rem;
  color: var(--text); font-size: .88rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }

/* ---- SPECS TABLE ---- */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td {
  padding: .85rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border-l); font-size: .88rem;
}
.bg-dark .specs-table th { border-bottom-color: var(--border-d); }
.bg-dark .specs-table td { border-bottom-color: var(--border-d); }
.specs-table th { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.specs-table td { color: var(--muted); }
.bg-dark .specs-table td { color: rgba(255,255,255,.55); }
.specs-table tbody tr:nth-child(even) { background: var(--off); }
.specs-table td:first-child { color: var(--text); font-weight: 600; }
.bg-dark .specs-table tbody tr:nth-child(even) { background: var(--dark2); }
.bg-dark .specs-table td:first-child { color: #fff; }

/* ---- SECTOR CARDS ---- */
.sector-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sector-card {
  background: #fff;
  border: 1px solid var(--border-l); border-radius: 4px;
  padding: 2.25rem 1.75rem;
  position: relative; overflow: hidden;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.bg-off .sector-card { background: #fff; }
.sector-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.sector-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px; background: var(--gold);
}
.sector-card__kw {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .65rem;
}
.sector-card__title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .85rem; }
.sector-card__text  { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }

/* ---- CTA BAND ---- */
.cta-band { background: var(--gold); padding: 5rem 0; text-align: center; }
.cta-band h2 { color: var(--black); margin-bottom: .6rem; }
.cta-band p  { color: rgba(0,0,0,.6); margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; font-size: .97rem; }

/* ---- COMPOSITI HERO ---- */
.hero--compositi {
  background: #0b0d14 url('../assets/carbonio.jpg') center/cover no-repeat;
}
.carbon-pattern {
  position: absolute; inset: 0;
  background: rgba(11,13,20,.72);
}

/* ---- FEATURE IMAGE BLOCK ---- */
.img-feature {
  width: 100%; height: 420px;
  object-fit: cover; display: block;
}
.img-feature-wrap {
  overflow: hidden; position: relative;
}
.img-feature-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.18) 100%);
}

/* ---- NUMBERS BAR ---- */
.numbers-bar {
  background: var(--black);
  padding: 3.5rem 0;
}
.numbers-bar__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; text-align: center;
}
.number-item__val {
  font-size: 2.8rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.number-item__label {
  font-size: .78rem; color: rgba(255,255,255,.55);
  letter-spacing: .1em; text-transform: uppercase;
  margin-top: .4rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border-d);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.25rem;
}
.footer__logo  { height: 48px; opacity: .75; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-size: .75rem; color: #666; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__copy  { font-size: .75rem; color: #555; }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .split-section { grid-template-columns: 1fr; }
  .split-section__img { min-height: 300px; }
  .split-section--reverse { direction: ltr; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .photo-strip { height: 200px; }
  .photo-strip--3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .split { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .nav__links .hide-mobile { display: none; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; flex-wrap: wrap; }
}
