:root{
  --brand: #172C4B;
  --brand-900: #070E17;

  /* Accent più soft (stessa tinta, meno “sparata”) */
  --accent-rgb: 247,166,0;
  --accent: rgb(var(--accent-rgb));
  --accent-mid: rgba(var(--accent-rgb), .70);
  --accent-soft: rgba(var(--accent-rgb), .18);
  --accent-border: rgba(var(--accent-rgb), .38);

  --muted: #B5BCC6;
  --bg: #ffffff;
  --alt: #F6F8FB;

  --text: #0B1220;
  --text-2: #2D3A4F;

  --radius: 16px;
  --radius-lg: 22px;

  --shadow: 0 10px 30px rgba(7,14,23,.10);

  --container: 1120px;
  --pad: 18px;

  --tap: 48px;

  --header-h: 72px;
  --anchor-offset: 92px;
}

*{ box-sizing: border-box; }

/* Offset per anchor con header sticky */
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}
section[id]{
  scroll-margin-top: var(--anchor-offset);
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 12px; top: 12px; width:auto; height:auto;
  padding: 10px 12px; background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  z-index: 9999;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181,188,198,.35);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}
.brand{ display:flex; align-items:center; min-height: var(--tap); }
.brand__logo{ height: 46px; width:auto; }

.icon-btn{
  width: var(--tap);
  height: var(--tap);
  display:grid;
  place-items:center;
  border-radius: 14px;
  border: 1px solid rgba(181,188,198,.45);
  background: #fff;
  box-shadow: 0 8px 20px rgba(7,14,23,.06);
}
.icon-btn--sm{ width: 44px; height: 44px; }

.burger{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(181,188,198,.45);
  background: #fff;
  display:grid;
  place-items:center;
  gap: 4px;
  padding: 10px;
}
.burger span{ width: 20px; height: 2px; background: var(--brand); border-radius: 2px; display:block; }

.nav--desktop{ display:none; }
.nav__link{ padding: 10px 12px; border-radius: 12px; color: var(--text-2); }

/* CTA menu: non più blu forte */
.nav__link--cta{
  background: var(--accent-soft);
  color: var(--brand-900);
  border: 1px solid var(--accent-border);
}
.nav__link--cta:hover{ background: rgba(var(--accent-rgb), .24); }

/* =========================
   DRAWER MENU (più elegante)
   ========================= */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* overlay fade + click */
.drawer__overlay{
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7,14,23,.55);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

/* pannello laterale */
.drawer__panel{
  position: absolute;
  top: 10px;
  right: 10px;
  height: calc(100% - 20px);
  width: min(86vw, 360px);
  background: #fff;
  border: 1px solid rgba(181,188,198,.35);
  box-shadow: 0 20px 60px rgba(7,14,23,.30);
  border-radius: 22px;

  transform: translateX(108%);
  transition: transform .22s ease;
  will-change: transform;

  padding: max(16px, env(safe-area-inset-top)) 14px 14px;
  overflow: hidden;
}

/* Accent line (premium touch) */
.drawer__panel::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .9), rgba(var(--accent-rgb), .25));
}

.drawer.is-open .drawer__panel{ transform: translateX(0); }
.drawer.is-open .drawer__overlay{
  opacity: 1;
  pointer-events: auto;
}

.drawer__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 8px 2px 12px;
  border-bottom: 1px solid rgba(181,188,198,.35);
  margin-bottom: 10px;
}

.drawer__title{
  font-weight: 900;
  color: var(--brand);
  letter-spacing: .2px;
}

.drawer__nav{
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.drawer__link{
  display: block;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(181,188,198,.35);
  background: #fff;
  font-weight: 900;
  color: var(--brand-900);
}
.drawer__link:hover{ background: rgba(23,44,75,.03); }

/* CTA drawer: non più blu forte */
.drawer__link--cta{
  background: var(--accent-soft);
  color: var(--brand-900);
  border-color: var(--accent-border);
}
.drawer__link--cta:hover{ background: rgba(var(--accent-rgb), .24); }

/* evita scroll dietro al drawer */
body.no-scroll{ overflow: hidden; }

/* Buttons */
.btn{
  min-height: var(--tap);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: .2px;
}
.btn--lg{ padding: 14px 16px; border-radius: 18px; }

/* CTA arancio più soft */
.btn--primary{
  background: var(--accent-mid);
  color: var(--brand-900);
  border-color: rgba(0,0,0,.05);
}
.btn--primary:hover{ filter: brightness(0.98); }
.btn--secondary{ background:#fff; color: var(--brand); border-color: rgba(181,188,198,.55); }
/* CTA hero: più solida + bordo per stacco su immagine */
.btn--hero-cta{
  background: rgba(var(--accent-rgb), .82);         /* meno trasparente */
  border: 1px solid rgba(255,255,255,.28);         /* bordino chiaro */
  box-shadow: 0 14px 34px rgba(7,14,23,.22);       /* stacco sull'hero */
  backdrop-filter: blur(2px);                      /* leggerissimo, opzionale */
}

.btn--hero-cta:hover{
  background: rgba(var(--accent-rgb), .88);
}
/* HERO */
.hero{
  position: relative;
  min-height: 72vh;
  display:flex;
  align-items: center;
  padding: 14px 0 84px;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(90deg, rgba(7,14,23,.75) 0%, rgba(7,14,23,.55) 44%, rgba(7,14,23,.25) 100%),
    url("../img/hero.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero__content{ position: relative; color:#fff; padding-top: 0; }
.hero__badge{ display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 10px; }
.pill{
  font-weight: 900; font-size: 12px;
  padding: 8px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}
.pill--muted{ background: rgba(255,255,255,.10); }

.hero__title{
  margin: 0 0 8px;
  font-size: clamp(28px, 5.8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  text-wrap: balance;
}
.hero__subtitle{
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: clamp(15px, 3.6vw, 18px);
  color: rgba(255,255,255,.92);
}
.hero__cta{ display:flex; flex-direction: column; gap: 10px; max-width: 420px; }
.hero__scroll{
  position:absolute; left: 50%; transform: translateX(-50%); bottom: 16px;
  font-weight: 900; font-size: 13px;
  color: rgba(255,255,255,.9);
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(7,14,23,.40);
  border: 1px solid rgba(255,255,255,.12);
}

/* Sections */
.section{ padding: 46px 0; }
.section--alt{
  background: var(--alt);
  border-top: 1px solid rgba(181,188,198,.25);
  border-bottom: 1px solid rgba(181,188,198,.25);
}
.section__header{ margin-bottom: 18px; }
.section__title{
  margin:0 0 6px;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: -0.3px;
  color: var(--brand-900);
}
.section__subtitle{ margin:0; color: var(--text-2); max-width: 68ch; }
.section__cta{ margin-top: 16px; display:flex; justify-content:center; }

/* Grid / cards / etc. (invariati) */
.grid{ display:grid; gap: 14px; }
.grid--3{ grid-template-columns: 1fr; }
.card{
  background:#fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(181,188,198,.35);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(7,14,23,.06);
}
.card__title{ margin:0 0 6px; color: var(--brand); font-size: 18px; }
.card__text{ margin:0 0 12px; color: var(--text-2); }
.list{ margin:0; padding-left: 18px; color: var(--text-2); }
.list li{ margin: 6px 0; }

.steps{ display:grid; gap: 12px; }
.step{
  display:flex; gap: 12px;
  background:#fff;
  border: 1px solid rgba(181,188,198,.35);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(7,14,23,.05);
}
.step__num{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:grid; place-items:center;
  font-weight: 900;
  color: var(--brand-900);
  background: rgba(var(--accent-rgb), .22);
  border: 1px solid rgba(var(--accent-rgb), .30);
  flex: 0 0 auto;
}
.step__titleRow{ display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.step__title{ margin:0; color: var(--brand); font-size: 16px; }
.step__text{ margin: 6px 0 0; color: var(--text-2); }

.info-btn{
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(181,188,198,.6);
  background: rgba(23,44,75,.04);
  color: var(--brand);
  font-weight: 900;
  display:grid; place-items:center;
}

.contact__row{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact__icon{
  opacity: .85;
}

.coverage{ display:grid; gap: 14px; }
.coverage__box{
  background:#fff;
  border: 1px solid rgba(181,188,198,.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(7,14,23,.05);
}
.coverage__title{ margin:0 0 8px; color: var(--brand); font-size: 16px; }
.coverage__text{ margin:0; color: var(--text-2); }
.chips{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap: 8px; }
.chip{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(181,188,198,.40);
  background: rgba(23,44,75,.04);
  font-weight: 900;
  font-size: 13px;
}

.gallery{ display:grid; grid-template-columns: 1fr; gap: 12px; }
.gallery__item{
  margin:0;
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid rgba(181,188,198,.35);
  background:#fff;
  box-shadow: 0 12px 30px rgba(7,14,23,.05);
}
.gallery__item img{ width:100%; height: 210px; object-fit: cover; }

.mini{
  background:#fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(181,188,198,.35);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(7,14,23,.05);
}
.mini__title{ margin:0 0 6px; color: var(--brand); }
.mini__text{ margin:0; color: var(--text-2); }

.quote{ display:grid; gap: 14px; }
.form{
  background:#fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(181,188,198,.35);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(7,14,23,.06);
}
.form__row{ display:grid; grid-template-columns: 1fr; gap: 12px; }
.field{ display:grid; gap: 6px; margin-bottom: 12px; }
.field__label{ font-weight: 900; color: var(--brand); font-size: 13px; }
.field__input{
  width:100%;
  min-height: var(--tap);
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(181,188,198,.6);
  outline: none;
  font-size: 16px;
}
.field__input:focus{
  border-color: rgba(var(--accent-rgb), .75);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16);
}
.field__textarea{ min-height: 120px; resize: vertical; }

.form__actions{ display:grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.form__hint{ margin: 12px 0 0; color: var(--text-2); font-size: 13px; }

.contact__box{
  background:#fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(181,188,198,.35);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(7,14,23,.05);
}
.contact__title{ margin:0 0 8px; color: var(--brand); }
.contact__text{ margin:0; color: var(--text-2); }

/* Popup */
.modal{
  position: fixed;
  inset: 0;
  z-index: 120;
}
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(7,14,23,.45);
  border:0;
}
.modal__sheet{
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background:#fff;
  border-radius: 22px;
  border: 1px solid rgba(181,188,198,.35);
  box-shadow: 0 20px 60px rgba(7,14,23,.25);
  padding: 14px;
}
.modal__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(181,188,198,.35);
}
.modal__title{ margin:0; color: var(--brand); font-size: 16px; font-weight: 900; }
.modal__list{ margin: 12px 0 0; padding-left: 18px; color: var(--text-2); }
.modal__list li{ margin: 8px 0; }
.modal__note{ margin: 10px 0 0; color: var(--text-2); font-size: 13px; }

/* Footer & bottom bar */
.footer{
  background: var(--brand-900);
  color: rgba(255,255,255,.92);
  padding: 18px 0 90px;
}
.footer__inner{ display:flex; flex-direction: column; gap: 10px; }
.footer a{ text-decoration: underline; }
.muted{ color: rgba(255,255,255,.72); }

.bottom-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(181,188,198,.35);
}
.bottom-bar__btn{
  min-height: 54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 18px;
  font-weight: 900;
  border: 1px solid rgba(181,188,198,.55);
  background:#fff;
  color: var(--brand);
}
.bottom-bar__btn--primary{
  background: var(--accent-mid);
  border-color: rgba(0,0,0,.05);
  color: var(--brand-900);
}

/* Floating actions desktop */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.fab__btn{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(181,188,198,.55);
  box-shadow: 0 18px 50px rgba(7,14,23,.20);
}
.fab__btn:hover{ transform: translateY(-1px); }
.fab__btn--wa{
  background: rgba(var(--accent-rgb), .80);
  border-color: rgba(var(--accent-rgb), .90);
}

/* Desktop */
@media (min-width: 860px){
  :root{ --pad: 22px; }

  .nav--desktop{ display:flex; align-items:center; gap: 6px; }
  .burger{ display:none; }

  /* Drawer non serve su desktop */
  .drawer{ display:none; }

  /* Bottom bar mobile OFF su desktop */
  .bottom-bar{ display:none; }

  /* FAB desktop ON */
  .fab{ display:flex; }

  .hero{
    min-height: 56vh;
    align-items: center;
    padding-bottom: 90px;
  }
  .hero__cta{ flex-direction: row; align-items:center; }

  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .coverage{ grid-template-columns: 1.2fr .8fr; }
  .gallery{ grid-template-columns: repeat(3, 1fr); }
  .quote{ grid-template-columns: 1.2fr .8fr; align-items:start; }
  .form__row{ grid-template-columns: 1fr 1fr; }

  .footer__inner{ flex-direction: row; justify-content: space-between; align-items:flex-start; }

  .modal__sheet{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 24px));
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .drawer__overlay, .drawer__panel{ transition: none; }
  .fab__btn:hover{ transform: none; }
}
