/* ===================================================
   BoxLine — Stili del tema
   Colori, font e dimensioni vengono da theme.json (preset WordPress):
   qui sotto sono solo rinominati in variabili brevi.
   =================================================== */

:root {
  --navy:    var(--wp--preset--color--navy, #1B3A6B);
  --blue:    var(--wp--preset--color--blue, #0077C8);
  --cyan:    var(--wp--preset--color--cyan, #00AAEF);
  --orange:  var(--wp--preset--color--orange, #F5A623);
  --gold:    var(--wp--preset--color--gold, #FFD200);
  --white:   #ffffff;
  --gray-50: var(--wp--preset--color--gray-50, #f8f9fb);
  --gray-100:var(--wp--preset--color--gray-100, #eef1f5);
  --gray-200:var(--wp--preset--color--gray-200, #dde2ea);
  --gray-400:var(--wp--preset--color--gray-400, #9ba3b0);
  --gray-600:var(--wp--preset--color--gray-600, #5a6272);
  --gray-800:var(--wp--preset--color--gray-800, #2b3040);
  --dark:    var(--wp--preset--color--dark, #0f1320);

  --grad-hero:   var(--wp--preset--gradient--hero);
  --grad-accent: var(--wp--preset--gradient--accent);
  --grad-warm:   var(--wp--preset--gradient--warm);

  --ff-heading: var(--wp--preset--font-family--outfit);
  --ff-body:    var(--wp--preset--font-family--inter);

  --container: 1200px;
  --radius:    16px;
  --radius-sm: 10px;
  --header-h:  76px;
  --ease: cubic-bezier(.4,0,.2,1);

  /* Icone usate come maschera CSS (spunta e freccia) */
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; }

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { text-decoration: none; color: inherit; }

/* Ancore: non finiscono sotto l'header fisso */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Focus visibile da tastiera (accessibilità) */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  left: 12px; top: 12px; padding: 12px 20px; z-index: 10000;
  background: var(--white); color: var(--navy); font-weight: 600;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 580px;
  margin-bottom: 48px;
}

/* Testo evidenziato (formati "Evidenzia" dell'editor) */
.highlight,
.highlight-warm {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.highlight-warm { background-image: var(--grad-warm); }
.accent-text { color: var(--cyan); }

/* ---------- Pulsanti ----------
   .btn per il markup generato dai blocchi BoxLine,
   .wp-block-button.is-style-* per i pulsanti inseriti dall'editor. */
.btn,
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
  padding: 14px 32px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, color .3s;
}

.btn:hover,
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }

.btn-primary,
.wp-block-button.is-style-primary .wp-block-button__link,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(0,170,239,.35);
}
.btn-primary:hover,
.wp-block-button.is-style-primary .wp-block-button__link:hover {
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0,170,239,.45);
}

.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-warm,
.wp-block-button.is-style-warm .wp-block-button__link {
  background: var(--grad-warm);
  color: var(--navy);
  box-shadow: 0 4px 24px rgba(245,166,35,.35);
}
.btn-warm:hover,
.wp-block-button.is-style-warm .wp-block-button__link:hover {
  color: var(--navy);
  box-shadow: 0 8px 32px rgba(245,166,35,.5);
}

.wp-block-button.is-style-white .wp-block-button__link {
  background: var(--white);
  color: var(--blue);
}
.wp-block-button.is-style-white .wp-block-button__link:hover {
  color: var(--blue);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.btn-sm { padding: 10px 22px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* Freccia dopo il testo (opzione "has-arrow") */
.has-arrow .wp-block-button__link::after,
.learn-more a::after,
.project-link::after {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
}

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Comparsa allo scroll (solo con JS attivo) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Trasparente sopra l'hero della home, pieno dopo lo scroll e nelle altre pagine */
.site-header.scrolled,
body:not(.home) .site-header {
  background: rgba(15,19,32,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,.2);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Linea sottile con i colori del brand sotto l'header pieno */
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,170,239,.55) 30%, rgba(245,166,35,.55) 70%, transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.site-header.scrolled::after,
body:not(.home) .site-header::after { opacity: 1; }

/* Logo: più grande, si riduce leggermente quando l'header diventa compatto.
   (!important perché il blocco Logo scrive la larghezza direttamente sull'immagine) */
.site-header .wp-block-site-logo img {
  height: 38px !important;
  width: auto !important;
  max-width: none;
  transition: height .4s var(--ease);
}

.site-header.scrolled .wp-block-site-logo img,
body:not(.home) .site-header .wp-block-site-logo img { height: 32px !important; }

.site-header .wp-block-site-logo a { display: block; transition: opacity .3s; }
.site-header .wp-block-site-logo a:hover { opacity: .85; }

@media (max-width: 600px) {
  .site-header .wp-block-site-logo img,
  .site-header.scrolled .wp-block-site-logo img,
  body:not(.home) .site-header .wp-block-site-logo img { height: 30px !important; }
}

.footer-brand .wp-block-site-logo img {
  height: 34px !important;
  width: auto !important;
  max-width: none;
}

/* Navigazione desktop */
/* I link del blocco Navigazione ereditano il colore (color: inherit di WordPress),
   quindi il colore si imposta sugli elementi della lista. */
.main-nav {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}

.main-nav .wp-block-navigation__container { gap: 32px; align-items: center; }

.main-nav .wp-block-navigation-item { transition: color .3s; }

.main-nav .wp-block-navigation-item:hover,
.main-nav .current-menu-item,
.main-nav .nav-cta { color: var(--white); }

.main-nav .wp-block-navigation-item__content {
  position: relative;
}

.main-nav .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width .3s var(--ease);
  border-radius: 2px;
}

.main-nav .wp-block-navigation-item__content:hover::after,
.main-nav .current-menu-item > .wp-block-navigation-item__content::after { width: 100%; }

/* "Parliamone" come pulsante */
.main-nav .nav-cta .wp-block-navigation-item__content {
  background: var(--grad-accent);
  font-family: var(--ff-heading);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 60px;
  box-shadow: 0 4px 24px rgba(0,170,239,.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.main-nav .nav-cta .wp-block-navigation-item__content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,170,239,.45);
}

/* Pulsanti menu mobile */
.main-nav .wp-block-navigation__responsive-container-open,
.main-nav .wp-block-navigation__responsive-container-close { color: var(--white); }
.main-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }

/* Il backdrop-filter dell'header farebbe da contenitore all'overlay (position: fixed)
   e lo schiaccerebbe nell'altezza dell'header: con il menu aperto va tolto. */
html body .site-header:has(.is-menu-open) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Menu mobile a schermo intero */
.main-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(15,19,32,.97) !important;
  color: var(--white) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.main-nav .is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: center !important;
  justify-content: center;
  padding-top: 14vh !important;
}

.main-nav .is-menu-open .wp-block-navigation__container {
  align-items: center !important;
  gap: 28px !important;
}

.main-nav .is-menu-open .wp-block-navigation-item {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.main-nav .is-menu-open .nav-cta .wp-block-navigation-item__content { font-size: 1.1rem; padding: 14px 32px; }

/* Il menu completo non entra sotto i 1024px: si passa all'hamburger
   (WordPress lo farebbe solo sotto i 600px). */
@media (max-width: 1023px) {
  .main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ===================================================
   HERO (home)
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: .07;
}

.shape-1 { width: 600px; height: 600px; background: var(--cyan);   top: -200px; right: -150px; animation: float 14s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: var(--orange); bottom: -100px; left: -100px; animation: float 18s ease-in-out infinite reverse; }
.shape-3 { width: 250px; height: 250px; background: var(--gold);   top: 40%; left: 55%; animation: float 12s ease-in-out infinite 2s; }
.shape-4 { width: 180px; height: 180px; background: var(--blue);   bottom: 20%; right: 10%; border-radius: 30%; animation: float 16s ease-in-out infinite 1s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(30px, -30px) rotate(5deg); }
  50%      { transform: translate(-20px, 20px) rotate(-3deg); }
  75%      { transform: translate(15px, -10px) rotate(2deg); }
}

/* Griglia di linee sottili */
.hero::before,
.page-hero::before,
.smp-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,170,239,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,239,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
}

.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,170,239,.12);
  border: 1px solid rgba(0,170,239,.25);
  padding: 6px 16px;
  border-radius: 60px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-family: var(--ff-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.hero-stat .number {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
  font-variant-numeric: tabular-nums; /* le cifre non "ballano" durante il conteggio */
}

.hero-stat .number .accent-text { color: var(--cyan); }

.hero-stat .label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}

/* ===================================================
   SERVIZI (home)
   =================================================== */
.services {
  padding: 100px 0;
  background: var(--gray-50);
}

.services-header,
.chi-approach-header,
.smp-modules-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header .section-subtitle,
.chi-approach-header .section-subtitle,
.smp-modules-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(27,58,107,.1);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0,170,239,.1), rgba(0,119,200,.1));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background .4s var(--ease);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--cyan);
  transition: stroke .4s var(--ease);
}

.service-card:hover .service-icon { background: var(--grad-accent); }
.service-card:hover .service-icon svg { stroke: var(--white); }

.service-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.learn-more { margin-top: 20px; }

.learn-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--cyan);
  transition: gap .3s var(--ease);
}

/* Tutta la card è cliccabile tramite il link "Scopri di più" */
.learn-more a::before { content: ''; position: absolute; inset: 0; }
.service-card:hover .learn-more a { gap: 12px; }

.service-card.accent-warm::before { background: var(--grad-warm); }
.service-card.accent-warm .service-icon { background: linear-gradient(135deg, rgba(245,166,35,.1), rgba(255,210,0,.1)); }
.service-card.accent-warm:hover .service-icon { background: var(--grad-warm); }
.service-card.accent-warm .service-icon svg { stroke: var(--orange); }
.service-card.accent-warm:hover .service-icon svg { stroke: var(--white); }
.service-card.accent-warm .learn-more a { color: #b26d00; }

/* ===================================================
   PERCHÉ BOXLINE (home)
   =================================================== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.about-card-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.about-glass {
  background: var(--grad-hero);
  border-radius: var(--radius);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}

.about-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,170,239,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,239,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.about-glass-content { position: relative; z-index: 2; }

.about-glass .big-number,
.chi-why-num,
.chi-step-num {
  font-family: var(--ff-heading);
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-glass .big-number { font-size: 4rem; line-height: 1; margin-bottom: 8px; }
.about-glass .big-label { font-size: 1rem; color: rgba(255,255,255,.75); }

.about-floating-badge,
.smp-showcase-float {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  box-shadow: 0 12px 40px rgba(27,58,107,.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-icon,
.smp-showcase-float-icon {
  width: 42px;
  height: 42px;
  background: var(--grad-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon svg,
.smp-showcase-float-icon svg { width: 20px; height: 20px; stroke: var(--navy); }

.about-floating-badge strong,
.smp-showcase-float strong {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.3;
}

.about-floating-badge span,
.smp-showcase-float span { font-size: .8rem; color: var(--gray-600); }

.about-text .section-subtitle { margin-bottom: 32px; }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature { display: flex; gap: 16px; }

.about-feature-icon,
.srv-feat-icon,
.contact-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0,170,239,.1), rgba(0,119,200,.05));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg { width: 22px; height: 22px; stroke: var(--cyan); }

.about-feature h3,
.srv-feat h3 {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.about-feature p { font-size: .9rem; color: var(--gray-600); }

/* ===================================================
   VETRINA SEMPLICE (home)
   =================================================== */
.smp-showcase {
  padding: 100px 0;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.smp-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.smp-showcase-text .section-label { color: var(--gold); }
.smp-showcase-text .section-label::before { background: var(--grad-warm); }
.smp-showcase-text .section-title { color: var(--white); margin-bottom: 20px; }
.smp-showcase-text .section-subtitle { color: rgba(255,255,255,.65); margin-bottom: 28px; }

.smp-showcase-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.smp-showcase-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px 18px;
  border-radius: 60px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.smp-showcase-features li:hover {
  background: rgba(0,170,239,.15);
  border-color: rgba(0,170,239,.3);
}

/* Spunta prima delle voci di elenco */
.smp-showcase-features li::before,
.smp-module-features li::before,
.contact-trust li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--cyan);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

.smp-showcase-visual { position: relative; }

.smp-showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}

.smp-showcase-img img,
.smp-showcase-img video { width: 100%; }

.smp-showcase-float {
  bottom: -16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  animation: float 6s ease-in-out infinite;
}

/* ===================================================
   CTA
   =================================================== */
.cta {
  padding: 100px 0;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta::before {
  width: 500px; height: 500px;
  background: var(--cyan);
  opacity: .06;
  top: -200px; right: -100px;
  animation: float 20s ease-in-out infinite;
}

.cta::after {
  width: 350px; height: 350px;
  background: var(--orange);
  opacity: .05;
  bottom: -150px; left: -50px;
  animation: float 16s ease-in-out infinite reverse;
}

.cta > .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta .section-label { justify-content: center; }
.cta .section-title { color: var(--white); max-width: 700px; margin: 0 auto 16px; }
.cta .section-subtitle { color: rgba(255,255,255,.6); margin: 0 auto 40px; }
.cta-actions { justify-content: center; }

/* Variante chiara (stile "CTA chiara" del blocco Gruppo) */
.cta.is-style-cta-chiara {
  background:
    radial-gradient(circle at 15% 20%, rgba(0,170,239,.08), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245,166,35,.10), transparent 45%),
    var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.cta.is-style-cta-chiara::before,
.cta.is-style-cta-chiara::after { display: none; }

.cta.is-style-cta-chiara .section-title { color: var(--navy); }
.cta.is-style-cta-chiara .section-subtitle { color: var(--gray-600); }
.cta.is-style-cta-chiara .section-label { color: var(--blue); }

.cta.is-style-cta-chiara .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--navy);
  border-color: rgba(27,58,107,.25);
}

.cta.is-style-cta-chiara .wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: var(--blue);
  border-color: var(--cyan);
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(0,170,239,.10), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(245,166,35,.07), transparent 50%),
    var(--dark);
  color: var(--gray-400);
  padding: 72px 0 0;
}

/* Linea con i colori del brand in cima al footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--orange) 75%, var(--gold));
}

.site-footer a { color: inherit; }

/* Riga dei contatti rapidi */
.footer-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 56px;
}

.footer-contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.footer-contact-card:hover {
  background: rgba(0,170,239,.08);
  border-color: rgba(0,170,239,.35);
  transform: translateY(-3px);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon svg { width: 22px; height: 22px; stroke: var(--white); }
.footer-contact-card--warm .footer-contact-icon { background: var(--grad-warm); }
.footer-contact-card--warm .footer-contact-icon svg { stroke: var(--navy); }

.footer-contact-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
}

.footer-contact-value {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

/* Tutta la card è cliccabile tramite il suo link */
.footer-contact-value a::after { content: ''; position: absolute; inset: 0; }

/* Colonne */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .wp-block-site-logo { margin-bottom: 18px; }

.footer-brand p {
  font-size: .9rem;
  color: var(--gray-400);
  max-width: 320px;
  line-height: 1.75;
}

.footer-heading {
  font-family: var(--ff-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-col p:not(.footer-heading) { margin-bottom: 12px; }

.footer-col a {
  display: inline-block;
  font-size: .92rem;
  color: var(--gray-400);
  transition: color .3s, transform .3s var(--ease);
}

.footer-col a:hover { color: var(--cyan); transform: translateX(4px); }

/* Social (shortcode [boxline_social]) */
.footer-socials {
  list-style: none;
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--gray-400);
  transition: border-color .3s, color .3s, background .3s;
}

.footer-socials a:hover { border-color: var(--cyan); color: var(--white); background: rgba(0,170,239,.15); }
.footer-socials svg { width: 17px; height: 17px; }

/* Barra finale */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom p { font-size: .82rem; color: var(--gray-400); }
.footer-bottom a:hover { color: var(--cyan); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

.back-to-top {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  transition: background .3s, transform .3s var(--ease);
}

.back-to-top:hover { background: var(--grad-accent); transform: translateY(-3px); color: var(--white) !important; }
.back-to-top svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .footer-contact { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================
   HERO PAGINE INTERNE
   =================================================== */
.page-hero {
  position: relative;
  background: var(--grad-hero);
  padding: 140px 0 80px;
  overflow: hidden;
}

.page-hero--compact { padding-bottom: 60px; }

.page-hero > .container { position: relative; z-index: 2; }

.page-hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero .section-label { justify-content: center; }

.page-hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* ===================================================
   SERVIZI
   =================================================== */
.srv-detail { padding: 80px 0; background: var(--white); }
.srv-detail--alt { background: var(--gray-50); }

.srv-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.srv-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.srv-icon-large {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(0,170,239,.1), rgba(0,119,200,.08));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.srv-icon-large svg { width: 52px; height: 52px; stroke: var(--cyan); stroke-width: 1.8; }
.srv-icon-col--warm .srv-icon-large { background: linear-gradient(135deg, rgba(245,166,35,.1), rgba(255,210,0,.08)); }
.srv-icon-col--warm .srv-icon-large svg { stroke: var(--orange); }

.srv-badge-num,
.smp-module-num {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  background: var(--grad-accent);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.srv-icon-col--warm .srv-badge-num { background: var(--grad-warm); color: var(--navy); }

.srv-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
}

.srv-more { margin: -8px 0 36px; gap: 12px; }
.srv-more .wp-block-button__link { padding: 12px 26px; font-size: .9rem; }
.srv-features-list { display: flex; flex-direction: column; gap: 20px; }

/* Pulsante con contorno scuro, per sfondi chiari */
.wp-block-button.is-style-light .wp-block-button__link {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(27,58,107,.2);
}
.wp-block-button.is-style-light .wp-block-button__link:hover { color: var(--blue); border-color: var(--cyan); }
.srv-feat { display: flex; gap: 14px; }
.srv-feat-icon { width: 36px; height: 36px; border-radius: 8px; }
.srv-feat-icon svg { width: 18px; height: 18px; stroke: var(--cyan); }
.srv-detail--alt .srv-feat-icon { background: linear-gradient(135deg, rgba(245,166,35,.1), rgba(255,210,0,.06)); }
.srv-detail--alt .srv-feat-icon svg { stroke: var(--orange); }
.srv-feat h3 { font-size: .95rem; }
.srv-feat p { font-size: .9rem; color: var(--gray-600); line-height: 1.7; }

/* ===================================================
   CHI SIAMO
   =================================================== */
.chi-mission, .chi-why { padding: 80px 0; background: var(--white); }
.chi-approach { padding: 80px 0; background: var(--gray-50); }

.chi-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.chi-mission-text h2 { margin-bottom: 20px; }

.chi-mission-text p:not(.section-label) {
  font-size: .98rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.chi-value-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }

.chi-value-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.chi-value-card:hover,
.chi-step-content:hover,
.challenge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27,58,107,.08);
}

.chi-value-icon { margin-bottom: 12px; }
.chi-value-icon svg { width: 28px; height: 28px; stroke: var(--navy); }

.chi-value-card h3,
.chi-step h3 {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.chi-value-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }

/* "Come lavoriamo": timeline verticale. Da desktop i passi si alternano
   a sinistra e a destra di una linea centrale con i numeri come tappe. */
.chi-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.chi-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue) 40%, var(--orange) 75%, var(--gold));
  border-radius: 2px;
}

.chi-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}

.chi-step-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--gray-50), 0 8px 24px rgba(0,170,239,.3);
}

.chi-step-num--warm {
  background: var(--grad-warm);
  -webkit-text-fill-color: var(--navy);
  color: var(--navy);
  box-shadow: 0 0 0 6px var(--gray-50), 0 8px 24px rgba(245,166,35,.3);
}

.chi-step-content {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

/* Piccola freccia verso la tappa */
.chi-step-content::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -8px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transform: rotate(45deg);
}

.chi-step-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.chi-step-content p { font-size: .92rem; color: var(--gray-600); line-height: 1.75; }

@media (min-width: 1024px) {
  .chi-steps { gap: 8px; }
  .chi-steps::before { left: 50%; margin-left: -1px; }

  .chi-step { grid-template-columns: 1fr 56px 1fr; gap: 40px; }
  .chi-step-num { grid-column: 2; grid-row: 1; }

  .chi-step-content { grid-column: 1; grid-row: 1; text-align: right; }
  .chi-step-content::before { left: auto; right: -8px; transform: rotate(-135deg); }

  .chi-step:nth-child(even) .chi-step-content { grid-column: 3; text-align: left; }
  .chi-step:nth-child(even) .chi-step-content::before { right: auto; left: -8px; transform: rotate(45deg); }
}

.chi-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.chi-why-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }

.chi-why-card {
  background: var(--grad-hero);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  transition: transform .3s var(--ease);
}

.chi-why-card:hover { transform: translateY(-4px); }
.chi-why-num { font-size: 2.2rem; margin-bottom: 8px; line-height: 1.2; }
.chi-why-card p:not(.chi-why-num) { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.6; }

/* ===================================================
   CONTATTI
   =================================================== */
.contact-section { padding: 80px 0; background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-intro {
  font-size: .98rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-items { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.contact-item { display: flex; gap: 16px; align-items: center; }
.contact-item-icon { width: 52px; height: 52px; border-radius: 12px; }
.contact-item-icon svg { width: 24px; height: 24px; stroke: var(--cyan); }
.contact-item-icon--warm { background: linear-gradient(135deg, rgba(245,166,35,.1), rgba(255,210,0,.06)); }
.contact-item-icon--warm svg { stroke: var(--orange); }

.contact-item h3 {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-item a { font-size: .95rem; color: var(--blue); transition: color .3s; }
.contact-item a:hover { color: var(--navy); }

.contact-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--gray-600);
}

/* Modulo di contatto (blocco "BoxLine · Modulo contatti") */
.contact-form-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.contact-form h3 {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,170,239,.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.form-privacy input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.form-privacy a { color: var(--blue); text-decoration: underline; }

.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  margin-bottom: 24px;
}

.form-notice.is-visible { display: block; }
.form-notice--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-notice--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ===================================================
   PROGETTI (archivio)
   =================================================== */
.portfolio-section { padding: 60px 0 100px; background: var(--gray-50); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--ff-heading);
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 24px;
  min-height: 44px;
  border-radius: 60px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all .3s var(--ease);
}

.filter-btn:hover { border-color: var(--cyan); color: var(--blue); }

.filter-btn[aria-pressed="true"] {
  background: var(--grad-accent);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0,170,239,.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.project-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(27,58,107,.1);
}

.project-card[hidden] { display: none; }

.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.project-card:hover .project-img img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,19,32,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-body { padding: 24px 28px 28px; }

.project-tag,
.project-detail-tag {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 60px;
  margin-bottom: 14px;
}

.tag-sito-web    { background: rgba(0,170,239,.1);  color: #0069a0; }
.tag-software    { background: rgba(245,166,35,.12); color: #9a5b00; }
.tag-gestionale  { background: rgba(27,58,107,.08); color: var(--navy); }

.project-body h2,
.project-body h3 {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.project-body p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--blue);
  transition: gap .3s var(--ease), color .3s;
}

/* Tutta la card è cliccabile tramite il link */
.project-link::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.project-card:hover .project-link { gap: 12px; color: var(--navy); }

/* ===================================================
   PROGETTO (caso studio)
   =================================================== */
.project-detail { padding: 80px 0; background: var(--white); }

.breadcrumb,
.rank-math-breadcrumb {
  font-size: .9rem;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 10px;
  color: var(--gray-400);
}

.breadcrumb a,
.rank-math-breadcrumb a { color: var(--blue); transition: color .3s; }
.breadcrumb a:hover,
.rank-math-breadcrumb a:hover { color: var(--navy); }
.rank-math-breadcrumb .separator { margin: 0 8px; color: var(--gray-400); }

.detail-back { margin-bottom: 40px; }

.detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue);
  transition: gap .3s var(--ease);
}

.detail-back a::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transform: rotate(180deg);
}

.detail-back a:hover { gap: 12px; }

.project-detail-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  margin-bottom: 60px;
  background: var(--gray-100);
}

.project-detail-hero img { width: 100%; height: 100%; object-fit: cover; }

.project-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,19,32,0) 30%, rgba(15,19,32,.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.project-detail-hero-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.project-detail-tag {
  margin-bottom: 0;
  font-size: .75rem;
  padding: 8px 18px;
  background: rgba(0,170,239,.25);
  color: var(--white);
  border: 1px solid rgba(0,170,239,.4);
}

.project-detail-meta { display: flex; flex-direction: column; gap: 4px; }

.project-detail-meta-label {
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.project-detail-meta-value { font-size: 1.1rem; font-weight: 600; color: var(--white); }
.project-detail-meta-value a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.project-detail-meta-value a:hover { text-decoration-color: var(--cyan); }
.project-detail-meta-value small { display: block; font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.75); margin-top: 2px; }

.project-body .project-collab { font-size: .82rem; color: var(--gray-600); margin-top: -8px; }
.project-body .project-collab strong { color: var(--navy); font-weight: 600; }

.detail-section { margin-bottom: 72px; }

.detail-section h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.2;
}

.detail-section > p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 20px;
}

.detail-section-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.detail-section-intro-text h3 {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.detail-section-intro-text p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 12px;
}

.detail-section-intro-image img { width: 100%; border-radius: var(--radius); }

.challenges-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.challenge-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.challenge-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--grad-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-icon svg { width: 24px; height: 24px; stroke: var(--white); }

.challenge-content h3 {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.challenge-content p { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }
.challenge-content strong { color: var(--navy); }

.tech-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 12px 18px;
  border-radius: 60px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s;
}

.tech-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
}

.tech-list li:hover { transform: translateY(-3px); background: var(--grad-accent); color: var(--white); border-color: transparent; }
.tech-list li:hover::before { background: var(--white); }

/* ==========================================================================
   Scheda progetto (blocco boxline/project-specs)
   Colonna principale + colonna laterale fissa; su mobile la scheda va in alto.
   ========================================================================== */

.project-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.project-main { min-width: 0; }
.project-layout > .ps-sheet { order: -1; }

@media (min-width: 1024px) {
  .project-layout:has(> .ps-sheet) { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .project-layout > .ps-sheet { order: 0; position: sticky; top: calc(var(--header-h) + 24px); }
  /* Nella colonna principale l'introduzione testo + immagine va in verticale. */
  .project-layout:has(> .ps-sheet) .detail-section-intro { grid-template-columns: 1fr; }
}

.ps-sheet {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.ps-sheet-title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-200);
  position: relative;
}

.ps-sheet-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--grad-accent);
}

.ps-facts { display: flex; flex-direction: column; }
.ps-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.ps-facts > div:last-child { border-bottom: 0; }

/* Su telefono e tablet la scheda sta sopra il racconto: dati su due colonne, più compatta. */
@media (max-width: 1023px) {
  .ps-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .ps-facts > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.ps-facts dt,
.ps-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
}
.ps-facts dd { margin: 0; font-weight: 600; color: var(--navy); font-size: .95rem; }

.ps-block { margin-top: 20px; }
.ps-label { margin-bottom: 10px; }

.ps-tech { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-tech a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 60px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  transition: background .3s var(--ease), color .3s, border-color .3s;
}
.ps-tech a:hover { background: var(--grad-accent); color: var(--white); border-color: transparent; }

.ps-score { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.ps-score-ring {
  --tone: #0c9d61;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--tone) calc(var(--score) * 1%), var(--gray-200) 0);
}
.ps-score-ring span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-50);
  display: grid;
  place-items: center;
  font-family: var(--ff-heading);
  font-weight: 800;
  color: var(--tone);
}
.ps-score--mid .ps-score-ring { --tone: #c77700; }
.ps-score--low .ps-score-ring { --tone: #d93025; }
.ps-score-text { font-size: .82rem; color: var(--gray-600); line-height: 1.4; }
.ps-score-text strong { display: block; color: var(--navy); font-size: .95rem; }

.ps-collab-name { font-weight: 700; color: var(--navy); }
.ps-collab-name a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(0,119,200,.3); text-underline-offset: 3px; }
.ps-collab-name a:hover { text-decoration-color: currentColor; }
.ps-collab-role { font-size: .85rem; color: var(--gray-600); }

.ps-visit { width: 100%; justify-content: center; margin-top: 24px; }

/* Sezioni del layout */
.ps-features { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; }
.ps-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
}
.ps-features li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--grad-accent);
}
.ps-features--modules li::before {
  border-radius: 7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--grad-hero);
}

.ps-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ps-chips li {
  padding: 10px 16px;
  border-radius: 60px;
  border: 1px dashed rgba(0,119,200,.45);
  background: rgba(0,170,239,.06);
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
}

.ps-ps { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ps-ps-card { border-radius: var(--radius); padding: 28px 26px; }
.ps-ps-card p:not(.ps-label) { line-height: 1.7; }
.ps-ps-card--problema { background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-600); }
.ps-ps-card--soluzione { background: var(--grad-hero); color: rgba(255,255,255,.88); }
.ps-ps-card--soluzione .ps-label { color: var(--gold); }

.ps-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ps-kpi-item {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--grad-hero);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ps-kpi-value {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ps-kpi-label { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.4; }

/* Screenshot dentro cornici di computer e telefono */
.ps-devices { position: relative; padding: 0 0 40px; }
.ps-desktop {
  width: 88%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(15,19,32,.18);
  border: 1px solid var(--gray-200);
}
.ps-desktop-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--gray-100); }
.ps-desktop-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-200); }
.ps-desktop-bar span:first-child { background: #ff6058; }
.ps-desktop-bar span:nth-child(2) { background: #ffbd2e; }
.ps-desktop-bar span:nth-child(3) { background: #28c940; }
.ps-desktop img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.ps-mobile {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26%;
  max-width: 200px;
  border-radius: 26px;
  padding: 7px;
  background: var(--dark);
  box-shadow: 0 24px 50px rgba(15,19,32,.3);
}
.ps-mobile img { display: block; width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 20px; }
.ps-devices--mobile-only { padding: 0; }
.ps-devices--mobile-only .ps-mobile { position: static; width: 220px; margin: 0 auto; }

@media (min-width: 768px) {
  .ps-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-ps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .ps-kpi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* Galleria (blocco Galleria di WordPress dentro un caso studio) */
.project-detail .wp-block-gallery { gap: 16px; }
.project-detail .wp-block-gallery img { border-radius: var(--radius-sm); }

/* Timeline */
.timeline { position: relative; padding: 20px 0; display: flex; flex-direction: column; gap: 28px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grad-accent);
}

.timeline-item { position: relative; padding-left: 64px; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 4px;
  width: 24px;
  height: 24px;
  background: var(--grad-accent);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px rgba(0,170,239,.4);
}

.timeline-item.active::before { animation: pulse 2s ease-in-out infinite; }

.timeline-milestone {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0,170,239,.1);
  color: #0069a0;
  padding: 4px 12px;
  border-radius: 60px;
  margin-right: 12px;
}

.timeline-period { display: inline-block; font-size: .85rem; color: var(--gray-600); font-weight: 500; margin-bottom: 8px; }

.timeline-title {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-description { font-size: .9rem; color: var(--gray-600); line-height: 1.7; }

/* Testimonianza */
.testimonial-card {
  background: var(--grad-hero);
  border: 1px solid rgba(0,170,239,.2);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-quote::before { content: '“'; color: var(--cyan); font-size: 1.6em; line-height: 0; vertical-align: -0.3em; margin-right: 4px; }

.testimonial-author { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(0,170,239,.3);
  background: rgba(0,170,239,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.testimonial-avatar svg { width: 28px; height: 28px; stroke: var(--cyan); }
.testimonial-name { font-family: var(--ff-heading); font-size: 1rem; font-weight: 700; color: var(--white); }
.testimonial-role { font-size: .85rem; color: rgba(255,255,255,.65); }

/* CTA finale del caso studio */
.detail-cta {
  background: var(--grad-accent);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
}

.detail-cta h2 { color: var(--white); margin-bottom: 12px; }
.detail-cta p { color: rgba(255,255,255,.9); margin: 0 auto 28px; max-width: 600px; }
.detail-cta .wp-block-buttons { justify-content: center; }

/* ===================================================
   SEMPLICE (pagina prodotto)
   =================================================== */
.smp-hero { padding: 160px 0 100px; }
.smp-hero-actions { justify-content: center; margin-top: 36px; }

.smp-preview {
  background: var(--gray-50);
  padding: 0 0 80px;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.smp-preview-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(27,58,107,.18), 0 0 0 1px rgba(0,170,239,.1);
  max-width: 960px;
  margin: 0 auto;
}

.smp-preview-img img,
.smp-preview-img video { width: 100%; }

/* Mockup animato (blocco "Mockup animato di Semplice") */
.smp-preview-mockup { max-width: 1040px; margin: 0 auto; }
.smp-showcase-visual .sm { box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08); }
.smp-showcase-visual:has(.sm-wrap) .smp-showcase-float { display: none; }

.smp-benefits { padding: 80px 0; background: var(--gray-50); }

.smp-benefits-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.smp-benefit {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.smp-benefit:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(27,58,107,.1); }

.smp-benefit-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(0,170,239,.08), rgba(0,119,200,.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.smp-benefit-icon svg { width: 30px; height: 30px; stroke: var(--cyan); }

.smp-benefit h3 {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.smp-benefit p { font-size: .9rem; color: var(--gray-600); line-height: 1.7; }

.smp-modules { padding: 100px 0 60px; background: var(--white); }

.smp-module {
  margin-bottom: 48px;
  padding: 48px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: box-shadow .4s var(--ease);
}

.smp-module:hover { box-shadow: 0 20px 60px rgba(27,58,107,.08); }
.smp-module--alt { background: var(--gray-50); }

.smp-module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
}

.smp-module--alt::before { background: var(--grad-warm); }

.smp-module-badge { margin-bottom: 28px; }
.smp-module-num { width: 48px; height: 48px; font-size: 1.1rem; }
.smp-module--alt .smp-module-num { background: var(--grad-warm); color: var(--navy); }

.smp-module-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.smp-module-text h3 {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.smp-module-lead {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}

.smp-module-features { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.smp-module-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .93rem;
  color: var(--gray-800);
  line-height: 1.6;
}

.smp-module-features li::before { width: 20px; height: 20px; margin-top: 2px; }
.smp-module--alt .smp-module-features li::before { background: var(--orange); }

.smp-module-icon-large {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(0,170,239,.08), rgba(0,119,200,.05));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform .4s var(--ease), background .4s var(--ease);
}

.smp-module-icon-large svg { width: 60px; height: 60px; stroke: var(--cyan); stroke-width: 1.5; transition: stroke .4s var(--ease); }
.smp-module:hover .smp-module-icon-large { transform: scale(1.05); background: var(--grad-accent); }
.smp-module:hover .smp-module-icon-large svg { stroke: var(--white); }

.smp-module--alt .smp-module-icon-large { background: linear-gradient(135deg, rgba(245,166,35,.1), rgba(255,210,0,.06)); }
.smp-module--alt .smp-module-icon-large svg { stroke: var(--orange); }
.smp-module--alt:hover .smp-module-icon-large { background: var(--grad-warm); }
.smp-module--alt:hover .smp-module-icon-large svg { stroke: var(--white); }

/* ===================================================
   PAGINE DEI SERVIZI (/servizi/…/)
   =================================================== */
.svc-intro { padding: 56px 0 96px; background: var(--white); }

.svc-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.svc-intro-text p:not(.section-label) {
  font-size: 1.02rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
}

.svc-intro-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Riquadro "Cosa ottieni" */
.svc-benefits {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(27,58,107,.18);
}

.svc-benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,170,239,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,239,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.svc-benefits h3 {
  position: relative;
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.svc-checklist { position: relative; list-style: none; display: flex; flex-direction: column; gap: 14px; }

.svc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}

.svc-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B3A6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--grad-warm);
}

/* Breadcrumb in cima al contenuto della pagina */
.svc-intro .breadcrumb,
.svc-intro .rank-math-breadcrumb { margin-bottom: 0; }

/* Tecnologie */
.svc-tech { padding: 80px 0; background: var(--white); text-align: center; }
.svc-tech .section-label { justify-content: center; }
.svc-tech .section-subtitle { margin: 0 auto 32px; }
.svc-tech .tech-list { justify-content: center; }

/* Progetti correlati */
.svc-projects { padding: 90px 0; background: var(--gray-50); }

/* Domande frequenti (blocco Dettagli) */
.svc-faq { padding: 90px 0; background: var(--white); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .3s, box-shadow .3s;
}

.faq-item[open] { border-color: rgba(0,170,239,.4); box-shadow: 0 12px 32px rgba(27,58,107,.08); }

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 60px 20px 24px;
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Icona + / − */
.faq-item summary::before,
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}

.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Altri servizi */
.svc-related { padding: 90px 0; background: var(--gray-50); }
.svc-related .services-grid { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .svc-related .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .svc-intro-grid { grid-template-columns: 1.35fr 1fr; gap: 64px; }
  .svc-benefits { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ===================================================
   SOTTOMENU (Servizi)
   =================================================== */
.main-nav .wp-block-navigation__submenu-container {
  background: rgba(15,19,32,.97) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 14px;
  padding: 8px !important;
  min-width: 250px !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
  top: calc(100% + 12px) !important;
}

/* Ponte invisibile: il sottomenu non si chiude passando dal link alla tendina */
.main-nav .wp-block-navigation__submenu-container::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  padding: 10px 14px !important;
  border-radius: 8px;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}

.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }

.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: rgba(0,170,239,.12);
  color: var(--white);
}

.main-nav .wp-block-navigation__submenu-icon { color: inherit; }

/* Nel menu mobile il sottomenu è un elenco semplice sotto "Servizi" */
.main-nav .is-menu-open .wp-block-navigation__submenu-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  padding: 8px 0 0 !important;
  min-width: 0 !important;
}

.main-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 0 !important;
  color: rgba(255,255,255,.7);
  text-align: center;
}

/* ===================================================
   PAGINE DI TESTO (privacy, cookie, articoli)
   =================================================== */
.text-page { padding: 64px 0 96px; }

.prose { max-width: 760px; margin: 0 auto; font-size: 1.02rem; color: var(--gray-800); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose img { border-radius: var(--radius-sm); }

.post-meta { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 12px; }

/* Elenco articoli (archivio blog) */
.posts-list { display: grid; gap: 32px; }
.posts-list .wp-block-post-title { font-size: 1.4rem; margin-bottom: 8px; }
.posts-list .wp-block-post-title a { color: var(--navy); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 56px; }

  .srv-row { grid-template-columns: 160px 1fr; gap: 40px; }
  .srv-row--reverse { grid-template-columns: 1fr 160px; }
  .srv-row--reverse .srv-icon-col { order: 2; }

  .chi-mission-grid,
  .chi-why-grid,
  .contact-grid,
  .detail-section-intro { grid-template-columns: 1fr 1fr; }
  .chi-why-cards { grid-template-columns: repeat(3, 1fr); }

  .projects-grid,
  .challenges-grid,
  .smp-benefits-grid { grid-template-columns: repeat(2, 1fr); }

  .smp-module-content { grid-template-columns: 1fr auto; }
  .smp-module-content--reverse { grid-template-columns: auto 1fr; }
  .smp-module-icon-large { width: 160px; height: 160px; }
  .smp-showcase-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .hero-stats { gap: 64px; }

  .srv-row { grid-template-columns: 180px 1fr; gap: 56px; }
  .srv-row--reverse { grid-template-columns: 1fr 180px; }

  .chi-value-cards { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .smp-benefits-grid { grid-template-columns: repeat(4, 1fr); }

  .smp-module-content { grid-template-columns: 1fr 200px; gap: 56px; }
  .smp-module-content--reverse { grid-template-columns: 200px 1fr; }
  .smp-module-icon-large { width: 180px; height: 180px; }
  .smp-module-icon-large svg { width: 72px; height: 72px; }

  /* Timeline a due colonne alternate */
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline-item { padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; }
  .timeline-item::before { left: 50%; margin-left: -12px; }
  .timeline-item .timeline-content { grid-column: 1; text-align: right; }
  .timeline-item:nth-child(even) .timeline-content { grid-column: 2; text-align: left; }
}

/* Chi preferisce meno movimento non vede animazioni */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
