/* PDA Impianti – pagina temporanea */

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #2f8361;
  --lime: #8ac830;
  --ink: #3a3d40;
  --muted: #666a6e;
  --line: #e3e6e4;
  --soft: #f4f7f5;
}

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

body {
  margin: 0;
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Testata e apertura */

.masthead { padding: 48px 24px 0; }
.logo { width: 220px; max-width: 60vw; margin: 0 auto; }

.opening { max-width: 1080px; margin: 0 auto; padding: 28px 24px 44px; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

h1 { margin-top: 26px; font-size: clamp(28px, 4.4vw, 44px); font-weight: 300; line-height: 1.18; }
h1 span { display: block; font-weight: 700; }

.intro { max-width: 700px; margin: 20px auto 0; font-size: 18.5px; color: var(--muted); }

.hero { width: 100%; aspect-ratio: 2000 / 760; object-fit: cover; object-position: 50% 30%; background: #e9ecea; }

/* Sezioni */

main section { padding: 64px 0; border-bottom: 1px solid var(--line); }

h2 {
  margin-bottom: 26px;
  padding-left: 14px;
  border-left: 3px solid var(--green);
  color: var(--green);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h3 { font-size: 18px; font-weight: 700; }

/* Chi siamo */

.about { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.about p + p { margin-top: 16px; }
.lead { font-size: 21px; font-weight: 500; line-height: 1.45; }

.facts { border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--green); font-size: 22px; font-weight: 700; line-height: 1.2; }
.facts dd { color: var(--muted); font-size: 15px; }

/* Servizi */

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 30px 44px; }
.services h3 { margin-bottom: 6px; }
.services p { color: var(--muted); font-size: 15.5px; }

.steps-title { margin: 40px 0 12px; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.steps { display: flex; flex-wrap: wrap; gap: 10px; counter-reset: step; }
.steps li { padding: 10px 16px; border-radius: 4px; background: var(--soft); font-size: 15px; font-weight: 600; counter-increment: step; }
.steps li::before { content: counter(step) ". "; color: var(--green); }

/* Lavori */

.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 44px; }
.works li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.works h3 { font-size: inherit; }
.works p { color: var(--muted); }

/* Contatti */

main .contacts { border: 0; background: var(--green); color: #fff; }
.contacts h2 { border-color: var(--lime); color: #fff; }
.contacts a { color: #fff; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.contact-grid dt { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact-grid dd + dt { margin-top: 14px; }

.contacts .cta {
  display: inline-block;
  margin-top: 34px;
  padding: 14px 28px;
  border-radius: 4px;
  background: #fff;
  color: var(--green);
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
}
.contacts .cta:focus-visible { outline-color: #fff; }

/* Piè di pagina */

.site-footer { padding: 28px 24px; color: var(--muted); font-size: 13px; text-align: center; }

/* Responsive e preferenze */

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .masthead { padding-top: 36px; }
  .opening { padding: 24px 16px 32px; }
  .wrap { padding: 0 16px; }
  main section { padding: 48px 0; }
  .lead { font-size: 19px; }
  .hero { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .badge::before { animation: none; }
}
