/* OpenBusiness — sito statico */
:root {
  --blue: #1c84c6;
  --blue-dark: #1470ab;
  --ink: #16202a;
  --text: #4a5560;
  --muted: #7b8691;
  --line: #e5e9ec;
  --soft: #f5f7f9;
  --white: #fff;
  --c-retail: #a44aa4;
  --c-franchising: #1c83c6;
  --c-assoc: #4fb3d4;
  --c-consult: #5f84b8;
  --container: 1170px;
  --gutter: 24px;
  --radius: 6px;
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--ink); text-align: center; margin-bottom: .4em; }
.section-lead { font-size: 20px; text-align: center; max-width: 760px; margin: 0 auto 56px; color: var(--text); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s, padding .25s;
  padding: 22px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; line-height: 0; }
.brand img { height: 38px; width: auto; transition: height .25s; }
.brand .logo-dark { display: none; }
.site-header.is-solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(0,0,0,.05); padding: 12px 0; }
.site-header.is-solid .brand img { height: 32px; }
.site-header.is-solid .logo-light { display: none; }
.site-header.is-solid .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav a, .nav button {
  display: block; padding: 10px 14px; font-family: var(--head); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.site-header.is-solid .nav a, .site-header.is-solid .nav button { color: var(--ink); }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--blue) !important; }
.nav .caret { display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; margin: 0; padding: 8px 0;
  background: #fff; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { color: var(--ink) !important; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; padding: 10px 20px; }
.dropdown a:hover { background: var(--soft); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; transition: .2s; }
.site-header.is-solid .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  color: #fff; background: #0d1a2b center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,30,.72) 0%, rgba(8,16,30,.35) 60%, rgba(8,16,30,.2) 100%); }
.hero--short { min-height: 78vh; }
.hero .container { position: relative; }
.hero h1 {
  font-family: var(--head); font-weight: 800; color: #fff; letter-spacing: -.01em;
  font-size: clamp(34px, 5.4vw, 66px); line-height: 1.12; max-width: 900px; margin: 0 0 36px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 36px; height: 36px; color: #fff; opacity: .8; animation: bob 2s infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: #fff; background: var(--blue);
  padding: 15px 34px; border-radius: var(--radius); border: 0; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 6px 18px rgba(28,132,198,.35);
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.cta-block { text-align: center; padding: 72px 0 96px; }
.cta-block h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.cta-block p { font-size: 20px; margin-bottom: 32px; }

/* ---------- Home: intro ---------- */
.intro { padding: 120px 0; text-align: center; }
.intro h2 { font-size: clamp(28px, 3.8vw, 48px); font-weight: 800; max-width: 980px; margin: 0 auto .8em; }
.benefits { list-style: none; padding: 0; margin: 48px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: left; }
.benefits li {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; background: var(--soft); border-radius: var(--radius);
  font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.4;
}
.benefits svg { flex: none; width: 26px; height: 26px; color: var(--blue); margin-top: 1px; }

/* ---------- Home: come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1040px; margin: 0 auto; }
.step { text-align: center; }
.step img { width: 110px; height: 110px; margin: 0 auto 24px; mix-blend-mode: multiply; }
.step p { font-size: 19px; line-height: 1.6; color: var(--ink); }
.step .num { display: block; font-family: var(--head); font-weight: 800; color: var(--blue); font-size: 15px; letter-spacing: .12em; margin-bottom: 6px; }

/* ---------- Home: soluzioni ---------- */
.solutions-wrap { background: #fff url(../img/word_map.png) center 40px / 1100px auto no-repeat; position: relative; }
.solutions-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.88); }
.solutions-wrap > * { position: relative; }
.solutions { display: grid; grid-template-columns: repeat(2, 1fr); }
.solution {
  display: flex; flex-direction: column; color: #fff; text-decoration: none; min-height: 320px; padding: 48px 56px;
  transition: filter .2s;
}
.solution:hover { filter: brightness(1.07); }
.solution h3 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.solution p { font-size: 18px; margin: 0 0 .4em; opacity: .95; }
.solution .more { margin-top: auto; align-self: flex-end; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; padding-top: 24px; }
.solution .more::after { content: "→"; transition: transform .2s; }
.solution:hover .more::after { transform: translateX(4px); }
.s-retail { background: var(--c-retail); }
.s-franchising { background: var(--c-franchising); }
.s-assoc { background: var(--c-assoc); }
.s-consult { background: var(--c-consult); }

/* ---------- Page intro (sotto header) ---------- */
.lead-block { padding: 96px 0 72px; text-align: center; }
.lead-block .container { max-width: 900px; }
.lead-block h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.lead-block p { font-size: 19px; line-height: 1.75; }
.lead-block--tall { min-height: 60vh; display: flex; align-items: center; }

.wide-image { width: 100%; max-height: 560px; object-fit: cover; }

/* ---------- Feature (testo + laptop) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature--reverse .feature-media { order: -1; }
.feature h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin-bottom: .3em; }
.feature .subtitle { font-size: 19px; font-weight: 600; color: var(--blue); margin-bottom: 1.2em; line-height: 1.5; }
.feature p { font-size: 17px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; line-height: 1.55; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.note { font-style: italic; color: var(--muted); }

/* ---------- Altri servizi ---------- */
.more-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 40px; }
.card h3 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 800; margin-bottom: .3em; }
.card .subtitle { font-size: 18px; font-weight: 600; color: var(--blue); margin-bottom: 1em; line-height: 1.5; }

/* ---------- Tecnologia ---------- */
.tech-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; }
.tech-block + .tech-block { border-top: 1px solid var(--line); }
.tech-block h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.tech-block img { border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.12); max-height: 380px; width: 100%; object-fit: cover; }
.tech-text-only { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.parallax { height: 340px; background: center/cover no-repeat fixed; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.showcase figure { margin: 0; }
.showcase img { border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.1); margin-bottom: 28px; aspect-ratio: 800 / 520; object-fit: cover; width: 100%; background: #fff; }
.showcase h3 { font-size: 26px; font-weight: 800; }

/* ---------- Chi siamo / contatti ---------- */
.about { max-width: 820px; margin: 0 auto; }
.about h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.about p { font-size: 18px; line-height: 1.75; }
.about .lead { font-size: 21px; color: var(--ink); }
.address { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin: 48px 0 0; padding: 40px; background: var(--soft); border-radius: 10px; }
.address img { width: 170px; margin-bottom: 16px; }
.address p { font-size: 16px; margin-bottom: .6em; }
.address iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); }
.social { display: flex; gap: 12px; margin-top: 12px; }
.social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; align-items: center; justify-content: center; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.contact-form { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 48px; box-shadow: 0 20px 50px rgba(0,0,0,.06); }
.contact-form h2 { font-size: 30px; font-weight: 800; text-align: center; }
.contact-form .hint { text-align: center; color: var(--muted); margin-bottom: 32px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); padding: 13px 16px; border: 1px solid #cfd6dc; border-radius: var(--radius);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,132,198,.18); }
.privacy { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 28px; font-size: 14px; line-height: 1.55; color: var(--text); }
.privacy input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.form-actions { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 20px; text-align: center; font-size: 16px; }
.form-status.error { color: #c0392b; }
.form-success { text-align: center; padding: 40px 0; }
.form-success h3 { font-size: 28px; font-weight: 800; }
.form-success p { font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #10181f; color: #a8b3bd; font-size: 14px; padding: 40px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer strong { color: #fff; }
.site-footer a { color: #a8b3bd; }
.eu { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eu img { height: 34px; width: auto; background: #fff; padding: 3px; border-radius: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  html { scroll-behavior: auto; }
  .parallax { background-attachment: scroll; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 0 16px; box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none;
  }
  .site-header.menu-open { background: #fff; }
  .site-header.menu-open .logo-light { display: none; }
  .site-header.menu-open .logo-dark { display: block; }
  .site-header.menu-open .nav-toggle span { background: var(--ink); }
  .site-header.menu-open .nav { display: flex; }
  .nav a, .nav button { color: var(--ink) !important; padding: 12px var(--gutter); width: 100%; text-align: left; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 12px; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .feature, .tech-block, .showcase, .address { grid-template-columns: 1fr; gap: 32px; }
  .feature--reverse .feature-media { order: 0; }
  .parallax { background-attachment: scroll; height: 240px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section, .intro { padding: 72px 0; }
  .benefits, .steps, .solutions, .more-services, .fields { grid-template-columns: 1fr; }
  .solution { padding: 36px 28px; min-height: 0; }
  .contact-form { padding: 32px 22px; }
  .card { padding: 28px; }
  .address { padding: 24px; }
  .hero--short { min-height: 64vh; }
  .hero h1 br { display: none; }
  .brand img { height: 30px; }
}
