/* ============================================================
   IonWeb — Custom layer su Bootstrap 5.3
   Brand: light corporate, base cream/bianco, accent blu profondo
   ============================================================ */

:root {
  /* Brand iOnWeb: navy #18205e + magenta #d20a6c + viola #8c147b */
  --ion-bg:        #ffffff;
  --ion-bg-2:      #f8f6fa;
  --ion-bg-3:      #f2f0f6;
  --ion-surface:   #ffffff;
  --ion-border:    #f1eef3;
  --ion-border-2:  #e8e3ec;
  --ion-text:      #18205e;     /* navy brand per headings */
  --ion-text-2:    #5f6a85;     /* body */
  --ion-muted:     #7d8aa1;
  --ion-muted-2:   #9ba6bd;

  --ion-blue:      #d20a6c;     /* primary accent: magenta brand */
  --ion-blue-2:    #b00858;     /* hover */
  --ion-blue-3:    #18205e;     /* navy brand */
  --ion-blue-soft: #fdeaf2;
  --ion-blue-tint: #f8ccdf;
  --ion-success:   #5cb85c;

  --ion-purple:      #8c147b;
  --ion-purple-2:    #6f1062;
  --ion-purple-soft: #f7eaf5;

  --ion-grad-text:   linear-gradient(120deg, #d20a6c 0%, #8c147b 100%);
  --ion-grad-brand:  linear-gradient(135deg, #18205e 0%, #8c147b 55%, #d20a6c 100%);

  --ion-shadow-sm:   0 1px 2px rgba(0,0,0,0.04);
  --ion-shadow:      0 10px 30px 0 rgba(140,20,123,0.10);
  --ion-shadow-md:   0 12px 28px -8px rgba(140,20,123,0.20);
  --ion-shadow-lg:   0 24px 48px -12px rgba(140,20,123,0.22);
  --ion-shadow-blue: 0 12px 30px -10px rgba(210,10,108,0.38);

  --ion-radius:    6px;
  --ion-radius-lg: 10px;

  --bs-body-bg:    var(--ion-bg);
  --bs-body-color: var(--ion-text-2);
  --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-link-color: var(--ion-blue);
  --bs-link-hover-color: var(--ion-blue-2);
  --bs-border-color: var(--ion-border);
}

/* ----------- base ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--bs-body-font-family);
  background: var(--ion-bg);
  color: var(--ion-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01","cv11";
}
::selection { background: var(--ion-blue); color: #fff; }

h1, h2, h3, h4, h5 {
  font-family: var(--bs-body-font-family);
  color: var(--ion-text);
  letter-spacing: -0.01em;
  font-weight: 700;
}
body { line-height: 1.65; }

a { transition: color .2s ease; }

/* ----------- layout helpers ----------- */
.section { padding: 5rem 0; }
@media (min-width: 992px) { .section { padding: 7rem 0; } }

.container-xxl { padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 768px) { .container-xxl { padding-left: 2rem; padding-right: 2rem; } }

.section-soft { background: var(--ion-bg-2); position: relative; }
.section > *, .section-soft > * { position: relative; z-index: 1; }

/* ----------- typography (Seos-style: Poppins, deep blue heading) ----------- */
.h-display {
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-weight: 700;
  color: var(--ion-text);
}
.h-section {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ion-text);
}
.lead-ion {
  font-size: 16px;
  line-height: 30px;
  color: var(--ion-text-2);
  font-weight: 400;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .9rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  background: var(--ion-blue-soft);
  border: 1px solid var(--ion-blue-tint);
  color: var(--ion-blue-2);
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ion-blue);
}
.text-grad {
  background: var(--ion-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.text-muted-ion { color: var(--ion-muted); }

/* unified accent classes (sostituiscono il vecchio multicolor) */
.text-cyan,
.text-violet,
.text-magenta { color: var(--ion-blue); }

/* ----------- buttons ----------- */
.btn-ion {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: .5rem;
  padding: 16px 38px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.btn-ion-primary {
  background: var(--ion-blue);
  color: #fff;
  border-color: var(--ion-blue);
  box-shadow: 0 8px 22px -10px rgba(255,92,151,0.55);
}
.btn-ion-primary:hover {
  background: var(--ion-blue-2);
  border-color: var(--ion-blue-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255,92,151,0.6);
}
.btn-ion-ghost {
  background: transparent;
  border-color: var(--ion-blue);
  color: var(--ion-blue);
}
.btn-ion-ghost:hover {
  background: var(--ion-blue);
  border-color: var(--ion-blue);
  color: #fff;
}

/* ----------- card / glass (ridefinite light) ----------- */
.glass {
  background: var(--ion-surface);
  border: 1px solid var(--ion-border);
  border-radius: var(--ion-radius);
  box-shadow: var(--ion-shadow-sm);
  position: relative;
  overflow: hidden;
}
.glass.glass-padded { padding: 1.75rem; }

.glass-hover {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.glass-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--ion-shadow-md);
  border-color: var(--ion-border-2);
}

/* feature icon chip */
.icon-chip {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ion-blue-soft);
  border: 1px solid var(--ion-blue-tint);
  color: var(--ion-blue);
}
.icon-chip-grad {
  background: var(--ion-blue);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--ion-shadow-blue);
}

/* ----------- navbar ----------- */
.ion-navbar {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ion-border);
  transition: background .25s ease, box-shadow .25s ease;
}
.ion-navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ion-shadow-sm);
}
.ion-navbar .nav-link {
  color: var(--ion-muted);
  font-size: .92rem;
  font-weight: 500;
  padding: .5rem .9rem;
}
.ion-navbar .nav-link:hover, .ion-navbar .nav-link.active { color: var(--ion-text); }
.ion-navbar .nav-link.active::after {
  content: ''; display: block;
  width: 18px; height: 2px;
  background: var(--ion-blue);
  border-radius: 2px;
  margin: .25rem auto 0;
}

.ion-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ion-text);
  font-size: 1.25rem;
}
.ion-logo .dot {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--ion-blue);
  display: grid; place-items: center;
  position: relative;
  box-shadow: var(--ion-shadow-blue);
}
.ion-logo .dot::after {
  content: 'I'; color: #fff; font-weight: 900; font-size: 1.05rem; line-height: 1;
  position: relative; z-index: 1;
}
.ion-logo span.brand-text { color: var(--ion-text); }
.ion-logo span.brand-text em { font-style: normal; color: var(--ion-blue); }

/* mobile offcanvas: light skin (Bootstrap text-bg-dark deve essere overridato) */
.offcanvas.text-bg-dark {
  background: var(--ion-surface) !important;
  color: var(--ion-text) !important;
  border-left: 1px solid var(--ion-border) !important;
}
.offcanvas .offcanvas-title { color: var(--ion-text); }
.offcanvas .btn-close.btn-close-white { filter: none; }
.offcanvas-body a.text-secondary { color: var(--ion-muted) !important; }

/* ----------- HERO (Seos style: bianco pulito con immagine a destra) ----------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 56px;
  background:
    radial-gradient(900px 500px at 100% 30%, rgba(255,92,151,0.08), transparent 60%),
    linear-gradient(135deg, #f7f7fd 0%, #ffffff 60%);
  color: var(--ion-text-2);
}
@media (min-width: 992px) { .hero { padding: 48px 0 72px; } }

/* hero homepage: respiro maggiore ma niente vuoto enorme */
.hero-home { padding: 32px 0 56px; }
@media (min-width: 992px) { .hero-home { padding: 56px 0 80px; } }

/* hero pagine interne (con breadcrumb sopra): minimo */
.hero-page { padding: 12px 0 36px; }
@media (min-width: 992px) { .hero-page { padding: 16px 0 56px; } }
.hero-page .container-xxl > nav[aria-label="Breadcrumb"] { padding-top: 0; }
.hero .container-xxl > nav[aria-label="Breadcrumb"] { padding-top: .5rem; }

.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--ion-text); }
.hero .h-display { color: var(--ion-text); text-shadow: none; font-weight: 700; }
.hero .h-display { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.18; }
.hero .lead-ion { color: var(--ion-text-2); }
/* riduce le mt eccessive dentro la hero */
.hero .row.mt-3 { margin-top: .25rem !important; }
.hero .h-display.mt-4 { margin-top: 1rem !important; }
.hero .lead-ion.mt-4 { margin-top: 1rem !important; }

.hero .text-grad {
  background: var(--ion-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .text-cyan { color: var(--ion-blue); }

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--ion-radius-lg);
}
.hero-visual-wrap {
  position: relative;
}
.hero-visual-wrap::before {
  content: '';
  position: absolute;
  inset: -30px -30px -30px 30%;
  background: var(--ion-grad-brand);
  filter: blur(80px);
  opacity: 0.18;
  border-radius: 50%;
  z-index: 0;
}
.hero-visual-wrap > * { position: relative; z-index: 1; }

/* breadcrumb su hero chiara */
.hero nav[aria-label="Breadcrumb"] { color: var(--ion-muted); }
.hero nav[aria-label="Breadcrumb"] a { color: var(--ion-muted); }
.hero nav[aria-label="Breadcrumb"] a:hover { color: var(--ion-blue); }
.hero nav[aria-label="Breadcrumb"] .text-white { color: var(--ion-text) !important; }

/* trust-row mantenuto */
.trust-row { border-top-color: var(--ion-border); }

.hero-photo { /* alias storico */ }
.orb { display: none !important; }

/* trust row sotto hero homepage */
.trust-row {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ion-border);
}
.trust-row .label {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ion-muted-2);
  margin-bottom: 0.85rem;
}
.trust-row .brands {
  display: flex; gap: 2rem; flex-wrap: wrap;
  align-items: center;
}
.trust-row .brand-mark {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ion-muted);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  opacity: .8;
}
.trust-row .brand-mark .ico {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border-radius: 6px;
  background: var(--ion-bg-2);
  border: 1px solid var(--ion-border);
  color: var(--ion-blue);
}

/* hero visual: browser mockup chiaro */
.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ion-surface);
  border: 1px solid var(--ion-border);
  box-shadow: var(--ion-shadow-lg);
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(360px 200px at 30% 20%, rgba(29,78,216,0.08), transparent 70%);
  pointer-events: none;
}
.hero-visual .browser-bar {
  display: flex; gap: .35rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--ion-border);
  background: var(--ion-bg-2);
  position: relative;
  align-items: center;
}
.hero-visual .browser-bar i {
  width: 11px; height: 11px; border-radius: 50%;
}
.hero-visual .browser-bar i:nth-child(1) { background: #ef4444; }
.hero-visual .browser-bar i:nth-child(2) { background: #f59e0b; }
.hero-visual .browser-bar i:nth-child(3) { background: #10b981; }
.hero-visual .browser-bar .url {
  margin-left: 1rem;
  font-size: .75rem; color: var(--ion-muted);
  background: var(--ion-surface);
  border: 1px solid var(--ion-border);
  border-radius: 8px;
  padding: 0.25rem .65rem;
  flex: 1;
}
.hero-visual .browser-bar .url strong { color: var(--ion-text); }
.hero-visual .vbody { padding: 1.4rem 1.5rem; display: grid; gap: 1rem; }

.hero-visual .vhead {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--ion-border);
}
.hero-visual .vhead .vbrand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; color: var(--ion-text); font-size: .9rem;
}
.hero-visual .vhead .vbrand .b-dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--ion-blue); display: grid; place-items: center;
  color: #fff; font-size: .65rem; font-weight: 900;
}
.hero-visual .vhead .vnav {
  display: flex; gap: .5rem;
}
.hero-visual .vhead .vnav span {
  width: 36px; height: 6px; border-radius: 3px; background: var(--ion-border-2);
}

.hero-visual .vtitle { font-weight: 800; color: var(--ion-text); font-size: 1rem; line-height: 1.2; }
.hero-visual .vsub   { color: var(--ion-muted); font-size: .82rem; line-height: 1.4; }

.hero-visual .vchart {
  background: var(--ion-blue-soft);
  border: 1px solid var(--ion-blue-tint);
  border-radius: 12px;
  padding: .9rem 1rem .7rem;
  position: relative;
}
.hero-visual .vchart .v-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .55rem;
}
.hero-visual .vchart .v-chart-head .v-chart-title {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ion-blue-2); font-weight: 700;
}
.hero-visual .vchart .v-chart-head .v-trend {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .8rem; color: var(--ion-success); font-weight: 700;
}
.hero-visual .vchart svg { display: block; width: 100%; height: auto; }

.hero-visual .vstats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem;
}
.hero-visual .vstats .vs-card {
  background: var(--ion-bg-2);
  border: 1px solid var(--ion-border);
  border-radius: 10px;
  padding: .6rem .7rem;
}
.hero-visual .vstats .vs-num { font-size: 1rem; font-weight: 800; color: var(--ion-text); }
.hero-visual .vstats .vs-lbl { font-size: .65rem; color: var(--ion-muted); text-transform: uppercase; letter-spacing: .08em; }

.hero-visual .badge-perf,
.hero-visual .badge-seo {
  position: absolute;
  padding: .55rem .9rem; border-radius: 12px;
  background: var(--ion-surface);
  color: var(--ion-text);
  font-weight: 700; font-size: .82rem;
  box-shadow: var(--ion-shadow-md);
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
  border: 1px solid var(--ion-border);
}
.hero-visual .badge-perf {
  right: -14px; top: 28%;
  color: var(--ion-success);
}
.hero-visual .badge-perf::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ion-success);
}
.hero-visual .badge-seo {
  left: -10px; bottom: 18%;
  color: var(--ion-blue);
}
.hero-visual .badge-seo::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ion-blue);
}

/* ----------- marquee loghi ----------- */
.marquee {
  --gap: 3rem;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: .5rem;
  height: 56px;
  color: var(--ion-muted);
  font-weight: 600; letter-spacing: .04em;
  font-size: .95rem;
  white-space: nowrap;
}
.marquee-item .icon-chip { width: 30px; height: 30px; border-radius: 8px; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--gap)/2)); }
}

/* ----------- bento ----------- */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}
.bento > * { min-height: 200px; padding: 1.5rem; border-radius: var(--ion-radius); }
.bento .b-1 { grid-column: span 4; }
.bento .b-2 { grid-column: span 2; }
.bento .b-3 { grid-column: span 2; }
.bento .b-4 { grid-column: span 2; }
.bento .b-5 { grid-column: span 2; }
.bento .b-6 { grid-column: span 3; }
.bento .b-7 { grid-column: span 3; }
@media (max-width: 991.98px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > * { grid-column: span 2 !important; }
}

/* stat */
.stat-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem;
  text-align: center;
}
.stat-card .num {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ion-blue);
}
.stat-card .lbl {
  margin-top: .25rem;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ion-muted);
}

/* timeline metodo */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--ion-blue) 0%, var(--ion-blue-2) 100%);
  border-radius: 2px;
  opacity: .4;
}
.timeline .step {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}
.timeline .step::before {
  content: '';
  position: absolute;
  left: -1.75rem; top: 0.4rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ion-surface);
  border: 2px solid var(--ion-blue);
}
.timeline .step::after {
  content: '';
  position: absolute;
  left: calc(-1.75rem + 8px); top: calc(0.4rem + 8px);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ion-blue);
}
.timeline .step h4 { font-size: 1.18rem; color: var(--ion-text); }

/* form */
.form-ion .form-control,
.form-ion .form-select {
  background: var(--ion-surface);
  border: 1px solid var(--ion-border);
  color: var(--ion-text);
  border-radius: 12px;
  padding: .75rem 1rem;
}
.form-ion .form-control:focus,
.form-ion .form-select:focus {
  background: var(--ion-surface);
  border-color: var(--ion-blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
  color: var(--ion-text);
}
.form-ion .form-label { color: var(--ion-text-2); font-size: .85rem; margin-bottom: .35rem; font-weight: 500; }
.form-ion .form-check-input {
  background-color: var(--ion-surface);
  border-color: var(--ion-border-2);
}
.form-ion .form-check-input:checked {
  background-color: var(--ion-blue);
  border-color: var(--ion-blue);
}
.form-ion .form-check-label { color: var(--ion-muted); }

/* footer */
.ion-footer {
  border-top: 1px solid var(--ion-border);
  background: var(--ion-bg-2);
  margin-top: 5rem;
}
.ion-footer h6 {
  color: var(--ion-text); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  margin-bottom: 1rem;
}
.ion-footer a { color: var(--ion-muted); text-decoration: none; font-size: .9rem; }
.ion-footer a:hover { color: var(--ion-text); }
.ion-footer .legal { border-top: 1px solid var(--ion-border); padding: 1rem 0; font-size: .8rem; color: var(--ion-muted); }
.ion-footer .legal a { color: var(--ion-muted); }
.ion-footer .legal a:hover { color: var(--ion-text); }

/* compliance disclaimer */
.compliance-note {
  border: 1px solid var(--ion-blue-tint);
  border-left: 3px solid var(--ion-blue);
  padding: 1rem 1.25rem;
  background: var(--ion-blue-soft);
  border-radius: 0 12px 12px 0;
  font-size: .9rem;
  color: var(--ion-text-2);
}
.compliance-note strong { color: var(--ion-text); }

/* CTA full */
.cta-full {
  position: relative;
  overflow: hidden;
  border-radius: var(--ion-radius-lg);
  border: 1px solid var(--ion-border);
  background: var(--ion-surface);
  padding: 3rem;
  box-shadow: var(--ion-shadow-sm);
}
@media (min-width: 992px) { .cta-full { padding: 4.5rem; } }
.cta-full::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 350px at 0% 0%, rgba(29, 78, 216, 0.10), transparent 60%),
    radial-gradient(500px 250px at 100% 100%, rgba(29, 78, 216, 0.06), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.cta-full > * { position: relative; z-index: 1; }

/* FAQ */
.faq details {
  border: 1px solid var(--ion-border);
  border-radius: 14px;
  background: var(--ion-surface);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details:hover { border-color: var(--ion-border-2); }
.faq details[open] { border-color: var(--ion-blue); box-shadow: 0 4px 14px -4px rgba(29,78,216,0.18); }
.faq summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--ion-text);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ion-border);
  display: grid; place-items: center;
  color: var(--ion-blue);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  flex-shrink: 0;
}
.faq details[open] summary .ic {
  transform: rotate(45deg);
  background: var(--ion-blue);
  color: #fff;
  border-color: var(--ion-blue);
}
.faq .answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--ion-muted);
  font-size: .95rem; line-height: 1.65;
}

/* portfolio cards */
.case-thumb {
  aspect-ratio: 16/9;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ion-blue) 0%, var(--ion-blue-3) 100%);
}
.case-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(380px 200px at 80% 110%, rgba(255,255,255,0.16), transparent 60%);
}
.case-thumb::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
}

/* screenshot reali dei progetti */
.case-shot {
  display: block;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ion-border);
  background: var(--ion-bg-2);
}
.case-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}
a.case-shot:hover img { transform: scale(1.04); }

/* cover brandizzate per il blog */
.blog-cover {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ion-grad-brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  color: #fff;
}
.blog-cover::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(440px 240px at 82% 0%, rgba(255,255,255,0.20), transparent 60%),
    radial-gradient(380px 220px at 0% 100%, rgba(0,0,0,0.18), transparent 60%);
}
.blog-cover > * { position: relative; z-index: 1; }
.blog-cover-ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.30);
  display: grid; place-items: center;
}
.blog-cover-cat {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .95;
}
.blog-cover-lg { aspect-ratio: 4/3; border-radius: 18px; box-shadow: var(--ion-shadow-lg); }
.blog-cover-lg .blog-cover-ic { width: 76px; height: 76px; border-radius: 20px; }
.blog-cover-lg .blog-cover-cat { font-size: .8rem; }
.blog-img-lg { aspect-ratio: 4/3; border-radius: 18px; box-shadow: var(--ion-shadow-lg); }

/* prose for blog */
.prose-ion h2 { font-size: 1.65rem; margin-top: 2.2rem; margin-bottom: .8rem; color: var(--ion-text); }
.prose-ion h3 { font-size: 1.22rem; margin-top: 1.6rem; margin-bottom: .6rem; color: var(--ion-text); }
.prose-ion p, .prose-ion li { color: var(--ion-text-2); line-height: 1.75; font-size: 1.02rem; }
.prose-ion strong { color: var(--ion-text); }
.prose-ion a { color: var(--ion-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose-ion a:hover { color: var(--ion-blue-2); }
.prose-ion ul, .prose-ion ol { padding-left: 1.2rem; }
.prose-ion ul li, .prose-ion ol li { margin: .35rem 0; }
.prose-ion blockquote {
  border-left: 3px solid var(--ion-blue);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--ion-blue-soft);
  border-radius: 0 12px 12px 0;
  color: var(--ion-text-2);
  font-style: italic;
}

/* utilities */
.divider-grad {
  height: 1px;
  background: var(--ion-border);
  border: 0;
}

.no-deco { text-decoration: none; }
.tag {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ion-bg-2);
  border: 1px solid var(--ion-border);
  color: var(--ion-muted);
}

.success-banner {
  border: 1px solid #10b981;
  background: #ecfdf5;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  color: var(--ion-text);
}

/* skip link */
.skip-link {
  position: absolute; left: 0; top: -100px;
  background: var(--ion-text); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 0;
  z-index: 2000;
}
.skip-link:focus { top: 0; }

/* Bootstrap tweaks per dark→light */
.text-white { color: var(--ion-text) !important; }      /* override inline 'text-white' nei file PHP */
.text-bg-dark { background-color: var(--ion-surface) !important; color: var(--ion-text) !important; }

/* ============================================================
   STUDIOS-LIKE: foto parallax, counter, testimonianze, tecnologie
   ============================================================ */

/* Hero homepage con foto di sfondo + overlay scuro */
.hero-photo {
  background-image:
    linear-gradient(rgba(8, 18, 40, 0.62), rgba(8, 18, 40, 0.78)),
    url('../images/legacy/responsive-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
}
.hero-photo::after { display: none; }
.hero-photo h1, .hero-photo h2, .hero-photo h3 { color: #fff; }
.hero-photo .h-display { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero-photo .lead-ion { color: rgba(255,255,255,0.88); }
.hero-photo .text-grad {
  background: linear-gradient(135deg, #fff 0%, #cfe0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-photo .eyebrow {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.25);
  color: #cfe0ff;
}
.hero-photo .eyebrow .dot { background: #93c5fd; }
.hero-photo .text-cyan { color: #93c5fd; }
.hero-photo .btn-ion-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.hero-photo .btn-ion-ghost:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hero-photo .text-muted-ion { color: rgba(255,255,255,0.7); }
.hero-photo .trust-row { border-top-color: rgba(255,255,255,0.15); }
.hero-photo .trust-row .label { color: rgba(255,255,255,0.6); }
.hero-photo .trust-row .brand-mark { color: rgba(255,255,255,0.85); }
.hero-photo .trust-row .brand-mark .ico {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #93c5fd;
}

/* Sezione con gradient rosa/viola Seos */
.section-parallax {
  position: relative;
  background: var(--ion-grad-brand);
  color: #fff;
  padding: 5rem 0;
  overflow: hidden;
}
@media (min-width: 992px) { .section-parallax { padding: 7rem 0; } }
.section-parallax::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(500px 300px at 10% 100%, rgba(255,255,255,0.08), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.section-parallax > * { position: relative; z-index: 1; }
.section-parallax h1, .section-parallax h2, .section-parallax h3, .section-parallax h4 { color: #fff; }
.section-parallax .h-section { color: #fff; }
.section-parallax .lead-ion { color: rgba(255,255,255,0.92); }
.section-parallax .eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}
.section-parallax .eyebrow .dot { background: #fff; }
.section-parallax .text-grad {
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.65));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Counter band: gradient deep blue → viola scuro (più sobrio del rosa) */
.counter-band {
  background-color: #1f2d52;
  background-image:
    linear-gradient(135deg, rgba(31,45,82,0.94) 0%, rgba(74,40,120,0.92) 55%, rgba(123,64,192,0.85) 100%),
    url('../images/legacy/features-bg.webp');
  background-size: cover;
  background-position: center;
}
.counter-band::before {
  background:
    radial-gradient(500px 350px at 90% 20%, rgba(255,92,151,0.18), transparent 60%),
    radial-gradient(450px 300px at 5% 100%, rgba(43,75,128,0.30), transparent 60%);
}
.counter-band .counter-item .ico {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: #ffd6e3;
}
.counter-band .counter-item .num { color: #fff; }
.counter-band .counter-item .lbl { color: rgba(255,255,255,0.68); }
.counter-item {
  text-align: center;
  padding: 1rem 0.5rem;
  color: #fff;
}
.counter-item .ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: #93c5fd;
}
.counter-item .num {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.counter-item .lbl {
  margin-top: .5rem;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* About-us con foto + testo: l'immagine occupa tutta l'altezza della col */
.about-photo {
  border-radius: var(--ion-radius-lg);
  overflow: hidden;
  box-shadow: var(--ion-shadow-md);
  background-color: var(--ion-bg-2);
  background-image:
    linear-gradient(135deg, rgba(255,92,151,0.18), rgba(123,64,192,0.10)),
    url('../images/legacy/about-bg.webp');
  background-size: cover;
  background-position: center;
  min-height: 360px;
  height: 100%;       /* riempie l'altezza disponibile della row */
  position: relative;
}
.about-photo .badge-overlay {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  background: rgba(255,255,255,0.95);
  padding: .85rem 1.1rem;
  border-radius: 14px;
  box-shadow: var(--ion-shadow);
  display: flex; align-items: center; gap: .65rem;
}
.about-photo .badge-overlay .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--ion-blue);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.about-photo .badge-overlay .text strong { color: var(--ion-text); display: block; font-size: .92rem; }
.about-photo .badge-overlay .text small { color: var(--ion-muted); font-size: .78rem; }

/* Servizi: stile Seos — card bianca, icona rosa, hover shadow purple-tinted */
.service-card-rich {
  background: var(--ion-surface);
  border: 1px solid var(--ion-border);
  border-radius: 6px;
  padding: 56px 36px 60px;
  text-align: center;
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.service-card-rich:hover {
  box-shadow: 0 10px 30px 0 rgba(133,66,189,0.15);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card-rich .big-ico {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  background: var(--ion-blue-soft);
  color: var(--ion-blue);
  transition: background .3s ease, color .3s ease;
}
.service-card-rich:hover .big-ico {
  background: var(--ion-blue);
  color: #fff;
}
.service-card-rich h3 { font-size: 1.35rem; color: var(--ion-text); margin: .4rem 0 .8rem; font-weight: 600; }
.service-card-rich p { color: var(--ion-text-2); font-size: 15px; line-height: 28px; flex-grow: 1; margin: 0; }
.service-card-rich .read-more {
  margin-top: 1.5rem;
  color: var(--ion-blue);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none;
}
.service-card-rich .read-more:hover { color: var(--ion-blue-2); }

/* Categorie: web (rosa) vs marketing-seo white-label (viola) */
.service-card-rich.cat-web .big-ico { background: var(--ion-blue-soft); color: var(--ion-blue); }
.service-card-rich.cat-web:hover .big-ico { background: var(--ion-blue); color: #fff; }
.service-card-rich.cat-mkt .big-ico { background: var(--ion-purple-soft); color: var(--ion-purple); }
.service-card-rich.cat-mkt:hover .big-ico { background: var(--ion-purple); color: #fff; }
.service-card-rich.cat-mkt .read-more { color: var(--ion-purple); }
.service-card-rich.cat-mkt .read-more:hover { color: var(--ion-purple-2); }

/* Testimonianze carousel */
.testimonials {
  background: var(--ion-bg-2);
  position: relative;
}
.testi-card {
  text-align: center;
  padding: 1rem 1rem 0;
}
.testi-card .quote-mark {
  font-size: 4rem;
  line-height: .8;
  color: var(--ion-blue);
  opacity: .25;
  font-family: Georgia, serif;
}
.testi-card .testi-text {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ion-text-2);
  font-weight: 400;
  font-style: italic;
  margin: 1rem auto 1.5rem;
  max-width: 760px;
}
.testi-card .testi-author {
  font-weight: 700;
  color: var(--ion-text);
  font-size: 1rem;
}
.testi-card .testi-role {
  color: var(--ion-muted);
  font-size: .85rem;
  margin-top: .15rem;
}
.carousel-indicators-ion {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 1.5rem;
}
.carousel-indicators-ion button {
  width: 8px; height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--ion-border-2);
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.carousel-indicators-ion button.active {
  background: var(--ion-blue);
  width: 24px;
  border-radius: 4px;
}
.carousel-indicators-ion button:focus-visible {
  outline: 2px solid var(--ion-blue);
  outline-offset: 2px;
}

/* Tech grid: loghi delle tecnologie */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  align-items: center;
  justify-items: center;
}
@media (min-width: 576px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .tech-grid { grid-template-columns: repeat(5, 1fr); } }

.tech-grid img {
  max-width: 100%;
  max-height: 56px;
  width: auto; height: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.tech-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* Italia section */
.italy-section {
  background: var(--ion-bg);
}
.italy-photo {
  text-align: center;
}
.italy-photo img {
  max-width: 100%;
  max-height: 480px;
  filter: drop-shadow(0 12px 32px rgba(29,78,216,0.18));
}
.italy-points {
  display: grid; gap: .7rem;
  margin-top: 1.5rem;
}
.italy-points .pt {
  display: flex; align-items: center; gap: .65rem;
  color: var(--ion-text-2);
}
.italy-points .pt .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ion-blue);
  flex-shrink: 0;
}

/* CTA con sfondo illustrato (icone social) sul gradient brand navy→viola→magenta */
.cta-parallax {
  position: relative;
  overflow: hidden;
  border-radius: var(--ion-radius-lg);
  padding: 3rem;
  background-color: #8c147b;
  background-image:
    linear-gradient(135deg, rgba(24,32,94,0.92) 0%, rgba(140,20,123,0.86) 55%, rgba(210,10,108,0.88) 100%),
    url('../images/cta-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  box-shadow: 0 20px 60px -20px rgba(140,20,123,0.45);
}
@media (min-width: 992px) { .cta-parallax { padding: 4.5rem; } }
.cta-parallax::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(380px 220px at 0% 0%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(380px 220px at 100% 100%, rgba(0,0,0,0.10), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.cta-parallax > * { position: relative; z-index: 1; }
.cta-parallax .h-section { color: #fff; }
.cta-parallax .lead-ion { color: rgba(255,255,255,0.92); }
.cta-parallax .text-grad {
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cta-parallax .eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}
.cta-parallax .btn-ion-primary {
  background: #fff;
  color: var(--ion-blue);
  border-color: #fff;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.20);
}
.cta-parallax .btn-ion-primary:hover {
  background: var(--ion-text);
  color: #fff;
  border-color: var(--ion-text);
}
.cta-parallax .btn-ion-ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.40);
  color: #fff;
}
.cta-parallax .btn-ion-ghost:hover {
  background: #fff;
  color: var(--ion-blue);
  border-color: #fff;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}
