/* ============================================================
   IBM Plex Sans — self-hosted (nessuna richiesta a terze parti)
   Licenza: SIL Open Font License 1.1 (uso commerciale e
   self-hosting consentiti) — https://github.com/IBM/plex
   Variable font: un solo file copre i pesi 400-700.
   ============================================================ */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300 700;            /* variable: copre light -> bold */
  font-display: swap;              /* testo subito visibile col fallback */
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300 700;            /* variable: copre light -> bold */
  font-display: swap;              /* testo subito visibile col fallback */
  src: url("/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colori ufficiali aziendali */
  --brand-red: #bf1e2e;
  --brand-red-dark: #9c1824;
  --brand-gray: #58585a;
  --brand-gray-dark: #3f3f41;

  /* Colore d'azione (solo pulsanti CTA) */
  --action-blue: #1157f9;
  --action-blue-dark: #0d47cc;

  --bg: #ffffff;
  --surface: #f5f6f7;
  --text: #58585a;
  --heading: #2f2f31;
  --muted: #7d7d80;
  --border: #e3e4e6;

  /* Tipografia: IBM Plex Sans, self-hosted (vedi @font-face in testa al file).
     Reso identico su tutti i sistemi operativi. I fallback coprono il
     brevissimo intervallo di caricamento e gli scenari senza webfont. */
  --font-sans: "IBM Plex Sans", "Segoe UI", -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- 1 - Barra dei menu ---------- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 0; /* la spaziatura ora è il padding delle voci, così i fondi sono contigui */
  margin-left: 1rem;
  /* Le voci devono riempire TUTTA l'altezza della barra: lo stretch dà l'altezza
     del content box dell'header, i margini negativi la estendono anche sul suo
     padding verticale (0.9rem) senza alterare l'altezza complessiva dell'header. */
  align-self: stretch;
  margin-top: -0.9rem;
  margin-bottom: -0.9rem;
}

.nav > a,
.nav-mega-toggle {
  display: flex;
  align-items: center;
  padding: 0 0.9rem; /* 0.9rem x2 = la vecchia gap di 1.75rem tra i testi */
  text-decoration: none;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  color: rgb(22, 22, 22);
  transition: color 0.2s ease, background 0.2s ease;
}

/* Hover: fondo grigio + sottolineatura (feedback transitorio) */
.nav > a:hover,
.nav-mega-toggle:hover {
  background: #eff0f2;
  color: rgb(22, 22, 22);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ---------- Megamenu "Servizi" ---------- */
.nav-item {
  display: flex;
  align-items: stretch; /* il link interno riempie l'altezza della barra */
}

.nav-mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Voce col megamenu aperto: togliendo il mouse il fondo torna normale
   e resta la sola sottolineatura a indicare quale menu è aperto. */
.has-mega.open > .nav-mega-toggle {
  background: transparent;
  color: rgb(22, 22, 22);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ...ma se il mouse è sopra, il grigio riappare */
.has-mega.open > .nav-mega-toggle:hover {
  background: #eff0f2;
}

.nav-caret {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.has-mega.open .nav-caret {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Barra megamenu a tutta larghezza (sfondo bianco esteso all'header) */
.mega::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  /* stesso bianco della barra principale dei menu */
  background: #ffffff;
  /* linea grigia che stacca la barra dei menu dal pannello:
     stesso colore dell'evidenziazione hover */
  border-top: 3px solid #eff0f2;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.has-mega.open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.6rem;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 2.4rem; /* spazio tra i gruppi di voci */
  align-content: start;
}

.mega-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 1.2rem 1.1rem; /* evidenziazione più spessa e un po' più larga del testo */
  border-radius: 0;
  text-decoration: none;
  transition: background 0.15s ease;
}

.mega-item:hover {
  background: #eff0f2;
}

.mega-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  background: none;
  color: var(--brand-red);
}

.mega-ico svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.25;
  stroke: url(#painGrad);
}

.mega-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mega-txt strong {
  color: rgb(22, 22, 22);
  font-weight: 700; /* grassetto: unica differenza rispetto alla descrizione */
  font-size: 14px;
  line-height: 16px;
}

.mega-txt em {
  color: rgb(22, 22, 22);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  margin-top: 0.35rem;
}

.mega-promo {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  background: linear-gradient(160deg, #2b2b2d 0%, #3f3f41 100%);
  color: #ffffff;
}

.mega-promo-label {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff6b76;
}

.mega-promo h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #ffffff;
}

.mega-promo p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.mega-promo .button {
  align-self: stretch;
  margin-top: auto;
  color: #ffffff;
  text-align: center;
  white-space: normal;
}

.mega-promo .button:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--brand-gray);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.phone:hover {
  color: var(--brand-red);
}

.phone-icon {
  color: var(--brand-red);
  font-size: 1.1rem;
}

.login {
  text-decoration: none;
  color: var(--brand-gray);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.login:hover {
  color: var(--brand-red);
}

/* ---------- Bottoni ---------- */
.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 0;
  text-decoration: none;
  font: inherit; /* i <button> nativi ereditano il font come gli <a> */
  font-weight: 600;
  line-height: 1.2; /* stessa altezza tra <a> e <button> */
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.button-primary {
  background: var(--action-blue);
  color: rgb(255, 255, 255);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

.button-primary:hover {
  background: var(--action-blue-dark);
}

/* Freccia dopo il testo sui pulsanti d'azione */
.button-primary::after,
.button-white::after {
  content: "\2192"; /* → */
  display: inline-block;
  margin-left: 0.55em;
  transition: transform 0.15s ease;
}

.button-primary:hover::after,
.button-white:hover::after {
  transform: translateX(4px);
}

.button-lg {
  padding: 1rem 2.1rem;
  font-size: 1.05rem;
}

/* ---------- Menu hamburger (mobile) ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-gray);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 2 - Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 7rem 0;
  background-color: #3f3f41;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* I 3/4 di sinistra nettamente scuri per far risaltare il testo,
     poi si schiarisce verso destra lasciando leggere la foto. */
  background: linear-gradient(90deg,
      rgba(10, 10, 12, 0.90) 0%,
      rgba(10, 10, 12, 0.86) 42%,
      rgba(14, 14, 16, 0.62) 68%,
      rgba(30, 18, 20, 0.22) 88%,
      rgba(60, 22, 28, 0.15) 100%);
  z-index: 2;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 3;
  /* il container resta centrato: il testo si allinea al suo bordo sinistro,
     nella stessa colonna del logo e del menu */
  text-align: left;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffd7db;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 820px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 0 2.25rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
}

/* ---------- 3 - Barra fiducia ---------- */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.trust-title {
  margin: 0 0 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.trust-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trust-track li {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--brand-gray);
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.trust-track li:hover {
  opacity: 1;
  color: var(--brand-red);
  transform: scale(1.08);
}

/* ---------- 4 - Preoccupazioni ---------- */
.pains {
  padding: 5rem 0;
  background: var(--bg);
}

.section-head {
  max-width: 900px;
  margin: 0 0 3rem;
  text-align: left;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-red);
}

.section-head h2 {
  margin: 0 0 1rem;
  font-style: normal;
  font-weight: 300;
  font-size: 60px;
  line-height: 70px;
  letter-spacing: -0.02em;
  color: #0f62fe;
}

.section-intro {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.pains-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pain-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0; /* angoli vivi */
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 24px rgba(88, 88, 90, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191, 30, 46, 0.35);
  box-shadow: 0 16px 36px rgba(88, 88, 90, 0.12);
}

.pain-icon {
  /* PROVA 2026-07-30: senza fondo rosso, icona più grande.
     Ripristino: vedi _backup/RIPRISTINO-icone-pains.md */
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  margin-bottom: 1.25rem;
  background: none; /* niente riquadro rosso */
  color: var(--action-blue); /* PROVA: blu dei pulsanti (#1157f9) */
}

.pain-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.25; /* linee più sottili (nel markup è 2) */
  stroke: url(#painGrad); /* sfuma dal blu al viola verso il basso */
}

.pain-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--heading);
}

.pain-card p {
  margin: 0;
  color: var(--muted);
}

.pains-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ---------- 5 - Tre pilastri ---------- */
.pillars {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pillar-card {
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2.75rem 2rem;
  box-shadow: 0 10px 30px rgba(88, 88, 90, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(88, 88, 90, 0.14);
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 0;
  /* niente pastiglia rossa: come tutte le altre icone del sito, resta il solo
     tratto sfumato blu -> viola su fondo bianco */
  background: none;
  color: var(--action-blue);
  box-shadow: none;
}

.pillar-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.25;
  stroke: url(#painGrad);
}

.pillar-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--heading);
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- 6 - Soluzioni ---------- */
.solutions {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.solutions-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.solution-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 24px rgba(88, 88, 90, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191, 30, 46, 0.35);
  box-shadow: 0 16px 36px rgba(88, 88, 90, 0.12);
}

.solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 0;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(191, 30, 46, 0.25);
}

.solution-icon svg {
  width: 28px;
  height: 28px;
}

.solution-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: var(--heading);
}

.solution-card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.solution-list {
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.solution-list li {
  position: relative;
  padding: 0.34rem 0 0.34rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text);
}

.solution-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.34rem;
  color: var(--brand-red);
  font-weight: 800;
}

.solutions-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ---------- 7 - Proof point ---------- */
.proof {
  padding: 4rem 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-gray-dark) 0%, var(--brand-gray) 100%);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.proof-item {
  position: relative;
  padding: 0.5rem 1rem;
}

.proof-item + .proof-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.proof-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  line-height: 1;
}

.proof-num {
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.proof-suffix {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ff5c6a;
}

/* Valore testuale al posto del numero (es. "Ovunque") */
.proof-text {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.proof-label {
  margin: 0.9rem auto 0;
  max-width: 240px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.proof-note {
  margin: 0.35rem auto 0;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ---------- Animazioni: reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Micro-interazione: ingranaggio del pilastro "Gestiamo" */
.pillar-icon svg {
  transition: transform 0.8s ease;
}

.pillars-grid .pillar-card:nth-child(2):hover .pillar-icon svg {
  transform: rotate(180deg);
}

/* Rispetta chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero::before,
  .trust-track {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    order: 1;
    margin-left: auto;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: flex;
    order: 2;
    margin-left: 0.25rem;
  }

  .nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.6rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav {
    align-self: auto; /* annulla lo stretch desktop (il margin shorthand sopra azzera i negativi) */
  }

  .nav > a,
  .nav-mega-toggle {
    padding: 0.6rem 0.7rem; /* target touch adeguati nel pannello mobile */
  }

  .nav-item {
    display: block;
  }

  .nav-caret {
    display: none;
  }

  /* Mobile: il megamenu diventa un accordion sotto la voce */
  .mega {
    display: none;
    position: static;
    padding: 0;
  }

  .has-mega.open .mega {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mega::before {
    display: none;
  }

  .mega-inner {
    width: auto;
    margin: 0;
    padding: 0.25rem 0 0.5rem 0.75rem;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-promo {
    display: none;
  }

  .phone span:not(.phone-icon) {
    display: none;
  }

  .login {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-actions {
    display: none;
  }
}

@media (max-width: 720px) {
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .proof-item + .proof-item::before {
    left: 15%;
    right: 15%;
    top: auto;
    bottom: 100%;
    width: auto;
    height: 1px;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 4.5rem 0;
  }
}

/* ---------- 7 - Footer ---------- */
.site-footer {
  background: #2b2b2d;
  color: #c9c9cc;
  border-top: 3px solid var(--brand-red);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-logo {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}

.footer-logo span {
  color: var(--brand-red);
}

.footer-desc {
  margin: 0.9rem 0 1.2rem;
  font-size: 0.92rem;
  color: #a9a9ad;
  max-width: 34ch;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: var(--brand-red);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: block;
  color: #b4b4b8;
  text-decoration: none;
  padding: 0.28rem 0;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand-red);
}

.footer-col p {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.footer-col p a {
  display: inline;
  padding: 0;
}

.footer-addr {
  color: #a9a9ad;
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #86868a;
}

.footer-trademark {
  flex-basis: 100%;
  padding-top: 0.5rem;
  font-size: 0.72rem !important;
  color: #6c6c70 !important;
}

.footer-legal a {
  color: #a9a9ad;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--brand-red);
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Multipage: stato attivo nav ---------- */
.nav > a.active,
.nav-mega-toggle.active {
  /* La pagina corrente si distingue con la sottolineatura; il fondo grigio
     resta riservato al passaggio del mouse. */
  background: transparent;
  color: rgb(22, 22, 22);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav > a.active:hover,
.nav-mega-toggle.active:hover {
  background: #eff0f2; /* sulla voce corrente il grigio riappare al passaggio */
  color: rgb(22, 22, 22);
}

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  padding: 3.5rem 0 2.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  /* come la hero della home: il testo si allinea al bordo sinistro del
     container, nella stessa colonna del logo e del menu */
  text-align: left;
}

.page-hero h1 {
  margin: 0.5rem 0 0.9rem;
  font-style: normal;
  font-weight: 300;
  font-size: 60px;
  line-height: 70px;
  letter-spacing: -0.02em;
  color: #0f62fe;
}

.page-hero-sub {
  max-width: 640px;
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Listino piani (Web & Hosting) ---------- */
.plans {
  padding: 4.5rem 0 4rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;                          /* attaccati: i bordi fanno da divisori */
  border: 1px solid var(--border);
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.6rem;
  border-left: 1px solid var(--border);
}

.plan:first-child {
  border-left: 0;
}

.plan-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}

/* elenco caratteristiche: icona | voce | valore, tre colonne allineate */
.plan-specs {
  list-style: none;
  width: 100%;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.plan-specs li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.plan-spec-ico svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: url(#painGrad);
}

.plan-spec-label {
  font-size: 0.92rem;
  color: var(--text);
}

.plan-spec-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 1.1rem 0 1.6rem;
}

.plan-amount {
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--action-blue);
  font-variant-numeric: tabular-nums;   /* le cifre restano incolonnate */
}

.plan-period {
  font-size: 0.95rem;
  color: var(--muted);
}

.plan-cta {
  margin-top: auto;                /* i pulsanti restano allineati in fondo */
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan:nth-child(3) {
    border-left: 0;
  }

  .plan:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan {
    border-left: 0;
  }

  .plan + .plan {
    border-top: 1px solid var(--border);
  }
}

.plans-note {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- "Non siamo un hosting provider" (Web & Hosting) ----------
   Due colonne affiancate: le stesse sei voci, una volta a carico del cliente
   e una volta a carico nostro. Il confronto si legge in orizzontale. */
.managed {
  padding: 4.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.managed-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: #ffffff;
}

.managed-col {
  padding: 1.8rem 1.7rem;
  border-left: 1px solid var(--border);
}

.managed-col:first-child {
  border-left: 0;
  background: #fbfbfc;          /* la colonna "fai da te" resta indietro */
}

.managed-col h3 {
  margin: 0 0 1.2rem;
  font-size: 1rem;
  color: var(--heading);
}

.managed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.managed-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.mg-mark svg {
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.mg-x {
  color: var(--muted);
}

.mg-v {
  color: #2ea043;
}

.managed-foot {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: var(--muted);
}

@media (max-width: 780px) {
  .managed-cols {
    grid-template-columns: 1fr;
  }

  .managed-col {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .managed-col:first-child {
    border-top: 0;
  }
}

/* etichetta "opzionale" accanto al titolo di una card */
.tag-opt {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  vertical-align: 2px;
}

/* fascia "su quale piattaforma poggia il servizio" */
.platform {
  padding: 2.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platform-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.platform-logo {
  flex: 0 0 auto;
  width: 190px;
  height: auto;
}

.platform-row p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .platform-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Tabella prezzi caselle (Email & Comunicazione) ---------- */
.table-wrap {
  overflow-x: auto;              /* su schermo stretto scorre la tabella, non la pagina */
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.price-table thead th {
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--heading);
}

/* riga di spiegazione sotto il nome del piano: senza, il cliente non capisce
   perche' Professional costi piu' di Basic a parita' di spazio */
.price-table thead th .pt-desc {
  display: block;
  max-width: 15rem;
  margin: 0.35rem auto 0;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
  white-space: normal;
}

.price-table tbody th {
  background: var(--surface);
  text-align: right;
  font-weight: 400;
  color: var(--text);
}

.price-table tbody td {
  font-weight: 700;
  color: var(--heading);
}

.price-table .pt-na {
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Hero con illustrazione (Email & Comunicazione) ----------
   Fondo chiaro come le altre pagine: testo a sinistra, disegno a destra.
   Il PNG ha lo sfondo trasparente, quindi appoggia su qualsiasi colore. */
.page-hero-illustrated {
  padding: 2.5rem 0 2rem;
}

.page-hero-illustrated > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 1.5rem 3rem;
}

.page-hero-figure {
  width: 100%;
  height: auto;
}

@media (max-width: 880px) {
  .page-hero-illustrated > .container {
    grid-template-columns: 1fr;
  }

  .page-hero-figure {
    max-width: 520px;
  }
}

/* ---------- Hero con foto (per ora solo Web & Hosting) ----------
   E' un modificatore di .page-hero: le altre pagine restano invariate. */
.page-hero-photo {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  border-bottom: 0;
  color: #ffffff;
  background-color: #0d1b2e;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* una classe per pagina: il trattamento resta unico, cambia solo l'immagine */
.page-hero-hosting {
  background-image: url("images/hero-hosting.jpg");
}


/* velo scuro: senza, il bianco non regge sulle zone chiare della foto */
.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 22, 0.74) 0%,
    rgba(6, 12, 22, 0.50) 50%,
    rgba(6, 12, 22, 0.76) 100%
  );
}

.page-hero-photo > .container {
  position: relative;
  z-index: 1;
}

.page-hero-photo .eyebrow {
  color: #ff8f9a;              /* il rosso del brand non si legge sul blu scuro */
}

.page-hero-photo h1 {
  color: #ffffff;
}

.page-hero-photo .page-hero-sub {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 780px) {
  .page-hero-photo {
    padding: 4rem 0 3.5rem;
  }
}

/* ---------- Sezioni consulenza / supporto ---------- */
.consulting,
.support {
  padding: 5rem 0;
  background: var(--bg);
}

.consulting {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* Link in evidenza (rosso aziendale) */
.link-red {
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: none;
}

.link-red:hover,
.link-red:focus-visible {
  color: var(--brand-red-dark);
  text-decoration: underline;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 3.25rem 0;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.button-white {
  background: var(--action-blue);
  color: rgb(255, 255, 255);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

.button-white:hover {
  background: var(--action-blue-dark);
}

/* ---------- Contatti ---------- */
.contact {
  padding: 4rem 0 5rem;
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  background: none;
  color: var(--brand-red);
}

.contact-ico svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.25;
  stroke: url(#painGrad);
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-value {
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}

a.contact-value:hover {
  color: var(--brand-red);
}

.contact-map {
  margin-top: 1.5rem;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2.25rem;
  box-shadow: 0 12px 34px rgba(88, 88, 90, 0.08);
}

.contact-form h2 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  color: var(--heading);
}

.field {
  margin-bottom: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  font: inherit;
  color: var(--heading);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(191, 30, 46, 0.12);
}

.field textarea {
  resize: vertical;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.field-check input {
  margin-top: 0.2rem;
  accent-color: var(--brand-red);
}

.form-note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0;
  background: rgba(46, 160, 67, 0.12);
  color: #1c6b2b;
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Barra utility ---------- */
.utility-bar {
  background: var(--brand-gray-dark);
  color: #d7d7d9;
  font-size: 0.85rem;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.utility-bar a {
  color: #d7d7d9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.utility-bar a:hover {
  color: #ffffff;
}

.u-ico {
  color: var(--brand-red);
}

.u-login {
  font-weight: 600;
}

/* ---------- Come li risolviamo ---------- */
.solve {
  padding: 3.5rem 0 4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.transform {
  margin-top: 2.4rem;
}

.transform-heads {
  display: grid;
  grid-template-columns: 1fr 46px 1.35fr;
  gap: 1.6rem;
  padding-bottom: 0.7rem;
}

.transform-head {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.transform-head.is-fear {
  color: var(--brand-gray);
}

.transform-head.is-result {
  grid-column: 3;
  color: var(--brand-red);
}

.transform-row {
  display: grid;
  grid-template-columns: 1fr 46px 1.35fr;
  gap: 1.6rem;
  align-items: center;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border);
}

.transform-row:last-child {
  border-bottom: 1px solid var(--border);
}

.t-fear {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

.t-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gray);
  opacity: 0.45;
}

.t-arrow svg {
  width: 22px;
  height: 22px;
}

.t-result {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.t-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 0;
  background: rgba(46, 160, 67, 0.14);
  color: #2ea043;
}

.t-check svg {
  width: 18px;
  height: 18px;
}

.t-result h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  color: var(--heading);
}

.t-result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .transform-heads {
    display: none;
  }
  .transform-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1.2rem 0;
  }
  .t-arrow {
    justify-content: flex-start;
    transform: rotate(90deg);
    margin-left: 0.1rem;
  }
}

/* ---------- Perché Dev Systems ---------- */
.why {
  padding: 5rem 0 3rem;
  background: var(--bg);
}

.why-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.why-item {
  text-align: center;
}

.why-ico {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 0;
  background: none;
  color: var(--brand-red);
}

.why-ico svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.25;
  stroke: url(#painGrad);
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--heading);
}

.why-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Fascia loghi clienti ---------- */
.clients {
  padding: 2.4rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.clients-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-gray);
  margin: 0 0 1.3rem;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.4rem 2.4rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 40px;
  border: 1px dashed rgba(88, 88, 90, 0.35);
  border-radius: 0;
  color: rgba(88, 88, 90, 0.75);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Logo partner reale */
.partner-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
}

/* Wordmark a riga singola: altezza ridotta per pareggiare il peso ottico */
.partner-logo.is-wordmark {
  height: 34px;
}

.grad-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Zone servite (pagina Contatti) ---------- */
.areas {
  padding: 4.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.area-col {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.4rem 1.5rem;
}

.area-col h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--heading);
}

.area-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-col li {
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.area-col li:last-child {
  border-bottom: none;
}

.area-note {
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 600;
}

.area-col-note p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Fascia tecnologie (icona + nome) ---------- */
.tech-row {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem 2.1rem;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-gray);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  /* in grigio a riposo, colore del brand al passaggio del mouse */
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.tech-item:hover {
  filter: none;
  opacity: 1;
  color: var(--heading);
}

.tech-item img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .tech-row {
    gap: 0.8rem 1.3rem;
  }
  .tech-item {
    font-size: 0.86rem;
  }
  .tech-item img {
    width: 22px;
    height: 22px;
  }
}


/* ---------- Perché DevSystems: layout editoriale (split) ---------- */
.why-split {
  padding: 5rem 0;
  background: var(--bg);
}

.why-split-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem;
  align-items: stretch;
}

.why-intro {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 52%, rgba(255, 255, 255, 0.55) 100%),
    url("images/team.jpg") center center / cover no-repeat;
  background-color: #ffffff;
  color: var(--text);
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.why-intro .eyebrow {
  color: var(--brand-red);
}

.why-intro h2 {
  color: var(--heading);
  margin: 0 0 1rem;
}

.why-intro p {
  color: var(--text);
  margin: 0 0 1.7rem;
  line-height: 1.6;
}

.why-intro .button {
  align-self: flex-start;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.why-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.why-row:hover {
  border-color: rgba(17, 87, 249, 0.5);
  transform: translateX(4px);
}

.why-row .why-ico {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.why-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--heading);
}

.why-row p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .why-split-inner {
    grid-template-columns: 1fr;
  }
  .why-intro {
    padding: 2.2rem;
  }
}

/* ---------- Caso reale (oscurato) ---------- */
.case {
  padding: 4rem 0 5rem;
  background: var(--bg);
}

.case-teaser {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  max-width: 980px;
  margin: 2.4rem auto 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.case-teaser-main {
  padding: 2.6rem;
}

.case-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
}

.case-context {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-teaser-main h3 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  color: var(--heading);
}

.case-summary {
  margin: 0 0 1.3rem;
  color: var(--muted);
  line-height: 1.6;
}

.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.7rem;
}

.tech-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-gray);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
}

.case-teaser-side {
  position: relative;
  overflow: hidden;
  padding: 2.6rem;
  background: var(--brand-gray-dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-teaser-side::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(191, 30, 46, 0.4) 0%, rgba(191, 30, 46, 0) 70%);
  pointer-events: none;
}

.case-van {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 0 1.5rem;
}

.case-side-label {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff6b76;
}

.case-outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.case-outcomes li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.case-outcomes li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #4ade80;
  font-weight: 700;
}

@media (max-width: 760px) {
  .case-teaser {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pagina caso studio ---------- */
.case-study {
  padding: 3.5rem 0 4rem;
  background: var(--bg);
}

.case-study-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.case-article h2 {
  margin: 2.1rem 0 0.6rem;
  font-size: 1.4rem;
  color: var(--heading);
}

.case-article h2:first-child {
  margin-top: 0;
}

.case-article p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.case-article ul {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.case-results {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}

.case-results li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--heading);
  font-weight: 600;
}

.case-results li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #2ea043;
  font-weight: 700;
}

.case-results-note {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(88, 88, 90, 0.75) !important;
}

.case-aside {
  position: sticky;
  top: 90px;
}

.case-aside-box {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.8rem;
  overflow: hidden;
}

.case-aside-figure {
  margin: -1.8rem -1.8rem 1.4rem;
  padding: 1.4rem 1.4rem 0.6rem;
  background: var(--brand-gray-dark);
}

.case-aside-figure .case-van {
  margin: 0 auto;
}

.case-aside-box h3 {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  color: var(--heading);
}

.case-aside-box dl {
  margin: 0 0 1.4rem;
}

.case-aside-box dt {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-gray);
}

.case-aside-box dd {
  margin: 0.15rem 0 0;
  color: var(--heading);
}

.case-aside-box .button {
  width: 100%;
  text-align: center;
}

@media (max-width: 820px) {
  .case-study-inner {
    grid-template-columns: 1fr;
  }
  .case-aside {
    position: static;
  }
}

/* ---------- Servizi: 8 aree ---------- */
.services8 {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* angoli vivi solo nella sezione "Cosa possiamo fare per te":
   le stesse card su altre pagine restano arrotondate */
.services8 .service-item {
  border-radius: 0;
}

.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-item {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(191, 30, 46, 0.35);
  box-shadow: 0 14px 30px rgba(88, 88, 90, 0.1);
}

.service-ico {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  margin-bottom: 0.9rem;
  background: none;
  color: var(--brand-red);
}

.service-ico svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.25;
  stroke: url(#painGrad);
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--heading);
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Barra utility su mobile: solo il telefono, centrato */
@media (max-width: 600px) {
  .utility-inner {
    justify-content: center;
  }
  .utility-left a[href^="mailto"],
  .utility-right {
    display: none;
  }
}

/* ---------- Consenso cookie: banner + pannello ---------- */
.cc-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(140%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.cc-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cc-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 1.5rem;
}

.cc-banner-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cc-banner-text .cc-title {
  margin: 0 0 0.25rem;
  color: var(--heading);
  font-weight: 700;
  font-size: 1rem;
}

.cc-banner-text a {
  color: var(--action-blue);
}

.cc-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cc-btn {
  border: none;
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-btn-accept {
  background: var(--action-blue);
  color: #ffffff;
}

.cc-btn-accept:hover {
  background: var(--action-blue-dark);
}

.cc-btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--border);
}

.cc-btn-ghost:hover {
  border-color: var(--brand-gray);
}

/* Pannello preferenze */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 20, 22, 0.55);
}

.cc-modal[hidden] {
  display: none;
}

.cc-modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cc-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brand-gray);
  cursor: pointer;
}

.cc-modal-box h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  color: var(--heading);
}

.cc-modal-intro {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cc-cat {
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}

.cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.cc-cat-head > span:first-child {
  font-weight: 700;
  color: var(--heading);
}

.cc-cat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cc-always {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2ea043;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Switch on/off */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-slider {
  position: absolute;
  inset: 0;
  background: #c9ccd1;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.cc-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-slider {
  background: var(--action-blue);
}

.cc-switch input:checked + .cc-slider::before {
  transform: translateX(18px);
}

.cc-switch input:focus-visible + .cc-slider {
  outline: 2px solid var(--action-blue);
  outline-offset: 2px;
}

.cc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.cc-modal-actions .cc-btn {
  flex: 1 1 auto;
  text-align: center;
}

.cc-modal-links {
  margin: 1.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.cc-modal-links a {
  color: var(--action-blue);
}

@media (max-width: 720px) {
  .cc-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cc-banner-actions {
    flex-wrap: wrap;
  }
  .cc-banner-actions .cc-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Segnaposto mappa (bloccata finché non c'è consenso) */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 240px;
  padding: 1.5rem;
  text-align: center;
  background: var(--surface);
  color: var(--muted);
}

.map-placeholder p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 34ch;
}

.map-placeholder .cc-btn {
  margin-top: 0.3rem;
}

/* ---------- Catalogo gestionali (card con due azioni) ---------- */
/* Estende .service-item: la card non e' cliccabile per intero, quindi porta
   dentro di se' due link distinti (sito del prodotto e demo). */
.soft-card {
  display: flex;
  flex-direction: column;
}

/* Nessun sollevamento in hover: la card non e' un link */
.soft-card:hover {
  transform: none;
}

.soft-sector {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
}

/* La descrizione si allunga, cosi' i pulsanti restano allineati tra le card */
.soft-card .soft-desc {
  flex: 1 1 auto;
  margin-bottom: 0.9rem;
}

.soft-site {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  word-break: break-word;
}

.soft-card .button {
  align-self: flex-start;
}

.soft-note {
  margin: 1.6rem 0 0;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border-left: 3px solid var(--brand-red);
  border-radius: 0;
  font-size: 0.92rem;
  color: var(--heading);
}

/* ---------- FAQ: domande e risposte ---------- */
.faq {
  padding: 4.5rem 0 5rem;
  background: var(--bg);
}

.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}

.faq-group + .faq-group {
  margin-top: 3rem;
}

.faq-group-title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: var(--heading);
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--brand-red);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 0.2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary:hover,
.faq-item[open] > summary {
  color: var(--brand-red);
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.faq-caret {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-caret {
  transform: rotate(180deg);
}

.faq-answer {
  margin: 0;
  padding: 0 2.6rem 1.4rem 0.2rem;
  max-width: 72ch;
}

.faq-answer p {
  margin: 0 0 0.7rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0.2rem 0 0.7rem;
  padding-left: 1.1rem;
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

/* ---------- Pagine legali (Privacy / Cookie Policy) ---------- */
.legal {
  padding: 3.5rem 0 4rem;
  background: var(--bg);
}

.legal-inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal-inner h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.35rem;
  color: var(--heading);
}

.legal-inner h2:first-child {
  margin-top: 0;
}

.legal-inner h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--heading);
}

.legal-inner p,
.legal-inner li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-inner p {
  margin: 0 0 0.8rem;
}

.legal-inner ul {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}

.legal-inner a {
  color: var(--action-blue);
}

.legal-updated {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-style: italic;
}

.legal-note {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: rgba(17, 87, 249, 0.06);
  border-left: 3px solid var(--action-blue);
  font-size: 0.9rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.legal-table th {
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
}

/* ===== Modale Area clienti (login demo) ===== */
.ds-login {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 20, 22, 0.55);
}

.ds-login[hidden] {
  display: none;
}

.ds-login-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-top: 4px solid var(--brand-red);
}

.ds-login-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brand-gray);
  cursor: pointer;
}

.ds-login-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}

.ds-login-head .ds-login-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--surface);
  color: var(--brand-red);
  border-radius: 0;
}

.ds-login-head .ds-login-ico svg {
  width: 20px;
  height: 20px;
}

.ds-login-box h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--heading);
}

.ds-login-intro {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ds-field {
  margin-bottom: 1rem;
}

.ds-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
}

.ds-field input[type="text"],
.ds-field input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-field input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(191, 30, 46, 0.12);
}

.ds-field-pass {
  position: relative;
}

.ds-pass-toggle {
  position: absolute;
  right: 0.5rem;
  bottom: 0.35rem;
  border: none;
  background: transparent;
  padding: 0.35rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 0;
}

.ds-pass-toggle:hover {
  color: var(--brand-gray);
}

.ds-pass-toggle svg {
  width: 18px;
  height: 18px;
}

.ds-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.2rem 0 1.3rem;
  font-size: 0.85rem;
}

.ds-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  cursor: pointer;
}

.ds-login-row a {
  color: var(--action-blue);
}

.ds-login-submit {
  width: 100%;
  border: none;
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--action-blue);
  cursor: pointer;
  transition: background 0.2s ease;
}

.ds-login-submit:hover {
  background: var(--action-blue-dark);
}

.ds-login-note {
  margin: 1rem 0 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.45;
  background: var(--surface);
  border-left: 3px solid var(--brand-red);
  color: var(--heading);
}

.ds-login-note[hidden] {
  display: none;
}

/* Titoli: su schermi stretti 60px sono eccessivi, si riducono in proporzione */
@media (max-width: 780px) {
  .section-head h2,
  .page-hero h1 {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (max-width: 480px) {
  .section-head h2,
  .page-hero h1 {
    font-size: 32px;
    line-height: 38px;
  }
}

/* ---------- Capacita (home) ----------
   Formato volutamente diverso dalla sezione "pain" qui sopra: li griglia di
   card staccate, qui un blocco unico -- foto a tutta larghezza con le tre
   card attaccate sotto, senza spazi, come un'unica scatola. */
.capabilities {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.capabilities-block {
  border: 1px solid var(--border);
  background: #ffffff;
}

.capabilities-photo {
  margin: 0;
  line-height: 0;                 /* niente spazio fantasma sotto l'img */
  border-bottom: 1px solid var(--border);
}

.capabilities-photo img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 300px);
  object-fit: cover;
  object-position: center 55%;
}

.capabilities-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;                         /* attaccate: i bordi fanno da divisori */
}

/* Icone in scala con le sezioni vicine della home (le pain card sono a 42px):
   solo qui, per non ingrandire le griglie delle pagine servizio. */
.capabilities .service-ico svg {
  width: 38px;
  height: 38px;
}

/* niente hover "cliccabile": non sono link */
.capability-item {
  background: #ffffff;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 1.9rem 1.6rem;
}

.capability-item:first-child {
  border-left: 0;
}

.capability-item h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--heading);
}

.capability-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

@media (max-width: 780px) {
  .capabilities-cards {
    grid-template-columns: 1fr;
  }

  .capability-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .capability-item:first-child {
    border-top: 0;
  }
}
