/* ============================================================
   Memento SRL — design system per il nuovo sito
   Palette brand: blu #0361a9, dark #32323a, sfondo #f4f7fa
   ============================================================ */

:root {
  --blue: #0361a9;
  --blue-dark: #024a82;
  --blue-deep: #063a63;
  --blue-light: #e8f1f9;
  --ink: #32323a;
  --ink-soft: #5a5a66;
  --bg: #f4f7fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(6, 58, 99, 0.08);
  --shadow-md: 0 8px 30px rgba(6, 58, 99, 0.10);
  --shadow-lg: 0 20px 60px rgba(6, 58, 99, 0.16);
  --font: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { height: 42px; width: auto; }
.footer .logo img { height: 32px; }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.nav > li { position: relative; }

.nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.nav > li > a:hover,
.nav > li > a.active { color: var(--blue); background: var(--blue-light); }

.nav .caret {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
  transition: transform .2s;
}
.nav > li:hover .caret { transform: rotate(225deg) translateY(-1px); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.nav > li:hover .dropdown,
.nav > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -9px; left: 0; right: 0;
  height: 10px;
}

.dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background .12s, color .12s;
}

.dropdown a:hover { background: var(--blue-light); color: var(--blue); }

.dropdown .dd-label {
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

.dropdown.dd-wide {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
  padding: 12px;
}
.dropdown.dd-wide .dd-label { grid-column: 1 / -1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.lang-switch a { padding: 3px 9px; border-radius: 6px; }
.lang-switch a.active { background: var(--blue); color: #fff; }
.lang-switch a:not(.active):hover { background: var(--blue-light); color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(3, 97, 169, 0.30);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(3, 97, 169, 0.35);
}
.btn-ghost:hover { background: var(--blue-light); border-color: var(--blue); }

.btn-white {
  background: #fff;
  color: var(--blue-deep);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.75); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero homepage (foto Milano) ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(7,30,54,0.96) 0%, rgba(7,30,54,0.87) 38%, rgba(8,50,86,0.55) 72%, rgba(8,50,86,0.38) 100%),
    url("../img/hero-milano.webp") center bottom / cover no-repeat, #0a2540;
  color: #fff;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(100deg, rgba(7,30,54,0.96) 0%, rgba(7,30,54,0.87) 38%, rgba(8,50,86,0.55) 72%, rgba(8,50,86,0.38) 100%),
      url("../img/hero-milano-m.webp") center bottom / cover no-repeat, #0a2540;
  }
}

.hero-inner {
  position: relative;
  max-width: 780px;
  padding: 108px 0 116px;
}

.hero .eyebrow { color: #8fc1e8; }
.hero .eyebrow::before { background: #8fc1e8; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: #fff;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: #7cc0f4;
}

.hero p.lead {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.hero-badge svg { width: 20px; height: 20px; color: #7cc0f4; flex-shrink: 0; }
a.hero-badge:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  background: linear-gradient(130deg, #0a2540 0%, #0b3355 45%, #084a80 100%);
  color: #fff;
  padding: 66px 0 58px;
}

.page-hero .crumbs {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs span { margin: 0 7px; }

.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1.15;
}

.page-hero p.sub {
  margin-top: 14px;
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 880px;
}

/* ---------- Clients marquee ---------- */
.clients {
  background: var(--white);
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--border);
}
.clients-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.clients-marquee {
  position: relative;
  overflow: hidden;
}
.clients-marquee::before,
.clients-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.clients-marquee::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.clients-marquee::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }

.clients-track {
  display: flex;
  width: max-content;
  /* reverse: il primo logo (KFC, referenza principale) parte visibile a sinistra
     e attraversa tutta la finestra prima di uscire, invece di sparire subito */
  animation: clients-scroll 38s linear infinite reverse;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }

.clients-set {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  padding-right: 56px;
}
.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.client-item img {
  height: 64px;
  width: auto;
}
.client-item figcaption {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink-soft);
  white-space: nowrap;
}

@keyframes clients-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .clients-track .clients-set + .clients-set { display: none; }
}

/* ---------- Logo wall statico (About) ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.logo-wall .logo-cell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 26px 20px;
  transition: transform .18s, box-shadow .18s;
}
.logo-wall .logo-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-wall img {
  height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .25s, opacity .25s;
}
.logo-wall .logo-cell:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Sezioni ---------- */
section.block { padding: 92px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- Situazioni d'acquisto ---------- */
.situations { padding: 72px 0 0; }
.sit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.sit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(3, 97, 169, 0.4);
  box-shadow: var(--shadow-md);
}
.sit-card .sit-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.sit-card .sit-ic svg { width: 20px; height: 20px; }
.sit-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 6px; }
.sit-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.sit-card .sit-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
}
.sit-card .sit-go svg { width: 14px; height: 14px; transition: transform .18s; }
.sit-card:hover .sit-go svg { transform: translateX(4px); }

/* ---------- Card soluzioni ---------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sol-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
section.block.alt .sol-card { background: var(--bg); }

.sol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(3, 97, 169, 0.35);
}

.sol-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--blue-light);
  display: grid;
  place-items: center;
  color: var(--blue);
  margin-bottom: 22px;
}
.sol-icon svg { width: 26px; height: 26px; }

.sol-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; }
.sol-card p { font-size: 15px; color: var(--ink-soft); flex: 1; margin-bottom: 22px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(4px); }

.sol-secondary {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.chip svg { width: 15px; height: 15px; color: var(--blue); }

/* ---------- Punti di forza / valori ---------- */
.str-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 44px;
}

.str-item { display: flex; gap: 18px; align-items: flex-start; }

.str-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(3, 97, 169, 0.28);
}
.str-icon svg { width: 22px; height: 22px; }

.str-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
.str-item p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Missione (About) ---------- */
.mission {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 320px at 90% 0%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(130deg, #0a2540 0%, var(--blue-deep) 45%, var(--blue) 100%);
  border-radius: 22px;
  padding: 76px 64px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.mission-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mission-inner { position: relative; }
.mission-inner::before {
  content: "“";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 110px;
  line-height: 0.4;
  height: 44px;
  color: rgba(124, 192, 244, 0.45);
}
.mission .eyebrow { color: #8fc1e8; justify-content: center; margin-bottom: 24px; }
.mission .eyebrow::before, .mission .eyebrow::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: rgba(124, 192, 244, 0.5);
  border-radius: 2px;
}
.mission blockquote {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.4px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- App ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(3, 97, 169, 0.4);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.app-card .app-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.app-card .app-ic svg { width: 19px; height: 19px; }
.app-card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 5px; }
.app-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.app-pill svg { width: 11px; height: 11px; }

.apps-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.app-card .app-icon-img { height: 56px; width: auto; margin-bottom: 14px; }

.apps-footer {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.apps-footer .note { font-size: 14px; color: var(--ink-soft); }
.apps-footer .note a { color: var(--blue); font-weight: 600; }
.apps-footer .note a:hover { text-decoration: underline; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.post-top {
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep));
}

.post-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }

.post time {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
  margin-bottom: 10px;
}
.post h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.35; margin-bottom: 10px; }
.post h3 a:hover { color: var(--blue); }
.post p { font-size: 14.5px; color: var(--ink-soft); flex: 1; margin-bottom: 18px; }

.cat-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: 100px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s, color .15s;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Articolo ---------- */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 28px 76px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.article-meta .cat-chip { margin-bottom: 0; }

.prose { font-size: 16.5px; line-height: 1.75; color: #3e3e48; }
.prose p { margin-bottom: 18px; }
.prose h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 44px 0 14px;
}
.prose h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 32px 0 10px;
}
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

.prose figure {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.prose figure .img-ph {
  aspect-ratio: 16 / 8.5;
  background:
    radial-gradient(ellipse 400px 200px at 70% 20%, rgba(3,97,169,0.14), transparent 60%),
    linear-gradient(140deg, var(--blue-light), #f0f5fa);
  display: grid;
  place-items: center;
  color: var(--blue);
}
.prose figure .img-ph svg { width: 46px; height: 46px; opacity: .6; }
.prose figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

.article-cta {
  margin-top: 48px;
  background: var(--blue-light);
  border: 1px solid rgba(3, 97, 169, 0.25);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta b { font-size: 17px; letter-spacing: -0.2px; }
.article-cta p { font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; }

.related { border-top: 1px solid var(--border); }

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}
.info-card .info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.info-card .info-row:last-child { margin-bottom: 0; }
.info-card .info-row svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--blue); }
.info-card .info-row a { color: var(--blue); font-weight: 600; }
.info-card .info-row a:hover { text-decoration: underline; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 36px;
  box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 22px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-field label b { color: #c0392b; font-weight: 700; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(3, 97, 169, 0.14);
}
.form-privacy {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
}
.form-privacy input { margin-top: 3px; }
.form-privacy a { color: var(--blue); font-weight: 600; }
.form-card .btn { margin-top: 20px; width: 100%; padding: 13px 22px; font-size: 15.5px; }

/* ---------- Page hero: CTA e badge ---------- */
.page-hero .hero-ctas { margin-top: 26px; }
.page-hero .hero-badges { margin-top: 26px; }

/* ---------- Passi (come funziona) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.step .step-n {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(3, 97, 169, 0.28);
}
.step h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Liste con check ---------- */
.check-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.check-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 36px;
}
.check-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 16px; }
.check-card .shot { margin: 20px auto 0; max-width: 700px; }

/* Variante split: testo a sinistra, singolo screenshot a destra */
.check-card.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px 40px;
  align-items: center;
}
.check-card.split h3 { grid-column: 1 / -1; margin-bottom: 4px; }
.check-card.split .shot { margin-top: 0; }
.check-list { display: grid; gap: 10px; }
.check-list li {
  /* blocco con icona in posizione assoluta: i grassetti e i link inline
     fluiscono nel testo senza creare spaziature (i flex item spezzavano le righe) */
  display: block;
  position: relative;
  padding-left: 27px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.check-list li > svg { position: absolute; left: 0; top: 3px; width: 17px; height: 17px; color: var(--blue); }

/* Sotto elenco dentro una voce (es. tipi supportati in Import Data Templates) */
.check-sub { margin-top: 8px; display: grid; gap: 6px; }
.check-sub li {
  display: block;
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.check-sub li::before { content: "•"; position: absolute; left: 2px; color: var(--blue); }

/* ---------- Prezzi app ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--blue); box-shadow: var(--shadow-md); }
.price-card .plan {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.price-card .price { font-size: 34px; font-weight: 700; letter-spacing: -1px; color: var(--ink); line-height: 1.1; }
.price-card .price small { font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.price-card .check-list { margin-top: 16px; flex: 1; }
.price-card .plan-desc {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.price-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.price-note a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.price-note a:hover { color: var(--blue-dark); }

/* Prezzi: base in evidenza + pacchetti aggiuntivi secondari */
.price-duo {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
  align-items: stretch;
}
.price-duo .price-card.featured .price { font-size: 42px; }
.addon-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.addon-row b { font-size: 18px; color: var(--ink); white-space: nowrap; letter-spacing: -0.3px; }
.addon-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* Varianti griglia punti di forza */
.str-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Screenshot di prodotto */
.check-card .shot {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.shot-wide {
  max-width: 860px;
  margin: 44px auto 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.shot-wide img { display: block; width: 100%; }
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.shot-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
@media (max-width: 700px) { .shot-grid { grid-template-columns: 1fr; } }

/* Badge ufficiale AppSource: si usa così com'è, senza arrotondamenti che ne tagliano il bordo */
.btn-appsource { display: inline-flex; align-items: center; transition: transform .15s, box-shadow .15s; }
.btn-appsource img { height: 52px; width: auto; display: block; }
.btn-appsource:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }

/* ---------- Righe funzionalità (testo + screenshot alternati) ---------- */
.feat-rows { display: grid; gap: 28px; }
.feat-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.feat-row.rev { grid-template-columns: 1.1fr 0.9fr; }
.feat-row.rev .feat-txt { order: 2; }
.feat-row h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; }
.feat-row p { font-size: 15px; color: var(--ink-soft); }
.feat-row img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feat-row img.small { max-width: 300px; margin: 0 auto; }

@media (max-width: 900px) {
  .feat-row, .feat-row.rev { grid-template-columns: 1fr; gap: 22px; padding: 26px 24px; }
  .feat-row.rev .feat-txt { order: 0; }
}

/* ---------- Video ---------- */
.video-wrap {
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 600;
  color: var(--blue);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq .faq-a a { color: var(--blue); font-weight: 600; }
.faq .faq-a a:hover { text-decoration: underline; }
.faq .faq-a ul {
  margin: 10px 0 12px 20px;
  list-style: disc;
  display: grid;
  gap: 7px;
}
.faq .faq-a strong { color: var(--ink); }

/* ---------- Frase di chiusura in evidenza ---------- */
.closing-note {
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.65;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 700px 320px at 90% 0%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(130deg, var(--blue-deep) 0%, var(--blue) 100%);
  border-radius: 22px;
  padding: 70px 60px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.85); max-width: 560px; }
.cta-band .btn { font-size: 16px; padding: 14px 30px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #c4c6ce;
  margin-top: 96px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-about p { font-size: 14.5px; margin: 18px 0 22px; max-width: 320px; }

.footer-contact { display: grid; gap: 10px; font-size: 14px; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: #7ab0da; }
.footer-contact a:hover { color: #fff; }

.footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-bottom: 20px;
}

.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; transition: color .12s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-bottom a:hover { color: #fff; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  transition: background .15s;
}
.socials a:hover { background: var(--blue); color: #fff; }
.socials svg { width: 17px; height: 17px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { padding: 76px 0 84px; }
  .sol-grid, .blog-grid, .str-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid, .sit-grid, .apps-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 52px 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .check-card.split { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-duo { grid-template-columns: 1fr; max-width: 520px; }
  .str-grid.cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav, .header-actions .lang-switch, .header-actions .btn { display: none; }
  .hamburger { display: block; }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--white);
    overflow-y: auto;
    padding: 20px 28px 48px;
    z-index: 99;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav .m-group { border-bottom: 1px solid var(--border); padding: 14px 0; }
  .mobile-nav .m-group > b {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ink-soft);
    margin-bottom: 8px;
  }
  .mobile-nav a { display: block; padding: 9px 0; font-size: 16px; font-weight: 600; }
  .mobile-nav a:hover { color: var(--blue); }
  .mobile-nav .m-cta { margin-top: 24px; display: grid; gap: 12px; }
  /* i bottoni del m-cta non devono ereditare lo stile dei link di menu */
  .mobile-nav .m-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 13px 22px;
    font-size: 15.5px;
  }
}

@media (min-width: 901px) { .mobile-nav { display: none !important; } }

@media (max-width: 620px) {
  .sol-grid, .blog-grid, .str-grid, .apps-grid, .sit-grid, .steps, .apps-grid.cols-3 { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  section.block { padding: 64px 0; }
  .cta-band { padding: 44px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .mission { padding: 44px 28px; }
}


/* ============================================================
   Integrazione WordPress
   ============================================================ */
body.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* La barra Cookie Notice e fissa in basso: finche i cookie non sono accettati
   aggiunge spazio al footer per non coprire privacy e social. */
body.cookies-not-set .footer { padding-bottom: 96px; }

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* paginate_links() */
.pagination .page-numbers {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14.5px; font-weight: 600;
  color: var(--ink);
}
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Contenuti Gutenberg dentro .prose */
.prose img { height: auto; border-radius: 12px; }
.prose figure { margin: 28px 0; border: none; }
.prose figure figcaption { border: none; padding: 10px 4px 0; font-size: 13px; color: var(--ink-soft); }
.prose iframe { max-width: 100%; }
.prose .wp-block-embed iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.prose blockquote { border-left: 3px solid var(--blue); padding-left: 18px; color: var(--ink-soft); margin: 24px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg); }

/* Formidable Forms dentro la card contatti */
.form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.form-card select,
.form-card textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(3, 97, 169, 0.14);
}
.form-card label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-card .frm_form_field { margin-bottom: 14px; }
.form-card .frm_submit button,
.form-card button[type="submit"],
.form-card input[type="submit"] {
  margin-top: 20px;
  width: 100%;
  padding: 13px 22px;
  font-size: 15.5px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(3, 97, 169, 0.30);
  transition: background .15s;
}
.form-card .frm_submit button:hover,
.form-card input[type="submit"]:hover { background: var(--blue-dark); }
