/* ===========================================================
   FONT IN LOCALE (cartella fonts/) – nessuna richiesta a Google
   =========================================================== */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Barlow-Regular.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Barlow-Medium.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Barlow-SemiBold.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/BarlowCondensed-SemiBold.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/BarlowCondensed-ExtraBold.woff") format("woff"); }

/* ===========================================================
   COLORI E FONT — modifica qui per cambiare l'aspetto
   =========================================================== */
:root {
  --bg:        #14161a;   /* sfondo scuro */
  --bg-2:      #1c1f25;   /* sfondo sezioni/campi */
  --text:      #f2f0eb;
  --muted:     #9a9ea6;
  --accent:    #ff8a00;   /* arancio cantiere */
  --line:      #2c3038;

  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:  "Barlow", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===========================================================
   MENU IN ALTO (3 tendine + pulsante preventivo)
   Per cambiare voci: modifica i <li> nel <nav> di index.html
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(.75rem, 3vw, 2rem);
  height: 3.6rem;
  background: rgba(20, 22, 26, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  animation: fade-down .7s ease 1.6s both;   /* compare dopo l'unione del nome */
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__list { list-style: none; display: flex; gap: .25rem; height: 100%; }
.nav__item { position: relative; display: flex; align-items: center; }

.nav__btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 100%;
  padding: 0 .9rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s;
}
.nav__btn::after {
  content: "";
  width: .45rem; height: .45rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.nav__btn:hover,
.nav__btn[aria-expanded="true"] { color: var(--accent); }
.nav__btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }

.nav__panel {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: .4rem 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.nav__btn[aria-expanded="true"] + .nav__panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .18s, transform .18s;
}
.nav__panel a {
  display: block;
  padding: .65rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.nav__panel a:hover,
.nav__panel a:focus-visible {
  background: var(--bg);
  border-left-color: var(--accent);
  color: var(--accent);
}

.nav__cta {
  padding: .5rem 1rem;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s;
}
.nav__cta:hover { background: #ffa033; }

.nav__btn:focus-visible,
.nav__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 640px) {
  .nav__cta { display: none; }
  .nav__btn { padding: 0 .55rem; font-size: 1rem; letter-spacing: .04em; }
  /* su telefono le tendine occupano tutta la larghezza */
  .nav__item { position: static; }
  .nav__panel { left: 0; right: 0; min-width: 0; }
}

/* ===========================================================
   INGRESSO ANIMATO
   Sequenza: metà sinistra + metà destra si uniscono (0–1.4s)
   → linea arancione (1.4s) → slogan (1.9s) → invito allo scroll (2.6s)
   =========================================================== */
.intro {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
  text-align: center;
}

/* griglia "progetto tecnico" sullo sfondo */
.intro__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .45;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000 10%, transparent 70%);
  animation: fade-in 1.5s ease both;
}

/* --- il nome, diviso in due parti: RIST + ART --- */
.logo {
  position: relative;
  display: flex;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(3.2rem, 14vw, 10rem);
  letter-spacing: .04em;
  line-height: 1;
}

.logo__half {
  display: block;
  white-space: nowrap;
}

/* "RIST": bianco, arriva da sinistra */
.logo__half--left {
  animation: from-left 1.4s cubic-bezier(.77, 0, .18, 1) both;
}

/* "ART": arancione, arriva da destra */
.logo__half--right {
  color: var(--accent);
  animation: from-right 1.4s cubic-bezier(.77, 0, .18, 1) both;
}

@keyframes from-left {
  from { transform: translateX(-100vw); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}
@keyframes from-right {
  from { transform: translateX(100vw); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.intro__line {
  width: min(70vw, 520px);
  height: 3px;
  margin: 1.6rem 0 1.2rem;
  background: var(--accent);
  transform-origin: center;
  animation: draw-line .8s cubic-bezier(.77, 0, .18, 1) 1.4s both;
}
@keyframes draw-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.intro__tagline {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise .8s ease 1.9s both;
}

.intro__scroll {
  position: absolute;
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: rise .8s ease 2.6s both;
}
.intro__scroll i {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out 3.4s infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: .45; } }
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%      { transform: translateY(8px) rotate(45deg); }
}

/* ===========================================================
   SEZIONE PREVENTIVO
   =========================================================== */
.quote {
  background: var(--bg-2);
  border-top: 3px solid var(--accent);
  padding: clamp(3rem, 8vw, 7rem) 1.25rem;
}

.quote__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.eyebrow {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.quote h2 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.quote__text p { color: var(--muted); max-width: 40ch; }

.quote__points { list-style: none; margin-top: 1.8rem; }
.quote__points li {
  padding-left: 1.8rem;
  margin-bottom: .6rem;
  position: relative;
  font-weight: 500;
}
.quote__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .8rem; height: .8rem;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* --- modulo --- */
.form {
  display: grid;
  gap: 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form label {
  display: grid;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input:not([type="checkbox"]),
.form select,
.form textarea {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .85rem 1rem;
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, .2);
}

.form .check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .8rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: .9rem;
}
.check input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin-top: .2rem; }

.btn {
  background: var(--accent);
  color: #111;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #ffa033; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* --- footer --- */
.footer {
  padding: 1.6rem 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 820px) {
  .quote__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
}

/* chi preferisce meno animazioni vede tutto subito */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
/* ===========================================================
   PRIMA E DOPO (Progetti > Prima e dopo)
   Le foto stanno in images/pd-N-prima.jpg e pd-N-dopo.jpg
   =========================================================== */
.ba-section { background: var(--bg); padding: clamp(3rem, 8vw, 7rem) 1.25rem; }
.ba-section__inner { max-width: 1100px; margin: 0 auto; }
.ba-section h2 {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin-bottom: .8rem;
}
.ba-section__lead { color: var(--muted); max-width: 50ch; margin-bottom: 2.2rem; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; }

.ba { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--accent); pointer-events: none; }
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
  background-image: linear-gradient(#111,#111), linear-gradient(#111,#111);
  background-size: 2px 40%, 40% 2px; background-repeat: no-repeat; background-position: center;
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.ba__tag {
  position: absolute; top: .8rem; padding: .2rem .6rem; background: rgba(20,22,26,.8); color: var(--text);
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none;
}
.ba__tag--l { left: .8rem; }
.ba__tag--r { right: .8rem; }
.ba figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; pointer-events: none;
  background: linear-gradient(transparent, rgba(20,22,26,.9));
  font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; letter-spacing: .04em;
}

/* --- pagina Prima e dopo --- */
.nav--static { animation: none; }
.nav__back {
  color: var(--text); text-decoration: none; font-family: var(--font-title);
  font-weight: 600; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase;
}
.nav__back:hover { color: var(--accent); }
.ba-section--page { padding-top: calc(3.6rem + clamp(2rem, 5vw, 4rem)); min-height: 100vh; }
.ba-section h1 {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin-bottom: .8rem;
}
@media (max-width: 640px) { .nav--static .nav__cta { display: block; } }

/* ===========================================================
   PAGINA "LA NOSTRA STORIA" – effetti allo scorrimento
   =========================================================== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0));
}

/* Comparsa dal basso: attiva solo se JavaScript è disponibile */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.story-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  min-height: 80vh; min-height: 80svh; padding: calc(3.6rem + 2rem) 1.25rem 4rem; text-align: center;
}
.story-hero .intro__grid { will-change: transform; }
.story-hero__inner { position: relative; max-width: 820px; }
.story-hero h1 {
  font-family: var(--font-title); font-weight: 800; line-height: 1;
  font-size: clamp(3rem, 11vw, 7rem); margin-bottom: 1.2rem;
}
.story-hero__lead { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 34ch; margin: 0 auto; }
.story-hero .intro__scroll { animation: rise .8s ease 1s both; }
.story-hero .intro__scroll i { animation-delay: 1.8s; }

.story { background: var(--bg-2); border-top: 3px solid var(--accent); padding: clamp(3rem, 8vw, 7rem) 1.25rem; }
.story__inner { max-width: 860px; margin: 0 auto; }

.timeline { list-style: none; position: relative; padding-left: clamp(2rem, 6vw, 3.4rem); }
.timeline__line { position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 3px; background: var(--line); }
.timeline__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--f, 0)); }
.tl-item { position: relative; padding-bottom: clamp(2.5rem, 7vw, 4.5rem); }
.tl-item:last-of-type { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * clamp(2rem, 6vw, 3.4rem) - 5px); top: .55rem;
  width: 13px; height: 13px; background: var(--accent); transform: rotate(45deg);
}
.tl-item h2 {
  font-family: var(--font-title); font-weight: 800; line-height: 1.1;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: .7rem;
}
.tl-item p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: clamp(3rem, 8vw, 5rem); }
.stat { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 1.6rem; }
.stat strong {
  display: block; font-family: var(--font-title); font-weight: 800; line-height: 1;
  font-size: clamp(3.2rem, 9vw, 5rem); color: var(--accent); margin-bottom: .5rem;
}
.stat span { color: var(--muted); }

.story-cta { padding: clamp(3rem, 8vw, 6rem) 1.25rem; text-align: center; }
.story-cta h2 { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; margin-bottom: .8rem; }
.story-cta p { color: var(--muted); margin-bottom: 1.8rem; }
.btn--link { display: inline-block; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- pagina "Il team" --- */
.story__inner--wide { max-width: 1100px; }
.section-title { font-family: var(--font-title); font-weight: 800; line-height: 1.05; font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 2rem; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.skill { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 1.6rem; transition: transform .25s, border-color .25s; }
.skill:hover { transform: translateY(-4px); border-color: var(--accent); }
.skill__n { display: block; font-family: var(--font-title); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--accent); margin-bottom: .7rem; }
.skill h3 { font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; line-height: 1.1; margin-bottom: .5rem; }
.skill p { color: var(--muted); }
.method { padding: clamp(3rem, 8vw, 6rem) 1.25rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.5rem; counter-reset: s; }
.step { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1.1rem; }
.step__n { font-family: var(--font-title); font-weight: 800; font-size: 1rem; letter-spacing: .15em; color: var(--accent); }
.step h3 { font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; line-height: 1.1; margin: .2rem 0 .4rem; }
.step p { color: var(--muted); }

/* --- pagine legali --- */
.legal { padding: calc(3.6rem + clamp(2rem, 5vw, 4rem)) 1.25rem clamp(3rem, 8vw, 6rem); min-height: 80vh; }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal h1 { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin-bottom: 1rem; }
.legal h2 { font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; margin: 2rem 0 .5rem; color: var(--accent); }
.legal p { color: var(--muted); margin-bottom: .8rem; }
.legal__lead { font-size: 1.05rem; margin-bottom: 1.8rem; }
.legal__table { overflow-x: auto; border: 1px solid var(--line); background: var(--bg-2); }
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { width: 38%; font-weight: 600; color: var(--text); }
.legal td { color: var(--muted); }
.legal tr:last-child th, .legal tr:last-child td { border-bottom: none; }
.legal__note { margin-top: 1.2rem; font-size: .9rem; }
mark.todo { background: rgba(255,138,0,.18); color: var(--accent); padding: 0 .25rem; }
.footer__links { margin-top: .4rem; }
.footer__links a, .check a { color: var(--accent); }

/* --- pagina Servizi --- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }
.chips a { padding: .45rem .9rem; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); text-decoration: none;
  font-family: var(--font-title); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.svc { padding: clamp(3rem, 8vw, 6rem) 1.25rem; border-top: 1px solid var(--line); }
.svc:nth-of-type(odd) { background: var(--bg-2); }
.svc__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.svc--flip .svc__media { order: 2; }
.svc__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border: 1px solid var(--line); }
.svc__num {
  aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  font-family: var(--font-title); font-weight: 800; font-size: clamp(6rem, 20vw, 11rem); color: var(--accent);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px, var(--bg);
}
.svc h2 { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: .8rem; }
.svc__lead { color: var(--muted); margin-bottom: 1.4rem; max-width: 48ch; }
.svc h3 { font-family: var(--font-title); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: 1rem; color: var(--accent); margin-bottom: .6rem; }
.svc__list { list-style: none; margin-bottom: 1.2rem; }
.svc__list li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; font-weight: 500; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.svc__ideal { color: var(--muted); margin-bottom: 1.6rem; }
.svc__ideal strong { color: var(--text); }
.faq { display: grid; gap: .8rem; }
.faq__item { background: var(--bg); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.faq__item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq__item summary::before { content: "+ "; color: var(--accent); font-weight: 800; }
.faq__item[open] summary::before { content: "– "; }
.faq__item p { color: var(--muted); margin-top: .6rem; }
@media (max-width: 820px) {
  .svc__inner { grid-template-columns: 1fr; }
  .svc--flip .svc__media { order: 0; }
  .svc__media img, .svc__num { aspect-ratio: 16 / 11; }
}

/* --- simulazioni --- */
.ba-section--sim { background: var(--bg-2); border-top: 3px solid var(--accent); }
.ba-section--sim .ba { border-color: var(--accent); }
.sim-note { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

.ba-section--sim .ba__tag--sim { background: var(--accent); color: #111; }

/* --- gruppi nella pagina Prima e dopo --- */
.ba-section--alt { background: var(--bg-2); border-top: 3px solid var(--accent); }
.ba-section--page { min-height: 0; }
.ba-group { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.1; margin: 2.4rem 0 1.2rem; }
.ba-section--alt .ba-group, #controsoffitti .ba-group { margin-top: 0; }
.chips--left { justify-content: flex-start; margin-top: 0; }
.ba-section .chips a { padding: .45rem .9rem; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); text-decoration: none; font-family: var(--font-title); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ba-section .chips a:hover { border-color: var(--accent); color: var(--accent); }

.footer__meta { margin-top: .3rem; font-size: .8rem; }
.legal__inner--wide { max-width: 1100px; }
.legal .btn--link { margin-top: 1.5rem; }
.legal .skills { margin-bottom: 1.2rem; }

/* --- pagina "Cosa sappiamo fare" --- */
.know h4 { font-family: var(--font-title); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; color: var(--accent); margin: 1rem 0 .5rem; }
.know .svc__list { margin-bottom: .6rem; }
.know .faq__item { margin: .8rem 0 1.2rem; padding: .7rem 1rem; }
.know .faq__item .svc__list { margin-top: .6rem; }
.btn--small { font-size: 1.05rem; padding: .7rem 1.4rem; }

/* --- contatti e voce di menu semplice --- */
.nav__link { text-decoration: none; }
.nav__link::after { display: none; }
.contact__main { margin: .2rem 0 .6rem; }
.contact__link { color: var(--text); font-family: var(--font-title); font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 1.9rem); line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.contact__link:hover { color: var(--accent); }

.form__privacy { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.form__privacy a { color: var(--accent); }


/* ba__tag collision fix: etichette lunghe su schermi stretti */
@media (max-width: 480px) {
  .ba__tag { font-size: .72rem; letter-spacing: .05em; padding: .18rem .45rem; top: .6rem; }
  .ba__tag--l { left: .6rem; }
  .ba__tag--r { right: .6rem; }
}

/* ===== Modulo: avviso d'esito, campo trappola anti-spam, pagina "Grazie" ===== */
.form__alert {
  margin: 0 0 1rem; padding: .8rem 1rem; border-left: 4px solid var(--accent);
  background: rgba(255, 138, 0, .12); color: var(--text); font-size: .95rem; line-height: 1.5;
}
.form__alert[hidden] { display: none; }
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.grazie__azioni { margin-top: 2rem; }

/* Link nei testi delle pagine informative: colore del sito (non blu di default); i pulsanti senza sottolineatura */
.legal p a:not(.btn) { color: var(--accent); }
.legal a.btn { text-decoration: none; display: inline-block; }
