  @font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/raleway-latin.woff2') format('woff2');
  }

  :root {
    --green: #08984C;
    --green-light: rgba(8,152,76,0.08);
    --gray-mid: #6b6b6b;
    --gray-light: #a0a0a0;
    --bg: #ffffff;
    --bg-off: #f7f8f6;
    --border: #e8e8e8;
    --text: #404040;
    --text-sub: #5a5a5a;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Raleway', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
  }

  ::-webkit-scrollbar { width: 3px; }
  ::-webkit-scrollbar-thumb { background: var(--green); }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 68px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .logo {
    font-family: 'Raleway', sans-serif; font-size: 1.05rem; font-weight: 600;
    color: var(--text); text-decoration: none; letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 8px;
    transition: transform 0.2s;
  }
  .logo:hover { transform: scale(1.05); }
  .logo img {
    height: 36px; width: auto; display: block;
    filter: drop-shadow(0 1px 3px rgba(8,152,76,0.2));
  }

  .nav-links { margin-left: auto; display: flex; align-items: center; gap: 2.5rem; list-style: none; }
  .nav-links a { font-size: 0.88rem; color: var(--text-sub); text-decoration: none; transition: color 0.2s; }
  .nav-links a:hover { color: var(--text); }

  .nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.25rem;
  }

  .nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-cta {
    font-size: 0.85rem !important; font-weight: 500 !important;
    color: var(--green) !important; border: 1px solid var(--green) !important;
    padding: 7px 18px; border-radius: 4px; transition: background 0.2s, color 0.2s !important;
  }
  .nav-cta:hover { background: var(--green) !important; color: #fff !important; }

  .lang-selector {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 500;
  }
  .lang-selector a {
    color: var(--text-sub); text-decoration: none;
    transition: color 0.2s;
  }
  .lang-selector a:hover { color: var(--text); }
  .lang-selector .lang-active { color: var(--green); font-weight: 600; }
  .lang-selector .lang-sep { color: var(--border); }
  .nav-lang { white-space: nowrap; }
  .lang-dropdown {
    font-family: 'Raleway', sans-serif;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-sub);
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    padding: 0.28rem 1.35rem 0.28rem 0.45rem;
    line-height: 1.1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--gray-light) 50%),
      linear-gradient(135deg, var(--gray-light) 50%, transparent 50%);
    background-position:
      calc(100% - 10px) calc(50% - 1px),
      calc(100% - 6px) calc(50% - 1px);
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
  }
  .lang-dropdown:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(8,152,76,0.12);
  }

  /* ── HERO ── */
  #hero { padding: 160px 5vw 100px; max-width: 1100px; margin: 0 auto; }
  .hero-content { max-width: 820px; margin: 0 auto; text-align: center; }

  .hero-logo {
    margin: 0 auto 3.7rem;
    width: min(100%, 460px);
  }

  .hero-logo img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }


  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 500; color: var(--green);
    background: var(--green-light); padding: 5px 12px; border-radius: 20px; margin-bottom: 2.5rem;
  }
  .hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

  .hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.0rem, 4.0vw, 4.0rem);
    font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
    color: var(--text); margin: 0 auto 1.8rem; max-width: 760px;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-title .accent { color: var(--green); }
  .message-container { position: relative; width: 100%; overflow: hidden; padding: 6px 0; }
  .rotating-message {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  }
  .rotating-message.active {
    opacity: 1;
    position: relative;
    transform: translateY(0);
  }
  .rotating-message.exiting {
    opacity: 0;
    transform: translateY(-20px);
  }

  .hero-sub {
    font-size: 1.1rem; font-weight: 300; color: var(--text-sub);
    line-height: 1.75; max-width: 520px; margin: 0 auto 3rem;
  }

  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center; }

  .btn {
    font-family: 'Raleway', sans-serif; font-size: 0.88rem; font-weight: 500;
    text-decoration: none; padding: 12px 26px; border-radius: 6px;
    transition: all 0.2s; border: 1px solid transparent; cursor: pointer;
    display: inline-block;
  }
  .btn-fill { background: var(--green); color: #fff; }
  .btn-fill:hover { background: #078743; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(8,152,76,0.25); }
  .btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
  .btn-outline:hover { border-color: var(--text-sub); }

  .hero-strip {
    margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
  }
  .strip-label { font-size: 0.75rem; color: var(--gray-light); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
  .strip-chips { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; }
  .strip-chip { font-family: 'Raleway', sans-serif; font-size: 0.82rem; font-weight: 600; color: #d0d0d0; letter-spacing: 0.08em; text-transform: uppercase; }

  /* ── SHARED ── */
  .section { padding: 100px 5vw; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .eyebrow { font-size: 0.72rem; font-weight: 600; color: var(--green); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
  .section-title { font-family: 'Raleway', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.025em; color: var(--text); line-height: 1.15; margin-bottom: 1.2rem; }
  .section-sub { font-size: 1rem; font-weight: 300; color: var(--text-sub); line-height: 1.75; max-width: 500px; }

  /* ── CHI SIAMO ── */
  #chi-siamo { background: var(--bg-off); }

  .about-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; margin-top: 4rem; }

  .about-text p { font-size: 0.97rem; line-height: 1.85; color: var(--text-sub); margin-bottom: 1.2rem; }
  .about-text p:last-child { margin-bottom: 0; }
  .about-text strong { color: var(--text); font-weight: 500; }

  .founders { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

  .founder-card {
    background: var(--bg); padding: 1.8rem 2rem;
    display: flex; gap: 1.4rem; align-items: flex-start;
    transition: background 0.2s;
  }
  .founder-card:hover { background: #f2faf6; }

  .founder-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--green-light); border: 1.5px solid rgba(8,152,76,0.25);
    display: grid; place-items: center; flex-shrink: 0;
    font-family: 'Raleway', sans-serif; font-size: 0.7rem; font-weight: 700;
    color: var(--green); letter-spacing: 0.04em;
  }

  .founder-info { display: flex; flex-direction: column; gap: 0.45rem; }

  .founder-role {
    font-family: 'Raleway', sans-serif; font-size: 0.95rem; font-weight: 600;
    color: var(--text); letter-spacing: -0.01em;
  }

  .founder-badge {
    display: inline-flex; width: fit-content;
    font-size: 0.68rem; font-weight: 600; color: var(--green);
    background: var(--green-light); padding: 2px 9px; border-radius: 20px;
    letter-spacing: 0.03em;
  }

  .founder-bio { font-size: 0.84rem; line-height: 1.7; color: var(--text-sub); }

  /* ── SERVIZI ── */
  #servizi { background: var(--bg); }

  .services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; gap: 2rem; flex-wrap: wrap; }

  .services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  }
  .service-card { background: var(--bg); padding: 2.2rem 2rem; transition: background 0.2s; }
  .service-card:hover { background: var(--bg-off); }

  .service-icon {
    width: 40px; height: 40px; border-radius: 8px; background: var(--green-light);
    display: grid; place-items: center; margin-bottom: 1.5rem;
  }
  .service-icon svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .service-name { font-family: 'Raleway', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.7rem; letter-spacing: -0.01em; }
  .service-desc { font-size: 0.87rem; line-height: 1.7; color: var(--text-sub); }

  /* ── TECNOLOGIE ── */
  #tecnologie { background: var(--bg-off); }

  .tech-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: center; margin-top: 4rem; }

  .tech-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
  .tech-item { background: var(--bg); padding: 1.3rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: background 0.15s; }
  .tech-item:hover { background: #f0f9f4; }
  .tech-item-left { display: flex; flex-direction: column; gap: 2px; }
  .tech-name { font-family: 'Raleway', sans-serif; font-size: 0.93rem; font-weight: 500; color: var(--text); }
  .tech-cat { font-size: 0.75rem; color: var(--gray-light); }

  /* ── CERTIFICAZIONI ── */
  #certificazioni { background: var(--bg); }
  .cert-grid {
    display: flex; justify-content: center; align-items: center; gap: 3rem;
    flex-wrap: wrap; margin-top: 3.5rem;
  }
  .cert-badge-img {
    width: 120px; height: auto;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(10%);
  }
  .cert-badge-img:hover {
    transform: scale(1.08);
    filter: grayscale(0%);
  }

  .tech-features { display: flex; flex-direction: column; gap: 1rem; }
  .tech-feature { padding: 1.4rem 1.6rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; display: flex; gap: 1rem; align-items: flex-start; }
  .feature-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--green-light); display: grid; place-items: center; flex-shrink: 0; }
  .feature-icon svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; }
  .feature-title { font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 0.25rem; }
  .feature-sub { font-size: 0.8rem; color: var(--text-sub); line-height: 1.5; }

  /* ── CONTATTI ── */
  #contatti { background: var(--bg); }

  .contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6rem; align-items: start; margin-top: 4rem; }
  .contact-intro { font-size: 0.95rem; color: var(--text-sub); line-height: 1.75; margin-bottom: 2.5rem; }
  .contact-info-list { display: flex; flex-direction: column; gap: 1.2rem; }
  .contact-item { display: flex; flex-direction: column; gap: 3px; }
  .contact-lbl { font-size: 0.72rem; font-weight: 600; color: var(--gray-light); text-transform: uppercase; letter-spacing: 0.08em; }
  .contact-val { font-size: 0.95rem; color: var(--text); }
  .contact-val a { color: var(--green); text-decoration: none; }
  .contact-val a:hover { text-decoration: underline; }

  .form { display: flex; flex-direction: column; gap: 1rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
  .form-label { font-size: 0.78rem; font-weight: 500; color: var(--gray-mid); }
  .form-input, .form-textarea {
    font-family: 'Raleway', sans-serif; font-size: 0.9rem;
    background: var(--bg-off); border: 1px solid var(--border); border-radius: 6px;
    padding: 11px 14px; color: var(--text); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
  }
  .form-input:focus, .form-textarea:focus {
    border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,152,76,0.1); background: var(--bg);
  }
  .form-textarea { min-height: 120px; }

  /* ── FOOTER ── */
  footer {
    background: var(--bg-off); border-top: 1px solid var(--border);
    padding: 2.5rem 5vw; display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; gap: 1rem;
  }
  footer .footer-note { justify-self: end; }
  .footer-note { font-size: 0.78rem; color: var(--gray-light); }
  .footer-social { display: flex; align-items: center; justify-self: start; }
  .footer-social-link {
    display: inline-flex;
    align-items: center;
    color: var(--green);
    text-decoration: none;
  }
  .footer-social-link svg { width: 16px; height: 16px; display: block; fill: currentColor; }
  .footer-social-link:hover { color: var(--text); }

  /* ── REVEAL ── */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: none; }
  .d1 { transition-delay: 0.1s; }
  .d2 { transition-delay: 0.2s; }
  .d3 { transition-delay: 0.3s; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .nav-controls { margin-left: auto; gap: 0.8rem; }
    .nav-lang { font-size: 0.74rem; }
    .lang-dropdown { font-size: 0.7rem; padding: 0.24rem 1.2rem 0.24rem 0.4rem; }
    .nav-links {
      display: none;
      position: absolute;
      top: 68px;
      left: 0;
      right: 0;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 0;
      box-shadow: 0 14px 35px rgba(0,0,0,0.08);
      flex-direction: column;
      align-items: stretch;
      margin-left: 0;
      gap: 0;
      padding: 0.5rem;
    }
    .nav-links a {
      display: block;
      font-size: 0.95rem;
      padding: 0.85rem 0.75rem;
    }
    .nav-links .nav-cta {
      text-align: center;
      margin-top: 0.3rem;
    }
    nav.nav-open .nav-links { display: flex; }
    nav.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    nav.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
    nav.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    #hero { padding: 120px 5vw 80px; }
    .about-layout, .tech-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    footer { grid-template-columns: 1fr 1fr; text-align: left; }
    .footer-social { justify-self: start; }
    footer .footer-note { justify-self: end; text-align: right; }
  }
  @media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .cert-grid { gap: 1.5rem; }
    .cert-badge-img { width: 90px; }
    .form-row { grid-template-columns: 1fr; }
  }
