/* Bigdata.it – ricostruzione dello stile del vecchio sito (tema Reobiz + Elementor) */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --blu: #015eea;
  --azzurro: #02a3f4;
  --celeste: #12adfc;
  --icone: #368df0;
  --titoli: #111111;
  --testo: #666666;
  --chiaro: #f6fbfe;
  --chiaro-2: #f1f6fc;
  --bordo: #e2e8f0;
  --gradiente: linear-gradient(340deg, #015eea 23%, #02a3f4 98%);
  --gradiente-sez: linear-gradient(135deg, #015fea 0%, #009ef9 100%);
  --ombra: 0 12px 40px rgba(1, 94, 234, 0.10);
  --titoli-font: "Poppins", sans-serif;
  --testo-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--testo-font); font-size: 16px; line-height: 1.75; color: var(--testo); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); text-decoration: none; transition: color .3s; }
a:hover { color: var(--azzurro); }
:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--titoli-font); color: var(--titoli); font-weight: 700; line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; }

.contenitore { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 15px; }
.salta { position: absolute; left: 10px; top: -60px; z-index: 999; background: var(--blu); color: #fff; padding: 8px 14px; }
.salta:focus { top: 10px; color: #fff; }
.nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block; padding: 16px 35px; border: 0; border-radius: 30px;
  background: var(--gradiente); color: #fff; cursor: pointer;
  font-family: var(--titoli-font); font-size: 16px; font-weight: 500; line-height: 1.2;
  box-shadow: 0 10px 25px rgba(1, 94, 234, .25);
  transition: transform .3s, box-shadow .3s, background-position .3s;
  background-size: 150% 100%;
}
.btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(1, 94, 234, .35); background-position: right center; }
.btn--bianco { background: #fff; color: var(--blu); }
.btn--bianco:hover { color: var(--blu); }

/* ---------- Header ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.header.is-fisso { position: fixed; background: #fff; box-shadow: 0 5px 25px rgba(0, 0, 0, .08); animation: scendi .5s ease; }
@keyframes scendi { from { transform: translateY(-100%); } to { transform: none; } }
.header__barra { display: flex; align-items: center; gap: 30px; min-height: 100px; }
.header.is-fisso .header__barra { min-height: 76px; }
.logo { flex-shrink: 0; display: inline-flex; }
.logo__img { height: 46px; width: auto; }
.header.is-fisso .logo__img { height: 40px; }
.logo__testo { font-family: var(--titoli-font); font-weight: 700; font-size: 28px; letter-spacing: .02em; background: var(--gradiente); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__testo span { color: transparent; }

.menu { margin-left: auto; }
.menu__lista { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.menu__lista > li { position: relative; }
.menu__voce {
  display: block; padding: 10px 14px; background: none; border: 0; cursor: pointer;
  font-family: var(--titoli-font); font-size: 15px; font-weight: 500; color: var(--titoli);
}
.menu__voce:hover, .menu__voce[aria-current="page"], .is-attivo > .menu__voce { color: var(--blu); }
button.menu__voce::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu__sotto {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 15px 0; margin: 0; list-style: none;
  background: #fff; border-top: 3px solid var(--blu); box-shadow: 0 15px 35px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transform: translateY(15px); transition: all .3s;
}
.menu__gruppo:hover > .menu__sotto, .menu__gruppo:focus-within > .menu__sotto, .menu__voce[aria-expanded="true"] + .menu__sotto { opacity: 1; visibility: visible; transform: none; }
.menu__sotto a { display: block; padding: 8px 25px; font-family: var(--titoli-font); font-size: 14px; font-weight: 500; color: var(--titoli); transition: color .3s, padding .3s; }
.menu__sotto a:hover, .menu__sotto a[aria-current="page"] { color: var(--blu); padding-left: 32px; }

.hamburger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--gradiente); cursor: pointer; padding: 14px 12px; }
.hamburger span { display: block; height: 2px; margin: 4px 0; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .hamburger { display: block; }
  .header__barra { min-height: 80px; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 15px 30px rgba(0,0,0,.1); max-height: calc(100vh - 80px); overflow-y: auto; display: none; }
  .menu.is-aperto { display: block; }
  .menu__lista { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .menu__lista > li { border-bottom: 1px solid var(--bordo); }
  .menu__voce { width: 100%; text-align: left; padding: 13px 0; }
  .menu__sotto { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: none; }
  .menu__gruppo:hover > .menu__sotto, .menu__gruppo:focus-within > .menu__sotto { display: none; }
  .menu__voce[aria-expanded="true"] + .menu__sotto { display: block; }
}

/* ---------- Forme decorative animate ---------- */
.forma { position: absolute; pointer-events: none; z-index: 0; }
.forma--cerchio { width: 130px; height: 130px; border: 2px dashed rgba(1, 94, 234, .35); border-radius: 50%; animation: ruota 40s linear infinite; }
.forma--cerchio::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: rgba(2, 163, 244, .12); }
.forma--linea { width: 90px; height: 14px; background: repeating-linear-gradient(90deg, var(--azzurro) 0 20px, transparent 20px 30px); opacity: .5; animation: scorri 20s ease-in-out infinite alternate; }
.forma--punti { width: 110px; height: 110px; background-image: radial-gradient(var(--azzurro) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .45; animation: fluttua 6s ease-in-out infinite; }
@keyframes ruota { to { transform: rotate(360deg); } }
@keyframes scorri { from { transform: translateX(-100px); } to { transform: translateX(100px); } }
@keyframes fluttua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes pulsa { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Hero home ---------- */
.hero { position: relative; overflow: hidden; padding: 260px 0 170px; background: linear-gradient(180deg, #f4f9ff 0%, #fff 100%); }
.hero__forma-destra {
  position: absolute; top: 0; right: 0; width: 56%; height: 100%;
  background: var(--gradiente-sez); border-bottom-left-radius: 60% 45%; border-top-left-radius: 35% 20%;
}
.hero__griglia { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero__sopra { display: block; font-family: var(--titoli-font); font-size: 80px; font-weight: 700; line-height: 1; color: var(--celeste); }
.hero h1 { font-size: 80px; line-height: 1.2; margin: 0 0 25px; }
.hero__testo { font-size: 20px; color: var(--titoli); margin-bottom: 35px; max-width: 520px; }
.hero .forma--cerchio { top: 160px; left: 3%; }
.hero .forma--linea { bottom: 120px; left: 38%; }
.hero .forma--linea.l2 { top: 190px; left: 50%; animation-duration: 35s; }

.hero__visual { position: relative; min-height: 420px; }
.hero__visual img { position: relative; z-index: 2; margin-left: auto; max-height: 520px; width: auto; filter: drop-shadow(0 25px 40px rgba(0, 0, 0, .2)); }
.scheda { position: absolute; z-index: 3; background: #fff; border-radius: 14px; box-shadow: 0 20px 45px rgba(0, 30, 90, .2); padding: 16px 20px; display: flex; align-items: center; gap: 14px; animation: fluttua 6s ease-in-out infinite; }
.scheda .icona { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--gradiente); color: #fff; flex-shrink: 0; }
.scheda strong { display: block; font-family: var(--titoli-font); font-size: 22px; color: var(--titoli); line-height: 1.1; }
.scheda span { font-size: 13px; color: var(--testo); }
.scheda--1 { top: 10%; left: 4%; }
.scheda--2 { top: 44%; right: 0; animation-delay: -2s; }
.scheda--3 { bottom: 6%; left: 14%; animation-delay: -4s; }
.hero__grafico { position: absolute; z-index: 1; inset: 12% 8% 12% 18%; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); display: flex; align-items: flex-end; gap: 14px; padding: 30px; }
.hero__grafico i { flex: 1; background: rgba(255, 255, 255, .75); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: cresci 2.5s ease-out both; }
.hero__grafico i:nth-child(1) { height: 35%; } .hero__grafico i:nth-child(2) { height: 55%; animation-delay: .2s; }
.hero__grafico i:nth-child(3) { height: 45%; animation-delay: .4s; } .hero__grafico i:nth-child(4) { height: 75%; animation-delay: .6s; }
.hero__grafico i:nth-child(5) { height: 62%; animation-delay: .8s; } .hero__grafico i:nth-child(6) { height: 92%; animation-delay: 1s; }
@keyframes cresci { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 1024px) {
  .hero { padding: 170px 0 60px; }
  .hero__sopra, .hero h1 { font-size: 48px; }
  .hero__griglia { grid-template-columns: 1fr; }
  .hero__forma-destra { width: 100%; height: 45%; top: auto; bottom: 0; border-radius: 50% 50% 0 0 / 20% 20% 0 0; }
  .hero__visual { min-height: 380px; }
}
@media (max-width: 600px) { .hero__sopra, .hero h1 { font-size: 34px; } .hero__testo { font-size: 17px; } .scheda strong { font-size: 18px; } }

/* ---------- Riquadri servizi ---------- */
.servizi-top { position: relative; z-index: 5; margin-top: -90px; }
.griglia-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.griglia-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.griglia-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 900px) { .griglia-3, .griglia-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .griglia-3, .griglia-4, .griglia-2 { grid-template-columns: 1fr; } }

.box-servizio {
  position: relative; overflow: hidden; background: #fff; border-radius: 10px; padding: 45px 35px 40px;
  box-shadow: var(--ombra); transition: transform .4s, box-shadow .4s;
}
.box-servizio::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--gradiente); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.box-servizio:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(1, 94, 234, .18); }
.box-servizio:hover::before { transform: scaleX(1); }
.box-servizio__icona { width: 80px; height: 80px; border-radius: 50%; background: var(--gradiente); color: #fff; display: grid; place-items: center; margin-bottom: 25px; transition: transform .6s; }
.box-servizio:hover .box-servizio__icona { transform: rotateY(360deg); }
.box-servizio__icona .icona { width: 36px; height: 36px; }
.box-servizio h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.box-servizio h3 a { color: var(--titoli); }
.box-servizio h3 a:hover { color: var(--blu); }
.box-servizio p { margin: 0; color: var(--testo); }
.box-servizio__num { position: absolute; top: 25px; right: 30px; font-family: var(--titoli-font); font-size: 48px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px #d5e6fb; line-height: 1; }

/* Variante griglia a 6 con icona laterale */
.box-servizio--piccolo { padding: 35px 30px 30px; box-shadow: 0 5px 30px rgba(0, 0, 0, .05); }
.box-servizio--piccolo .box-servizio__icona { width: 64px; height: 64px; background: #fff; color: var(--icone); border: 1px solid #e2e2e2; }
.box-servizio--piccolo:hover .box-servizio__icona { background: var(--gradiente); color: #fff; border-color: transparent; }
.box-servizio--piccolo .box-servizio__num { position: static; display: block; margin-top: 20px; font-size: 15px; -webkit-text-stroke: 0; color: #c6d6ee; letter-spacing: .1em; }

/* ---------- Sezioni e titoli ---------- */
.sez { position: relative; padding: 120px 0; overflow: hidden; }
.sez--chiara { background: var(--chiaro); }
.sez--chiara-2 { background: var(--chiaro-2); }
.sez--stretta { padding: 80px 0; }
@media (max-width: 900px) { .sez { padding: 70px 0; } }

.titolo-sez { margin-bottom: 45px; }
.titolo-sez--centro { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.titolo-sez__sotto { display: inline-block; font-family: var(--titoli-font); font-size: 18px; font-weight: 600; text-transform: uppercase; color: var(--celeste); margin-bottom: 10px; }
.titolo-sez__sotto::before { content: "~ "; }
.titolo-sez__sotto::after { content: " ~"; }
.titolo-sez__titolo { font-size: 42px; line-height: 1.3; margin: 0 0 15px; }
.titolo-sez__testo { font-size: 18px; font-weight: 500; color: var(--titoli); margin: 0; }
.bianco .titolo-sez__titolo, .bianco .titolo-sez__testo { color: #fff; }
.bianco .titolo-sez__sotto { color: #b1e0f9; }
@media (max-width: 900px) { .titolo-sez__titolo { font-size: 30px; } }

.due-colonne { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.due-colonne--testo-largo { grid-template-columns: 5fr 7fr; }
@media (max-width: 900px) { .due-colonne, .due-colonne--testo-largo { grid-template-columns: 1fr; gap: 40px; } }

/* Immagine con badge esperienza */
.foto-badge { position: relative; }
.foto-badge img { border-radius: 10px; }
.foto-badge__badge {
  position: absolute; right: -20px; bottom: -30px; width: 190px; padding: 30px 20px; border-radius: 10px;
  background: var(--gradiente); color: #fff; text-align: center; box-shadow: 0 20px 40px rgba(1, 94, 234, .3);
}
.foto-badge__badge strong { display: block; font-family: var(--titoli-font); font-size: 60px; line-height: 1; font-weight: 700; }
.foto-badge__badge span { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; text-transform: uppercase; line-height: 1.4; }
.foto-badge .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@media (max-width: 600px) { .foto-badge__badge { right: 10px; width: 150px; } .foto-badge__badge strong { font-size: 44px; } }

.foto-arrotondata img { border-radius: 10px; }
.foto-sfondo-forma { position: relative; }
.foto-sfondo-forma .forma--punti { top: -30px; left: -30px; }
.foto-sfondo-forma .forma--cerchio { bottom: -40px; right: -20px; }
.foto-sfondo-forma img { position: relative; z-index: 1; }

/* Pulsante play */
.play { position: relative; width: 90px; height: 90px; border: 0; border-radius: 50%; background: var(--blu); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 3; }
.play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; position: relative; z-index: 1; }
.play__onda, .play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blu); animation: pulsa 2s ease-out infinite; }
.play::before { animation-delay: 1s; }
.play:hover { background: var(--azzurro); }

/* Loghi portali (scorrimento continuo) */
.loghi { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.loghi__nastro { display: flex; align-items: center; gap: 70px; width: max-content; animation: nastro 35s linear infinite; list-style: none; margin: 0; padding: 10px 0; }
.loghi:hover .loghi__nastro { animation-play-state: paused; }
.loghi__nastro a { display: block; filter: grayscale(100%); opacity: .7; transition: filter .3s, opacity .3s; }
.loghi__nastro a:hover { filter: none; opacity: 1; }
.loghi__nastro img { height: 60px; width: auto; max-width: 190px; object-fit: contain; }
.loghi__nome { font-family: var(--titoli-font); font-weight: 600; font-size: 20px; color: var(--titoli); }
@keyframes nastro { to { transform: translateX(-50%); } }

/* Contatori */
.contatori { position: relative; padding: 130px 0; background: var(--gradiente-sez); color: #fff; overflow: hidden; }
.contatori--foto { background-size: cover; background-position: center; }
.contatori--foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(1, 95, 234, .92), rgba(0, 158, 249, .88)); }
.contatori .contenitore { position: relative; }
.onda { position: absolute; left: 0; width: 100%; height: 70px; fill: #fff; }
.onda--sopra { top: -1px; }
.onda--sotto { bottom: -1px; transform: rotate(180deg); }
.onda--chiara { fill: var(--chiaro); }
.contatore { text-align: center; }
.contatore__num { display: block; font-family: var(--titoli-font); font-size: 60px; font-weight: 700; line-height: 1.1; color: transparent; -webkit-text-stroke: 1px #fff; }
.contatore__num span { font-size: .6em; }
.contatore__etichetta { display: block; margin-top: 10px; font-family: var(--titoli-font); font-size: 18px; font-weight: 500; text-transform: uppercase; }
@supports not (-webkit-text-stroke: 1px #fff) { .contatore__num { color: #fff; } }

/* Box con icona laterale (I nostri numeri) */
.box-lista { list-style: none; padding: 0; margin: 0; }
.box-lista li { display: flex; gap: 25px; align-items: flex-start; margin-bottom: 35px; }
.box-lista li:last-child { margin-bottom: 0; }
.box-lista__icona { flex-shrink: 0; width: 70px; height: 70px; border-radius: 50%; border: 1px solid #e2e2e2; background: #fff; color: var(--icone); display: grid; place-items: center; transition: all .4s; }
.box-lista li:hover .box-lista__icona { background: var(--gradiente); color: #fff; border-color: transparent; }
.box-lista__icona .icona { width: 30px; height: 30px; }
.box-lista h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; line-height: 30px; }
.box-lista p { margin: 0; }

/* Illustrazione animata (sostituisce le immagini del tema) */
.illustrazione { position: relative; min-height: 440px; }
.illustrazione__blob { position: absolute; inset: 8% 6%; background: var(--gradiente-sez); border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; animation: morph 12s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; } 50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; } }
.illustrazione img { position: relative; z-index: 2; margin: 0 auto; max-height: 440px; width: auto; }
.illustrazione .forma--punti { top: 0; right: 4%; }
.illustrazione .forma--cerchio { bottom: 2%; left: 0; }

/* Liste con spunta */
.spunte { list-style: none; padding: 0; margin: 0 0 30px; }
.spunte li { position: relative; padding: 6px 0 6px 36px; color: var(--titoli); font-weight: 500; }
.spunte li::before { content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--gradiente); }
.spunte li::after { content: ""; position: absolute; left: 7px; top: 15px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* Riquadri icona (database, loghi clienti) */
.box-icona { background: var(--chiaro-2); border-radius: 10px; padding: 40px 30px; text-align: center; transition: transform .4s, box-shadow .4s, background .4s; }
.box-icona:hover { transform: translateY(-8px); background: #fff; box-shadow: var(--ombra); }
.box-icona__icona { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: #fff; color: var(--blu); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(1, 94, 234, .12); }
.box-icona__icona .icona { width: 34px; height: 34px; }
.box-icona h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.box-icona p { margin: 0; }
.box-icona--cifra h3 { font-size: 26px; margin: 0; }

.cliente { background: #fff; border-radius: 10px; box-shadow: 0 5px 30px rgba(0, 0, 0, .06); height: 150px; display: grid; place-items: center; padding: 25px; transition: transform .4s, box-shadow .4s; }
.cliente:hover { transform: translateY(-8px); box-shadow: var(--ombra); }
.cliente img { max-height: 90px; width: auto; object-fit: contain; }
.cliente span { font-family: var(--titoli-font); font-weight: 600; font-size: 20px; color: var(--titoli); }

/* Barre di avanzamento (segmentazione) */
.barra { margin-bottom: 22px; }
.barra__testa { display: flex; justify-content: space-between; font-family: var(--titoli-font); font-weight: 500; color: var(--titoli); margin-bottom: 8px; }
.barra__traccia { height: 8px; border-radius: 8px; background: #dfe9f7; overflow: hidden; }
.barra__riempi { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--gradiente); transition: width 1.8s ease; }
.is-visibile .barra__riempi { width: var(--valore); }

/* ---------- Banner pagine interne ---------- */
.banner { position: relative; overflow: hidden; padding: 210px 0 110px; background: var(--gradiente-sez); text-align: center; color: #fff; }
.banner::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.banner__titolo { color: #fff; font-size: 50px; margin-bottom: 12px; position: relative; z-index: 1; }
.briciole { position: relative; z-index: 1; font-family: var(--titoli-font); font-size: 16px; }
.briciole a { color: #fff; opacity: .85; }
.briciole a:hover { opacity: 1; color: #fff; }
.briciole span { margin: 0 6px; }
.banner .forma--cerchio { left: 6%; bottom: 30px; border-color: rgba(255, 255, 255, .4); }
.banner .forma--linea { right: 15%; top: 150px; background: repeating-linear-gradient(90deg, #fff 0 20px, transparent 20px 30px); }
.header--banner .menu__voce, .banner-pagina .header:not(.is-fisso) .menu__voce { color: #fff; }
.banner-pagina .header:not(.is-fisso) .menu__voce:hover { color: #cfe6ff; }
@media (max-width: 1100px) { .banner-pagina .header:not(.is-fisso) .menu .menu__voce { color: var(--titoli); } }
@media (max-width: 900px) { .banner { padding: 150px 0 70px; } .banner__titolo { font-size: 34px; } }

/* ---------- Blog ---------- */
.card-blog { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 30px rgba(0, 0, 0, .06); transition: transform .4s, box-shadow .4s; height: 100%; display: flex; flex-direction: column; }
.card-blog:hover { transform: translateY(-8px); box-shadow: var(--ombra); }
.card-blog__img { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--chiaro-2); }
.card-blog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card-blog:hover .card-blog__img img { transform: scale(1.08); }
.card-blog__corpo { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.card-blog__cat { display: inline-block; align-self: flex-start; margin-bottom: 12px; font-family: var(--titoli-font); font-size: 13px; font-weight: 500; color: #1273eb; }
.card-blog h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.card-blog h3 a { color: var(--titoli); }
.card-blog h3 a:hover { color: var(--blu); }
.card-blog p { flex: 1; }
.card-blog__data { font-size: 14px; color: #363636; padding-top: 15px; border-top: 1px solid #ededed; }
.testa-blog { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 45px; }
.testa-blog .titolo-sez { margin: 0; }

/* Articolo */
.articolo { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 50px; align-items: start; }
.articolo__immagine { border-radius: 10px; overflow: hidden; margin-bottom: 35px; }
.articolo__meta { font-family: var(--titoli-font); font-size: 14px; color: var(--testo); margin-bottom: 25px; }
.articolo__meta strong { color: var(--blu); font-weight: 500; }
.prosa h2 { font-size: 28px; margin-top: 1.4em; }
.prosa h3 { font-size: 22px; margin-top: 1.4em; }
.prosa h4 { font-size: 18px; margin-top: 1.2em; }
.prosa figure { margin: 30px 0; }
.prosa figure img { border-radius: 10px; }
.prosa strong { color: var(--titoli); }
.laterale { position: sticky; top: 110px; }
.widget { background: var(--chiaro-2); border-radius: 10px; padding: 30px; margin-bottom: 30px; }
.widget h2 { font-size: 20px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #dde8f7; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid #e3ecf8; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--titoli); font-family: var(--titoli-font); font-size: 15px; font-weight: 500; }
.widget li a:hover { color: var(--blu); }
.widget--cta { background: var(--gradiente-sez); color: #fff; text-align: center; }
.widget--cta h2 { color: #fff; border-color: rgba(255, 255, 255, .25); }
@media (max-width: 900px) { .articolo { grid-template-columns: 1fr; } .laterale { position: static; } }

/* ---------- Contatti e modulo ---------- */
.contatti-info { list-style: none; padding: 0; margin: 30px 0 0; }
.contatti-info li { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.contatti-info .box-lista__icona { width: 60px; height: 60px; background: var(--gradiente); color: #fff; border: 0; }
.contatti-info span { display: block; font-family: var(--titoli-font); font-weight: 600; color: var(--titoli); }
.contatti-info a, .contatti-info em { font-style: normal; color: var(--testo); }

.box-modulo { background: #fff; border-radius: 10px; padding: 50px; box-shadow: var(--ombra); }
@media (max-width: 600px) { .box-modulo { padding: 30px 20px; } }
.modulo__griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.campo--pieno { grid-column: 1 / -1; }
.campo label, .campo legend { display: block; margin-bottom: 6px; font-family: var(--titoli-font); font-size: 14px; font-weight: 500; color: var(--titoli); }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo textarea {
  width: 100%; padding: 14px 20px; font: inherit; color: var(--titoli); background: var(--chiaro-2);
  border: 1px solid transparent; border-radius: 6px; transition: border-color .3s, background .3s;
}
.campo input:focus, .campo textarea:focus { outline: 0; border-color: var(--blu); background: #fff; }
.campo textarea { min-height: 130px; resize: vertical; }
.campo [aria-invalid="true"] { border-color: #d93025; }
.campo__errore { margin: 6px 0 0; color: #d93025; font-size: 14px; font-weight: 500; }
.campo--scelta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-bottom: 16px; font-size: 13px; line-height: 1.6; }
.campo--scelta input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blu); }
.campo--scelta label { margin: 0; font-family: var(--testo-font); font-weight: 400; font-size: 13px; color: #222328; }
.campo--scelta .campo__errore { grid-column: 2; }
.campo--radio { border: 0; padding: 0; margin: 0 0 25px; }
.campo--radio legend { font-family: var(--testo-font); font-weight: 400; font-size: 13px; color: #222328; margin-bottom: 6px; }
.campo--radio label { display: inline-flex; align-items: center; gap: 6px; margin: 0 20px 0 0; font-family: var(--testo-font); font-size: 14px; }
.campo--radio input { accent-color: var(--blu); }
.modulo__avviso { padding: 14px 18px; margin-bottom: 20px; border-radius: 6px; background: #fdecea; color: #8a1c14; font-weight: 500; }
.modulo__trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .modulo__griglia { grid-template-columns: 1fr; } }

/* Accordion posizioni */
.fisarmonica { border-radius: 10px; background: #fff; box-shadow: 0 5px 25px rgba(0, 0, 0, .06); margin-bottom: 18px; overflow: hidden; }
.fisarmonica summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 28px; position: relative; font-family: var(--titoli-font); font-size: 18px; font-weight: 600; color: var(--titoli); }
.fisarmonica summary::-webkit-details-marker { display: none; }
.fisarmonica summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--blu); border-bottom: 2px solid var(--blu); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.fisarmonica[open] summary { color: var(--blu); }
.fisarmonica[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fisarmonica__corpo { padding: 0 28px 25px; }
.fisarmonica__corpo h4 { font-size: 16px; margin: 1.2em 0 .4em; }

.intro-blu { background: #015eea; color: #fff; text-align: center; padding: 200px 0 90px; }
.intro-blu h1 { color: #fff; font-size: 52px; margin-bottom: 15px; }
.intro-blu p { max-width: 700px; margin: 0 auto; font-size: 18px; color: #e6f0ff; }
.divisore { width: 90px; height: 4px; margin: 20px auto 25px; border-radius: 4px; background: #fff; }

/* Pagina grazie / 404 */
.messaggio { padding: 220px 0 120px; text-align: center; }
.messaggio img { margin: 0 auto 30px; max-height: 70px; width: auto; }
.messaggio h1 { font-size: 44px; }
.messaggio p { font-size: 18px; }

/* ---------- Footer ---------- */
.footer { position: relative; background: #0b1b3f; color: #c6d0e3; padding-top: 90px; font-size: 15px; }
.footer.con-sfondo { background-size: cover; background-position: center; }
.footer a { color: #c6d0e3; }
.footer a:hover { color: #fff; }
.footer__griglia { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr .8fr; gap: 40px; padding-bottom: 60px; }
.footer__titolo { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 25px; }
.footer__logo { height: 42px; width: auto; }
.footer__menu { list-style: none; padding: 0; margin: 0; }
.footer__menu li { margin-bottom: 8px; }
.footer__menu a::before { content: "›"; margin-right: 8px; color: var(--azzurro); }
.footer__badge { max-width: 130px; }
.footer__fondo { border-top: 1px solid rgba(255, 255, 255, .1); padding: 25px 0; }
.footer__fondo-riga { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; }
.footer__fondo p { margin: 0; }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-block; padding: 6px 14px; border-radius: 20px; background: rgba(255, 255, 255, .08); font-size: 13px; }
.social a:hover { background: var(--blu); color: #fff; }
@media (max-width: 900px) { .footer__griglia { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__griglia { grid-template-columns: 1fr; } }

.su { position: fixed; right: 25px; bottom: 25px; z-index: 90; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--gradiente); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; box-shadow: 0 8px 20px rgba(1, 94, 234, .35); }
.su.is-visibile { opacity: 1; visibility: visible; transform: none; }
.su svg { width: 22px; height: 22px; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox__box { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; }
.lightbox__video, .lightbox__video iframe { width: 100%; height: 100%; border: 0; }
.lightbox__chiudi { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- Animazioni all'ingresso (come Elementor) ---------- */
/* nascosti solo se JS è attivo: senza JS tutto resta visibile */
.js [data-anim]:not(.is-animato) { opacity: 0; }
[data-anim].is-animato { opacity: 1; animation-duration: 1.1s; animation-fill-mode: both; }
.is-animato[data-anim="fadeIn"] { animation-name: fadeIn; }
.is-animato[data-anim="fadeInUp"] { animation-name: fadeInUp; }
.is-animato[data-anim="fadeInDown"] { animation-name: fadeInDown; }
.is-animato[data-anim="fadeInLeft"] { animation-name: fadeInLeft; }
.is-animato[data-anim="fadeInRight"] { animation-name: fadeInRight; }
.is-animato[data-anim="slideInRight"] { animation-name: slideInRight; }
.is-animato[data-anim="slideInLeft"] { animation-name: slideInLeft; }
.is-animato[data-anim="slideInUp"] { animation-name: slideInUp; }
.is-animato[data-anim="bounceIn"] { animation-name: bounceIn; }
.is-animato[data-anim="bounceInLeft"] { animation-name: bounceInLeft; }
.is-animato[data-anim="zoomIn"] { animation-name: zoomIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-50px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(50px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translate3d(120px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInLeft { from { opacity: 0; transform: translate3d(-120px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInUp { from { opacity: 0; transform: translate3d(0, 100px, 0); } to { opacity: 1; transform: none; } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1.05); } 70% { transform: scale(.95); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bounceInLeft { 0% { opacity: 0; transform: translate3d(-600px, 0, 0); } 60% { opacity: 1; transform: translate3d(25px, 0, 0); } 75% { transform: translate3d(-10px, 0, 0); } 90% { transform: translate3d(5px, 0, 0); } 100% { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; animation: none !important; }
  .forma, .loghi__nastro, .scheda, .illustrazione__blob, .play__onda, .play::before, .hero__grafico i { animation: none !important; }
  .barra__riempi { transition: none; }
}

/* Grafici a torta (percentuali) */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.torta { text-align: center; }
.torta__cerchio { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--blu) calc(var(--p) * 1%), #dfe9f7 0); transition: --p 2s ease; }
.torta__cerchio::before { content: ""; grid-area: 1 / 1; width: 122px; height: 122px; border-radius: 50%; background: #fff; }
.torta__cerchio strong { grid-area: 1 / 1; position: relative; font-family: var(--titoli-font); font-size: 30px; color: var(--titoli); }
.is-visibile .torta__cerchio { --p: var(--valore); }
.torta h3 { font-size: 18px; font-weight: 600; margin: 0; }
.sez--chiara .torta__cerchio::before { background: var(--chiaro); }

/* Pannello video con sfondo */
.pannello-video { position: relative; min-height: 420px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--gradiente-sez); background-size: cover; background-position: center; }
.pannello-video::before { content: ""; position: absolute; inset: 0; background: rgba(1, 40, 110, .35); }

/* Stampa (Dicono di noi) */
.card-stampa { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 30px rgba(0, 0, 0, .06); transition: transform .4s, box-shadow .4s; }
.card-stampa:hover { transform: translateY(-8px); box-shadow: var(--ombra); }
.card-stampa img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-stampa__corpo { padding: 28px; }
.card-stampa h3 { font-size: 18px; letter-spacing: .03em; margin-bottom: 10px; }
.card-stampa h3 a { color: var(--titoli); }
.card-stampa h3 a:hover { color: var(--blu); }
.card-stampa p { margin: 0; font-size: 15px; }
.spazio-sopra { margin-top: 50px; }
.testo-centro { text-align: center; max-width: 820px; margin: 0 auto; }
.footer.con-sfondo::before { content: ""; position: absolute; inset: 0; background: rgba(8, 22, 56, .88); }
.footer > * { position: relative; }
/* Logo bianco sopra i banner blu, logo a colori sull'header fisso bianco */
.logo__img--bianco { display: none; }
.banner-pagina .header:not(.is-fisso) .logo__img--bianco { display: block; }
.banner-pagina .header:not(.is-fisso) .logo__img--colore { display: none; }
.banner-pagina .header:not(.is-fisso) .logo__testo { background: none; color: #fff; }
@media (max-width: 600px) { .hero .forma { display: none; } }
