/* INTECH Ingegneri Associati - foglio di stile (responsive, nessun font esterno) */

:root {
  --ink: #1f2326;
  --ink-2: #3c4247;
  --muted: #5d656b;
  --line: #d9dcdf;
  --bg: #ffffff;
  --bg-alt: #f2f3f4;
  --grey: #a6a6a6;          /* grigio del logo */
  --accent: #8a7645;        /* oro del vecchio sito, scurito per il contrasto */
  --accent-2: #b39a5c;
  --radius: 6px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -.01em; }
h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-top: .45em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Barra superiore ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { width: 140px; height: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px;
  text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
  font-size: .8rem; font-weight: 600; color: var(--ink);
  border-radius: var(--radius);
}
.nav a:hover { background: var(--bg-alt); color: var(--accent); }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: "";
}
.menu-btn__bars::before { position: absolute; top: -6px; }
.menu-btn__bars::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero__strip img { width: 100%; height: clamp(90px, 14vw, 181px); object-fit: cover; }
.hero__text {
  color: #fff;
  background:
    linear-gradient(rgba(25,28,31,.88), rgba(25,28,31,.92)),
    url("../img/sfondo-progetto.jpg") center / cover;
  padding: clamp(40px, 6vw, 72px) 0;
}
.hero__text h1 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem); max-width: 22ch; margin-bottom: .4em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent-2); font-weight: 700; margin-bottom: .8em; }
.hero__lead { color: #d3d6d9; font-size: 1.05rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1.3;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #6f5f37; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #d3d6d9; }
.section--dark h2 { color: #fff; }
.quote { font-size: 1.2rem; line-height: 1.55; color: #fff; border-left: 3px solid var(--accent-2); padding-left: 20px; margin-top: 1.4em; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.two-col--contact { grid-template-columns: 1fr 1.1fr; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--grey); }
.facts__n { display: block; font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.facts__l { font-size: .88rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.card p { font-size: .95rem; margin: 0; }
.card__ico { width: 36px; height: 36px; margin-bottom: 14px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contatti ---------- */
.contact { font-style: normal; }
.contact__list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact__list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; }
.contact__list span { min-width: 80px; color: var(--muted); font-size: .9rem; }
.contact__list a { font-weight: 600; text-decoration: none; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__ph {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; gap: 4px;
  background:
    linear-gradient(rgba(242,243,244,.9), rgba(242,243,244,.9)),
    repeating-linear-gradient(0deg, transparent 0 39px, #c9cdd1 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #c9cdd1 39px 40px);
}
.map__note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.map__ext { font-size: .9rem; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #15181a; color: #aab0b5; padding: 40px 0 28px; font-size: .88rem; }
.footer a { color: #d9c48f; }
.footer__name { color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer__legal { margin-top: 1.4em; padding-top: 1.2em; border-top: 1px solid #2c3135; font-size: .8rem; }

/* ---------- Pagine di testo (informativa) ---------- */
.doc { padding: clamp(36px, 6vw, 72px) 0; }
.doc h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.doc h2 { font-size: 1.25rem; margin-top: 1.6em; }
.doc h2::after { display: none; }
.doc table { border-collapse: collapse; width: 100%; font-size: .92rem; margin-bottom: 1em; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-alt); }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Smartphone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 12px 14px; }
  .nav a { padding: 14px 10px; border-bottom: 1px solid var(--bg-alt); font-size: .9rem; }
  .brand img { width: 120px; }
  .topbar__in { min-height: 66px; }

  .two-col, .two-col--contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .facts__n { font-size: 1.6rem; }
  .hero__strip picture:last-child { display: none; }
  .hero__strip img { height: 120px; }
  .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .topbar, .map, .hero__strip, .hero__cta { display: none; } }
