/* Datamat - pagina di scelta della radice www.datamat.cloud (versione 2). Due porte: Hardware (blu) e Software (verde).
   Solo risorse locali (Titillium Web, Font Awesome 6.5.2). Contrasti AA verificati:
   bianco su #0b5cad 6,7:1 - bianco su #0f6b45 6,5:1 - #4f5e6e su bianco 6,6:1 - #4f5e6e su #f3f6f9 6,1:1
   #0b5cad su #e8f1fb 5,9:1 - #0f6b45 su #e7f4ed 5,8:1 - #dfe7ef su #13293d 11:1 - #b9c6d3 su #13293d 7,9:1 */
:root {
  --notte: #13293d; --blu: #0b5cad; --blu-scuro: #084a8c; --blu-tinta: #e8f1fb;
  --verde: #0f6b45; --verde-scuro: #0b5a39; --verde-tinta: #e7f4ed;
  --testo: #1b2733; --tenue: #4f5e6e; --bordo: #d5dde6; --carta: #f3f6f9;
  --fuoco: #b35c00; --fuoco-scuro: #ffb766;
  --font: 'Titillium Web', 'Segoe UI', Arial, sans-serif;
  --ombra: 0 1px 2px rgba(19, 41, 61, .06), 0 22px 44px -22px rgba(19, 41, 61, .32);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--testo); background: var(--carta); overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; height: auto; }
a { color: var(--blu); }
h1, h2, h3 { font-weight: 700; color: var(--notte); }
:focus-visible { outline: 3px solid var(--fuoco); outline-offset: 3px; }
.salta { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--notte); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.salta:focus { top: .5rem; }
.nascosto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.riga { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1 0 auto; }
main:focus { outline: none; }

/* --- testata: filo blu|verde in cima, logo e contatti */
.testa { position: relative; background: #fff; border-bottom: 1px solid var(--bordo); }
.testa::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--blu) 0 50%, var(--verde) 50% 100%); }
.testa-riga { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.marchio { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.marchio img { display: block; height: 46px; width: auto; }
.testa-contatti { display: flex; gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
.testa-contatti li { display: flex; align-items: center; gap: .75rem; }
.testa-contatti i { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blu-tinta);
  color: var(--blu); font-size: .95rem; flex: none; }
.testa-contatti span { display: flex; flex-direction: column; line-height: 1.2; }
.testa-contatti a { color: var(--notte); font-weight: 700; font-size: 1.08rem; text-decoration: none; padding: .2rem 0; }
.testa-contatti a:hover { color: var(--blu); text-decoration: underline; }
.testa-contatti small { color: var(--tenue); font-size: .88rem; }

/* --- apertura: le due anime (blu e verde) che si incontrano, su fondo notte */
.apertura { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 4.25rem 0 10.5rem;
  background:
    radial-gradient(55% 90% at 8% 0%, rgba(31, 122, 224, .38), transparent 70%),
    radial-gradient(50% 85% at 96% 100%, rgba(34, 160, 107, .32), transparent 70%),
    linear-gradient(180deg, #112840 0%, #0e2236 100%); }
.apertura::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); }
.apertura-riga { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 3rem; align-items: center; }
.apertura h1 { margin: 0; color: #fff; font-size: clamp(2rem, 1.1rem + 2.9vw, 3.6rem); line-height: 1.06; letter-spacing: -.018em; max-width: 21ch; text-wrap: balance; }
.lead { margin: 1.4rem 0 0; color: #c8d5e2; font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.6; max-width: 36rem; }
.apertura-aree { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; color: #dfe7ef; font-weight: 600; font-size: 1rem; }
.apertura-aree li { display: inline-flex; align-items: center; gap: .6rem; }
.apertura-aree span { width: 12px; height: 12px; border-radius: 50%; }
.area-hardware span { background: #3d8fe6; box-shadow: 0 0 0 4px rgba(61, 143, 230, .22); }
.area-software span { background: #3fcf8e; box-shadow: 0 0 0 4px rgba(63, 207, 142, .2); }
.apertura-segno { display: block; width: 100%; max-width: 500px; height: auto; justify-self: end; overflow: visible; }
.anello { stroke-dasharray: 100 0; }
.nodi circle:nth-child(3), .nodi circle:nth-child(4) { opacity: .9; }

/* ingresso morbido: un solo momento, all'apertura della pagina */
@keyframes dm-traccia { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 100 0; } }
@keyframes dm-sali { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dm-appari { from { opacity: 0; } to { opacity: 1; } }
.anello-1 { animation: dm-traccia 1.3s cubic-bezier(.65, 0, .35, 1) both; }
.anello-2 { animation: dm-traccia 1.3s cubic-bezier(.65, 0, .35, 1) .15s both; }
.lente, .nodi, .orbita { animation: dm-appari .8s ease 1s both; }
.apertura-testo { animation: dm-sali .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.porta { animation: dm-sali .8s cubic-bezier(.2, .7, .2, 1) .25s backwards; }
.porta-software { animation-delay: .38s; }

/* --- le due porte */
.porte { position: relative; z-index: 1; margin-top: -7.5rem; padding: 0 0 4rem; }
.porte-griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.porta { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--bordo);
  box-shadow: var(--ombra); color: var(--testo); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.porta:hover { box-shadow: 0 1px 2px rgba(19, 41, 61, .08), 0 30px 56px -24px rgba(19, 41, 61, .45); transform: translateY(-2px); }
.porta:focus-visible { outline-offset: 5px; }
.porta-scena { position: relative; display: flex; align-items: flex-end; padding: 2rem 2.25rem 0; overflow: hidden; isolation: isolate; }
.porta-scena::before { content: ""; position: absolute; z-index: -1; right: -14%; top: -55%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: clamp(28px, 4vw, 52px) solid rgba(255, 255, 255, .07); }
.porta-hardware .porta-scena { background: linear-gradient(140deg, #0f66bd 0%, #0b5cad 45%, #0a3f78 100%); padding-top: calc(2rem + 22px); }
.porta-software .porta-scena { background: linear-gradient(140deg, #13794f 0%, #0f6b45 45%, #0b4a31 100%); }
.porta-scena > img { display: block; width: 100%; margin-bottom: -2px; }
.finestra { display: block; width: 100%; border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; box-shadow: 0 -6px 34px rgba(4, 30, 20, .35); }
.finestra-barra { display: flex; gap: 6px; align-items: center; height: 22px; padding: 0 10px; background: #e9eef3; }
.finestra-barra b { width: 8px; height: 8px; border-radius: 50%; background: #c3ccd6; }
.finestra img { display: block; width: 100%; }
.porta-corpo { flex: 1; display: flex; flex-direction: column; padding: 1.6rem 2.25rem 2.1rem; }
.porta-indirizzo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.porta-hardware .porta-indirizzo { color: var(--blu); }
.porta-software .porta-indirizzo { color: var(--verde); }
.porta-titolo { text-wrap: balance; margin: .35rem 0 .45rem; font-size: clamp(1.5rem, 1.2rem + .9vw, 1.95rem); line-height: 1.15; }
.porta-testo { color: var(--tenue); max-width: 36rem; }
.porta-elenco { list-style: none; margin: 1.3rem 0 1.6rem; padding: 1.2rem 0 0; border-top: 1px solid var(--bordo);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: .65rem 1.5rem; }
.porta-elenco span { text-wrap: balance; }
.porta-elenco li { display: flex; gap: .7rem; align-items: baseline; color: var(--testo); line-height: 1.35; }
.porta-elenco i { flex: none; width: 1.15rem; text-align: center; font-size: .95rem; }
.porta-hardware .porta-elenco i { color: var(--blu); }
.porta-software .porta-elenco i { color: var(--verde); }
.porta-vai { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: 0 1.5rem; border-radius: 8px;
  color: #fff; font-weight: 700; font-size: 1.06rem; transition: background-color .2s ease; }
.porta-hardware .porta-vai { background: var(--blu); }
.porta-software .porta-vai { background: var(--verde); }
.porta-hardware:hover .porta-vai { background: var(--blu-scuro); }
.porta-software:hover .porta-vai { background: var(--verde-scuro); }
.porta:hover .porta-titolo { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* --- fascia di fiducia */
.fiducia { background: #fff; border-top: 1px solid var(--bordo); border-bottom: 1px solid var(--bordo); }
.fiducia-elenco { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fiducia-elenco li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.6rem 1.5rem; border-left: 1px solid var(--bordo); }
.fiducia-elenco li:first-child { border-left: 0; padding-left: 0; }
.fiducia-elenco li:last-child { padding-right: 0; }
.fiducia-segno { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 9px; border-radius: 10px;
  background: var(--blu-tinta); color: var(--blu); font-size: 1.1rem; }
.fiducia-marchi { background: #f1f4f7; }
.fiducia-elenco li > span:last-child { display: flex; flex-direction: column; color: var(--tenue); font-size: .95rem; line-height: 1.4; }
.fiducia-elenco strong { color: var(--notte); font-size: 1.04rem; margin-bottom: .15rem; text-wrap: balance; }

/* --- come possiamo aiutarti */
.aiuto { padding: 3.5rem 0 4rem; }
.aiuto-titolo { margin: 0 0 1.4rem; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); line-height: 1.2; }
.aiuto-griglia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--bordo); border: 1px solid var(--bordo); border-radius: 14px; overflow: hidden; }
.aiuto-voce { display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.7rem; background: #fff; min-width: 0; }
.aiuto-icona { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--notte); color: #fff; font-size: 1.05rem; }
.aiuto-voce h3 { margin: 1rem 0 .35rem; font-size: 1.2rem; line-height: 1.25; }
.aiuto-voce p { margin: 0; color: var(--tenue); font-size: .98rem; }
.aiuto-voce .aiuto-azioni { margin-top: auto; padding-top: 1.2rem; display: flex; flex-wrap: nowrap; gap: .5rem; }
.azione { position: relative; flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 .75rem;
  border-radius: 8px; font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  text-decoration: none; border: 1px solid transparent; transition: background-color .2s ease, color .2s ease; }
.azione-hardware { color: var(--blu); background: var(--blu-tinta); border-color: #c8dcf2; }
.azione-software { color: var(--verde); background: var(--verde-tinta); border-color: #c4e3d2; }
.azione-hardware:hover { background: var(--blu); color: #fff; }
.azione-software:hover { background: var(--verde); color: #fff; }

/* --- piede istituzionale */
.piede { background: var(--notte); color: #dfe7ef; font-size: .98rem; }
.piede a { color: #fff; text-underline-offset: .2em; }
.piede a:hover { color: #bfe0ff; }
.piede :focus-visible { outline-color: var(--fuoco-scuro); }
.piede-griglia { display: grid; grid-template-columns: 1.15fr 1.35fr 1fr 1fr; gap: 2rem 2.5rem; padding-top: 3rem; padding-bottom: 2.4rem; }
.piede-griglia > * { min-width: 0; }
.piede h2 { margin: .2rem 0 .8rem; color: #fff; font-size: 1.05rem; }
.piede p { margin: 0 0 .8rem; line-height: 1.6; }
.piede-logo img { display: block; height: 40px; width: auto; }
.piede ul { list-style: none; margin: 0; padding: 0; }
.piede nav li a { display: inline-flex; align-items: center; min-height: 40px; }
.piede section li { display: flex; gap: .7rem; align-items: baseline; padding: .3rem 0; }
.piede section li i { flex: none; width: 1.1rem; text-align: center; color: #9fc7ef; }
.piede section li span { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.piede small { color: #b9c6d3; font-size: .9rem; }
.piede-fondo { border-top: 1px solid rgba(255, 255, 255, .12); }
.piede-fondo p { margin: 0 auto; padding-top: 1.1rem; padding-bottom: 1.2rem; color: #b9c6d3; font-size: .92rem; }

/* --- adattamenti */
@media (max-width: 1239px) {
  .aiuto-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .fiducia-elenco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiducia-elenco li { padding: 1.3rem 1.25rem; }
  .fiducia-elenco li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fiducia-elenco li:nth-child(even) { padding-right: 0; }
  .fiducia-elenco li:nth-child(n+3) { border-top: 1px solid var(--bordo); }
  .piede-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .porta-titolo { font-size: 1.55rem; }
}
@media (max-width: 960px) {
  .porte-griglia { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
  .apertura { padding: 3rem 0 9rem; }
  .apertura-riga { grid-template-columns: minmax(0, 1fr); }
  .apertura-segno { position: absolute; right: -150px; top: -40px; width: 420px; max-width: none; opacity: .32; z-index: -1; }
  .apertura-segno .nodi { display: none; }
  .apertura-testo { position: relative; }
  .apertura h1 { max-width: 20ch; }
}
@media (max-width: 760px) {
  .testa-contatti .testa-mail { display: none; }
  .apertura { padding: 2.4rem 0 8rem; }
  .porte { margin-top: -6rem; }
}
@media (max-width: 640px) {
  .riga { padding: 0 1rem; }
  .testa-riga { min-height: 72px; gap: .75rem; }
  .marchio img { height: 38px; }
  .testa-contatti i { width: 36px; height: 36px; }
  .porte { padding-bottom: 2.5rem; }
  .apertura-segno { right: -190px; top: -70px; width: 360px; opacity: .25; }
  .apertura-aree { flex-direction: column; margin-top: 1.5rem; }
  .porta-scena { padding: 1.25rem 1.25rem 0; }
  .porta-hardware .porta-scena { padding-top: calc(1.25rem + 22px); }
  .porta-corpo { padding: 1.3rem 1.25rem 1.5rem; }
  .porta-elenco { grid-template-columns: minmax(0, 1fr); }
  .porta-vai { align-self: stretch; justify-content: center; }
  .fiducia-elenco { grid-template-columns: minmax(0, 1fr); }
  .fiducia-elenco li, .fiducia-elenco li:nth-child(n) { border-left: 0; padding: 1.1rem 0; }
  .fiducia-elenco li + li { border-top: 1px solid var(--bordo); }
  .aiuto { padding: 2.5rem 0 3rem; }
  .aiuto-griglia { grid-template-columns: minmax(0, 1fr); }
  .aiuto-voce { padding: 1.4rem 1.25rem 1.5rem; }
  .piede-griglia { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-top: 2.4rem; }
}
@media (max-width: 400px) {
  .testa-contatti small { display: none; }
  .testa-contatti a { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .anello, .lente, .nodi, .orbita, .apertura-testo, .porta { animation: none; }
  .porta, .porta-vai, .azione { transition: none; }
  .porta:hover { transform: none; }
}
@media print {
  .porta-scena, .salta { display: none; }
  .porta { box-shadow: none; }
}
