/* ==========================================================================
   Joomeph - grafica del sito
   Blu elettrico + verde acqua (il colore storico dei link Joomeph) su base
   navy. Apertura della home a tutto schermo.
   ========================================================================== */

:root {
  --navy: #0e4a9e;
  --navy-2: #1565c0;
  --blue: #1976d2;
  --blue-dk: #1565c0;
  --teal: #00c896;
  --teal-dk: #00a57c;
  --sky: #eaf5fe;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e4e8f0;
  --paper: #ffffff;
  --amber: #fdb022;
  --wa: #25d366;
  --grad: linear-gradient(120deg, var(--blue) 0%, #2fa8f5 50%, var(--teal) 100%);

  --font: "Ubuntu", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Ubuntu", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: 20px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 32px -12px rgba(16,24,40,.18);
  --topbar-h: 38px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dk); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h3, h4 { font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* --- Pulsanti ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em;
  border: 2px solid transparent; border-radius: var(--r-sm);
  font: 600 .95rem/1.1 var(--font-head);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(26,127,224,.6); }
.btn-primary:hover { background: var(--blue-dk); color: #fff; }
.btn-accent { background: var(--teal); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(0,200,150,.7); }
.btn-accent:hover { background: #12dba8; color: var(--navy); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-wa { background: var(--wa); color: #06351a; }
.btn-wa:hover { background: #1ebe5a; color: #06351a; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* --- Topbar e header ----------------------------------------------------- */
.topbar { background: var(--navy); color: #d6e4f7; font-size: .82rem; position: relative; z-index: 60; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: var(--topbar-h); gap: 12px; }
.topbar a { color: #d6e4f7; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .fa { color: var(--teal); margin-right: 4px; }
.topbar-contacts { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-social { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0 18px 0 0; border-right: 1px solid rgba(255,255,255,.2); }
.topbar-social a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; transition: background-color .15s, color .15s; }
.topbar-social a:hover { background: var(--teal); color: var(--navy); }
.topbar-social .fa { color: inherit; margin: 0; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 2px 8px; border-radius: 4px; }
.lang a[aria-current] { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  /* blu semitrasparente: il logo bianco resta leggibile e sotto si intravede la pagina */
  background: rgba(14,74,158,.82);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
          backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.1);
  transition: background-color .25s, box-shadow .25s, top .25s;
}
.site-header.is-solid { background: rgba(14,74,158,.92); box-shadow: 0 8px 24px -14px rgba(8,30,70,.6); }
/* home: l'header scorre sopra lo slideshow a tutto schermo */
.is-home .site-header { position: fixed; top: var(--topbar-h); left: 0; right: 0; }
.is-home .site-header.is-solid { top: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.logo img { height: auto; width: auto; max-height: 66px; max-width: 320px; }

.nav-list { display: flex; align-items: stretch; gap: 4px; list-style: none; margin: 0; padding: 0; height: var(--header-h); }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 14px;
  color: #fff; text-decoration: none;
  font: 600 .9rem/1 var(--font-head); letter-spacing: .01em;
  transition: color .15s;
}
/* indicatore: una barra sul bordo inferiore dell'header */
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
  background: var(--teal); border-radius: 3px 3px 0 0;
  transform: scaleX(0); transform-origin: center; transition: transform .2s ease;
}
.nav-link:hover, .nav-link.is-active, .has-mega:hover > .nav-link, .has-mega.is-open > .nav-link { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after, .has-mega:hover > .nav-link::after, .has-mega.is-open > .nav-link::after { transform: scaleX(1); }
.nav-link .fa { font-size: .8em; opacity: .7; transition: transform .2s; }
.has-mega:hover > .nav-link .fa, .has-mega.is-open > .nav-link .fa { transform: rotate(180deg); }
.nav-badge { font: 700 .58rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; background: var(--teal); color: var(--navy); padding: 3px 5px; border-radius: 3px; transform: translateY(-7px); }
/* Contattaci: voce evidenziata (non un pulsante) con icona che "chiama" */
.nav-item:last-child { margin-left: 8px; }
.nav-item:last-child .nav-link { color: var(--teal); gap: 10px; padding-right: 4px; }
.nav-item:last-child .nav-link::before {
  content: "\f0e6"; font-family: FontAwesome; font-size: .95rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal); border: 2px solid var(--teal);
  animation: cta-ring 2.4s ease-out infinite;
  transition: background-color .2s, color .2s, transform .3s;
}
.nav-item:last-child .nav-link:hover, .nav-item:last-child .nav-link.is-active { color: #fff; }
.nav-item:last-child .nav-link:hover::before { background: var(--teal); color: var(--navy); animation: cta-wiggle .5s ease; }
.nav-item:last-child .nav-link::after { left: 48px; right: 4px; }
@keyframes cta-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,200,150,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(0,200,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,200,150,0); }
}
@keyframes cta-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-14deg); }
  50% { transform: rotate(12deg); }
  75% { transform: rotate(-6deg); }
}

/* sottomenu: pannello agganciato alla sua voce */
.mega {
  position: absolute; top: 100%; left: 50%; z-index: 60;
  width: max-content; max-width: min(720px, calc(100vw - 32px));
  transform: translate(calc(-50% + var(--shift, 0px)), 10px);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 48px -16px rgba(14,74,158,.28);
  visibility: hidden; opacity: 0;
  transition: opacity .18s, visibility .18s, transform .18s;
}
.has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega { visibility: visible; opacity: 1; transform: translate(calc(-50% + var(--shift, 0px)), 0); }
.mega-inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 320px); gap: 0; padding: 10px; }
.mega-col { padding: 14px 14px 10px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-head { font: 700 .74rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .09em; margin: 0 0 10px; padding: 0 10px; color: var(--teal-dk); }
.mega-head a { color: inherit; text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px;
  color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.35;
  border-radius: var(--r-sm);
  transition: background-color .15s, color .15s;
}
.mega li a::before { content: "\f105"; font-family: FontAwesome; color: var(--blue); opacity: .5; line-height: 1.35; transition: transform .15s, opacity .15s; }
.mega li a:hover { background: var(--sky); color: var(--blue); }
.mega li a:hover::before { opacity: 1; transform: translateX(2px); }
.mega-all {
  display: block;
  padding: 14px 24px;
  background: var(--sky); border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r);
  font: 600 .88rem/1 var(--font-head); text-decoration: none;
}
.mega-all:hover { background: #dcedfd; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; position: relative; z-index: 2; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 26px; height: 2px; background: #fff; position: relative; content: ""; transition: transform .2s, background-color .2s; border-radius: 2px;
}
.nav-toggle-bars::before { position: absolute; top: -8px; }
.nav-toggle-bars::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

/* --- Slideshow a tutto schermo ------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  display: flex; flex-direction: column; justify-content: center;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1);
  /* la slide che esce torna a scala 1 solo dopo la dissolvenza */
  transition: opacity 1.1s ease, transform 0s linear 1.1s;
}
.hero-img.is-active { opacity: 1; transform: scale(1.12); transition: opacity 1.1s ease, transform 9s ease-out; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,74,158,.88) 0%, rgba(21,101,192,.66) 40%, rgba(26,127,224,.18) 78%, rgba(26,127,224,0) 100%),
    linear-gradient(0deg, rgba(14,74,158,.85) 0%, rgba(14,74,158,0) 32%);
}
.hero-shade::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad);
}
.hero-inner { padding-top: calc(var(--header-h) + 56px); padding-bottom: 170px; }
.hero-slides { min-height: 15rem; display: grid; align-content: end; }
.hero-slide[hidden] { display: none; }
.hero-slide.is-active { animation: hero-in .7s ease both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-title {
  font-size: clamp(2.8rem, 7.2vw, 6rem);
  font-weight: 800; line-height: 1; letter-spacing: -.035em;
  color: #fff; margin: 0 0 22px; max-width: 13ch;
}
.hero-sub { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.45; color: rgba(255,255,255,.86); max-width: 34ch; margin: 0 0 34px; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-nav { position: absolute; left: 0; right: 0; bottom: 0; }
.hero-nav-inner { display: flex; align-items: flex-end; gap: 24px; padding-bottom: 34px; }
.hero-tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; }
.hero-tab {
  background: none; border: 0; padding: 0; text-align: left; color: rgba(255,255,255,.6);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: baseline;
}
.hero-tab:hover, .hero-tab.is-active { color: #fff; }
.ht-num { font-size: .8rem; font-weight: 700; color: var(--teal); }
.ht-label { font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-bar { grid-column: 1 / -1; height: 3px; background: rgba(255,255,255,.22); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.ht-bar span { display: block; height: 100%; width: 0; background: var(--teal); }
.hero-tab.is-done .ht-bar span { width: 100%; }
.hero-tab.is-active .ht-bar span { animation: hero-progress var(--hero-dur, 7s) linear forwards; }
.hero.is-static .hero-tab.is-active .ht-bar span { animation: none; width: 100%; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); background: transparent; color: #fff; font-size: 1.5rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.hero-arrows button:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* --- Testata pagine ---------------------------------------------------------- */
.page-head {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(0,200,150,.35), transparent 70%),
    radial-gradient(700px 400px at 70% 120%, rgba(26,127,224,.55), transparent 70%),
    var(--navy);
  color: #fff; padding: 64px 0 60px;
}
/* immagine di sfondo (dal pannello) sotto una velatura blu, per leggere bene il titolo */
.page-head[style*="--head-bg"] {
  background:
    linear-gradient(100deg, rgba(14,74,158,.94) 0%, rgba(14,74,158,.82) 45%, rgba(25,118,210,.55) 100%),
    var(--head-bg) center / cover no-repeat,
    var(--navy);
}
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 24ch; margin: 0; letter-spacing: -.03em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 16px; }
.crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs a + a::before { content: "\203A"; margin-right: 8px; color: rgba(255,255,255,.4); }
.post-meta { color: rgba(255,255,255,.75); margin: 14px 0 0; }

/* --- Sezioni e griglia ------------------------------------------------------ */
.sec { padding: 88px 0; }
.sec + .sec { padding-top: 0; }
.sec-alt, .sec-image, .sec-testimonials { background: var(--sky); }
.sec-alt + .sec, .sec + .sec-alt, .sec-image + .sec, .sec + .sec-image,
.sec-testimonials + .sec, .sec + .sec-testimonials { padding-top: 56px; }
.sec-head { max-width: none; margin-bottom: 48px; }
.sec-head .prose, .sec-intro { max-width: none; }
.hero + .sec { padding-top: 56px; }
.sec-image + .sec-testimonials { padding-top: 0; }
.sec-intro h6 { vertical-align: top; line-height: 1.2; }
.sec-intro h6 + h2, .sec-intro h6 + h3 { margin-top: 0; }
/* "recensioni su" + "Google" sulla stessa riga */
.sec-intro h6 + h3 {
  display: inline-block; vertical-align: top; line-height: 1.2; margin: 0 0 8px 6px;
  font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.sec-intro h2 { margin-bottom: 18px; }
.sec-head > h2, .sec-intro h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.sec-intro h6 {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dk); margin: 0 0 8px;
}
.sec-intro h6::before { content: ""; width: 28px; height: 2px; background: var(--teal); }
.sec-intro div, .sec-intro p { font-size: 1.15rem; color: var(--text); }
.sec-intro em { font-style: normal; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-intro b, .sec-intro strong { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.col-1 { grid-column: span 1; } .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; } .col-11 { grid-column: span 11; } .col-12 { grid-column: span 12; }
.col > .blk + .blk, .flow > .blk + .blk { margin-top: 28px; }
.grid-even { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
@media (min-width: 1025px) { .grid > .col-center { grid-column: var(--start) / span var(--w); } }
/* righe a larghezza piena (come le righe "fullscreen" del vecchio sito) */
.wrap-fluid { max-width: none; padding-left: clamp(16px, 2.2vw, 40px); padding-right: clamp(16px, 2.2vw, 40px); }
.sec-fluid .grid { align-items: center; }
.sec-fluid .blk-image img { width: auto; max-width: 100%; border-radius: 0; box-shadow: none; margin: 0 auto; }
/* immagini laterali dei sistemi (Top gamma / Standard): nessun riquadro */
.sec-fluid .blk-image, .sec-fluid .blk-image a { background: none; border: 0; box-shadow: none; padding: 0; }
.flow { max-width: 920px; margin-left: auto; margin-right: auto; }
.sec-gallery .flow, .sec-testimonials .flow, .sec-latest_posts .flow { max-width: none; }

/* --- Testo ------------------------------------------------------------------ */
.prose { max-width: 75ch; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-top: 1.1em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.2em; }
.prose h4 { font-size: 1.15rem; margin-top: 1em; color: var(--blue); }
.prose h5, .prose h6 { font-size: 1rem; }
.prose > :first-child { margin-top: 0; }
.prose strong, .prose b { color: var(--ink); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 30px; margin: .45em 0; }
.prose ul li::before {
  content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: .35em;
  width: 19px; height: 19px; border-radius: 50%; background: rgba(0,200,150,.15); color: var(--teal-dk);
  font-size: .65rem; display: grid; place-items: center; line-height: 1;
}
.prose ol { padding-left: 1.3em; }
.prose ol li::marker { color: var(--blue); font-weight: 700; }
.prose img { border-radius: var(--r); margin: 1em 0; display: inline-block; }
.prose [style*="text-align:center"] img { margin-left: auto; margin-right: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--sky); color: var(--ink); }
.prose blockquote { margin: 1.2em 0; padding: 18px 22px; border-left: 4px solid var(--teal); background: var(--sky); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.prose iframe { max-width: 100%; }
.prose a { word-break: break-word; font-weight: 600; }

/* --- Blocchi ---------------------------------------------------------------- */
.blk-image { margin: 0; }
.blk-image figcaption, .blk-video figcaption { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.blk-image img { border-radius: var(--r); margin: 0 auto; }
.blk-video { margin: 0; }
.ratio { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* servizi */
.sec-feature .grid { align-items: stretch; grid-auto-rows: 1fr; }
.sec-feature .col { display: flex; }
.sec-feature .col > .feat { flex: 1; }
.feat {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px 30px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feat::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(25,118,210,.3); box-shadow: 0 24px 44px -20px rgba(25,118,210,.35); }
.feat:hover::before { transform: scaleX(1); }
.feat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  min-height: 3.6em; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.feat h3 {
  font-size: 1.05rem; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase;
  margin: 0; padding-top: 6px; flex: 1;
}
.feat h3 a { color: inherit; text-decoration: none; }
.feat-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--sky); color: var(--blue); font-size: 1.4rem;
  transition: background .2s, color .2s;
}
.feat:hover .feat-icon { background: var(--blue); color: #fff; }
.feat-img { width: 52px; height: 52px; object-fit: contain; }
.feat-text { color: var(--muted); font-size: .97rem; line-height: 1.65; flex: 1; }
.feat-text p:last-child { margin: 0; }

/* schede prodotto (immagine + titolo + link) */
.sec-cards { background: var(--sky); padding-top: 72px !important; padding-bottom: 80px; }
.prod-card {
  display: flex; flex-direction: column; height: auto; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.col > .prod-card + .prod-card { margin-top: 24px; }
.sec-cards .grid { align-items: stretch; }
.sec-cards .col { display: flex; flex-direction: column; }
.sec-cards .prod-card { flex: 1; }
.prod-img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; background: linear-gradient(180deg, #f7fbff, #eef5fd); overflow: hidden; }
.prod-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.prod-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.prod-body strong { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.prod-go { color: var(--blue); font-size: .85rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.prod-go .fa { transition: transform .25s ease; }
.prod-card:hover { transform: translateY(-5px); border-color: rgba(25,118,210,.35); box-shadow: 0 22px 40px -18px rgba(25,118,210,.4); }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-card:hover .prod-go .fa { transform: translateX(4px); }
.prod-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* pagina Software gestionali: introduzione impaginata */
.pg-software-gestionali .page-head + .sec { padding: 72px 0 80px; }
.pg-software-gestionali .page-head + .sec .grid { gap: 0 56px; align-items: center; }
.pg-software-gestionali .page-head + .sec .grid > .col,
.pg-software-gestionali .page-head + .sec .grid > .col > .prose { display: contents; }
.pg-software-gestionali .page-head + .sec .prose > * { grid-column: 1 / -1; margin: 0; }
.pg-software-gestionali .page-head + .sec .prose > p:first-child {
  grid-column: 1 / 8; grid-row: 1; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.55; color: var(--ink); font-weight: 400;
}
.pg-software-gestionali .page-head + .sec .prose > p:first-child::before {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 22px;
}
.pg-software-gestionali .page-head + .sec .blk-image { grid-row: 1; margin: 0; }
/* le due immagini a collage: una grande e una più piccola sovrapposta */
.pg-software-gestionali .page-head + .sec .blk-image:nth-of-type(1) { grid-column: 8 / 12; align-self: start; }
.pg-software-gestionali .page-head + .sec .blk-image:nth-of-type(2) { grid-column: 10 / 13; align-self: end; margin-top: 130px; position: relative; z-index: 1; }
.pg-software-gestionali .page-head + .sec .col > .blk-image + .blk-image { margin-top: 130px; }
.pg-software-gestionali .page-head + .sec .blk-image a { display: grid; place-items: center; height: 230px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.pg-software-gestionali .page-head + .sec .blk-image:nth-of-type(2) a { height: 170px; border: 6px solid var(--paper); box-shadow: 0 24px 48px -18px rgba(14,74,158,.45); }
.pg-software-gestionali .page-head + .sec .blk-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pg-software-gestionali .page-head + .sec .prose > ul {
  counter-reset: sw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 56px; padding: 0;
}
.pg-software-gestionali .page-head + .sec .prose > ul li {
  counter-increment: sw; margin: 0; padding: 22px 24px 22px 76px; position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-size: .98rem; line-height: 1.6; color: var(--text);
  box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: border-color .2s, box-shadow .2s;
}
.pg-software-gestionali .page-head + .sec .prose > ul li:hover { border-color: rgba(25,118,210,.3); box-shadow: 0 16px 32px -18px rgba(25,118,210,.35); }
.pg-software-gestionali .page-head + .sec .prose > ul li::before {
  content: counter(sw, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 10px; background: var(--sky); color: var(--blue);
}
.pg-software-gestionali .page-head + .sec .prose > ul li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pg-software-gestionali .page-head + .sec .prose > p:last-child:not(:first-child) {
  margin-top: 40px; padding: 30px 36px 30px 96px; position: relative; border-radius: var(--r);
  background: linear-gradient(110deg, var(--navy) 0%, var(--blue) 60%, #1e9fd8 100%); color: #fff; font-size: 1.15rem; font-weight: 500; line-height: 1.55;
  box-shadow: 0 24px 48px -24px rgba(14,74,158,.6);
}
.pg-software-gestionali .page-head + .sec .prose > p:last-child:not(:first-child)::before {
  content: "\f135"; font-family: FontAwesome; position: absolute; left: 32px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.2rem; color: var(--teal);
}
@media (max-width: 1024px) {
  .pg-software-gestionali .page-head + .sec .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .pg-software-gestionali .page-head + .sec .prose > p:first-child { grid-column: 1 / -1; grid-row: 1; margin-bottom: 28px; }
  .pg-software-gestionali .page-head + .sec .blk-image { grid-row: 2; }
  .pg-software-gestionali .page-head + .sec .blk-image:nth-of-type(1) { grid-column: 1; }
  .pg-software-gestionali .page-head + .sec .blk-image:nth-of-type(2),
  .pg-software-gestionali .page-head + .sec .col > .blk-image + .blk-image { grid-column: 2; margin-top: 0; align-self: stretch; }
  .pg-software-gestionali .page-head + .sec .blk-image a,
  .pg-software-gestionali .page-head + .sec .blk-image:nth-of-type(2) a { height: 180px; border: 0; box-shadow: var(--shadow); }
}
@media (max-width: 640px) {
  .pg-software-gestionali .page-head + .sec .prose > ul { grid-template-columns: 1fr; margin-top: 36px; }
  .pg-software-gestionali .page-head + .sec .blk-image a,
  .pg-software-gestionali .page-head + .sec .blk-image:nth-of-type(2) a { height: 130px; }
  .pg-software-gestionali .page-head + .sec .blk-image:nth-of-type(2) { align-self: start; }
  .pg-software-gestionali .page-head + .sec .prose > ul li { padding: 18px 18px 18px 64px; }
  .pg-software-gestionali .page-head + .sec .prose > ul li::before { left: 16px; top: 18px; width: 34px; height: 34px; }
  .pg-software-gestionali .page-head + .sec .prose > p:last-child:not(:first-child) { padding: 76px 22px 24px; }
  .pg-software-gestionali .page-head + .sec .prose > p:last-child:not(:first-child)::before { left: 22px; top: 22px; transform: none; }
}

/* invito all'azione nel testo ("VUOI VEDERE LA DEMO? CONTATTACI") */
.blk-cta {
  max-width: none; margin-top: 48px !important; padding: 44px 40px; text-align: center; position: relative; overflow: hidden;
  border-radius: calc(var(--r) + 4px); color: #fff;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(0,200,150,.35), transparent 70%),
    linear-gradient(115deg, var(--navy) 0%, var(--blue) 70%, #1e9fd8 100%);
  box-shadow: 0 28px 56px -28px rgba(14,74,158,.65);
}
.blk-cta p { margin: 0; color: rgba(255,255,255,.85); font-size: 1rem; letter-spacing: .04em; }
.blk-cta p strong, .blk-cta p b { color: inherit; font-weight: 600; }
.blk-cta p:first-child { color: #fff; font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: -.01em; line-height: 1.25; margin-bottom: 10px; text-transform: none; }
.blk-cta p:first-child strong { font-weight: 700; }
.blk-cta br { display: none; }
.blk-cta .cta-btns { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); width: max-content; max-width: 100%; gap: 12px; margin: 26px auto 0; letter-spacing: 0; }
.blk-cta .cta-btns .btn { white-space: nowrap; }
.blk-cta .cta-btns .btn { width: 100%; justify-content: center; margin: 0; }
@media (max-width: 480px) { .blk-cta .cta-btns { grid-template-columns: minmax(0, 260px); width: auto; } }
.blk-cta .cta-btns .btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.blk-cta .cta-btns .btn-light:hover { background: rgba(255,255,255,.9); }

/* --- Pagine prodotto (singoli software e app) -------------------------------- */
/* vetrina iniziale: immagini dei sistemi ai lati e galleria al centro */
.is-product .sec { padding: 72px 0; }
.is-product .page-head + .sec { padding-top: 56px; }
/* le righe con le immagini dei sistemi (Top gamma / Standard) hanno SEMPRE lo sfondo bianco */
.is-product .sec-fluid { background: var(--paper); }
/* le altre sezioni si alternano su azzurro chiaro, con una sottile linea di separazione */
.is-product .sec:not(.sec-fluid):not(.sec-clients) {
  background: linear-gradient(180deg, #f3f8fe 0%, var(--sky) 100%);
  border-top: 1px solid #e3edf9; border-bottom: 1px solid #e3edf9;
}
.is-product .page-head + .sec .col-6 > .blk {
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); padding: 18px;
  box-shadow: 0 18px 40px -24px rgba(14,74,158,.35);
}
.is-product .page-head + .sec .col-6 > .blk-image { padding: 0; background: none; box-shadow: none; }

/* testo */

.is-product .blk-intro { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.is-product .blk-intro > * { text-align: center !important; margin-left: auto; margin-right: auto; }
.is-product .blk-intro > :first-child { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 16px; color: var(--ink); }
.is-product .blk-intro > :nth-child(2) {
  display: inline-block; font-size: .95rem; font-weight: 500; color: var(--blue); background: rgba(25,118,210,.09);
  padding: 7px 16px; border-radius: 999px; margin: 0 0 14px; letter-spacing: 0;
}
.is-product .blk-intro > :nth-child(3) { font-size: 1.2rem; font-weight: 500; color: var(--teal-dk); margin: 6px auto 0; }
.is-product .blk-intro::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--grad); margin: 26px auto 0; }
.is-product .flow { max-width: none; }
.is-product .flow > .prose { font-size: 1.05rem; max-width: none; }
.is-product .flow > .blk-video { max-width: 960px; margin-left: auto; margin-right: auto; }
/* elenco funzioni: schede con spunta su due colonne */
.is-product .flow > .prose:not(.blk-cta) ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 28px; padding: 0;
}
/* 3 per riga; con 4 o 2 voci tutte sulla stessa riga; l'ultima riga incompleta resta centrata */
.is-product .flow > .prose:not(.blk-cta) ul > li { flex: 0 1 calc((100% - 24px) / 3); }
.is-product .flow > .prose:not(.blk-cta) ul:has(> li:nth-child(4):last-child) > li { flex-basis: calc((100% - 36px) / 4); }
.is-product .flow > .prose:not(.blk-cta) ul:has(> li:nth-child(2):last-child) > li { flex-basis: calc((100% - 12px) / 2); }
.is-product .flow > .prose:not(.blk-cta) ul li {
  margin: 0; padding: 14px 16px 14px 50px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .97rem; line-height: 1.5; color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: border-color .2s, transform .2s;
}
.is-product .flow > .prose:not(.blk-cta) ul li:hover { border-color: rgba(0,200,150,.5); transform: translateY(-2px); }
.is-product .flow > .prose:not(.blk-cta) ul li::before { left: 16px; top: 15px; width: 22px; height: 22px; font-size: .7rem; background: var(--teal); color: #fff; }
.is-product .flow > .prose ol { margin: 22px 0 28px; padding-left: 1.6em; }
.is-product .flow > .prose ol li { break-inside: avoid; margin: 0 0 9px; padding-left: 4px; }
@media (min-width: 641px) and (max-width: 1024px) {
  .is-product .flow > .prose:not(.blk-cta) ul > li,
  .is-product .flow > .prose:not(.blk-cta) ul:has(> li:nth-child(4):last-child) > li { flex-basis: calc((100% - 12px) / 2); }
}
/* liste numerate brevi: numeri in cerchio */
.is-product .flow > .prose ol:not(:has(> li:nth-child(12))) { list-style: none; counter-reset: pl; padding-left: 0; display: grid; gap: 10px; }
.is-product .flow > .prose ol:not(:has(> li:nth-child(12))) > li { counter-increment: pl; position: relative; padding: 4px 0 4px 46px; margin: 0; }
.is-product .flow > .prose ol:not(:has(> li:nth-child(12))) > li::before {
  content: counter(pl); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 .9rem/1 var(--font-head);
  box-shadow: 0 6px 14px -6px rgba(25,118,210,.6);
}
/* galleria con 4 immagini: tutte su una riga (non diventano enormi) */
.gal-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr) !important; }
/* galleria con 5 immagini: tutte su una riga */
.gal-grid:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr) !important; gap: 10px; }
@media (max-width: 640px) { .gal-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px) { .gal-grid:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(3, 1fr) !important; } }
/* liste numerate lunghe (12+ voci) su 3 colonne */
.is-product .flow > .prose ol:has(> li:nth-child(12)) { columns: 3; column-gap: 44px; }
.is-product .flow > .prose p:has(+ ol) { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-top: 32px; }
.is-product .flow > .prose p:has(+ ul) { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-top: 32px; }
.is-product .flow > .blk-video { margin-top: 40px; }
.is-product .flow > .blk-video .ratio { border-radius: calc(var(--r) + 4px); box-shadow: 0 30px 60px -30px rgba(14,74,158,.55); }

/* clienti che hanno scelto il software (galleria con nomi) */
.sec-clients { background: var(--sky); padding: 80px 0 !important; }
.sec-clients .sec-head { text-align: center; margin-left: auto; margin-right: auto; }
.sec-clients .sec-intro h6 { justify-content: center; }
.sec-clients .gal-clients .gal-grid { gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sec-clients .flow > .prose { text-align: center; max-width: none; margin-top: 28px; color: var(--muted); }
.sec-clients .flow > .prose strong { color: var(--ink); }
@media (max-width: 1024px) { .sec-clients .gal-clients .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sec-clients .gal-clients .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* pacchetti (Standard / Gold / Platinum) */
.grid:has(> .col > .pack) { align-items: stretch; gap: 28px; }
.col:has(> .pack) { display: flex; }
.pack {
  flex: 1; display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px);
  padding: 34px 30px 30px; box-shadow: 0 20px 44px -28px rgba(14,74,158,.45);
  transition: transform .25s ease, box-shadow .25s ease;
  --tier: var(--blue); --tier2: #2fa8f5;
}
.pack-gold { --tier: #c98a04; --tier2: #f5b62a; }
.pack-platinum { --tier: #334155; --tier2: #7c8ea6; }
.pack::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--tier), var(--tier2)); }
.pack:hover { transform: translateY(-6px); box-shadow: 0 30px 56px -28px rgba(14,74,158,.55); }
.pack-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.pack-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; background: linear-gradient(135deg, var(--tier), var(--tier2)); box-shadow: 0 10px 20px -10px var(--tier); }
.pack-head h3 { margin: 0; font-size: 1.45rem; color: var(--ink); }
.pack-list { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.pack-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--text); font-size: 1rem; border-bottom: 1px dashed #e8edf5; }
.pack-list li:last-child { border-bottom: 0; }
.pack-list .fa { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; color: #fff; background: var(--tier); flex: none; }
.pack-list li.is-no { color: #98a2b3; }
.pack-list li.is-no span { text-decoration: line-through; text-decoration-color: rgba(152,162,179,.6); }
.pack-list li.is-no .fa { background: #eef1f6; color: #c2410c; font-size: .7rem; }
.pack-btn { width: 100%; background: linear-gradient(135deg, var(--tier), var(--tier2)); color: #fff; border: 0; }
.pack-btn:hover { color: #fff; filter: brightness(1.08); }
/* il pacchetto Gold in evidenza al centro */
.pack-gold { transform: scale(1.03); border-color: rgba(201,138,4,.35); }
.pack-gold:hover { transform: scale(1.03) translateY(-6px); }
@media (max-width: 1024px) { .pack-gold, .pack-gold:hover { transform: none; } }

/* chiusura: immagini dei sistemi ai lati del riquadro blu, appoggiate al fondo (nessun margine sotto) */
.is-product .sec-fluid .blk-cta { margin-top: 0 !important; }
/* --- Pagine APP ------------------------------------------------------------------ */
/* righe con i telefoni ai lati (in alto e in basso): telefoni appoggiati al fondo della riga */
.is-app .sec-fluid { padding-bottom: 0 !important; }
.is-app .sec-fluid .grid { display: flex; align-items: flex-end; gap: clamp(12px, 1.6vw, 28px); }
.is-app .sec-fluid .grid > .col { flex: 1 1 0; min-width: 0; align-self: flex-end; }
.is-app .sec-fluid .grid > .col-3 { flex-grow: 2.4; }
.is-app .sec-fluid .grid > .col-6 { flex-grow: 5; align-self: center; padding-bottom: 40px; }
.is-app .sec-fluid .blk-image, .is-app .sec-fluid .blk-image a { display: block; margin: 0; line-height: 0; }
.is-app .sec-fluid .blk-image img { display: block; width: 100%; height: auto; margin: 0; }
/* schermate dell'app al centro: come display di telefono, leggermente sfalsate */
.is-app .sec-fluid .grid > .col-1, .is-app .sec-fluid .grid > .col-2 { align-self: center; padding-bottom: 48px; }
.is-app .sec-fluid .col-1 .blk-image img, .is-app .sec-fluid .col-2 .blk-image img {
  border-radius: 16px; border: 4px solid #0f172a; background: #0f172a;
  box-shadow: 0 22px 40px -18px rgba(14,74,158,.55); transition: transform .35s ease;
}
.is-app .sec-fluid .grid > .col-1:nth-child(even) { transform: translateY(26px); }
/* pagina generale App: al centro le icone delle app dei clienti (non schermate) */
.pg-app-android-apple .sec-fluid .col-1 .blk-image img { border: 0; border-radius: 24%; background: #fff; box-shadow: 0 16px 30px -14px rgba(14,74,158,.5); }
.is-app .sec-fluid .col-1 .blk-image a:hover img { transform: translateY(-6px) scale(1.03); }
/* video dell'app al centro: lettore verticale 9:16 a forma di telefono */
.is-app .sec-fluid .col-6 > .prose { max-width: none; text-align: center; }
.is-app .sec-fluid .col-6 video, .blk video.is-vertical {
  display: block; margin: 0 auto; width: min(300px, 100%); height: auto; aspect-ratio: 9 / 16; object-fit: contain;
  background: #000; border: 10px solid #0f172a; border-radius: 34px;
  box-shadow: 0 30px 60px -24px rgba(14,74,158,.6), inset 0 0 0 1px rgba(255,255,255,.06);
}
/* titoletti dentro i testi delle pagine prodotto (es. "Realizzazione Siti Internet", "E-Commerce") */
.is-product .flow > .prose:not(.blk-intro) h4, .is-product .flow > .prose:not(.blk-intro) h5 {
  display: flex; align-items: center; gap: 12px; font-size: 1.35rem; color: var(--ink); margin: 40px 0 12px;
}
.is-product .flow > .prose:not(.blk-intro) h4::before, .is-product .flow > .prose:not(.blk-intro) h5::before {
  content: ""; width: 6px; height: 26px; border-radius: 4px; background: var(--grad); flex: none;
}
.is-product .flow > .prose:not(.blk-intro) > h4:first-child, .is-product .flow > .prose:not(.blk-intro) > h5:first-child { margin-top: 0; }

/* Siti Web e Lavora con noi: nella riga finale le immagini toccano il fondo e i bordi della pagina */
.pg-siti-web-e-commerce-e-learning .sec-cta-row, .pg-lavora-con-noi .sec-cta-row { padding-bottom: 0 !important; }
.pg-siti-web-e-commerce-e-learning .sec-cta-row .wrap-fluid, .pg-lavora-con-noi .sec-cta-row .wrap-fluid { padding-left: 0; padding-right: 0; }
.pg-siti-web-e-commerce-e-learning .sec-cta-row .grid, .pg-lavora-con-noi .sec-cta-row .grid { align-items: end; }
.pg-siti-web-e-commerce-e-learning .sec-cta-row .grid > .col, .pg-lavora-con-noi .sec-cta-row .grid > .col { align-self: end; }
.pg-siti-web-e-commerce-e-learning .sec-cta-row .grid > .col:has(.blk-cta), .pg-lavora-con-noi .sec-cta-row .grid > .col:has(.blk-cta) { align-self: center; padding: 40px 0; }
.pg-siti-web-e-commerce-e-learning .sec-cta-row .blk-image, .pg-siti-web-e-commerce-e-learning .sec-cta-row .blk-image a,
.pg-lavora-con-noi .sec-cta-row .blk-image, .pg-lavora-con-noi .sec-cta-row .blk-image a { display: block; margin: 0; line-height: 0; }
.pg-siti-web-e-commerce-e-learning .sec-cta-row .blk-image img, .pg-lavora-con-noi .sec-cta-row .blk-image img { display: block; margin: 0; }
.pg-siti-web-e-commerce-e-learning .sec-cta-row .grid > .col:first-child img, .pg-lavora-con-noi .sec-cta-row .grid > .col:first-child img { margin-right: auto; }
.pg-siti-web-e-commerce-e-learning .sec-cta-row .grid > .col:last-child img, .pg-lavora-con-noi .sec-cta-row .grid > .col:last-child img { margin-left: auto; }
@media (max-width: 1024px) {
  .pg-siti-web-e-commerce-e-learning .sec-cta-row, .pg-lavora-con-noi .sec-cta-row { padding-bottom: 56px !important; }
  .pg-siti-web-e-commerce-e-learning .sec-cta-row .wrap-fluid, .pg-lavora-con-noi .sec-cta-row .wrap-fluid { padding-left: 16px; padding-right: 16px; }
}

/* --- Lavora con noi --------------------------------------------------------------- */
/* blocchi testo + immagine: bianco (con il titolo) / azzurro (con l'avviso) */
.pg-lavora-con-noi .page-head + .sec { background: var(--paper) !important; border: 0 !important; padding: 64px 0 72px; }
.pg-lavora-con-noi .sec:not(.sec-fluid) .grid { align-items: center; gap: 48px 56px; }
.pg-lavora-con-noi .sec:not(.sec-fluid) .blk-image img {
  width: 100%; border-radius: calc(var(--r) + 4px); box-shadow: 0 28px 56px -28px rgba(14,74,158,.5);
}
.pg-lavora-con-noi .grid .prose:not(.blk-cta) { max-width: none; font-size: 1.05rem; }
/* "Garantiamo... le marche": riquadro evidenziato */
.pg-lavora-con-noi .grid .prose:not(.blk-cta) p[style*="center"]:not(:last-child) {
  position: relative; text-align: left !important; margin: 22px 0; padding: 18px 22px 18px 66px;
  background: var(--sky); border: 1px solid #d6e7fb; border-radius: var(--r); color: var(--ink); font-weight: 500;
}
.pg-lavora-con-noi .grid .prose:not(.blk-cta) p[style*="center"]:not(:last-child)::before {
  content: "\f058"; font-family: FontAwesome; position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--teal);
}
/* "Non ci sono obblighi... Margini alti.": etichetta verde */
.pg-lavora-con-noi .grid .prose:not(.blk-cta) p[style*="center"]:last-child {
  display: inline-flex; align-items: center; gap: 10px; text-align: left !important; margin: 6px 0 0;
  padding: 12px 20px; border-radius: 999px; background: rgba(0,200,150,.12); color: #047857;
}
.pg-lavora-con-noi .grid .prose:not(.blk-cta) p[style*="center"]:last-child::before { content: "\f0d6"; font-family: FontAwesome; font-size: 1.1rem; }
.pg-lavora-con-noi .grid .prose:not(.blk-cta) p[style*="center"]:last-child strong { color: inherit; }
.pg-lavora-con-noi .grid .prose br + br { display: block; content: ""; margin-top: 10px; }
/* "IMPORTANTISSIMO": avviso ben visibile */
.pg-lavora-con-noi .prose:has(> div[style*="center"]:only-child) {
  max-width: 900px; margin: 0 auto; padding: 26px 30px 26px 88px; position: relative;
  background: linear-gradient(110deg, #fff7e6, #fffbf2); border: 1px solid #f7d58c; border-radius: calc(var(--r) + 2px);
  box-shadow: 0 20px 40px -26px rgba(201,138,4,.55);
}
.pg-lavora-con-noi .prose:has(> div[style*="center"]:only-child)::before {
  content: "\f0ad"; font-family: FontAwesome; position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, #c98a04, #f5b62a);
}
.pg-lavora-con-noi .prose:has(> div[style*="center"]:only-child) > div { text-align: left !important; color: #7a4d00; font-size: 1.05rem; }
.pg-lavora-con-noi .prose:has(> div[style*="center"]:only-child) strong { color: inherit; }
/* titolo in cima al primo blocco e avviso in fondo al secondo: a tutta riga */
.pg-lavora-con-noi .grid > .col-12 .blk-intro { margin-bottom: 8px; }
.pg-lavora-con-noi .grid > .col-12 .prose:has(> div[style*="center"]:only-child) { margin-top: 8px; }
@media (max-width: 1024px) {
  .pg-lavora-con-noi .sec:not(.sec-fluid) .grid { gap: 28px; }
}

/* --- Documenti legali (Privacy / Cookie policy) ------------------------------------ */
.is-legal main { background: var(--sky); padding-bottom: 72px; }
.is-legal main .sec { padding: 0; background: none; }
.is-legal main .sec:first-of-type { padding-top: 56px; }
.is-legal main .sec .flow {
  max-width: 920px; background: var(--paper); border: 1px solid var(--line); padding: 8px 56px;
  box-shadow: 0 30px 60px -40px rgba(14,74,158,.45);
}
.is-legal main .sec:first-of-type .flow { border-radius: calc(var(--r) + 4px) calc(var(--r) + 4px) 0 0; padding-top: 48px; }
.is-legal main .sec:last-of-type .flow { border-radius: 0 0 calc(var(--r) + 4px) calc(var(--r) + 4px); padding-bottom: 48px; }
.is-legal main .sec:only-of-type .flow { border-radius: calc(var(--r) + 4px); }
.is-legal main .sec + .sec .flow { border-top: 0; }
.is-legal main .sec:not(:last-of-type) .flow { border-bottom: 0; box-shadow: none; }
.is-legal .prose { max-width: none; font-size: 1rem; line-height: 1.75; color: var(--text); }
.is-legal .prose > h3:first-child[style*="center"] { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.is-legal .prose h3 {
  font-size: 1.3rem; color: var(--ink); margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.is-legal .prose > h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.is-legal .prose h4 { font-size: 1.05rem; color: var(--blue); margin: 24px 0 8px; }
.is-legal .prose h4[style*="left"] { color: var(--muted); font-weight: 500; font-size: 1rem; text-align: center !important; margin: 0 0 8px; }
.is-legal .prose a { color: var(--blue); }
.is-legal .acc { margin-top: 28px; }
.is-legal .acc > h3 { font-size: 1.3rem; margin: 0 0 14px; scroll-margin-top: 120px; }
.is-legal .acc summary { font-weight: 600; }
.is-legal .blk > p > .btn, .is-legal p.blk { text-align: center; margin-top: 36px; }
/* indice */
.legal-toc { margin: 24px 0 8px; padding: 22px 26px; background: var(--sky); border: 1px solid #d6e7fb; border-radius: var(--r); }
.legal-toc-t { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.legal-toc-t .fa { color: var(--blue); }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.legal-toc li { break-inside: avoid; margin: 4px 0; color: var(--blue); }
.is-legal .legal-toc a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 400; }
.legal-toc a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 640px) {
  .is-legal main .sec .flow { padding-left: 20px; padding-right: 20px; }
  .legal-toc ol { columns: 1; }
}

/* documenti: riquadro per i paragrafi in maiuscolo, articoli numerati (licenza), sezioni GPL */
.is-legal .prose .legal-note {
  background: #fff8e6; border: 1px solid #fde4a8; border-left: 4px solid var(--amber); border-radius: var(--r-sm);
  padding: 16px 20px; margin: 22px 0; color: var(--ink); font-weight: 500; line-height: 1.65;
}
.pg-gnu-general-public-license .prose .legal-note { font-size: .9rem; letter-spacing: .01em; font-weight: 400; }
.is-legal .prose ol.doc-articles { list-style: none; counter-reset: art; padding: 0; margin: 28px 0 8px; }
.is-legal .prose ol.doc-articles > li {
  counter-increment: art; position: relative; padding: 24px 0 24px 64px; margin: 0;
  border-top: 1px solid var(--line); scroll-margin-top: 120px;
}
.is-legal .prose ol.doc-articles > li::before {
  content: counter(art); position: absolute; left: 0; top: 22px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sky); color: var(--blue); font-family: var(--font-head);
  font-weight: 700; font-size: 1.05rem; border: 1px solid #d6e7fb;
}
.is-legal .prose ol.doc-articles > li > .art-t {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 6px 0 8px;
}
.is-legal .prose > h4[style*="center"] {
  font-size: 1.3rem; color: var(--ink); margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line);
  scroll-margin-top: 120px; line-height: 1.4;
}
.is-legal .prose h4 { scroll-margin-top: 120px; }
.pg-gnu-general-public-license .prose h4:not([style]) { font-size: 1.08rem; color: var(--ink); margin: 32px 0 8px; }
.pg-gnu-general-public-license .prose > h4[style*="left"] + p,
.pg-gnu-general-public-license .prose > h4[style*="left"] + p + p { text-align: center; color: var(--muted); font-size: .95rem; margin: 4px 0; }
.legal-toc li.sub { color: var(--muted); }
.legal-toc-plain ol { list-style: none; padding-left: 0; }
.legal-toc-plain li:not(.sub) { margin-bottom: 8px; }
.pg-gnu-general-public-license .legal-toc { margin-top: 28px; margin-bottom: 0; }
.pg-gestione-e-manutenzione .prose > h4 {
  font-size: 1.3rem; color: var(--ink); margin: 36px 0 14px; padding-top: 24px; border-top: 1px solid var(--line);
}
.pg-gestione-e-manutenzione .prose > h3:first-child + h4 { border-top: 0; padding-top: 0; margin-top: 18px; }
.legal-toc-long ol { columns: 3; }
.legal-toc-long ol li:not(.sub) a { font-weight: 600; }
@media (max-width: 1024px) { .legal-toc-long ol { columns: 2; } }
@media (max-width: 640px) {
  .is-legal .prose ol.doc-articles > li { padding-left: 0; padding-top: 70px; }
  .is-legal .prose ol.doc-articles > li::before { top: 20px; }
  .legal-toc-long ol { columns: 1; }
}

/* --- Loghi dei partner: schede tutte uguali con nome e sito ------------------------- */
.sec-logos { padding: 80px 0; }
.sec-logos + .sec-logos { background: var(--sky); padding-top: 80px; }
.sec + .sec-logos, .sec-logos + .sec { padding-top: 80px; }
.sec-logos .sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sec-logos .sec-head > h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.sec-logos .sec-intro { color: var(--muted); font-size: 1.05rem; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-grid > li { margin: 0; padding: 0; }
.logo-grid > li::before { content: none !important; }
.logo-grid .logo-wide { grid-column: 1 / -1; }
.logo-card {
  height: 100%; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px); overflow: hidden; color: var(--text); text-decoration: none;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.logo-card:hover, a.logo-card:focus-visible {
  transform: translateY(-4px); border-color: #cfe2fa; box-shadow: 0 22px 40px -22px rgba(14,74,158,.45); color: var(--text);
}
.logo-img { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 18px 26px; background: #fff; }
.logo-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .3s ease; }
a.logo-card:hover .logo-img img { transform: scale(1.04); }
.logo-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px 16px; border-top: 1px solid var(--line); text-align: center; flex: 1; justify-content: center; }
.logo-body strong { font-family: var(--font-head); font-size: .98rem; color: var(--ink); line-height: 1.35; }
.logo-site { font-size: .85rem; color: var(--blue); overflow-wrap: anywhere; }
.logo-site .fa { font-size: .75em; opacity: .7; margin-left: 2px; }
@media (max-width: 1024px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sec-logos, .sec + .sec-logos, .sec-logos + .sec-logos, .sec-logos + .sec { padding: 56px 0; } .logo-site { font-size: .78rem; } .logo-body { padding: 12px 10px 14px; } .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .logo-img { padding: 12px 14px; } }

/* video delle app: lettore verticale 9:16, centrato, come lo schermo di un telefono */
.is-app .prose:has(video) { max-width: none; text-align: center; }
.is-app .prose video {
  display: block; margin: 0 auto; width: min(100%, 340px); height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  background: #0f172a; border: 8px solid #0f172a; border-radius: 34px;
  box-shadow: 0 34px 60px -28px rgba(14,74,158,.6), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.is-product .page-head + .sec .col-6 > .blk:has(video) { background: none; border: 0; box-shadow: none; padding: 0; }
/* e-Shopper: i paragrafi che iniziano con "e-Shopper APP" diventano riquadri */
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:not(.blk-intro):not(.blk-cta):has(> div + div) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: none;
}
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:not(.blk-intro):not(.blk-cta):has(> div + div) > div {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 26px 24px 78px; box-shadow: 0 1px 2px rgba(16,24,40,.04); line-height: 1.65;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:not(.blk-intro):not(.blk-cta):has(> div + div) > div:hover {
  border-color: rgba(25,118,210,.3); box-shadow: 0 18px 36px -20px rgba(25,118,210,.4); transform: translateY(-3px);
}
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:not(.blk-intro):not(.blk-cta):has(> div + div) > div::before {
  content: "\f0e7"; font-family: FontAwesome; position: absolute; left: 24px; top: 24px; width: 38px; height: 38px;
  border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 1rem;
}
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:not(.blk-intro):not(.blk-cta):has(> div + div) > div:nth-child(2)::before { content: "\f0e4"; }
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:not(.blk-intro):not(.blk-cta):has(> div + div) > div:nth-child(3)::before { content: "\f09d"; }
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:not(.blk-intro):not(.blk-cta):has(> div + div) > div:nth-child(4)::before { content: "\f155"; }
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:has(> div + div) > div br { display: none; }
.pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:has(> div + div) > div strong:first-child { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 640px) {
  .pg-app-e-shopper-per-tutti-i-negozi .flow > .prose:not(.blk-intro):not(.blk-cta):has(> div + div) { grid-template-columns: 1fr; }
}

/* sezioni di testo e negozi online: azzurro continuo, senza linee tra una riga e l'altra */
.is-app .sec:not(.sec-fluid):not(.sec-clients) { border: 0; background: var(--sky); }
.is-app .sec:not(.sec-fluid) + .sec:not(.sec-fluid) { padding-top: 0; }
/* righe "app dei clienti | Google Play / App Store | app dei clienti" */
.is-app .sec-alt .grid { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 72px); }
.is-app .sec-alt .grid > .col { flex: 0 0 auto; }
.is-app .sec-alt .grid > .col-4 { width: 260px; }
/* titoletto centrato da solo (es. "Ecco la nostra app su Google Play e App Store") */
.is-app .flow > .prose > p[style*="center"]:only-child { font-family: var(--font-head); font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--ink); margin: 0; }
.is-app .flow > .prose > p[style*="center"]:only-child strong { font-weight: 700; }
.is-app .sec-alt .col-2 .blk-image img {
  width: 112px; height: 112px; object-fit: cover; border-radius: 26px; margin: 0 auto;
  box-shadow: 0 16px 30px -14px rgba(14,74,158,.5); background: #fff; transition: transform .25s ease;
}
.is-app .sec-alt .col-2 .blk-image a:hover img { transform: translateY(-4px); }
.is-app .sec-alt .col-4 .blk-image img { width: 100%; max-width: 100%; margin: 0 auto; border-radius: 0; }
.is-app .sec-alt .blk-image figcaption { text-align: center; }
/* schermate in fila (es. comande) */
.is-app .sec:not(.sec-fluid) .col-4 .blk-image img { border-radius: var(--r); box-shadow: var(--shadow); }

@media (max-width: 640px) {
  .is-product .flow > .prose:not(.blk-cta) ul > li,
  .is-product .flow > .prose:not(.blk-cta) ul:has(> li:nth-child(4):last-child) > li,
  .is-product .flow > .prose:not(.blk-cta) ul:has(> li:nth-child(2):last-child) > li { flex-basis: 100%; }
  .is-product .flow > .prose ol:has(> li:nth-child(12)) { columns: 1; }
  .blk-cta { padding: 32px 22px; }
  .is-product .page-head + .sec .col-6 > .blk { padding: 10px; }
}

/* fisarmonica */
.acc { border-radius: var(--r); }
.acc details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); margin-bottom: 10px; }
.acc details[open] { border-color: rgba(26,127,224,.4); box-shadow: var(--shadow); }
.acc summary {
  cursor: pointer; list-style: none;
  padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
}
.acc details[open] summary::after { content: "\2013"; background: var(--blue); color: #fff; }
.acc details .prose { padding: 0 22px 18px; }

/* carosello prodotti */
.carousel { position: relative; }
.car-track { position: relative; aspect-ratio: 4 / 3; background: var(--sky); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.car-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transform: scale(1.06); filter: blur(4px);
  transition: opacity .6s ease, transform .9s cubic-bezier(.22,.61,.36,1), filter .6s ease, visibility 0s linear .6s;
}
.car-slide.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; z-index: 1; }
.car-slide a, .car-slide img { width: 100%; height: 100%; }
.car-slide img { object-fit: contain; padding: 14px; }
.car-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(0deg, rgba(14,74,158,.9), rgba(14,74,158,0)); color: #fff; font-size: .9rem; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.car-nav button, .testi-ctrl button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1.3rem;
  transition: background-color .15s, color .15s, border-color .15s;
}
.car-nav button:hover, .testi-ctrl button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* gallerie */
.gal h3 { font-size: 1.4rem; }
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.gal-grid a { display: block; position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--sky); }
.gal-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.gal-grid a:hover img { transform: scale(1.06); }
.gal-grid a::after { content: "\f00e"; font-family: FontAwesome; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.4rem; background: rgba(26,127,224,.45); opacity: 0; transition: opacity .2s; }
.gal-grid a:hover::after { opacity: 1; }
.col-3 .gal-grid, .col-4 .gal-grid, .col-6 .gal-grid { grid-template-columns: repeat(3, 1fr); }
.gal-clients .gal-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.gal-clients .gal-grid a { border-radius: var(--r); box-shadow: var(--shadow); }
.gal-clients .gal-grid img { aspect-ratio: 4 / 3; }
.gal-clients .gal-grid a::after { display: none; }
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px; color: #fff; font-weight: 700;
  background: linear-gradient(0deg, rgba(14,74,158,.92), rgba(14,74,158,0));
}

/* recensioni */
.testi-head { display: flex; justify-content: flex-end; align-items: end; gap: 16px; margin: 0 0 20px; }
.testi-head h2 { margin: 0 auto 0 0; }
.testi-ctrl { display: flex; gap: 8px; }
/* frecce sulla stessa riga del titolo di sezione: i box partono alla stessa distanza delle postazioni */
.sec-testimonials .wrap { position: relative; }
.sec-head + .flow .testi-head { position: absolute; top: -12px; right: var(--gutter); margin: 0; }
.testi-list {
  list-style: none; margin: 0; padding: 4px 4px 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 48px) / 3));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.testi-list::-webkit-scrollbar { display: none; }
.testi-item {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  background: var(--paper); border-radius: var(--r); padding: 30px 28px; box-shadow: var(--shadow);
  position: relative;
}
.testi-item::before { content: "\201C"; position: absolute; right: 24px; top: 6px; font: 800 5rem/1 Georgia, serif; color: rgba(26,127,224,.12); }
.testi-item blockquote { margin: 0; }
.testi-item p { font-size: 1rem; color: var(--text); margin: 0; }
.stars { display: block; color: var(--amber); margin-bottom: 14px; letter-spacing: 3px; font-size: 1.05rem; }
.testi-who { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.testi-who img, .testi-initial { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--teal); }
.testi-initial { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.testi-who span { display: grid; color: var(--muted); font-size: .88rem; }
.testi-who strong { color: var(--ink); font-size: 1rem; }

/* articoli */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.post-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
/* stessa animazione dei box della home: si alza, bordo blu e barra sfumata in alto */
.post-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; z-index: 2;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(25,118,210,.35); box-shadow: 0 24px 44px -20px rgba(25,118,210,.35); }
.post-card:hover::before { transform: scaleX(1); }
.post-card .post-thumb img { transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card time { display: block; font-size: .82rem; font-weight: 700; color: var(--teal-dk); margin: 22px 24px 6px; text-transform: uppercase; letter-spacing: .05em; }
.post-card h3 { font-size: 1.2rem; margin: 0 24px 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0 24px 26px; }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb.no-img { text-decoration: none; display: grid; place-items: center; background: var(--grad); }
.post-thumb.no-img span { font: 700 4rem/1 var(--font-head); color: rgba(255,255,255,.9); }
.pager { display: flex; gap: 8px; margin-top: 48px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 700; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager a[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue); }

.post-body { padding-top: 56px; padding-bottom: 80px; }
.post-cover { margin: -110px 0 40px; position: relative; }
.post-cover img { border-radius: var(--r); width: 100%; box-shadow: var(--shadow); }
.post-head { padding-bottom: 130px; }
.post-intro { font-size: 1.2rem; color: var(--ink); }
.post-back { margin-top: 48px; }

/* form contatti */
/* --- Pagina contatti: colonna informativa + modulo ---------------------------------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: calc(var(--r) + 6px); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(14,74,158,.55); border: 1px solid var(--line); background: var(--paper); }
.contact-wrap .cform { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 44px; }
.contact-aside {
  position: relative; overflow: hidden; color: #fff; padding: 44px 40px;
  background:
    radial-gradient(420px 260px at 110% -10%, rgba(0,200,150,.45), transparent 70%),
    radial-gradient(380px 300px at -20% 120%, rgba(47,168,245,.45), transparent 70%),
    linear-gradient(160deg, var(--navy), var(--blue));
}
.contact-aside h3 { color: #fff; font-size: 1.7rem; margin: 0 0 12px; }
.contact-aside > p { color: rgba(255,255,255,.85); margin: 0 0 24px; }
.contact-points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; }
.contact-points .fa { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: .7rem; flex: none; }
.contact-direct { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 12px; }
.contact-direct a, .contact-direct .cd-static {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 600; transition: background .2s, transform .2s;
}
.contact-direct a:hover { background: rgba(255,255,255,.18); transform: translateX(4px); }
.contact-direct .fa { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 1.1rem; flex: none; }
.contact-direct .fa-whatsapp { background: var(--wa); color: #fff; }
.contact-direct small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
/* box Telefono / E-mail in alto */
.pg-contattaci .page-head + .sec { background: linear-gradient(180deg, var(--sky), #f6faff); padding: 56px 0; }
.pg-contattaci .page-head + .sec .grid { align-items: stretch; }
.pg-contattaci .page-head + .sec .col { display: flex; }
.pg-contattaci .page-head + .sec .col > .blk { flex: 1; }
.pg-contattaci .feat { text-align: center; align-items: center; }
.pg-contattaci .feat-head { flex-direction: column-reverse; align-items: center; border: 0; padding: 0; margin-bottom: 8px; min-height: 0; gap: 14px; }
.pg-contattaci .feat-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.5rem; }
.pg-contattaci .feat h3 { padding: 0; font-size: .85rem; letter-spacing: .12em; color: var(--muted); }
.pg-contattaci .feat-text { font-size: 1.25rem; font-weight: 700; flex: 0; }
.pg-contattaci .feat-text a { color: var(--ink); text-decoration: none; }
.pg-contattaci .feat-text a:hover { color: var(--blue); }
.pg-contattaci .page-head + .sec .blk-image { display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.pg-contattaci .page-head + .sec .blk-image a { pointer-events: none; }
.pg-contattaci .page-head + .sec .blk-image img { max-height: 110px; width: auto; }
.pg-contattaci .page-head + .sec + .sec { padding-top: 64px; }
.pg-contattaci .page-head + .sec + .sec .flow { max-width: 1120px; }
.pg-contattaci .page-head + .sec + .sec .flow > .prose:first-child { max-width: none; margin-bottom: 30px; }
.pg-contattaci .page-head + .sec + .sec .flow > .prose:first-child h4 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.02em; }
@media (max-width: 640px) { .pg-contattaci .page-head + .sec .col:has(.blk-image) { display: none !important; } }
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-aside, .contact-wrap .cform { padding: 30px 22px; }
}

.cform { display: grid; gap: 20px; max-width: 760px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; box-shadow: var(--shadow); }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cform label { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform select, .cform textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid #cfd6e4; border-radius: var(--r-sm);
  background: #fbfcff; color: var(--ink); font: 400 1rem/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,127,224,.15); background: #fff; }
.cform .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); }
.cform .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.cform .is-invalid { border-color: #d92d20 !important; }
.cform .field-err { color: #d92d20; font-weight: 500; font-size: .85rem; }
.cform-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cform-msg { margin: 0; font-weight: 700; }
.cform-msg.ok { color: var(--teal-dk); }
.cform-msg.err { color: #d92d20; }
.hp { position: absolute; left: -9999px; }

/* 404 */
.nf-code { font: 800 clamp(6rem, 18vw, 12rem)/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; letter-spacing: -.05em; }
.empty { color: var(--muted); }

/* --- Invito al contatto + footer --------------------------------------------- */
.cta-band { background: var(--grad); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 1.1rem; color: rgba(255,255,255,.9); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-white { background: #fff; color: var(--navy); }
.cta-band .btn-white:hover { background: var(--navy); color: #fff; }

.site-footer { background: var(--navy); color: #d6e4f7; padding: 72px 0 0; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 48px; }
.f-logo { height: auto; width: auto; max-height: 76px; max-width: 320px; margin-bottom: 20px; }
.site-footer h2 { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7ff0d0; margin-bottom: 18px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-col li a { color: #eef5fd; line-height: 1.45; }
.f-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 20px 0 0; }
.f-social a { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 50%; font-size: 1.1rem; transition: background-color .15s; }
.f-social a:hover { background: var(--teal); color: var(--navy); }
.f-contact .btn { margin-top: 18px; white-space: nowrap; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 22px; padding-bottom: 22px; font-size: .85rem; }
.f-bottom p { margin: 0; }
.f-bottom a { margin-left: 18px; color: #d6e4f7; }

/* --- Lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(8,16,36,0); display: grid; place-items: center; padding: 56px 72px;
  transition: background .35s ease;
}
.lightbox.is-open { background: rgba(8,16,36,.94); }
.lightbox.is-closing { background: rgba(8,16,36,0); transition-duration: .3s; }
.lightbox button, .lightbox figcaption, .lb-count { opacity: 0; transition: opacity .3s ease .1s, background .2s; }
.lightbox.is-open button, .lightbox.is-open figcaption, .lightbox.is-open .lb-count { opacity: 1; }
.lightbox.is-closing button, .lightbox.is-closing figcaption, .lightbox.is-closing .lb-count { opacity: 0; transition-delay: 0s; }
.lb-count { position: absolute; z-index: 3; top: 26px; left: 24px; color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500; letter-spacing: .06em; }
.lightbox img { will-change: transform, opacity; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lightbox[hidden] { display: none; }
.lightbox figure { position: relative; z-index: 1; margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: calc(100vh - 150px); width: auto; margin: 0 auto; border-radius: var(--r-sm); }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 600; }
.lightbox button { position: absolute; z-index: 3; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 2rem; width: 54px; height: 54px; border-radius: 50%; }
.lightbox button:hover { background: var(--blue); }
.lb-close { top: 14px; right: 14px; font-size: 1.4rem !important; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-link { padding: 0 9px; font-size: .85rem; }
  .nav-link::after { left: 9px; right: 9px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .logo img { max-height: 50px; max-width: 230px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--paper); overflow-y: auto;
    padding: 8px var(--gutter) 40px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; height: auto; }
  .nav-item { display: block; border-bottom: 1px solid var(--line); }
  .nav-link, .has-mega:hover > .nav-link { width: 100%; justify-content: flex-start; padding: 18px 0; font-size: 1.05rem; color: var(--ink); }
  .nav-link.is-active, .has-mega.is-open > .nav-link { color: var(--blue); }
  .nav-link::after { display: none; }
  .nav-link .fa { margin-left: auto; }
  .nav-badge { transform: none; }
  .nav-item:last-child { border: 0; margin: 18px 0 0; }
  .nav-item:last-child .nav-link, .nav-item:last-child .nav-link:hover { color: var(--teal-dk); }
  .mega { position: static; width: auto; max-width: none; transform: none !important; visibility: visible; opacity: 1; box-shadow: none; border: 0; border-radius: 0; display: none; }
  .has-mega.is-open > .mega { display: block; }
  .mega-inner { grid-auto-flow: row; grid-auto-columns: auto; padding: 0 0 12px; }
  .mega-col { padding: 6px 0; }
  .mega-col + .mega-col { border-left: 0; }
  .mega-head { padding: 0; }
  .mega li a { padding: 9px 0; }
  .mega-all { padding: 12px 14px; border-radius: var(--r-sm); border: 0; margin-bottom: 12px; }

  .hero-inner { padding-bottom: 150px; }
  .hero-tabs { gap: 12px; }
  .ht-label { display: none; }
  .hero-tab { grid-template-columns: 1fr; }
  .hero-arrows button { width: 44px; height: 44px; font-size: 1.3rem; }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .col-1, .col-2, .col-3 { grid-column: span 3; }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { grid-column: span 6; }
  .grid-even { grid-template-columns: repeat(min(var(--n), 5), minmax(0, 1fr)); }
  /* telefono e tablet: spariscono i blocchi segnati "nascondi", il resto prende tutta la riga */
  .hide-sm { display: none !important; }
  .sec-has-hidden .grid > .col { grid-column: 1 / -1; }
  .sec-has-hidden .blk-image img { margin-left: auto; margin-right: auto; }
  .sec-fluid .blk-image img { width: auto; }
  .is-app .sec-fluid { padding-bottom: 56px !important; }
  .is-app .sec-fluid .grid { flex-wrap: wrap; justify-content: center; }
  .is-app .sec-fluid .grid > .col-1, .is-app .sec-fluid .grid > .col-2 { flex: 0 0 calc(33.333% - 12px); padding-bottom: 0; transform: none !important; }
  .is-app .sec-fluid .grid > .col-6 { flex: 1 1 100%; padding-bottom: 0; }
  .is-app .sec-alt .grid { gap: 16px; }
  .is-app .sec-alt .col-2 .blk-image img { width: 76px; height: 76px; border-radius: 18px; }
  .is-app .sec-alt .grid > .col-4 { width: 160px; }
  .testi-list { grid-auto-columns: minmax(300px, 70%); }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .topbar-contacts li:last-child { display: none; }
  .topbar-social { display: none; }
  .lang a { padding: 2px 6px; }
  .sec { padding: 60px 0; }
  .sec-alt + .sec, .sec + .sec-alt, .sec-image + .sec, .sec + .sec-image,
  .sec-testimonials + .sec, .sec + .sec-testimonials { padding-top: 60px; }
  .sec-head { margin-bottom: 32px; }
  .hero-title { max-width: none; }
  .hero-actions .btn { width: 100%; }
  .hero-inner { padding-top: calc(var(--header-h) + 32px); padding-bottom: 120px; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,74,158,.95) 0%, rgba(14,74,158,.7) 55%, rgba(14,74,158,.55) 100%); }
  .grid { grid-template-columns: 1fr; }
  .grid > .col { grid-column: 1 / -1; }
  /* sul telefono i box escono dalle colonne e si dispongono 2 per riga */
  .grid-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-even > .col { display: contents; }
  .grid-even > .col > .blk + .blk { margin-top: 0; }
  .cform { padding: 22px; }
  .cform-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .lightbox { padding: 56px 8px; }
  .testi-ctrl { display: none; }
  .testi-list { grid-auto-columns: 88%; }
  .f-bottom a { margin: 0 16px 0 0; }
  .page-head { padding: 44px 0 40px; }
  .cta-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-img { transform: none !important; }
  .nav-item:last-child .nav-link::before { animation: none !important; }
}
