/* ═══════════════════════════════════════════════════════════════
   M.R. INOX S.r.l. — Foglio stile principale
   Palette C: Bianco + Antracite
   Font: Barlow Condensed (display) + Inter (body)
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── VARIABILI ── */
:root {
  --anthracite:      #3D4F5C;
  --anthracite-dark: #2a3840;
  --dark-text:       #1A1A1A;
  --mid-grey:        #6B7C88;
  --light-bg:        #F5F7F8;
  --border:          #DDE3E8;
  --white:           #FFFFFF;
}

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background: #fff;
  margin: 0;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ── UTILITÀ TIPOGRAFICHE ── */
.display-face { font-family: 'Barlow Condensed', sans-serif; }

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--anthracite);
  margin-bottom: 0.4rem;
  display: block;
}
.section-divider {
  width: 40px;
  height: 3px;
  background: var(--anthracite);
  margin-bottom: 1.4rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--dark-text);
}
.section-title--white { color: #fff; }
.section-lead {
  font-size: 1rem;
  color: var(--mid-grey);
  max-width: 580px;
  line-height: 1.7;
}
.section-lead--white { color: rgba(255,255,255,.65); }

/* ── NAVBAR ── */
.navbar-mri {
  background: var(--white);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--anthracite);
  box-shadow: 0 1px 8px rgba(0,0,0,.07);
}
.navbar-mri .nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid-grey) !important;
  padding: 0.4rem 0.9rem !important;
  transition: color .2s;
}
.navbar-mri .nav-link:hover,
.navbar-mri .nav-link.active { color: var(--anthracite) !important; }
.navbar-mri .btn-preventivo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--anthracite);
  color: #fff !important;
  border: none;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: background .2s;
  text-decoration: none;
}
.navbar-mri .btn-preventivo:hover { background: var(--anthracite-dark); }
.navbar-toggler-mri {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--anthracite);
  padding: .3rem .7rem;
  border-radius: 2px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ── PAGE HERO (pagine interne) ── */
.page-hero {
  background: var(--light-bg);
  border-left: 5px solid var(--anthracite);
  padding: 4rem 0 3.5rem;
}
.page-hero .section-eyebrow { color: var(--anthracite); }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 1.0;
  color: var(--dark-text);
  margin-bottom: .8rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 620px;
  line-height: 1.7;
}

/* ── HERO HOME (con video) ── */
.hero-home {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--anthracite);
  background: #111;
}
.hero-home .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,14,18,.82) 0%, rgba(10,14,18,.55) 60%, rgba(10,14,18,.35) 100%);
  z-index: 1;
}
.hero-home .hero-watermark {
  position: absolute;
  right: -1rem; top: 50%;
  transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(10rem, 22vw, 22rem);
  line-height: 1;
  color: rgba(255,255,255,.04);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}
.hero-home .hero-content { position: relative; z-index: 3; padding: 5rem 0; }
.hero-home .hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
  display: block;
}
.hero-home h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.0;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-home h1 em {
  font-style: normal;
  border-bottom: 4px solid var(--anthracite);
  padding-bottom: 2px;
}
.hero-home .hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── BOTTONI ── */
.btn-primary-mri {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--anthracite);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-primary-mri:hover { background: var(--anthracite-dark); color: #fff; }

.btn-outline-mri {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--anthracite);
  border: 1.5px solid var(--anthracite);
  padding: 0.8rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, color .2s;
}
.btn-outline-mri:hover { background: var(--anthracite); color: #fff; }

.btn-white-mri {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  color: var(--anthracite);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-white-mri:hover { background: var(--light-bg); color: var(--anthracite); }

.btn-outline-white-mri {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 0.8rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s, background .2s;
}
.btn-outline-white-mri:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ── STATS BAR ── */
.stats-bar { background: var(--anthracite); padding: 1.2rem 0; }
.stats-bar .stat-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.2);
}
.stats-bar .stat-item:last-child { border-right: none; }
.stats-bar .stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}
.stats-bar .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* ── CARD LAVORAZIONE ── */
.lav-card {
  background: var(--light-bg);
  border-top: 3px solid var(--anthracite);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.lav-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  transform: translateY(-3px);
  color: inherit;
}
.lav-card .lav-icon { width: 40px; height: 40px; margin-bottom: 1.1rem; }
.lav-card .lav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}
.lav-card .lav-desc { font-size: 0.88rem; color: var(--mid-grey); line-height: 1.65; }

/* ── SETTORE PILL ── */
.settore-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.7rem 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark-text);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.settore-pill:hover {
  background: var(--anthracite);
  border-color: var(--anthracite);
  color: #fff;
}
.settore-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--anthracite);
  flex-shrink: 0;
  transition: background .15s;
}
.settore-pill:hover .settore-dot { background: rgba(255,255,255,.6); }

/* ── MACHINE CARD (su sfondo scuro) ── */
.section-macchine { background: var(--anthracite); padding: 6rem 0; }
.section-macchine .section-divider { background: rgba(255,255,255,.3); }
.machine-card {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 1.75rem;
  height: 100%;
}
.machine-card .machine-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 0.5rem;
}
.machine-card .machine-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.machine-card .machine-spec { font-size: 0.85rem; color: rgba(255,255,255,.6); line-height: 1.85; }
.machine-card .machine-spec strong { color: rgba(255,255,255,.9); font-weight: 500; }

/* ── MATERIALI ── */
.mat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.mat-item:last-child { border-bottom: none; }
.mat-bar { width: 3px; height: 30px; background: var(--anthracite); border-radius: 2px; flex-shrink: 0; }
.mat-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-text);
  min-width: 160px;
}
.mat-desc { font-size: 0.88rem; color: var(--mid-grey); }

/* ── FORM PREVENTIVO ── */
.form-card {
  background: var(--white);
  padding: 2.5rem;
  border-top: 3px solid var(--anthracite);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.form-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
}
.form-label-mri {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--anthracite);
  margin-bottom: 0.3rem;
  display: block;
}
.form-control-mri {
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-size: 0.92rem;
  padding: 0.6rem 0.9rem;
  width: 100%;
  font-family: 'Inter', sans-serif;
  transition: border-color .15s;
  background: #fff;
  color: var(--dark-text);
}
.form-control-mri:focus {
  border-color: var(--anthracite);
  box-shadow: 0 0 0 3px rgba(61,79,92,.1);
  outline: none;
}
.btn-submit {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--anthracite);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  width: 100%;
  transition: background .2s;
  cursor: pointer;
}
.btn-submit:hover { background: var(--anthracite-dark); }
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--mid-grey);
  margin-bottom: 0.7rem;
}
.checklist-item::before {
  content: '';
  display: inline-flex;
  width: 18px; height: 18px;
  background: var(--anthracite);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='white'%3E%3Cpath d='M7 12.5L3.5 9l1.1-1.1L7 10.3l6.4-6.4L14.5 5z'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── GALLERIA ── */
.gallery-item {
  overflow: hidden;
  display: block;
  background: var(--light-bg);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--anthracite);
  padding: 4rem 0;
}
.cta-banner h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .5rem;
}
.cta-banner p { color: rgba(255,255,255,.65); font-size: .95rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark-text);
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--anthracite);
}
footer .footer-logo { filter: brightness(0) invert(1); opacity: .75; height: 28px; }
footer .footer-tagline { font-size: 0.82rem; color: #6B7C88; margin-top: 0.5rem; }
footer .footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B7C88;
  margin-bottom: 1rem;
}
footer .footer-link {
  font-size: 0.9rem;
  color: #8a9baa;
  text-decoration: none;
  display: block;
  line-height: 2.1;
  transition: color .15s;
}
footer .footer-link:hover { color: #fff; }
footer .footer-contact { font-size: 0.9rem; color: #8a9baa; line-height: 2.1; }
footer .footer-contact a { color: #8a9baa; text-decoration: none; transition: color .15s; }
footer .footer-contact a:hover { color: #fff; }
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.2rem;
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: #3a4a55;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .hero-home { min-height: 70vh; }
  .hero-home h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .section-macchine { padding: 4rem 0; }
}
@media (max-width: 767px) {
  .stats-bar .stat-number { font-size: 1.5rem; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .form-card { padding: 1.5rem; }
}
