@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #231f5a;
  --navy-900: #17143d;
  --navy-700: #322d7a;
  --accent: #f08a24;
  --accent-700: #c96a12;
  --ink: #1d1d2b;
  --muted: #5b5f73;
  --line: #e3e5ee;
  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --ok: #1d8a4e;
  --err: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 20, 61, .08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--navy-700); }
h1, h2, h3 { font-family: "Montserrat", "Inter", sans-serif; line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-700); margin-bottom: 10px;
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-700); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1fb558; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand__name {
  font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--navy);
  font-size: 1.25rem; letter-spacing: .04em; line-height: 1;
}
.brand__sub { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; font-family: "Inter", sans-serif; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; position: relative; transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}
.nav a:hover { color: var(--accent-700); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--navy); }

/* Animazioni: attive solo quando il JavaScript è caricato */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.section h2, .eolo h2 { position: relative; }
.is-arrived h2::after {
  content: ""; position: absolute; left: 0; bottom: -10px; height: 4px; width: 80px; border-radius: 4px;
  background: var(--accent); transform-origin: left; animation: sweep 1.1s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes sweep {
  0% { transform: scaleX(0); opacity: 1; }
  45% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.nav .btn { padding: 10px 18px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; display: block; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(240,138,36,.22), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; padding: 88px 20px 0; }
.hero__text { padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--accent); }
.hero p.lead { color: rgba(255,255,255,.84); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: rgba(255,255,255,.88); font-size: .95rem; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 18px; height: 18px; color: var(--accent); }
.hero__art { align-self: end; }
.hero__art svg { display: block; width: 100%; height: auto; }

/* Per chi lavoriamo */
.audience { background: #fff; border-bottom: 1px solid var(--line); }
.audience__inner { display: flex; align-items: center; gap: 28px; padding: 26px 20px; flex-wrap: wrap; }
.audience__label { font-weight: 700; color: var(--navy); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.audience ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.audience li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.audience li svg { width: 22px; height: 22px; color: var(--navy); }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(35,31,90,.07); color: var(--navy); margin-bottom: 18px;
}
.service__icon svg { width: 28px; height: 28px; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Chi siamo */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__panel {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff;
  border-radius: 24px; padding: 44px; position: relative; overflow: hidden;
}
.about__panel h3 { color: #fff; font-size: 1.4rem; }
.about__panel .year { font-family: "Montserrat", sans-serif; font-size: 5rem; font-weight: 800; line-height: 1; color: var(--accent); }
.about__panel p { color: rgba(255,255,255,.84); margin: 0; }
.about__panel img { position: absolute; right: -10px; bottom: -14px; width: 120px; opacity: .1; filter: brightness(0) invert(1); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--accent-700); flex: none; margin-top: 2px; }

/* EOLO */
.eolo { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.eolo__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding: 64px 20px; }
.eolo__badge {
  width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2);
  display: grid; place-items: center; text-align: center; color: var(--accent);
}
.eolo__badge svg { width: 54px; height: 54px; }
.eolo h2 { color: #fff; margin-bottom: .3em; }
.eolo p { color: rgba(255,255,255,.8); margin: 0; max-width: 620px; }

/* Metodo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center;
  font-family: "Montserrat", sans-serif;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: -12px; height: 2px; background: var(--line);
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Zona */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.zone__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.zone__list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .93rem; color: var(--navy); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--navy); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__load {
  width: 100%; height: 100%; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.map__load svg { width: 40px; height: 40px; color: var(--accent); }
.map__load small { font-weight: 400; opacity: .75; max-width: 280px; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent-700); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Contatti */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact__info { display: grid; gap: 18px; align-content: start; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item strong { display: block; color: var(--navy); }
.info-item a { text-decoration: none; font-weight: 600; }
.info-item span { color: var(--muted); }
.form { background: #fff; border-radius: 20px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form h3 { margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd3e0; border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(240,138,36,.25); border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.form__privacy input { margin-top: 4px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__alt { font-size: .9rem; color: var(--muted); }
.form__alt a { font-weight: 600; }
.form__status { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: .95rem; display: none; }
.form__status.is-ok { display: block; background: rgba(29,138,78,.1); color: var(--ok); }
.form__status.is-err { display: block; background: rgba(192,57,43,.08); color: var(--err); }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band .btn--navy { background: var(--navy-900); }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-family: "Montserrat", sans-serif; margin: 0 0 14px; font-size: 1rem; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__logo { background: #fff; border-radius: 14px; padding: 16px 20px; display: inline-block; margin-bottom: 16px; }
.footer__logo img { height: 90px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Pulsanti fissi su mobile */
.fab { display: none; }

/* Pagina testo (privacy) */
.page-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy)); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.prose { max-width: 780px; padding: 56px 20px 88px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner, .about, .zone, .contact { grid-template-columns: 1fr; }
  .hero__inner { padding-top: 64px; gap: 0; }
  .hero__text { padding-bottom: 32px; }
  .hero__art { max-width: 460px; margin: 0 auto; width: 100%; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .step::after { display: none; }
  .eolo__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav a.is-active { color: var(--accent-700); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero__inner { padding: 44px 16px 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__art { max-width: 340px; }
  .audience__inner { padding: 22px 16px; gap: 14px; }
  .audience ul { gap: 10px 20px; }
  .services, .steps, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .about__panel { padding: 32px; }
  .eolo__inner { padding: 52px 16px; }
  .eolo__badge { width: 88px; height: 88px; }
  .eolo__badge svg { width: 40px; height: 40px; }
  .form { padding: 24px; }
  .form__actions .btn { width: 100%; }
  .brand img { height: 44px; }
  .brand__name { font-size: 1.05rem; }
  .fab {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; gap: 10px;
  }
  .fab .btn { flex: 1; box-shadow: 0 8px 20px rgba(0,0,0,.2); padding: 13px 10px; }
  .footer { padding-bottom: 96px; }
}
