/* ============================================================
   Isengard - stylesheet
   Design: minimal, editoriale, ad alto contrasto.
   Nessun asset esterno: font di sistema, SVG inline, zero richieste
   a terze parti (anche per motivi GDPR).
   ============================================================ */

:root {
  /* superfici */
  --bg:        #ffffff;
  --bg-alt:    #f6f7f8;
  --bg-dark:   #0a0c11;
  --bg-dark-2: #12151c;

  /* testo */
  --ink:       #0b0e13;
  --ink-2:     #333c49;
  --ink-3:     #626e7e;
  --on-dark:   #f4f5f7;
  --on-dark-2: #a7b0bd;

  /* accento: blu profondo, istituzionale */
  --accent:      #14428c;
  --accent-600:  #0f3574;
  --accent-tint: #eaf0f9;

  /* bordi */
  --line:      #e3e6ea;
  --line-dark: #232833;

  /* misure */
  --wrap: 1140px;
  --r:    10px;

  --shadow-sm: 0 1px 2px rgba(11, 14, 19, .05);
  --shadow-md: 0 12px 34px -12px rgba(11, 14, 19, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: 800px; }

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .sec-sub { color: var(--on-dark-2); }
.section-dark .eyebrow { color: var(--on-dark-2); }

.eyebrow {
  margin-bottom: 1.1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(1.85rem, 3.7vw, 2.75rem); }
.sec-sub {
  margin-top: 1.15rem;
  font-size: 1.07rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 30px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px); }

/* bottoni */

.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .96rem;
  font-weight: 550;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--btn-bg); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: #cfd5dd; }

.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* hero: bottoni su fondo scuro */
.hero .btn-ghost {
  color: var(--on-dark);
  border-color: #2b323f;
}
.hero .btn-ghost:hover { background: #171b23; color: #fff; border-color: #3a4351; }
.hero .btn-primary { background: #fff; color: var(--bg-dark); }
.hero .btn-primary:hover { background: #dfe3e9; color: var(--bg-dark); }

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 17, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .88);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  transition: color .25s var(--ease);
}
.brand:hover { color: var(--on-dark); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.site-header.is-stuck .brand,
.site-header.is-stuck .nav > a { color: var(--ink); }
.site-header.is-stuck .nav > a:hover { color: var(--accent); }
.site-header.is-stuck .nav > a.btn-primary { color: #fff; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a {
  color: var(--on-dark-2);
  font-size: .95rem;
  font-weight: 480;
  transition: color .18s var(--ease);
}
.nav > a:hover { color: #fff; }
.nav > a.btn-primary { color: #fff; }

.site-header.is-stuck .nav > a.btn-primary { background: var(--accent); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #2b323f;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.site-header.is-stuck .nav-toggle { border-color: var(--line); }
.site-header.is-stuck .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* hero */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: clamp(80px, 11vw, 148px) 0 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(48% 52% at 22% 32%, rgba(31, 84, 168, .30), transparent 70%),
    radial-gradient(38% 48% at 78% 12%, rgba(74, 106, 160, .16), transparent 72%);
  pointer-events: none;
}
.hero::after {
  /* griglia tecnica appena percepibile: rigore, non "matrix" */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
  pointer-events: none;
}

.hero-inner { max-width: 900px; }
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.05rem);
  letter-spacing: -.034em;
  line-height: 1.06;
}
.hero h1 .dim { color: #7e8899; }

.lede {
  margin-top: 1.6rem;
  max-width: 63ch;
  font-size: clamp(1.05rem, 1.5vw, 1.19rem);
  color: #b8c0cc;
}
.lede strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }
.hero-note { margin-top: 1.35rem; font-size: .89rem; color: #79838f; }

.trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: clamp(56px, 7vw, 92px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.trustbar li {
  padding: 26px 26px 30px 0;
  border-right: 1px solid var(--line-dark);
}
.trustbar li:first-child { padding-left: 0; }
.trustbar li:last-child { border-right: 0; }
.trustbar li:not(:first-child) { padding-left: 26px; }
.tb-k {
  display: block;
  font-size: .94rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}
.tb-v {
  display: block;
  margin-top: .3rem;
  font-size: .86rem;
  color: #79838f;
  line-height: 1.45;
}

/* card "problema" */

.card {
  padding: 30px 28px 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-num {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.card p { color: var(--ink-2); font-size: .97rem; }

/* servizi */

.svc-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.svc {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  transition: background-color .2s var(--ease);
}
.svc:hover { background: #fcfdfd; }
.svc h3 {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.22rem;
  margin-bottom: .95rem;
}
.svc-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 8px;
  background: var(--accent-tint);
  color: var(--accent);
}
.svc-i svg { width: 21px; height: 21px; }
.svc p { color: var(--ink-2); font-size: .98rem; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-3);
  padding: .28rem .6rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-alt);
  letter-spacing: -.002em;
}

.svc-more {
  margin-top: 1.9rem;
  font-size: .96rem;
  color: var(--ink-3);
}
.svc-more strong { color: var(--ink-2); font-weight: 550; }

/* metodo (steps) */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 5vw, 72px);
  counter-reset: s;
}
.steps li {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.steps li:nth-child(1), .steps li:nth-child(2) { border-top: 0; padding-top: 0; }
.st-n {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg);
}
.steps h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-2); font-size: .96rem; }

/* deliverable */

.del-grid { gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; }
.del { background: var(--bg-dark-2); padding: clamp(26px, 2.6vw, 34px); }
/* Con 5 riquadri l'ultimo occupa la colonna rimasta libera:
   evita la cella vuota in fondo alla griglia. */
.del:last-child { grid-column: span 2; }
.del h3 { font-size: 1.06rem; margin-bottom: .6rem; }
.del p { color: var(--on-dark-2); font-size: .94rem; }

/* compliance */

.comp-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.comp-text .btn { margin-top: 1.9rem; }
.comp-list { list-style: none; margin: 0; padding: 0; }
.comp-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.comp-list li:first-child { border-top: 0; padding-top: 0; }
.comp-list strong { font-weight: 600; font-size: .99rem; letter-spacing: -.012em; }
.comp-list span { color: var(--ink-2); font-size: .93rem; line-height: 1.55; }

/* team */

.team-grid { align-items: start; }
.person {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(28px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
}
.p-top { display: flex; align-items: center; gap: 16px; margin-bottom: 1.3rem; }
.avatar {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.person h3 { font-size: 1.24rem; }
.p-role {
  margin-top: .22rem;
  font-size: .87rem;
  font-weight: 550;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.person > p { color: var(--ink-2); font-size: .97rem; }

.p-focus { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.p-focus li {
  position: relative;
  padding-left: 20px;
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: .45rem;
}
.p-focus li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
  transform-origin: center;
}

.p-certs { display: flex; gap: 8px; margin-top: 1.4rem; flex-wrap: wrap; }
.cert {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .06em;
  padding: .35rem .7rem;
  border-radius: 5px;
  background: var(--bg-dark);
  color: #fff;
}
.p-links { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.p-links a { font-size: .92rem; }

.certs-legend {
  margin-top: clamp(28px, 3vw, 40px);
  padding: 22px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
}
.certs-legend p { font-size: .93rem; color: var(--ink-2); }
.certs-legend strong { color: var(--ink); }

/* FAQ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 550;
  letter-spacing: -.016em;
  list-style: none;
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: .45em;
  border-right: 1.7px solid var(--ink-3);
  border-bottom: 1.7px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 0 24px; max-width: 68ch; }
.faq-body p { color: var(--ink-2); font-size: .98rem; }

/* contatti */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.contact-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

.contact-list { list-style: none; margin: 2.4rem 0 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line-dark);
  align-items: baseline;
}
.cl-k {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #79838f;
}
.contact-list a { color: #fff; border-bottom: 1px solid #39414e; }
.contact-list a:hover { color: #fff; border-bottom-color: #7d879a; }
.contact-list span:not(.cl-k) { color: var(--on-dark-2); font-size: .96rem; }

.contact-micro { margin-top: 1.9rem; font-size: .89rem; color: #79838f; max-width: 52ch; }

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: clamp(26px, 3vw, 36px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
}
.f-row { margin-bottom: 16px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label {
  display: block;
  margin-bottom: .4rem;
  font-size: .86rem;
  font-weight: 550;
  color: var(--ink-2);
}
.req { color: var(--accent); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .72rem .85rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8dde4;
  border-radius: 7px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 66, 140, .13);
}
.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #b4232a; }

.f-check { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 22px; }
.f-check input { width: 17px; height: 17px; margin: .2rem 0 0; flex: none; accent-color: var(--accent); }
.f-check label { margin: 0; font-size: .87rem; line-height: 1.5; color: var(--ink-3); }
.f-check.is-invalid label { color: #b4232a; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f-note { margin-top: 1rem; font-size: .82rem; color: var(--ink-3); text-align: center; }
.f-status { margin-top: .9rem; font-size: .9rem; font-weight: 550; text-align: center; }
.f-status.is-ok { color: #1a6b45; }
.f-status.is-err { color: #b4232a; }

/* pagine legali (privacy.html) */

.legal { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.24rem; margin: 2.6rem 0 .8rem; }
.legal h3 { font-size: 1.02rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); font-size: .99rem; }
.legal p + p { margin-top: .9rem; }
.legal ul { padding-left: 1.2rem; margin: .8rem 0; }
.legal li { margin-bottom: .45rem; }
.legal .updated { font-size: .88rem; color: var(--ink-3); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .93rem; }
.legal th, .legal td {
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal th { font-weight: 600; color: var(--ink); background: var(--bg-alt); }
.legal td { color: var(--ink-2); }
.back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 2rem; font-size: .92rem; }
.placeholder {
  background: #fff6e5;
  border-left: 3px solid #c98a12;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 1.6rem 0;
  font-size: .92rem;
  color: #6b4c07;
}

/* le tabelle larghe scorrono da sole invece di allargare la pagina */
.legal .table-scroll { overflow-x: auto; margin: 1rem 0; }
.legal .table-scroll table { margin: 0; min-width: 560px; }

/* footer */

.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark-2);
  border-top: 1px solid var(--line-dark);
  padding: clamp(56px, 6vw, 76px) 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.f-brand .brand { margin-bottom: 1rem; }
.f-brand p { font-size: .92rem; color: #79838f; max-width: 34ch; }
.f-col { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.f-col h4 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .35rem;
}
.f-col a { color: var(--on-dark-2); font-size: .92rem; }
.f-col a:hover { color: #fff; }

.footer-legal {
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 26px;
  font-size: .82rem;
  color: #6c7684;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.legal-links a { color: #6c7684; border-bottom: 1px solid #2b323f; }
.legal-links a:hover { color: #fff; }
.no-track { color: #565f6b; }

/* reveal on scroll */

/* Il contenuto è nascosto solo quando il JS è attivo (classe .js sull'html):
   senza JavaScript la pagina resta interamente leggibile. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* responsive */

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .comp-inner, .contact-inner { grid-template-columns: 1fr; }
  .comp-list li { grid-template-columns: 165px 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .trustbar { grid-template-columns: 1fr 1fr; }
  .trustbar li,
  .trustbar li:not(:first-child) {
    border-right: 0;
    padding: 22px 26px 22px 0;
    border-top: 1px solid var(--line-dark);
  }
  .trustbar li:nth-child(1), .trustbar li:nth-child(2) { border-top: 0; }
  .trustbar li:nth-child(2n),
  .trustbar li:nth-child(2n):not(:first-child) {
    padding-left: 26px;
    padding-right: 0;
    border-left: 1px solid var(--line-dark);
  }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a {
    padding: 13px 0;
    color: var(--on-dark);
    border-bottom: 1px solid var(--line-dark);
    font-size: 1rem;
  }
  .nav > a.btn-primary {
    margin-top: 16px;
    border-bottom: 0;
    justify-content: center;
    background: #fff;
    color: var(--bg-dark);
  }
  .site-header.is-stuck .nav > a { color: var(--on-dark); }
  .site-header.is-stuck .nav > a.btn-primary { background: #fff; color: var(--bg-dark); }
  .nav-toggle { display: inline-flex; }

  .grid-2, .grid-3, .steps, .f-grid { grid-template-columns: 1fr; }
  .del:last-child { grid-column: auto; }
  .steps li { padding: 24px 0; border-top: 1px solid var(--line); }
  .steps li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 24px; }
  .steps li:nth-child(1) { border-top: 0; padding-top: 0; }

  .comp-list li, .contact-list li { grid-template-columns: 1fr; gap: 6px; }
  .cl-k { margin-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .trustbar { grid-template-columns: 1fr; }
  .trustbar li,
  .trustbar li:nth-child(2n) {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }
  .trustbar li:nth-child(1) { border-top: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* accessibilità / stampa */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-glow, .contact-form { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .section-dark, .hero, .site-footer { background: #fff !important; color: #000 !important; }
  .section-dark h2, .section-dark h3, .hero h1, .del h3 { color: #000 !important; }
  .sec-sub, .lede, .del p, .f-brand p { color: #333 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
