:root{--navy:#162347;--amber:#F59E0B;--ink:#1E293B;--grey:#64748B;--bg:#F8FAFC;--white:#fff;--line:#E2E8F0;--r:14px;--max:1200px;--hh:94px;--fh:"Montserrat","Segoe UI",system-ui,sans-serif;--fb:"Inter","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;font-family:var(--fb);font-size:16px;color:var(--ink);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3{font-family:var(--fh);color:var(--navy);line-height:1.1;letter-spacing:-.02em;margin:0;font-weight:800}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:4px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.skip{position:absolute;left:-999px;top:8px;background:var(--amber);color:var(--navy);padding:8px 14px;z-index:100;border-radius:6px}
.skip:focus{left:8px}

/* Bottoni */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;border-radius:6px;font-weight:600;font-size:.95rem;border:1px solid transparent;cursor:pointer;transition:transform .15s,background .15s,color .15s,border-color .15s;white-space:nowrap;font-family:var(--fb)}
.btn:hover{transform:translateY(-1px)}
.btn--navy{background:var(--navy);color:var(--white)}
.btn--amber{background:var(--amber);color:var(--navy);box-shadow:0 6px 18px rgba(245,158,11,.28)}
.btn--amber:hover{background:#fbab1c}
.btn--ghost{border-color:rgba(255,255,255,.55);color:var(--white);background:rgba(255,255,255,.04)}
.btn--ghost:hover{background:var(--white);color:var(--navy)}
.btn--lg{padding:17px 28px;font-size:1.05rem}

/* Logo */
.logo{display:flex;align-items:center;gap:10px;color:var(--navy)}
.logo img{width:70px;height:70px;transition:width .25s,height .25s}
.logo__txt{display:flex;flex-direction:column;line-height:1}
.logo__txt b{font-family:var(--fh);font-weight:800;font-size:1.45rem;letter-spacing:-.02em;transition:font-size .25s}
.logo__txt small{font-family:var(--fh);font-size:.72rem;font-weight:600;letter-spacing:.32em;color:var(--grey);margin-top:8px;position:relative;padding-bottom:8px}
.logo__txt small::after{content:"";position:absolute;left:0;bottom:0;width:44px;height:2px;background:var(--amber)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid var(--line);transition:background .25s,box-shadow .25s}
.site-header .wrap{height:var(--hh);display:flex;align-items:center;justify-content:space-between;gap:24px;transition:height .25s}
.nav{display:flex;gap:28px;font-weight:600;font-size:.95rem}
.nav a{padding:6px 0;border-bottom:2px solid transparent;transition:border-color .15s}
.nav a:hover,.nav a[aria-current]{border-color:var(--amber)}
.header-cta{display:flex;gap:8px}
.burger{display:none;background:none;border:0;padding:10px;cursor:pointer;color:inherit}
.burger span{display:block;width:26px;height:3px;background:currentColor;border-radius:2px;margin:5px 0}
.is-scrolled .wrap{height:60px}
.is-scrolled .logo img{width:44px;height:44px}
.is-scrolled .logo__txt b{font-size:1.1rem}
.is-scrolled .logo__txt small{font-size:.55rem;margin-top:5px;padding-bottom:5px}
.is-scrolled{box-shadow:0 4px 20px rgba(22,35,71,.08)}
/* Home: trasparente finché non si scrolla */
.site-header--home{position:fixed;left:0;right:0;background:transparent;border-bottom-color:transparent;color:var(--white)}
.site-header--home .logo,.site-header--home .logo__txt small{color:var(--white)}
.site-header--home .logo__txt small{opacity:.85}
.site-header--home .btn--navy{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.45)}
.site-header--home.is-solid{background:var(--white);border-bottom-color:var(--line);color:var(--ink)}
.site-header--home.is-solid .logo{color:var(--navy)}
.site-header--home.is-solid .logo__txt small{color:var(--grey);opacity:1}
.site-header--home.is-solid .btn--navy{background:var(--navy);border-color:var(--navy)}

/* Drawer mobile */
.drawer{position:fixed;inset:0 0 0 auto;width:min(86vw,360px);background:var(--white);z-index:80;transform:translateX(100%);transition:transform .3s ease,visibility .3s;display:flex;flex-direction:column;padding:18px 22px;visibility:hidden;overflow-y:auto}
.drawer.open{transform:none;visibility:visible}
.drawer__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.drawer__top .logo img{width:44px;height:44px}
.drawer__top .logo__txt b{font-size:1.1rem}
.drawer__close{background:none;border:0;font-size:2rem;line-height:1;cursor:pointer;color:var(--navy);padding:8px}
.drawer nav>a,.drawer summary{display:block;padding:15px 0;border-bottom:1px solid var(--line);font-weight:700;font-size:1.05rem;color:var(--navy);cursor:pointer;list-style:none}
.drawer summary::-webkit-details-marker{display:none}
.drawer summary::after{content:"+";float:right;color:var(--amber);font-size:1.4rem;line-height:1}
.drawer details[open] summary::after{content:"–"}
.drawer details a{display:block;padding:10px 0 10px 14px;color:var(--grey);font-weight:500}
.drawer__cta{margin-top:auto;display:grid;gap:10px;padding-top:20px}
.scrim{position:fixed;inset:0;background:rgba(10,16,35,.55);z-index:70;opacity:0;pointer-events:none;transition:opacity .3s}
.scrim.open{opacity:1;pointer-events:auto}

/* Barra fissa mobile */
.mbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--white);border-top:1px solid var(--line);grid-template-columns:repeat(3,1fr);padding-bottom:env(safe-area-inset-bottom)}
.mbar a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 4px;font-size:.78rem;font-weight:700;color:var(--navy)}
.mbar .ico{width:22px;height:22px}
.mbar a.hl{background:var(--amber)}

/* Hero */
.hero{position:relative;min-height:92vh;min-height:92svh;display:flex;align-items:center;color:var(--white);background:var(--navy) url("assets/brand/hero-960.webp") center/cover no-repeat;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(95deg,rgba(22,35,71,.9) 0%,rgba(22,35,71,.62) 55%,rgba(22,35,71,.45) 100%);z-index:-1}
.hero .wrap{width:100%;padding-top:var(--hh);padding-bottom:40px}
.hero__kicker{color:var(--amber);font-weight:600;text-transform:uppercase;letter-spacing:.2em;font-size:.8rem;margin:0 0 28px;position:relative;padding-bottom:14px}
.hero__kicker::after{content:"";position:absolute;left:0;bottom:0;width:48px;height:3px;background:var(--amber)}
.hero h1{color:var(--white);font-size:clamp(2.5rem,6.2vw,5.1rem);max-width:900px;line-height:1.08}
.hero__sub{font-size:clamp(1rem,1.6vw,1.15rem);max-width:600px;margin:26px 0 34px;color:#E8ECF4}
.hero__btns{display:flex;flex-wrap:wrap;gap:12px}

/* Sezioni */
.section{padding:96px 0}
.section h2{font-size:clamp(2rem,4.2vw,3rem);margin-bottom:44px}

/* Timeline */
.timeline{max-width:520px;margin-left:2px}
.timeline li{position:relative;padding:0 0 36px 34px;--p:0}
.timeline li:last-child{padding-bottom:0}
.timeline li::after{content:"";position:absolute;left:2px;top:40px;bottom:4px;width:3px;border-radius:2px;background:linear-gradient(var(--amber) calc(var(--p)*100%),#D5DBE5 0)}
.timeline li:last-child::after{display:none}
.timeline__n{position:absolute;left:-16px;top:0;width:36px;height:36px;border-radius:50%;background:var(--navy);color:var(--amber);font-weight:700;font-size:.9rem;display:grid;place-items:center}
.timeline h3{font-size:1.6rem;margin:0 0 8px;line-height:1.2}
.timeline p{margin:0;color:var(--grey)}

/* Banda CTA */
.cta{background:linear-gradient(160deg,var(--navy) 40%,#233570);color:var(--white);padding:96px 0}
.cta h2{color:var(--white);font-size:clamp(2.2rem,5vw,3.8rem);max-width:12em;margin-bottom:22px}
.cta p{max-width:600px;font-size:1.15rem;color:#E2E8F0;margin:0 0 34px}
.cta .hero__btns{gap:12px}

/* Footer */
.site-footer{background:var(--navy);color:var(--white);padding:56px 0 0}
.footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px}
.footer__logo{display:inline-flex;background:var(--white);border-radius:6px;padding:8px 12px;margin-bottom:20px}
.footer__logo img{width:48px;height:48px}
.footer__logo .logo__txt b{font-size:1.05rem}
.footer__logo .logo__txt small{font-size:.5rem;margin-top:4px;padding-bottom:5px}
.footer__brand p{margin:0 0 20px;max-width:380px;line-height:1.75}
.footer__brand address{font-style:normal;line-height:1.75}
.footer__brand address a{display:block}
.footer__brand .tel{color:var(--amber);font-weight:600}
.site-footer h2{color:var(--amber);font-family:var(--fb);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.22em;margin:0 0 20px}
.site-footer li a{display:block;line-height:1.85}
.site-footer li a:hover{color:var(--amber)}
.site-footer .all a{font-weight:700}
.footer__bottom{margin-top:56px;padding:22px 0;border-top:1px solid rgba(255,255,255,.12);font-size:.82rem}
.footer__bottom .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.footer__bottom a:hover{color:var(--amber)}

/* Responsive */
@media (max-width:960px){
  .nav,.header-cta{display:none}
  .burger{display:block}
  .mbar{display:grid}
  body{padding-bottom:64px}
  :root{--hh:72px}
  .logo img{width:52px;height:52px}
  .logo__txt b{font-size:1.2rem}
  .site-header--home .burger{color:var(--white)}
  .site-header--home.is-solid .burger{color:var(--navy)}
}
@media (max-width:760px){
  .footer__grid{grid-template-columns:1fr;gap:36px}
  .section,.cta{padding:64px 0}
  .hero__btns .btn{width:100%}
  .hero{min-height:88svh}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Zone servite nella homepage */
.home-zone {
  background: var(--white);
}

.home-zone h2 {
  margin-bottom: 18px;
}

.home-zone__intro {
  margin: 0 0 32px;
  color: var(--grey);
}

.home-zone__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.home-zone__card {
  display: block;
  padding: 24px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s, transform .2s;
}

.home-zone__card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}

.home-zone__card h3 {
  font-family: var(--fb);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0 0 5px;
}

.home-zone__card p {
  margin: 0;
  color: var(--grey);
  font-size: .9rem;
  line-height: 1.5;
}

.home-zone__all {
  display: inline-block;
  margin-top: 30px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-zone__all:hover {
  text-decoration-color: var(--amber);
}

@media (max-width: 960px) {
  .home-zone__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-zone__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-zone__card {
    padding: 20px 16px;
  }
}

@media (max-width: 380px) {
  .home-zone__grid {
    grid-template-columns: 1fr;
  }
}

/* Domande frequenti */
.home-faq {
  background: var(--bg);
}

.home-faq__inner {
  max-width: 704px;
  margin-inline: auto;
}

.home-faq h2 {
  margin-bottom: 32px;
}

.home-faq__list {
  display: grid;
  gap: 12px;
}

.home-faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.home-faq__item[open] {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

.home-faq__item summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.home-faq__item summary::-webkit-details-marker {
  display: none;
}

.home-faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg);
}

.home-faq__item[open] summary::after {
  top: 27px;
  transform: rotate(225deg);
}

.home-faq__answer {
  padding: 0 20px 18px;
  color: var(--grey);
  font-size: .95rem;
  line-height: 1.7;
}

.home-faq__answer p {
  margin: 0;
}

.home-faq__answer a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-faq__contact {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 34px;
  color: var(--navy);
  font-weight: 600;
}

.home-faq__contact .ico {
  margin-top: 4px;
}

.home-faq__contact span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-faq__contact:hover span {
  text-decoration-color: var(--amber);
}

@media (max-width: 600px) {
  .home-faq__item summary {
    padding-left: 16px;
    font-size: .95rem;
  }

  .home-faq__answer {
    padding-inline: 16px;
  }

  .home-faq__contact {
    font-size: .9rem;
  }
}

/* Hero blu con illustrazione animata */
.hero {
  background: #162347;
}

/* Rimuove l'oscuramento previsto per la foto */
.hero::before {
  display: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-top: calc(var(--hh) + 40px);
  padding-bottom: 60px;
}

.hero__copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  max-width: 100%;
}

.hero__sub {
  max-width: 580px;
}

.hero__art {
  min-width: 0;
  width: 100%;
  pointer-events: none;
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tablet e smartphone: grafica sotto il testo */
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: calc(var(--hh) + 48px);
    padding-bottom: 40px;
  }

  .hero h1 {
    max-width: 750px;
  }

  .hero__art {
    max-width: 380px;
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .hero__art {
    max-width: 300px;
  }
}

/* Sezione "Perché senza ponteggi" più compatta */
.senza-ponteggi {
  padding: 80px 0;
}

.senza-layout {
  align-items: start;
}

.senza-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  max-height: none;
}

.senza-ponteggi h2 {
  margin-bottom: 30px;
}

.senza-grid {
  gap: 24px 30px;
}

@media (max-width: 960px) {
  .senza-ponteggi {
    padding: 56px 0;
  }

  .senza-photo {
    max-height: 360px;
  }
}

@media (max-width: 600px) {
  .senza-ponteggi {
    padding: 48px 0;
  }
}

/* Pagina Servizi */
.services-intro {
  padding: 54px 0 64px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.services-breadcrumb {
  margin-bottom: 28px;
  color: var(--navy);
  font-size: .9rem;
}

.services-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.services-breadcrumb li + li::before {
  content: "›";
  margin-right: 10px;
  color: var(--grey);
}

.services-breadcrumb a {
  color: var(--grey);
}

.services-breadcrumb a:hover {
  text-decoration: underline;
}

.services-intro h1 {
  max-width: 950px;
  font-size: clamp(2.3rem, 4.8vw, 4.5rem);
  line-height: 1.08;
}

.services-intro__text {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.15rem;
  color: var(--grey);
}

.services-catalog {
  padding: 64px 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: 90px;
}

.service-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: inherit;
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: var(--line);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.service-card__arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .2s ease;
}

.service-card__body {
  flex: 1;
  padding: 20px;
}

.service-card__body h2 {
  margin: 0 0 8px;
  font-family: var(--fb);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.service-card__body p {
  margin: 0;
  color: var(--grey);
  font-size: .9rem;
  line-height: 1.65;
}

.service-card:hover,
.service-card:focus-within {
  border-color: var(--amber);
}

.service-card a:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card a:hover .service-card__arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-break {
    display: none;
  }
}

@media (max-width: 600px) {
  .services-intro {
    padding: 32px 0 40px;
  }

  .services-breadcrumb {
    margin-bottom: 24px;
  }

  .services-intro__text {
    font-size: 1rem;
    margin-top: 20px;
  }

  .services-catalog {
    padding: 40px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}