:root {
  --navy: #0b2a44;
  --navy-deep: #06192b;
  --ink: #1b2430;
  --muted: #5b6673;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-soft: #f3f5f7;
  --accent: #0b2a44;
  --accent-hover: #123b5e;
  --star: #f4b400;
  --radius: 10px;
  --max: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding: 5.5rem 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: .9rem; font-size: 1.06rem; max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: var(--radius);
  font-weight: 700; font-size: .97rem; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-phone { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.nav-phone svg { width: 16px; height: 16px; }
.burger { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.burger span { display: block; height: 2px; width: 18px; background: var(--ink); margin: 3px auto; }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero-sub { font-size: 1.12rem; color: var(--muted); margin-top: 1.2rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: #fff; border-radius: 10px; padding: .7rem .9rem;
  box-shadow: 0 10px 30px rgba(11,42,68,.16); display: flex; align-items: center; gap: .7rem;
}
.hero-badge strong { font-size: 1.25rem; display: block; line-height: 1; }
.hero-badge small { color: var(--muted); font-size: .8rem; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 1.3rem 1.2rem; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: .92rem; }

/* Chi siamo */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.about-photos img { border-radius: 12px; object-fit: cover; width: 100%; height: 100%; }
.about-photos .tall { grid-row: span 2; aspect-ratio: 3/4; }
.about-photos .wide { aspect-ratio: 4/3; }
.about-text h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
.about-text p { color: var(--muted); margin-top: 1rem; font-size: 1.04rem; }
.about-text p strong { color: var(--ink); }
.values { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.values li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.values svg { width: 20px; height: 20px; flex: none; color: var(--navy); margin-top: .15rem; }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.svc { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc.photo { position: relative; min-height: 320px; color: #fff; border: 0; justify-content: flex-end; }
.svc.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc.photo .svc-body { position: relative; background: linear-gradient(to top, rgba(6,25,43,.9), rgba(6,25,43,0)); padding-top: 4rem; }
.svc.photo p { color: rgba(255,255,255,.82); }
.svc-body { padding: 1.5rem 1.5rem 1.6rem; }
.svc h3 { font-size: 1.3rem; font-weight: 800; }
.svc p { color: var(--muted); margin-top: .5rem; font-size: .97rem; }
.svc .num { font-weight: 800; color: var(--navy); font-size: .85rem; margin-bottom: 1.2rem; display: block; }
.svc.photo .num { color: #fff; opacity: .8; }

/* Metodo */
.steps { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: 1px solid var(--line); }
.steps-list li::before { padding: .3rem;
  content: counter(step); font-weight: 800; color: #fff; background: var(--navy);
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .95rem;
}
.steps-list h3 { font-size: 1.25rem; font-weight: 800; }
.steps-list p { color: var(--muted); margin-top: .3rem; font-size: .97rem; }
.steps-photo img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.steps-photo figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* Lavori */
.gallery { columns: 3; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: .6rem .8rem .75rem; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.ba { position: relative; border-radius: 12px; overflow: hidden; }
.ba img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ba span { position: absolute; top: .9rem; left: .9rem; background: #fff; color: var(--ink); font-weight: 800; font-size: .8rem; padding: .5rem .8rem; border-radius: 6px; letter-spacing: .04em; }
.ba-note { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; max-width: 46rem; }

/* Recensioni */
.rating-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.rating-big { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.rating-meta { display: flex; flex-direction: column; gap: .2rem; }
.rating-meta .stars svg { width: 20px; height: 20px; }
.rating-meta span { color: var(--muted); font-size: .95rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.review .stars svg { width: 14px; height: 14px; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.55; }
.review footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); }
.review footer strong { color: var(--ink); display: block; font-size: .95rem; }
.src { display: inline-flex; align-items: center; gap: .35rem; }
.src img { width: 14px; height: 14px; }
.reviews-cta { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.reviews-cta a { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; }
.contact-list .ico { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--navy); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 1rem; }
.contact-list span, .contact-list a.plain { color: var(--muted); font-size: .95rem; }
.contact-list a.plain:hover { color: var(--ink); }
.zones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.zones span { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem; font-size: .88rem; font-weight: 600; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem; }
.form h3 { font-size: 1.25rem; font-weight: 800; }
.form p { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.field { display: grid; gap: .4rem; margin-top: 1rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field textarea { min-height: 110px; resize: vertical; }
.form .btn { margin-top: 1.2rem; width: 100%; justify-content: center; }
.form small { display: block; color: var(--muted); margin-top: .8rem; font-size: .82rem; }
.map { margin-top: 2.5rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 3rem 0 6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer img { height: 60px; width: auto; border-radius: 8px; background: #fff; padding: 10px 14px; }
.footer h4 { color: #fff; margin: 0 0 .8rem; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .93rem; }
.footer a:hover { color: #fff; }
.footer p { font-size: .9rem; margin-top: 1rem; max-width: 30rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Barra mobile */
.mobile-bar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .gallery img { transition: none; } }

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 4rem 0; }
  .nav-links, .nav-phone { display: none; }
  .burger { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 76px; background: #fff; padding: 1rem 1.2rem 1.4rem; border-bottom: 1px solid var(--line); gap: .9rem; }
  .nav { position: relative; }
  .nav-cta .btn { display: none; }
  .hero { padding: 2.2rem 0 2.5rem; }
  .hero-grid, .about-grid, .steps, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { order: -1; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .before-after { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { justify-content: center; }
}
@media (max-width: 560px) {
  .services, .reviews { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-photos .tall { aspect-ratio: 3/4; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
