/* ============================================================
   assets/frontend.css
   BASE: variabili, reset, utility, navbar, footer, breadcrumb
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0d1f2d;
  --steel: #1a3a4a;
  --amber: #c8721a;
  --amber-light: #e08930;
  --sand: #f0ebe2;
  --white: #ffffff;
  --gray-light: #f4f2ee;
  --gray-mid: #8a949e;
  --text: #1a2530;
  --text-light: #3a4a5a;
}
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }

.chiaro { background-color: var(--gray-light);}

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 72px; background: rgba(13,31,45,0.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(200,114,26,0.3); }
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.logo-text { display: flex; flex-direction: column; line-height: 1; border-left: 1px solid rgba(255,255,255,0.15); padding-left: 14px; }
.logo-main { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: 0.1em; color: var(--white); text-transform: uppercase; }
.logo-sub { font-family: 'Barlow Condensed', sans-serif; font-weight: 300; font-size: 10px; letter-spacing: 0.24em; color: var(--amber-light); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); background: var(--amber); border: none; padding: 10px 24px; cursor: pointer; text-decoration: none; transition: background 0.2s; }
.nav-cta:hover { background: var(--amber-light); }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,18,28,0.93) 0%, rgba(8,18,28,0.52) 45%, rgba(8,18,28,0.15) 100%); }
.hero-overlay-side { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,18,28,0.55) 0%, transparent 60%); }
.hero-content { position: relative; z-index: 2; padding: 0 56px 88px; max-width: 860px; animation: fadeUp 0.9s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--amber); }
.hero-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(44px, 7.5vw, 62px); line-height: 0.93; color: var(--white); text-transform: uppercase; margin-bottom: 26px; }
.hero-title em { font-style: normal; color: var(--amber-light); }
.hero-desc { font-size: 17px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.72); max-width: 540px; margin-bottom: 42px; }
.hero-actions { display: flex; gap: 14px; align-items: center; }
.btn-primary { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); background: var(--amber); padding: 15px 34px; text-decoration: none; transition: background 0.2s, transform 0.15s; display: inline-block; }
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-ghost { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.28); padding: 14px 30px; text-decoration: none; transition: border-color 0.2s, color 0.2s; display: inline-block; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.founded-badge { position: absolute; top: 92px; right: 52px; z-index: 2; text-align: center; border: 1px solid rgba(200,114,26,0.45); padding: 18px 22px; background: rgba(13,31,45,0.65); backdrop-filter: blur(10px); }
.founded-year { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 40px; color: var(--amber-light); line-height: 1; }
.founded-label { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 4px; }
.photo-label { position: absolute; bottom: 16px; right: 20px; z-index: 3; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.28); background: rgba(0,0,0,0.3); padding: 4px 10px; }

/* Scroll hint: posizionamento fisso centrato, animazione separata */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease infinite;
}
.scroll-hint::after { content: ''; display: block; width: 1px; height: 36px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); }
/* Animazione separata che non interferisce con translateX(-50%) */
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}



/* INTRO TESTUALE */
.section-intro { background: var(--white); padding: 80px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; border-bottom: 1px solid #e8e3da; }
.intro-left .section-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.intro-left h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.05; text-transform: uppercase; color: var(--navy); margin-bottom: 24px; }
.intro-left p { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--text-light); margin-bottom: 16px; }
.intro-right { padding-top: 8px; }
.intro-right p { font-size: 15.5px; font-weight: 300; line-height: 1.82; color: var(--text-light); margin-bottom: 16px; }
.intro-geo { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.geo-tag { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); border: 1px solid #c8c0b4; padding: 7px 16px; }

/* PRODOTTI */
.section-prodotti { background: var(--gray-light); padding: 96px 48px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 52px; }
.section-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1; text-transform: uppercase; color: var(--navy); }
.section-link { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 2px; white-space: nowrap; }
.prodotti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.prodotto-card { background: var(--navy); padding: 44px 36px; position: relative; overflow: hidden; cursor: pointer; transition: background 0.3s; text-decoration: none; display: block; }
.prodotto-card:hover { background: var(--steel); }
.prodotto-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--amber); transition: width 0.4s ease; }
.prodotto-card:hover::before { width: 100%; }
.prodotto-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 52px; color: rgba(255,255,255,0.05); position: absolute; top: 20px; right: 24px; line-height: 1; }
.prodotto-icon { width: 36px; height: 3px; background: var(--amber); margin-bottom: 22px; transition: width 0.3s; }
.prodotto-card:hover .prodotto-icon { width: 56px; }
.prodotto-nome { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); margin-bottom: 14px; line-height: 1.1; }
.prodotto-desc { font-size: 14px; font-weight: 300; line-height: 1.72; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.prodotto-spec { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(200,114,26,0.8); margin-bottom: 24px; line-height: 1.8; }
.prodotto-cta { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber-light); display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s; }
.prodotto-card:hover .prodotto-cta { opacity: 1; transform: translateX(0); }
.prodotto-cta::after { content: '→'; }

/* PERCHÉ NOI */
.section-perche { background: var(--sand); padding: 96px 48px; }
.perche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.perche-left h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.05; text-transform: uppercase; color: var(--navy); margin-bottom: 20px; margin-top: 14px; }
.perche-left p { font-size: 15.5px; font-weight: 300; line-height: 1.82; color: var(--text-light); margin-bottom: 16px; }
.perche-items { display: flex; flex-direction: column; gap: 0; }
.perche-item { padding: 28px 0; border-bottom: 1px solid #ddd8d0; display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; }
.perche-item:first-child { border-top: 1px solid #ddd8d0; }
.perche-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 28px; color: var(--amber); line-height: 1; padding-top: 2px; }
.perche-item-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 8px; }
.perche-item-text { font-size: 14.5px; font-weight: 300; line-height: 1.72; color: var(--text-light); }

/* AZIENDA */
.section-azienda { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.azienda-visual { position: relative; overflow: hidden; min-height: 480px; display: block; }
.azienda-text { background: var(--white); padding: 76px 60px; display: flex; flex-direction: column; justify-content: center; }
.azienda-text .section-label { margin-bottom: 8px; }
.azienda-text h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(32px, 3vw, 46px); line-height: 1.05; text-transform: uppercase; color: var(--navy); margin-bottom: 22px; }
.azienda-body { font-size: 15.5px; font-weight: 300; line-height: 1.8; color: var(--text-light); margin-bottom: 18px; }

/* CONTATTI */
.section-contatti { background: var(--navy); padding: 68px 48px; display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--amber); gap: 40px; }
.contatti-left .section-label { color: var(--amber-light); margin-bottom: 8px; }
.contatti-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 40px; text-transform: uppercase; color: var(--white); line-height: 1; }
.contatti-info { display: flex; gap: 40px; }
.contatti-item-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 5px; }
.contatti-item-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; color: var(--white); }
  .contatti-item-value a:link,
  .contatti-item-value a:visited { color: var(--amber); text-decoration: none; }
  .contatti-item-value a:hover { color: var(--amber-light); text-decoration: none; }

  .img-grid { grid-template-columns: repeat(3, 1fr); text-align: center; align-items: center;}
  .img-grid img { height: 100px; }

/* FOOTER */
footer { background: #070d14; padding: 24px 48px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.62); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.62); text-decoration: none; text-transform: uppercase; }
.footer-links a:hover { color: rgba(255,255,255,0.95); }

/* NOTE BOZZA */
.bozza-note { background: #fffbe6; border-top: 3px solid #e8b800; padding: 24px 48px; font-size: 13px; color: #4a3c00; line-height: 1.7; }
.bozza-note strong { color: #4a3c00; }
.bozza-note ul { margin: 8px 0 0 20px; }

/* =============================================
   RESPONSIVE — breakpoints
   ============================================= */

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--sand); border-radius: 2px;
  transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }



/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  /* NAV */
  nav { padding: 0 28px; }
  .nav-links { gap: 20px; }

  /* HERO */
  .hero-content { padding: 0 36px 72px; }
  .founded-badge { right: 28px; top: 84px; }

  /* STATS */
  .stats-bar { padding: 0 28px; }
  .stat-number { font-size: 30px; }

  /* INTRO */
  .section-intro { padding: 60px 28px; gap: 48px; }
  .intro-left h2 { font-size: clamp(28px, 3vw, 40px); }
  .intro-right p { font-size: 15px; }

  /* PRODOTTI */
  .section-prodotti { padding: 72px 28px; }
  .prodotti-grid { grid-template-columns: 1fr 1fr; }
  .prodotto-card { padding: 36px 28px; }
  .prodotto-num { font-size: 42px; }

  /* PERCHÉ */
  .section-perche { padding: 72px 28px; }
  .perche-grid { gap: 52px; }
  .perche-left h2 { font-size: clamp(28px, 3vw, 40px); }
  .perche-left p { font-size: 15px; }

  /* AZIENDA */
  .section-azienda { grid-template-columns: 1fr; }
  .azienda-visual { min-height: 340px; }
  .azienda-text { padding: 52px 36px; }
  .azienda-body { font-size: 15px; }

  /* CONTATTI */
  .section-contatti { padding: 52px 28px; }
  .contatti-title { font-size: 34px; }
  .contatti-info { gap: 28px; }

  /* DOCS */
  .docs-grid { grid-template-columns: repeat(2, 1fr); }



  /* FAQ / CERT */
  .section-faq { padding: 72px 28px; }
  .section-cert { padding: 52px 28px; }

  /* FOOTER */
  footer { padding: 20px 28px; }
  .bozza-note { padding: 20px 28px; }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {

  /* NAV */
  nav {
    padding: 0 20px;
    height: 60px;
    position: fixed;
  }
  
.nav-hamburger { display: flex; }

  .nav-links { display: none; }
  .nav-cta { font-size: 12px; padding: 8px 16px; }
  .logo-img { height: 36px; }
  .logo-main { font-size: 15px; }
  .logo-sub { font-size: 9px; }

  /* HERO */
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero-content {
    padding: 0 20px 64px;
    max-width: 100%;
  }
  .hero-title { font-size: clamp(40px, 12vw, 64px); line-height: 0.95; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .founded-badge { display: none; }
  .scroll-hint { display: none; }
  .photo-label { display: none; }

  /* STATS */
  .stats-bar {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    padding: 20px 12px;
    border-right: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .stat-item:nth-child(2),
  .stat-item:nth-child(4) { border-right: none; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 9px; }

  /* INTRO */
  .section-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 20px;
  }
  .intro-left h2 { font-size: clamp(26px, 7vw, 36px); }
  .intro-left p { font-size: 15px; }
  .intro-right p { font-size: 14.5px; }
  .intro-geo { gap: 8px; }
  .geo-tag { font-size: 11px; padding: 6px 12px; }

  /* PRODOTTI */
  .section-prodotti { padding: 56px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .prodotti-grid { grid-template-columns: 1fr; gap: 2px; }
  .prodotto-card { padding: 32px 24px; }
  .prodotto-num { font-size: 36px; }
  /* CTA sempre visibile su touch (no hover) */
  .prodotto-cta { opacity: 1; transform: none; }

  /* PERCHÉ */
  .section-perche { padding: 56px 20px; }
  .perche-grid { grid-template-columns: 1fr; gap: 36px; }
  .perche-left h2 { font-size: clamp(26px, 7vw, 36px); margin-top: 0; }
  .perche-left p { font-size: 14.5px; }
  .perche-item { padding: 22px 0; gap: 16px; }
  .perche-num { font-size: 24px; }
  .perche-item-title { font-size: 16px; }
  .perche-item-text { font-size: 14px; }

  /* AZIENDA */
  .azienda-visual { min-height: 260px; }
  .azienda-text { padding: 40px 20px; }
  .azienda-text h2 { font-size: clamp(26px, 7vw, 36px); }
  .azienda-body { font-size: 14.5px; }

  /* FAQ */
  .section-faq { padding: 56px 20px; }
  .faq-grid { grid-template-columns: 1fr; gap: 2px; }
  .faq-item { padding: 28px 24px; }

  /* CERTIFICAZIONI */
  .section-cert { padding: 44px 20px; }
  .cert-strip {
    flex-wrap: wrap;
    border: none;
    gap: 2px;
  }
  .cert-item {
    flex: 0 0 calc(50% - 1px);
    border: 1px solid #ddd8d0;
    padding: 18px 8px;
  }

  /* DOCS */
  .section-docs { padding: 48px 20px; }
  .docs-grid { grid-template-columns: 1fr; }

  /* CONTATTI */
  .section-contatti {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 44px 20px;
  }
  .contatti-title { font-size: 32px; }
  .contatti-info { flex-direction: column; gap: 16px; }
  .section-contatti .btn-primary { width: 100%; text-align: center; }

  /* FOOTER */
  footer {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    text-align: center;
  }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 14px; }

  /* BOZZA */
  .bozza-note { padding: 20px; }
}

/* ── SMALL MOBILE (≤ 400px) ── */
@media (max-width: 400px) {
  .logo-img { height: 30px; }
  .logo-main { font-size: 13px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 14px; }

  .stat-number { font-size: 24px; }

  .prodotto-card { padding: 28px 18px; }
  .prodotto-nome { font-size: 20px; }

  .perche-item { grid-template-columns: 36px 1fr; gap: 12px; }

  .cert-item { flex: 0 0 100%; }
  .img-grid { grid-template-columns: repeat(1, 1fr); }
  .contatti-title { font-size: 28px; }
  .contatti-item-value { font-size: 13px; }

  .nav-cta {display: none;}

  footer { padding: 16px; }
  .footer-copy { font-size: 10px; }
}