/* =========================================================
   Pasotti & Partners S.r.l. — stylesheet
   ========================================================= */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/hankengrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/hankengrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #014574;
  --blue-dark: #00305a;
  --orange: #dd5a1a;              /* arancio brand: bordi, sottolineature, focus */
  --orange-text: #bc4a0d;         /* 5.09:1 su bianco, 4.64:1 su sabbia — WCAG AA */
  --orange-light: #ef8b4e;        /* arancio chiaro brand */
  --orange-light-text: #f39e68;   /* 4.70:1 su blu, 6.31:1 su blu scuro — WCAG AA */
  --ink: #1c2b38;
  --text: #4a5866;
  --text-strong: #33424f;
  --muted: #6b7783;   /* 4.57:1 su bianco — WCAG AA */
  --nav: #5c6a77;
  --line: #ebe6df;
  --line-sand: #e2dbd1;
  --sand: #f7f4f0;
  --white: #ffffff;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .18s ease, background-color .18s ease; }
a:hover { color: var(--orange-text); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: var(--white);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--white); }

/* Eyebrow / kicker */
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--orange-text);
  line-height: 1.6;
}
.eyebrow--light { color: var(--orange-light-text); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(1, 69, 116, .07); }

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }

.nav__link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nav);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.nav__link:hover { color: var(--blue); }
.nav__link.is-active { color: var(--blue); border-bottom-color: var(--orange); }

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}
.lang__sep { color: #c3bcb2; }
.lang a, .lang span[aria-current] {
  padding: 0 1px 2px;
  font-weight: 700;
  border-bottom: 1.5px solid transparent;
}
.lang a { color: var(--muted); }
.lang a:hover { color: var(--blue); }
.lang [aria-current] { color: var(--orange-text); border-bottom-color: var(--orange); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: none;
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
  color: var(--blue);
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .nav__link.is-active { border-bottom-color: var(--line); }
  .lang { padding-top: 14px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero__text {
  padding: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px) clamp(40px, 5vw, 64px) 0;
}
.hero__text .eyebrow { margin-bottom: 22px; }

.hero__title {
  margin-bottom: 26px;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--blue);
  text-wrap: balance;
}

.hero__lead {
  margin-bottom: 34px;
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  text-wrap: pretty;
}

.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.btn {
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  display: inline-block;
}
.btn:hover { background: var(--blue-dark); color: var(--white); }

.hero__phone { font-size: 15px; color: #6b7783; display: inline-block; padding-block: 4px; }
.hero__phone:hover { color: var(--orange-text); }

.hero__panel {
  background: var(--blue);
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3.4vw, 46px);
}
.hero__panel-intro {
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.skills { display: flex; flex-direction: column; }
.skills li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.skills__n {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--orange-light-text);
  min-width: 20px;
}
.skills__label {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

@media (max-width: 700px) {
  .hero__text { padding-right: 0; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand); padding-block: clamp(48px, 6vw, 80px); }
.section--blue { background: var(--blue-dark); padding-block: clamp(48px, 6vw, 84px); }

.section__title {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--blue);
  max-width: 26ch;
  text-wrap: balance;
}

/* Azienda */
.about .eyebrow { margin-bottom: 26px; }
.about__title { margin-bottom: clamp(34px, 5vw, 54px); }
.about__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: 940px;
}
.about__cols p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text);
  text-wrap: pretty;
}

/* Mission */
.mission__head {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 44px);
}
.mission__head .eyebrow { flex: 0 0 160px; padding-top: 4px; }
.mission__head h2 {
  flex: 1 1 320px;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue);
  max-width: 30ch;
  text-wrap: balance;
}
.mission__row {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  padding: clamp(24px, 3vw, 32px) 0;
  border-top: 1px solid var(--line-sand);
}
.mission__row:last-child { padding-bottom: 0; }
.mission__row h3 { flex: 0 0 160px; font-size: 17.5px; font-weight: 700; color: var(--blue); }
.mission__row p {
  flex: 1 1 320px;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text);
  max-width: 62ch;
  text-wrap: pretty;
}

/* Partnership */
.partners .eyebrow { margin-bottom: 26px; }
.partners__title {
  margin-bottom: clamp(36px, 5vw, 56px);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
  max-width: 34ch;
  text-wrap: balance;
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(26px, 3.4vw, 44px);
}
.partner { border-top: 2px solid var(--orange); padding-top: 18px; }
.partner h3 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}
.partner p {
  font-size: 15.5px;
  line-height: 1.68;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}

.certs {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
}
.certs__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.certs__item { font-size: 15.5px; font-weight: 700; color: var(--white); }
.certs__note { font-size: 15.5px; color: rgba(255, 255, 255, .78); }

/* Contatti */
.contact .eyebrow { margin-bottom: 24px; }
.contact__mail {
  display: inline-block;
  margin-bottom: clamp(36px, 5vw, 52px);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--blue);
  word-break: break-word;
}
.contact__mail:hover { color: var(--orange-text); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.contact__label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__grid p, .contact__grid a { font-size: 16.5px; color: var(--text-strong); }
.contact__grid a { display: inline-block; padding-block: 3px; }
.contact__grid a:hover { color: var(--orange-text); }
.contact__grid p + p { margin-top: 6px; }
.contact__grid address { font-style: normal; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) 34px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.site-footer__legal { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.site-footer p { font-size: 13.5px; color: var(--muted); }
.site-footer__name { font-weight: 700; color: var(--blue); }
.site-footer__credits { text-align: center; flex: 1 1 240px; }
.site-footer__credits a {
  color: var(--orange-text);
  font-weight: 600;
  display: inline-block;
  padding-block: 4px;
}
.site-footer__credits a:hover { color: var(--orange-text); text-decoration: underline; }

/* =========================================================
   404
   ========================================================= */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(60px, 10vw, 120px);
}
.error-page p.error-page__code {
  font-size: clamp(60px, 12vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--blue);
}
.error-page__title {
  margin: 18px 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--blue);
}
.error-page p { color: var(--text); font-size: 16.5px; max-width: 50ch; margin-bottom: 30px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .skip-link { display: none !important; }
  body { color: #000; }
  .section--blue, .hero__panel { background: #fff !important; }
  .partners__title, .partner h3, .partner p, .skills__label, .certs__item, .certs__note, .hero__panel-intro { color: #000 !important; }
}
