/* Moovy Solution — colori presi dal logo */
:root {
  --navy: #011841;
  --navy-2: #0A2659;
  --blue: #076BFD;
  --blue-ink: #0558D6;      /* blu per testo/link su bianco, contrasto AA */
  --sky: #E8F1FF;
  --mist: #F4F7FC;
  --line: #D8E2F1;
  --text: #17223B;
  --muted: #55627D;
  --white: #FFFFFF;
  --ok: #0E7A4F;
  --err: #B42318;

  --font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-pill: 999px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }

.moovy-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tint { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 24px; height: 24px; flex: none; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--r-pill);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0459D8; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-size: .975rem; color: var(--navy); text-decoration: none;
}
.site-nav ul a:hover { background: var(--sky); }
.site-nav ul a[aria-current="page"] { background: var(--sky); color: var(--blue-ink); font-weight: 600; }
.btn-reserved { background: var(--navy); color: #fff; padding: 10px 20px; }
.btn-reserved:hover, .btn-reserved[aria-current="page"] { background: var(--blue); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: var(--sky); border: 0; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; content: "";
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .site-nav {
    display: none; position: absolute; inset: 76px 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(1,24,65,.25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; font-size: 1.05rem; }
  .btn-reserved { justify-content: center; }
}

/* Simbolo strada (dal logo) */
.road { width: 100%; height: auto; overflow: visible; }
.road-base { fill: none; stroke: var(--blue); stroke-width: 44; stroke-linejoin: round; }
.road-lane { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 14 12; stroke-linecap: round; }
.car-body { fill: #fff; stroke: var(--navy); stroke-width: 1.5; }
.car-glass { fill: var(--navy); }
.car-roof { fill: #EEF3FB; }
.car-wheel { fill: var(--navy); }
.car-light { fill: #FFE07A; }
@media (prefers-reduced-motion: reduce) { .road-car { display: none; } }

/* Hero home */
.hero { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(64px, 9vw, 120px);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #C3D2EC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-visual { position: relative; }
.hero-verbs {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 28px 4% 0; padding: 0; list-style: none;
  font-family: var(--font-head); font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 500;
}
.hero-verbs li { color: #fff; }
.hero-verbs li span { display: block; font-family: var(--font-body); font-size: .9rem; font-weight: 400; color: #9FB3D6; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
}

/* Intestazione pagine interne */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero .moovy-wrap { padding-block: clamp(56px, 7vw, 96px); position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 20ch; }
.page-hero p { color: #C3D2EC; font-size: 1.2rem; max-width: 60ch; margin: 0; }
.page-hero .road { position: absolute; width: 520px; right: -90px; bottom: -70px; opacity: .35; }
.page-hero .road .road-car { display: none; }
@media (max-width: 700px) { .page-hero .road { width: 340px; right: -120px; bottom: -60px; } }

/* Griglie e blocchi */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.pillar { border-top: 3px solid var(--blue); padding-top: 22px; }
.pillar h3 { font-size: 1.6rem; }
.pillar p { color: var(--muted); margin: 0; }

.audience {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.audience .icon-badge { margin-bottom: 6px; }
.audience h3 { margin: 0; font-size: 1.15rem; }
.audience p { margin: 0; color: var(--muted); font-size: 1rem; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue-ink);
}

/* Percorso della pratica: la "strada" tratteggiata collega le tappe */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: step; }
.journey::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 14px;
  background: var(--blue); border-radius: 8px;
}
.journey::after {
  content: ""; position: absolute; left: 34px; right: 34px; top: 29px; height: 2px;
  background: repeating-linear-gradient(90deg, #fff 0 12px, transparent 12px 22px);
}
.journey li { position: relative; z-index: 1; counter-increment: step; }
.journey li::before {
  content: counter(step); display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 5px solid #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  transform: translateY(-6px);
}
.journey h3 { font-size: 1.05rem; margin-bottom: .35em; }
.journey p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { left: 23px; right: auto; top: 20px; bottom: 20px; width: 14px; height: auto; }
  .journey::after { left: 29px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #fff 0 12px, transparent 12px 22px); }
  .journey li { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .journey li::before { transform: none; margin: 0; grid-row: span 2; }
}

/* Ecosistema */
.eco { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eco-hub {
  background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px);
}
.eco-hub h3 { color: #fff; font-size: 1.6rem; }
.eco-hub p { color: #C3D2EC; }
.eco-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.eco-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.eco-list li:last-child { border-bottom: 0; }
.eco-list h3 { font-size: 1.1rem; margin: 0 0 .25em; }
.eco-list p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .eco { grid-template-columns: 1fr; } }

/* Fascia CTA */
.cta-band { background: var(--blue); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #E3EDFF; max-width: 52ch; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* Modelli di servizio */
.model { border: 2px solid var(--line); border-radius: 24px; padding: clamp(26px, 3.5vw, 40px); background: #fff; }
.model.is-featured { border-color: var(--navy); }
.model-tag { display: inline-block; font-family: var(--font-head); font-size: .9rem; font-weight: 500; color: var(--blue-ink); background: var(--sky); padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }

.service { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.service .icon-badge { width: 56px; height: 56px; }
.service h3 { margin-bottom: .3em; }
.service p { color: var(--muted); margin: 0 0 .5em; max-width: 68ch; }

/* Applicativi */
.app-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.screen {
  background: var(--navy); border-radius: 22px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(1,24,65,.45);
}
.screen-bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A4479; }
.screen-body { background: #fff; border-radius: 12px; padding: 18px; display: grid; gap: 12px; font-size: .9rem; }
.screen-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--mist); }
.screen-row strong { font-family: var(--font-head); font-weight: 500; color: var(--navy); }
.screen-row span { color: var(--muted); }
.status { justify-self: end; font-size: .8rem; padding: 3px 10px; border-radius: var(--r-pill); background: var(--sky); color: var(--blue-ink); font-weight: 600; }
.status.ok { background: #E3F6EC; color: var(--ok); }
.screen-title { display: flex; justify-content: space-between; align-items: baseline; }
.screen-title strong { font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.screen-title span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .app-main { grid-template-columns: 1fr; } }

.module { padding: 26px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.module h3 { margin: 14px 0 .35em; font-size: 1.15rem; }
.module p { margin: 0; color: var(--muted); font-size: 1rem; }
.module-for { margin-top: 12px !important; font-size: .9rem !important; color: var(--blue-ink) !important; font-weight: 600; }

/* Chi siamo */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-text p { font-size: 1.15rem; max-width: 62ch; }
.mission { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--navy); font-weight: 500; max-width: 30ch; margin: 0; }
.facts { background: var(--mist); border-radius: 22px; padding: 28px; }
.facts h2 { font-size: 1.3rem; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Contatti e form */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-info li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.contact-info small { display: block; color: var(--muted); font-size: .9rem; }
.contact-info strong, .contact-info a { font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid #C6D3E8; border-radius: var(--r-sm); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,107,253,.2); }
.field .hint { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--err); }
.field .error { color: var(--err); font-size: .875rem; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.hp { position: absolute; left: -5000px; }

.notice { padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 500; }
.notice-ok { background: #E3F6EC; color: var(--ok); }
.notice-err { background: #FDECEA; color: var(--err); }

/* Area riservata */
.portal { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.portal h2 { font-size: 1.3rem; margin: 6px 0 0; }
.portal p { color: var(--muted); margin: 0; flex: 1; }
.portal .btn { align-self: flex-start; margin-top: 8px; }
.portal-note { font-size: .9rem; color: var(--muted); }

/* Testi legali */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px 36px; }
.footer-brand img { width: 160px; height: auto; mix-blend-mode: multiply; }
.footer-brand p { margin-top: 14px; color: var(--muted); }
.footer-title { font-size: 1rem; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--blue-ink); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.footer-legal p { margin: 0; }
.footer-legal span::before { content: " | "; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Carosello in home */
.carousel { position: relative; }
.carousel .slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; position: relative; }
.slide.is-active { opacity: 1; visibility: visible; }
.carousel .hero-inner { padding-bottom: clamp(88px, 10vw, 136px); }
.slide-mission { display: flex; align-items: center; overflow: hidden; background: radial-gradient(120% 120% at 85% 20%, #0A3A8C 0%, var(--navy) 60%); }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Slide con l'immagine chiara delle presentazioni: testo navy sul cielo */
.slide-mission.has-image { background: #F4F7FB; align-items: flex-start; }
.slide-mission.has-image .slide-bg { object-position: center 70%; }
.slide-mission.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(248,250,253,.95) 0%, rgba(248,250,253,.8) 28%, rgba(248,250,253,0) 50%),
    linear-gradient(90deg, rgba(248,250,253,.7) 0%, rgba(248,250,253,0) 45%);
}
.slide-mission.has-image .slide-mission-inner { padding-top: clamp(36px, 4.5vw, 60px); }
.slide-mission.has-image h2 { margin-bottom: 10px; }
.slide-mission.has-image h2 { color: var(--blue-ink); }
.slide-mission.has-image .mission-text { color: var(--navy); max-width: 44ch; font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.22; margin-bottom: 22px; }
.carousel.on-light .carousel-dot { background: rgba(1,24,65,.25); }
.carousel.on-light .carousel-dot.is-active { background: var(--blue); }
.carousel.on-light .carousel-pause { border-color: rgba(1,24,65,.4); }
.carousel.on-light .carousel-pause span { border-left-color: var(--navy); border-right-color: var(--navy); }
.carousel.on-light .carousel-pause.is-paused span { border-right-color: transparent; }
@media (max-width: 760px) {
  .slide-mission.has-image .slide-bg { object-position: 30% 100%; }
  .slide-mission.has-image::before { background: linear-gradient(180deg, rgba(248,250,253,.97) 0%, rgba(248,250,253,.9) 38%, rgba(248,250,253,0) 62%); }
}
.slide-mission-inner { position: relative; z-index: 2; padding-block: 64px 110px; }
.slide-mission h2 { color: #9FC3FF; font-size: 1.15rem; font-weight: 500; letter-spacing: 0; margin-bottom: 18px; }
.mission-text {
  font-family: var(--font-head); color: #fff; font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.18; max-width: 26ch; margin: 0 0 32px;
}
.carousel-controls { position: absolute; left: 0; right: 0; bottom: clamp(28px, 4vw, 44px); display: flex; align-items: center; gap: 10px; z-index: 3; }
.carousel-dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background-color .3s; }
.carousel-dot.is-active { width: 36px; background: var(--blue); }
.carousel-pause { margin-left: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); background: transparent; cursor: pointer; display: grid; place-items: center; }
.carousel-pause span { width: 9px; height: 10px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.carousel-pause.is-paused span { width: 0; height: 0; border: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Servizi a blocchi */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 32px); scroll-margin-top: 100px; transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: #A9C4EE; box-shadow: 0 18px 36px -24px rgba(1,24,65,.35); }
.service-card:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,107,253,.2); }
.service-card h3 { margin: 18px 0 .4em; }
.service-card p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

/* Tecnologia e AI */
.tech-intro { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.tech-intro .lead { color: var(--text); }
.tech-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.tech-point { border-top: 3px solid var(--blue); padding-top: 22px; }
.tech-point h3 { margin: 16px 0 .35em; }
.tech-point p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .tech-points { grid-template-columns: 1fr; } }

/* Griglie dei box: colonne scelte dal pannello */
.service-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 960px) { .service-grid.cols-3, .service-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .service-grid.cols-3, .service-grid.cols-4, .service-grid.cols-auto { grid-template-columns: 1fr; } }

/* Blocchi immagine + testo */
.media-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.media-block.img-right .media-img { order: 2; }
.media-block.no-img { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.media-img img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(1,24,65,.45); }
.media-text p { color: var(--muted); font-size: 1.1rem; }
.media-text .btn { margin-top: 8px; }
@media (max-width: 860px) { .media-block { grid-template-columns: 1fr; } .media-block.img-right .media-img { order: 0; } }

