/* ============================================
   PRONEXUS - STILE IN TONO CON IL LOGO
   Palette: bianco/grigio chiaro + blu logo
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-dark: #101627;
  --surface: #eaf0fa;
  --text: #101627;
  --text-muted: #4a5568;
  --accent: #2e74c1;
  --accent-dark: #1a5a9e;
  --accent-light: #e8f0fa;
  --border: rgba(46, 116, 193, 0.15);
  --border-dark: rgba(16, 22, 39, 0.08);
  --shadow: 0 8px 40px rgba(46, 116, 193, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, sans-serif;

  --container: 1200px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* TIPOGRAFIA */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.7rem; font-family: var(--font-body); font-weight: 600; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; font-weight: 600;
}
p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0; transition: all 0.4s ease;
  background: rgba(255,255,255,0.98);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 20px rgba(46,116,193,0.12);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.99);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(46,116,193,0.15);
}
.nav-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 32px;
  gap: 16px;
}
/* Voci sinistra */
.nav-links-left {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  justify-content: flex-end;
}
/* Logo centrale */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 64px; width: auto; display: block; }
/* Voci destra */
.nav-links-right {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  justify-content: flex-start;
}
.nav-links-left a,
.nav-links-right a {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text); position: relative; padding: 4px 0;
}
.nav-links-left a::after,
.nav-links-right a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0;
  height: 2px; background: var(--accent); transition: width 0.3s;
}
.nav-links-left a:hover::after,
.nav-links-right a:hover::after { width: 100%; }
.nav-links-left a:hover,
.nav-links-right a:hover { color: var(--accent); }
/* Manteniamo .nav-links per compatibilità mobile */
.nav-links { display: none; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.5rem; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 80px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f8faff 0%, #edf3fc 100%);
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(46,116,193,0.12) 0%, transparent 60%);
  border-radius: 50%; filter: blur(60px); z-index: 0;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-logo {
  width: 220px; max-width: 60%;
  margin: 0 auto 2rem;
  display: block;
  opacity: 0; animation: fadeUp 0.9s ease forwards 0.1s;
  filter: drop-shadow(0 4px 24px rgba(46,116,193,0.15));
}
.hero h1 { margin-bottom: 1.4rem; opacity: 0; animation: fadeUp 0.9s ease forwards 0.2s; color: var(--bg-dark); }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-subtitle { font-size: 1.1rem; max-width: 100%; margin: 0 auto 2.5rem; opacity: 0; animation: fadeUp 0.9s ease forwards 0.4s; text-align: center; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s ease forwards 0.6s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 13px 26px; border-radius: var(--radius); font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,116,193,0.35); }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-muted); opacity: 0; animation: fadeIn 1s ease forwards 1.2s;
}
.scroll-indicator::after {
  content: ''; display: block; width: 1px; height: 36px;
  background: var(--accent); margin: 10px auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* SEZIONI */
section { padding: 100px 0; position: relative; }
.section-header { margin-bottom: 3.5rem; max-width: 700px; }

/* ABOUT */
.about { background: var(--bg-soft); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text p { margin-bottom: 1.2rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.stat { border-left: 3px solid var(--accent); padding-left: 1.2rem; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; color: var(--accent); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.about-visual {
  aspect-ratio: 4/5; background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
  border-radius: 12px; position: relative; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.about-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(46,116,193,0.15) 0%, transparent 50%);
}
.about-visual::after {
  content: 'PN'; position: absolute; bottom: 24px; right: 24px;
  font-family: var(--font-display); font-size: 7rem; font-style: italic;
  color: var(--accent); opacity: 0.12; line-height: 1;
}

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--bg); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  transition: all 0.35s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #5b9fd4);
  opacity: 0; transition: opacity 0.35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border); }
.service-card:hover::before { opacity: 1; }
.service-number { font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 1.2rem; letter-spacing: 0.12em; }
.service-card h3 { color: var(--text); }
.service-card p { font-size: 0.92rem; }

/* PROTOM BAND */
.protom-band {
  background: var(--bg-dark); color: #fff; padding: 80px 0;
  border-top: 3px solid var(--accent);
}
.protom-band .eyebrow { color: #7eb8f0; }
.protom-band h2 { color: #fff; margin-bottom: 1.2rem; }
.protom-band p { color: rgba(255,255,255,0.7); }
.protom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.protom-logo-box {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 3rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem; text-align: center;
}
.protom-logo-box .protom-name {
  font-family: var(--font-display); font-size: 2.5rem; font-style: italic;
  color: #7eb8f0; letter-spacing: -0.02em;
}
.protom-logo-box .protom-sub { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.protom-link { color: #7eb8f0; text-decoration: underline; font-size: 0.9rem; }
.protom-link:hover { color: #fff; }

/* CONTACT */
.contact { background: var(--bg-soft); border-top: 1px solid var(--border-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info > p { font-size: 1rem; margin-bottom: 2.5rem; }
.contact-list { list-style: none; }
.contact-list li { padding: 1.2rem 0; border-top: 1px solid var(--border-dark); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--border-dark); }
.contact-label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.contact-value { font-weight: 600; font-size: 1rem; color: var(--text); text-align: right; }
.contact-value:hover { color: var(--accent); }
.map-placeholder {
  aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--border-dark);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; padding: 2rem; text-align: center;
}
.map-placeholder svg { width: 52px; height: 52px; stroke: var(--accent); }

/* CTA SECTION */
.cta-section { background: var(--accent); padding: 80px 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 2rem; }
.cta-section .btn-primary { background: #fff; color: var(--accent); }
.cta-section .btn-primary:hover { background: #edf3fc; }

/* FOOTER */
.footer { background: var(--bg-dark); padding: 60px 0 30px; }
.footer-wrapper { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: rgba(255,255,255,0.8); max-width: 380px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; font-size: 0.82rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 1rem; }

/* ANIMAZIONI */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse { 0%,100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0.4); opacity: 0.4; } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links-left, .nav-links-right { display: none; }
  .nav-wrapper { grid-template-columns: auto 1fr; }
  .logo img { height: 48px; }
  .menu-toggle { display: block; justify-self: end; }
  .about-grid, .contact-grid, .protom-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .about-visual { aspect-ratio: 16/9; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 0 60px; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .contact-value { text-align: left; }
}

/* ============================================
   FOTO — STATICHE E PULITE
   ============================================ */

/* Foto rettangolare about */
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(46,116,193,0.15);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Reception: sposta a sinistra per mostrare logo ProNexus completo sulla parete */
.about-photo.reception img {
  object-position: 20% center;
}

/* Banner foto a larghezza piena */
.photo-banner {
  width: 100%;
  height: 360px;
  overflow: hidden;
}
.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Banner foto TECH (spaziali): altezza controllata */
.tech-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.tech-banner img {
  width: 100%;
  height: 320px;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* hero-tech rimosso: le foto tech usate solo come banner separati */

/* Griglia foto 2 colonne */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.photo-pair .photo-item {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(46,116,193,0.12);
}
.photo-pair .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

@media (max-width: 900px) {
  .photo-pair { grid-template-columns: 1fr; }
  .photo-banner { height: 220px; }
  .tech-banner img { max-height: 260px; }
}

/* ============================================
   HERO CON FOTO LATERALI
   ============================================ */
.hero-with-sides {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 100vh;
  padding: 130px 40px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8faff 0%, #edf3fc 100%);
}
.hero-side-img {
  flex: 0 0 220px;
  height: 480px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(46,116,193,0.3);
  flex-shrink: 0;
}
.hero-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-side-img.left {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.3s;
}
.hero-side-img.right {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}
.hero-center {
  flex: 0 1 960px;
  text-align: center;
  padding: 0;
}
.hero-center .hero-cta {
  justify-content: center;
}

@media (max-width: 1200px) {
  .hero-side-img { flex: 0 0 200px; height: 380px; }
  .hero-with-sides { gap: 24px; }
}
@media (max-width: 900px) {
  .hero-side-img { flex: 0 0 120px; height: 260px; }
  .hero-with-sides { gap: 16px; padding: 120px 16px 60px; }
}
@media (max-width: 650px) {
  .hero-with-sides { flex-direction: column; padding: 100px 20px 60px; gap: 0; }
  .hero-side-img { display: none; }
  .hero-center { text-align: left; }
  .hero-center .hero-cta { justify-content: flex-start; }
}

/* Titolo hero-center: max 2 righe */
.hero-center h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.2s;
  color: var(--bg-dark);
}
.hero-center h1 em {
  color: var(--accent);
  font-style: italic;
}
.hero-center .hero-subtitle {
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}
