/* File generato da generatore/genera.py — non modificare a mano.
   Le regole di base arrivano dal sito attuale, quelle della scheda
   da generatore/statico/scheda.css */

:root {
      
      --bg-primary: #F5F5F3;
      --bg-secondary: #EDEDEA;
      --bg-dark: #1A1A1A;

      
      --text-primary: #1A1A1A;
      --text-secondary: #6B6B68;
      --text-on-dark: #F5F5F3;
      --text-on-dark-secondary: #A6A6A6;

      
      --line: #D4D4D0;
      --line-dark: #2A2A2A;

      
      --accent: #E8610A;
      --accent-hover: #FF7722;
      --error: #A8312B;

      
      --font-display: "Fraunces", Georgia, serif;
      --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --font-mono: "JetBrains Mono", "Courier New", monospace;

      
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 16px;
      --space-4: 24px;
      --space-5: 32px;
      --space-6: 48px;
      --space-7: 64px;
      --space-8: 96px;
      --space-9: 128px;
      --space-10: 160px;

      
      --container-max: 1280px;
      --container-pad: 48px;

      
      --t-fast: 0.2s ease;
      --t-medium: 0.4s ease;
      --t-slow: 0.7s ease-out;
    }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
      margin: 0;
      font-family: var(--font-body);
      font-size: 17px;
      line-height: 1.6;
      color: var(--text-primary);
      background: var(--bg-primary);
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: clip;
    }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
.container {
      max-width: var(--container-max);
      margin: 0 auto;
      padding: 0 var(--container-pad);
    }
.h1 {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: clamp(44px, 6vw, 80px);
      line-height: 0.95;
      letter-spacing: -0.02em;
      margin: 0;
    }
.h2 {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: clamp(36px, 4.2vw, 56px);
      line-height: 1.05;
      letter-spacing: -0.015em;
      margin: 0;
    }
.h3 {
      font-family: var(--font-display);
      font-weight: 500;
      font-size: clamp(28px, 2.6vw, 36px);
      line-height: 1.15;
      margin: 0;
    }
.mono-label {
      font-family: var(--font-mono);
      font-weight: 500;
      font-size: 13px;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-secondary);
    }
.section-label {
      font-family: var(--font-mono);
      font-weight: 500;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-secondary);
      margin: 0 0 var(--space-6);
      display: block;
    }
.header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(245, 245, 243, 0.92);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid transparent;
      transition: border-color var(--t-fast);
    }
.header.is-scrolled {
      border-bottom-color: var(--line);
    }
.header__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }
.header__logo {
      display: inline-flex;
      align-items: center;
      line-height: 0;
      color: var(--text-primary);
    }
.header__logo img {
      height: 36px;
      width: auto;
      display: block;
    }
.header__logo em { font-style: normal; color: var(--accent); }
.nav {
      display: flex;
      align-items: center;
      gap: var(--space-5);
    }
.nav__link {
      font-family: var(--font-body);
      font-weight: 500;
      font-size: 14px;
      letter-spacing: 0.04em;
      color: var(--text-primary);
      position: relative;
      padding: 6px 0;
      transition: color var(--t-fast);
    }
.nav__link::after {
      content: "";
      position: absolute;
      left: 0; right: 0;
      bottom: 0;
      height: 1px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform var(--t-fast);
    }
.nav__link:hover::after,
    .nav__link--active::after { transform: scaleX(1); }
.hamburger {
      display: none;
      width: 32px;
      height: 24px;
      position: relative;
      padding: 0;
    }
.hamburger span {
      position: absolute;
      left: 4px;
      right: 4px;
      height: 1px;
      background: var(--text-primary);
      transition: transform 0.3s ease, opacity 0.2s ease;
    }
.hamburger span:nth-child(1) { top: 7px; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 17px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-drawer {
      position: fixed;
      top: 0; left: 0; right: 0;
      background: var(--bg-primary);
      transform: translateY(-100%);
      transition: transform 0.3s ease-out;
      z-index: 99;
      padding: 96px var(--container-pad) 64px;
      border-bottom: 1px solid var(--line);
    }
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer__link {
      display: block;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 32px;
      line-height: 1.3;
      color: var(--text-primary);
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
    }
.mobile-drawer__link:last-child { border-bottom: 0; }
.section {
      padding: var(--space-9) 0;
    }
.section--lg { padding: var(--space-10) 0; }
.section--bg-alt { background: var(--bg-secondary); }
.section--dark {
      background: var(--bg-dark);
      color: var(--text-on-dark);
    }
.section-head {
      margin-bottom: var(--space-8);
      max-width: 900px;
    }
.section-head__title {
      max-width: 24ch;
      margin-bottom: var(--space-4);
    }
.section-head__intro {
      font-size: 18px;
      line-height: 1.6;
      color: var(--text-secondary);
      max-width: 60ch;
      margin: 0;
    }
.cta-final {
      background: var(--bg-dark);
      color: var(--text-on-dark);
      padding: var(--space-9) 0;
    }
.cta-final__grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-8);
      align-items: start;
    }
.cta-final__label { color: var(--accent); }
.cta-final__title {
      color: var(--text-on-dark);
      margin: 0 0 var(--space-4);
      max-width: 14ch;
    }
.cta-final__subtitle {
      font-size: 18px;
      line-height: 1.6;
      color: var(--text-on-dark-secondary);
      margin: 0 0 var(--space-7);
      max-width: 48ch;
    }
.cta-final__contacts {
      border-top: 1px solid var(--line-dark);
      padding-top: var(--space-5);
      display: grid;
      gap: var(--space-3);
    }
.cta-final__contact-row {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: var(--space-4);
      align-items: baseline;
    }
.cta-final__contact-label {
      font-family: var(--font-mono);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-on-dark-secondary);
    }
.cta-final__contact-value {
      font-family: var(--font-mono);
      font-size: 15px;
      color: var(--text-on-dark);
      letter-spacing: 0.02em;
    }
.cta-final__contact-value:hover { color: var(--accent-hover); }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
}
@media (max-width: 1023px) {
:root { --container-pad: 32px; }
.nav { display: none; }
.hamburger { display: block; }
.cta-final__grid { grid-template-columns: 1fr; gap: var(--space-7); }
}
@media (max-width: 767px) {
:root { --container-pad: 24px; }
.section { padding: var(--space-7) 0; }
.section--lg { padding: var(--space-8) 0; }
.section-head { margin-bottom: var(--space-6); }
.cta-final { padding: var(--space-8) 0; }
.cta-final__contact-row { grid-template-columns: 100px 1fr; }
}

/* ==========================================================================
   SCHEDA PROGETTO — stili specifici delle pagine generate
   Le regole di base (token colore, reset, header, nav) arrivano da
   _seo/css-comune.css, estratto dal sito attuale: cosi' la grafica resta
   identica a quella che c'e' gia' online.
   ========================================================================== */

/* --- Briciole di pane (Home / Progetti / questa scheda) ------------------- */
.briciole {
  padding: 104px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.briciole a { color: var(--text-secondary); text-decoration: none; }
.briciole a:hover { color: var(--accent); }
.briciole span { margin: 0 8px; }
.briciole__attuale { color: var(--text-primary); }

/* --- Testata -------------------------------------------------------------- */
.scheda__testata { padding: var(--space-6) 0 var(--space-7); }
.scheda__occhiello {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}
.scheda__titolo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  max-width: 20ch;
}
.scheda__sintesi {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0;
}

/* --- Griglia corpo + dati ------------------------------------------------- */
.scheda__griglia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-8);
  align-items: start;
  padding-bottom: var(--space-8);
}
/* I titoli di sezione seguono la home: Fraunces, nessun filetto sotto,
   preceduti dall'occhiello in mono. Il filetto che avevo messo qui non
   esiste da nessuna parte nel resto del sito. */
.scheda__sezione { margin-bottom: var(--space-8); }
.scheda__sezione h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
}
.scheda__sezione .section-label { margin-bottom: var(--space-3); }
.scheda__sezione p { max-width: 68ch; margin: 0 0 var(--space-3); }

.scheda__fasi { counter-reset: fase; list-style: none; margin: 0; padding: 0; }
.scheda__fasi li {
  counter-increment: fase;
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 52px;
  border-bottom: 1px solid var(--line);
  max-width: 68ch;
}
.scheda__fasi li::before {
  content: counter(fase, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.scheda__materiali { margin: 0; padding: 0; list-style: none; max-width: 68ch; }
.scheda__materiali li {
  padding: var(--space-2) 0 var(--space-2) 22px;
  position: relative;
}
.scheda__materiali li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Riquadro dati -------------------------------------------------------- */
.scheda__dati {
  position: sticky;
  top: 104px;
  background: var(--bg-secondary);
  padding: var(--space-5);
  border-radius: 2px;
}
.scheda__dati-titolo {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}
.scheda__dati dl { margin: 0; }
.scheda__dati dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: var(--space-3);
}
.scheda__dati dd { margin: 2px 0 0; font-weight: 500; }
.scheda__dati dd a { color: inherit; }
.scheda__dati dd a:hover { color: var(--accent); }
.scheda__indirizzo { font-style: normal; line-height: 1.5; }
.scheda__nota {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
}
.scheda__cta {
  display: block;
  margin-top: var(--space-5);
  padding: 14px 20px;
  background: var(--text-primary);
  color: var(--text-on-dark);
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  transition: background var(--t-fast);
}
.scheda__cta:hover { background: var(--accent); }

/* --- Blocco finale scuro (come la home) ----------------------------------- */
.cta-finale__azioni {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
}
.cta-finale__pulsante {
  display: block;
  padding: 18px 28px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  border-radius: 2px;
  transition: background var(--t-fast);
}
.cta-finale__pulsante:hover { background: var(--accent-hover); }
.cta-finale__secondario {
  display: block;
  padding: 18px 28px;
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.cta-finale__secondario:hover { border-color: var(--accent); color: var(--accent); }
.cta-final__contact-value--testo {
  font-family: var(--font-body);
  font-size: 15px;
}

/* --- Galleria ------------------------------------------------------------- */
.scheda__galleria { background: var(--bg-secondary); padding: var(--space-8) 0; }
.scheda__galleria h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 36px);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-5);
}
.galleria__griglia {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
/* La prima foto occupa tutta la larghezza: e' l'immagine che racconta
   il cantiere e merita piu' spazio delle altre. */
.galleria__voce:first-child { grid-column: 1 / -1; }
.galleria__voce:first-child img { aspect-ratio: 16 / 9; }

.galleria__voce {
  margin: 0;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.galleria__voce img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform var(--t-medium);
}
.galleria__voce:hover img { transform: scale(1.03); }

/* Lente in alto a destra: fa capire che la foto si apre */
.galleria__voce::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.55) center / 15px 15px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity var(--t-fast);
}
.galleria__voce:hover::after,
.galleria__voce:focus-visible::after { opacity: 1; }

/* --- Foto a schermo intero ------------------------------------------------ */
.lente {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 16, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lente.is-open { display: flex; }
.lente__figura {
  margin: 0;
  max-width: min(1400px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.lente__figura img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.lente__didascalia {
  color: var(--text-on-dark-secondary);
  font-size: 14px;
  text-align: center;
  margin: 0;
  max-width: 80ch;
  margin-inline: auto;
}
.lente__chiudi, .lente__prec, .lente__succ {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.lente__chiudi:hover, .lente__prec:hover, .lente__succ:hover {
  background: var(--accent);
}
.lente__chiudi { top: 24px; right: 24px; }
.lente__prec { left: 24px; top: 50%; transform: translateY(-50%); }
.lente__succ { right: 24px; top: 50%; transform: translateY(-50%); }
.lente__contatore {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-secondary);
}

/* --- Collegamenti --------------------------------------------------------- */
.scheda__collegamenti { padding: var(--space-8) 0; }
.scheda__collegamenti h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 36px);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-5);
}
.collegamenti__elenco { list-style: none; margin: 0; padding: 0; }
.collegamenti__elenco a {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  font-size: 19px;
  transition: color var(--t-fast);
}
.collegamenti__elenco li:last-child a { border-bottom: 1px solid var(--line); }
.collegamenti__elenco a:hover { color: var(--accent); }
.collegamenti__eti {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  flex: 0 0 90px;
}

/* --- Domande frequenti ---------------------------------------------------- */
.faq { max-width: 68ch; }
.faq__voce { border-bottom: 1px solid var(--line); }
.faq__voce summary {
  padding: var(--space-3) 32px var(--space-3) 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  position: relative;
}
.faq__voce summary::-webkit-details-marker { display: none; }
.faq__voce summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: var(--space-3);
  color: var(--accent);
  font-size: 20px;
  line-height: 1.2;
}
.faq__voce[open] summary::after { content: "\2013"; }
.faq__voce p { margin: 0 0 var(--space-4); color: var(--text-secondary); }

/* --- Elenco dei servizi (pagina /servizi) --------------------------------- */
.servizi-elenco { list-style: none; margin: 0 0 var(--space-8); padding: 0; }
.servizi-elenco__voce a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.servizi-elenco__voce:last-child a { border-bottom: 1px solid var(--line); }
.servizi-elenco__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex: 0 0 40px;
  padding-top: 6px;
}
.servizi-elenco__testo { flex: 1; }
.servizi-elenco__titolo {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: color var(--t-fast);
}
.servizi-elenco__desc {
  display: block;
  color: var(--text-secondary);
  max-width: 70ch;
}
.servizi-elenco__freccia {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 8px;
  color: var(--text-secondary);
  transition: transform var(--t-fast), color var(--t-fast);
}
.servizi-elenco__voce a:hover .servizi-elenco__titolo { color: var(--accent); }
.servizi-elenco__voce a:hover .servizi-elenco__freccia {
  transform: translateX(6px);
  color: var(--accent);
}

/* --- Cantieri collegati a un servizio ------------------------------------- */
.correlati {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}
.correlati a {
  display: block;
  background: var(--bg-primary);
  padding: var(--space-4);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform var(--t-fast);
}
.correlati a:hover { transform: translateY(-3px); }
.correlati__eti {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.correlati__titolo { display: block; font-weight: 500; margin-bottom: 4px; }
.correlati__luogo { display: block; font-size: 14px; color: var(--text-secondary); }

/* --- Numeri (pagina azienda) ---------------------------------------------- */
.numeri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-7);
}
.numeri__valore {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.numeri__etichetta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* --- Piede ---------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-secondary);
  padding: var(--space-6) 0;
  font-size: 14px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}
.site-footer p { margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer__nav a { color: var(--text-on-dark-secondary); text-decoration: none; }
.site-footer__nav a:hover { color: var(--text-on-dark); }

/* --- Adattamento a schermi stretti ---------------------------------------- */
@media (max-width: 1023px) {
  .scheda__griglia { grid-template-columns: 1fr; gap: var(--space-6); }
  .scheda__dati { position: static; }
}
@media (max-width: 767px) {
  .briciole { padding-top: 88px; }
  .scheda__sintesi { font-size: 18px; }
  .galleria__griglia { grid-template-columns: 1fr; gap: var(--space-3); }
  .galleria__voce:first-child img { aspect-ratio: 3 / 2; }
  .collegamenti__elenco a { flex-direction: column; gap: 4px; }
  .lente__prec { left: 8px; }
  .lente__succ { right: 8px; }
  .lente__chiudi { top: 12px; right: 12px; }
  .lente__prec, .lente__succ, .lente__chiudi { width: 44px; height: 44px; }
}
