/* =========================================================
   Almacrea – foglio di stile
   Colori e caratteri si cambiano dalle variabili qui sotto.
   ========================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree.woff2") format("woff2-variations"),
       url("../fonts/figtree.woff2") format("woff2");
}

:root {
  --accent: #B54708;        /* arancio scuro: pulsanti e link (5,4:1 su bianco) */
  --accent-dark: #8A3A00;   /* hover e testo su fondo chiaro arancio */
  --accent-soft: #FDEBD8;
  --brand-bright: #FFA53D;  /* arancio del logo: solo su fondo blu scuro */
  --mark: #FFD7A8;          /* sottolineatura evidenziatore nel titolo */
  --ok-bg: #E3F2EE;
  --ok-fg: #075A48;
  --ink: #14213D;
  --ink-2: #3D4A5C;
  --muted: #4A5568;
  --ground: #F4F6F8;
  --surface: #FFFFFF;
  --line: #DCE1E7;
  --highlight: #FFA53D;
  --on-ink: #D5DCE8;
  --on-ink-muted: #A9B4C7;
  --radius: 16px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); color: inherit; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .cta :focus-visible, .hero-dark :focus-visible,
a.card-dark:focus-visible, .skip-link:focus-visible { outline-color: var(--brand-bright); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 20px; color: var(--ink-2); }
.section-intro { color: var(--ink-2); font-size: 19px; max-width: 640px; margin-bottom: 44px; }

.h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; }
.h2.mb { margin-bottom: 40px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 20px;
}
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.brand img { height: 50px; width: auto; }
.footer-logo { height: 54px; width: auto; align-self: flex-start; margin-bottom: 6px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.main-nav a:hover { color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--accent); }

.menu-toggle {
  display: none; background: none; border: 1.5px solid var(--ink); border-radius: 10px;
  width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 24px; border-radius: 12px;
  font-family: var(--body); font-weight: 700; font-size: 17px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-yellow { background: var(--highlight); color: var(--ink); font-weight: 800; }
.btn-yellow:hover { background: #FFBD70; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); font-weight: 800; }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 16px; border-radius: 10px; }
.main-nav .btn-primary, .main-nav .btn-primary:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-inner.sub { padding-top: 0; padding-bottom: 88px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-visual { flex: 1 1 400px; min-width: 0; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.sub-hero h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.05; }
.mark { background: linear-gradient(transparent 62%, var(--mark) 62%); }

.pill {
  align-self: flex-start; display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.pill-yellow { background: var(--highlight); color: var(--ink); }

.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 36px; padding-bottom: 40px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }

/* Hero scuro (chatbot) */
.hero-dark { background: var(--ink); color: #fff; }
.hero-dark .lead { color: var(--on-ink); }
.hero-dark .breadcrumb, .hero-dark .breadcrumb a { color: #C3CCDA; }

/* Pannelli illustrativi */
.panel-dark {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -30px rgba(20,33,61,.5);
}
.panel-title { font-family: var(--display); font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-title small { font-family: var(--body); font-weight: 400; font-size: 13px; color: #C3CCDA; }
.row-card {
  background: #fff; color: var(--ink); border-radius: 12px; padding: 13px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.row-card .t { display: flex; flex-direction: column; }
.row-card strong { font-size: 15px; }
.row-card span.s { font-size: 13px; color: var(--muted); }
.rank { width: 24px; color: var(--accent); font-weight: 800; }
.grow { flex: 1; }
.panel-note { font-size: 13px; color: #C3CCDA; }

.badge { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.badge-wait { background: #FFF4CC; color: #6B4F00; }
.badge-ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge-info { background: #E6ECF5; color: #23395D; }

.shot {
  border-radius: 22px; overflow: hidden; background: #E8ECF1; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 600; text-align: center; padding: 24px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Screenshot reali delle applicazioni */
.hero-inner.stack { flex-direction: column; align-items: stretch; gap: 40px; }
.hero-inner.stack .hero-text { flex: none; max-width: 820px; }
.app-shot { margin: 0; }
.app-shot img { width: 100%; height: auto; }
.app-shot figcaption, .browser-caption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

.browser {
  margin: 0; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(20,33,61,.45);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #EEF1F5; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #C9D0DA; }
.browser img { width: 100%; height: auto; }

/* Chat */
.chat {
  background: #fff; color: var(--ink); border-radius: 22px; padding: 22px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.msg { padding: 10px 14px; max-width: 85%; }
.msg-user { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg-bot { align-self: flex-start; background: var(--accent-soft); color: var(--ink); border-radius: 14px 14px 14px 4px; }
.chat .panel-note { color: var(--muted); }

/* ---------- Barra conformità ---------- */
.compliance { border-bottom: 1px solid var(--line); }
.compliance ul {
  list-style: none; margin: 0 auto; padding: 22px 24px; max-width: 1200px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  font-weight: 600; color: var(--ink-2); font-size: 15px;
}
.compliance li { display: flex; align-items: center; gap: 8px; }
.compliance svg { flex: 0 0 auto; }

/* ---------- Card ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; font-family: var(--body); font-weight: 700; }
.card p { color: var(--ink-2); }

a.card-link {
  border-radius: 18px; padding: 30px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 14px; transition: transform .15s ease, box-shadow .15s ease;
}
a.card-link:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20,33,61,.45); color: var(--ink); }
a.card-link h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.card-more { margin-top: auto; font-weight: 700; color: var(--accent); }
.icon-box { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
a.card-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
a.card-dark:hover { color: #fff; }
a.card-dark p { color: var(--on-ink); }
a.card-dark .icon-box { background: var(--highlight); }
a.card-dark .card-more { color: var(--highlight); }
.tag-new { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 999px; }

/* Step numerati */
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--accent); line-height: 1; }
.step h3 { margin: 0; font-family: var(--body); font-size: 21px; font-weight: 700; }
.step p { color: var(--ink-2); }

.step-card { flex: 1 1 260px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.step-card .step-num { font-size: 36px; }
.step-card h3 { margin: 0; font-family: var(--body); font-size: 20px; }
.step-card p { color: var(--ink-2); }
.step-label { font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: .06em; }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 340px; min-width: 0; }
.split > :last-child { flex: 2 1 560px; min-width: 0; }
.split .h2 { font-size: clamp(30px, 3.4vw, 38px); }
.split p.lead { font-size: 18px; }

.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.timeline li { display: flex; gap: 18px; align-items: flex-start; }
.timeline .dot { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.timeline strong { font-size: 19px; }
.timeline p { margin-top: 4px; color: var(--ink-2); }

.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.checks li { display: flex; gap: 14px; }
.checks svg { flex: 0 0 24px; margin-top: 3px; }

.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; }

.audience { display: flex; flex-wrap: wrap; gap: 24px; }
.audience > div { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.audience strong { font-family: var(--display); font-size: 26px; }
.audience p { color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  background: var(--accent); color: #fff; border-radius: 26px; padding: 56px 48px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.cta > div:first-child { flex: 1 1 460px; min-width: 0; }
.cta h2 { margin: 0 0 10px; font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
.cta p { font-size: 19px; color: #FFF4EA; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions a.tel { color: #fff; text-align: center; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 40px; }
.footer-grid > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.footer-grid strong { color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; letter-spacing: .04em; }
.footer-bottom {
  border-top: 1px solid #2C3B5C; padding-top: 18px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--on-ink-muted);
}
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--on-ink-muted); }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--on-ink-muted);
  text-decoration: underline; cursor: pointer;
}
.link-button:hover { color: #fff; }

/* ---------- Pagine testuali (legali) ---------- */
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 800; line-height: 1.1; margin: 0 0 12px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose h3 { font-family: var(--body); font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 12px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--ground); }
.table-wrap tr:last-child td { border-bottom: 0; }
.note-box { background: #FFF8DB; border: 1px solid #F0D98A; border-radius: 12px; padding: 16px 18px; color: #4D3B00; margin-bottom: 28px; }

/* ---------- Banner cookie ---------- */
.cookie-banner[hidden], .cookie-modal[hidden] { display: none !important; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 980px; margin: 0 auto; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(20,33,61,.45);
  padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center;
}
.cookie-banner .cb-text { flex: 1 1 440px; min-width: 0; font-size: 15px; color: var(--ink-2); }
.cookie-banner .cb-text strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.cookie-banner .cb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .cb-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; color: var(--muted); border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.cookie-modal {
  position: fixed; inset: 0; z-index: 400; background: rgba(20,33,61,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cookie-dialog {
  background: var(--surface); border-radius: 20px; max-width: 620px; width: 100%;
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px;
}
.cookie-dialog h2 { margin: 0 0 8px; font-size: 26px; }
.cookie-dialog > p { color: var(--ink-2); font-size: 15px; }
.cookie-cat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-cat-head label { font-weight: 700; }
.cookie-cat p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.cookie-cat input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); }
.always-on { font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.cookie-dialog .cb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; justify-content: flex-end; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 120px; padding-bottom: 140px; }
.notfound .big { font-family: var(--display); font-size: 120px; font-weight: 800; color: var(--accent); line-height: 1; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(20,33,61,.3); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav li:last-child a { margin-top: 14px; border-bottom: 0; text-align: center; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero-inner { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .cta { padding: 40px 24px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .lead { font-size: 18px; }
  .btn-row .btn { width: 100%; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 20px 18px; }
  .cookie-banner .cb-actions .btn { flex: 1 1 100%; }
}

@media print {
  .site-header, .cookie-banner, .cookie-modal, .cta { display: none !important; }
}

/* Screenshot a fianco del testo (pagine prodotto) */
.shot-card {
  margin: 0; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(20,33,61,.45);
}
.shot-card img { width: 100%; height: auto; }

/* Homepage: effetto "la classe" (puntini che formano un gruppo) */
.hero-home { position: relative; overflow: hidden; }
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-home .hero-inner { position: relative; z-index: 1; }
@media print { .hero-dots { display: none; } }
