/* Deeper Know — foglio di stile unico del sito.
   Colori e font ripresi dal sito originale (tema digitalgrove):
   ardesia #56636e / #6b7984, blu #003AA5, sfondo chiaro #F1F5FF, DM Sans. */

@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dmsans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dmsans-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dmsans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ardesia: #56636e;
  --ardesia-2: #6b7984;
  --ardesia-scuro: #323b43;
  --ardesia-notte: #262d33;
  --blu: #003aa5;
  --blu-scuro: #002a7a;
  --blu-chiaro: #3c76a5;
  --sfondo: #ffffff;
  --sfondo-tenue: #f1f5ff;
  --bordo: #dde3ec;
  --testo: #141a1f;
  --testo-2: #4f5b66;
  --raggio: 14px;
  --ombra: 0 1px 2px rgb(16 24 40 / .05), 0 8px 24px rgb(16 24 40 / .07);
  --ombra-forte: 0 2px 4px rgb(16 24 40 / .06), 0 18px 40px rgb(16 24 40 / .12);
  --largo: 1180px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--testo); background: var(--sfondo); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); text-underline-offset: .18em; }
a:hover { color: var(--blu-scuro); }
:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 700; color: var(--testo); }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.contenitore { width: min(100% - 40px, var(--largo)); margin-inline: auto; }
.stretto { max-width: 760px; }
.salta { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--blu); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.salta:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- pulsanti */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; font-family: inherit; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primario { background: var(--blu); color: #fff; box-shadow: 0 6px 16px rgb(0 58 165 / .25); }
.btn-primario:hover { background: var(--blu-scuro); color: #fff; transform: translateY(-1px); }
.btn-secondario { background: transparent; color: var(--blu); border-color: currentColor; }
.btn-secondario:hover { background: var(--sfondo-tenue); color: var(--blu-scuro); }
.btn-chiaro { background: #fff; color: var(--blu); }
.btn-chiaro:hover { background: var(--sfondo-tenue); color: var(--blu-scuro); }
.btn-contorno-chiaro { color: #fff; border-color: rgb(255 255 255 / .6); }
.btn-contorno-chiaro:hover { color: #fff; border-color: #fff; background: rgb(255 255 255 / .08); }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------------------------------------------------------------- testata */
.testata { position: sticky; top: 0; z-index: 50; background: var(--ardesia); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .06), 0 6px 18px rgb(0 0 0 / .12); }
.testata .contenitore { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.marchio { display: block; flex: none; }
.marchio img { height: 62px; width: auto; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu a { color: #fff; text-decoration: none; font-weight: 500; padding: .55em .9em; border-radius: 999px; display: block; transition: background-color .2s; }
.menu ul a:hover { background: rgb(255 255 255 / .12); color: #fff; }
.menu ul a[aria-current] { background: rgb(255 255 255 / .18); font-weight: 600; }
.menu .btn { margin-left: 8px; }
.menu .btn-chiaro, .menu .btn-chiaro:hover { color: var(--blu); }
.menu .btn-chiaro[aria-current] { box-shadow: inset 0 0 0 2px var(--blu-chiaro); }
.lingue { position: relative; margin-left: 10px; }
.lingue summary { list-style: none; display: flex; align-items: center; gap: 9px; min-width: 150px; cursor: pointer; user-select: none; background: #fff; color: var(--testo); font-size: .93rem; font-weight: 600; padding: .5em .75em .5em .65em; border: 1px solid transparent; border-radius: 10px; box-shadow: 0 1px 2px rgb(0 0 0 / .12); transition: box-shadow .2s, border-color .2s; }
.lingue summary::-webkit-details-marker { display: none; }
.lingue summary:hover { box-shadow: 0 0 0 3px rgb(255 255 255 / .25); }
.lingue[open] summary { border-color: var(--blu); box-shadow: 0 0 0 3px rgb(122 167 255 / .45); }
.lingue .nome { flex: 1; }
.lingue .giu { width: 16px; height: 16px; flex: none; color: var(--testo-2); transition: transform .2s; }
.lingue[open] .giu { transform: rotate(180deg); }
.bandiera { width: 24px; height: 16px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.lingue ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; width: max(100%, 200px); background: #fff; border: 1px solid var(--bordo); border-radius: 12px; box-shadow: var(--ombra-forte); display: grid; gap: 2px; animation: apri .15s ease-out; }
@keyframes apri { from { opacity: 0; transform: translateY(-4px); } }
.menu .lingue a, .lingue .scelta { display: flex; align-items: center; gap: 10px; padding: .55em .7em; border-radius: 8px; color: var(--testo); font-weight: 500; font-size: .95rem; line-height: 1.3; }
.menu .lingue a:hover, .menu .lingue a:focus-visible { background: var(--sfondo-tenue); color: var(--blu); }
.lingue .scelta { background: var(--sfondo-tenue); color: var(--blu); font-weight: 700; }
.lingue .scelta span { flex: 1; }
.lingue .ok { width: 16px; height: 16px; flex: none; }
.apri-menu { display: none; margin-left: auto; background: none; border: 1px solid rgb(255 255 255 / .35); color: #fff; border-radius: 10px; width: 46px; height: 46px; cursor: pointer; padding: 0; }
.apri-menu svg { width: 24px; height: 24px; margin: auto; }
.apri-menu .x { display: none; }
.testata.aperta .apri-menu .x { display: block; }
.testata.aperta .apri-menu .hamb { display: none; }

@media (max-width: 1080px) {
  .testata .contenitore { min-height: 70px; flex-wrap: wrap; }
  .marchio img { height: 46px; }
  .apri-menu { display: grid; }
  .menu { display: none; }
  .menu { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 0 20px; margin: 0; }
  .testata.aperta .menu { display: flex; }
  .menu ul { flex-direction: column; }
  .menu a { padding: .8em 1em; border-radius: 10px; }
  .menu .btn { margin: 4px 0 0; justify-content: center; }
  .lingue { margin: 6px 0 0; }
  .lingue summary { padding: .75em .9em; }
  .lingue ul { position: static; margin-top: 8px; width: 100%; box-shadow: none; animation: none; }
}

/* ---------------------------------------------------------------- sezioni */
.sezione { padding: clamp(56px, 5vw + 24px, 104px) 0; }
.sezione-tenue { background: var(--sfondo-tenue); }
.occhiello { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blu); margin-bottom: .9em; }
.intestazione-sezione { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.intestazione-sezione p { color: var(--testo-2); font-size: 1.1rem; }

/* hero della home */
.hero { background: linear-gradient(180deg, var(--sfondo-tenue), #fff); padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 6vw, 104px); overflow: hidden; }
.hero .contenitore { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--blu); }
.hero .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--testo-2); max-width: 36em; }
.hero .lead strong { color: var(--testo); }
.hero figure { margin: 0; position: relative; }
.hero figure img { border-radius: 22px; box-shadow: var(--ombra-forte); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero figure::before { content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; border-radius: 22px; background: var(--blu); opacity: .1; z-index: -1; }
.cifre { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px 40px; margin-top: 2.2em; padding-top: 1.6em; border-top: 1px solid var(--bordo); }
.cifre div { display: flex; flex-direction: column; }
.cifre strong { font-size: 1.7rem; line-height: 1.1; color: var(--blu); }
.cifre span { font-size: .92rem; color: var(--testo-2); }
@media (max-width: 900px) { .hero .contenitore { grid-template-columns: 1fr; } .hero figure { order: -1; } .hero figure::before { display: none; } }

/* testata delle pagine interne */
.banda { background: linear-gradient(120deg, var(--ardesia-scuro) 0%, var(--ardesia) 60%, var(--ardesia-2) 100%); color: #fff; padding: clamp(44px, 5vw, 80px) 0 clamp(48px, 5vw, 88px); position: relative; overflow: hidden; }
.banda::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgb(122 167 255 / .28), transparent 70%); }
.banda h1 { color: #fff; max-width: 22em; }
.banda p { color: rgb(255 255 255 / .85); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 40em; margin: 0; }
.briciole { font-size: .88rem; margin-bottom: 1.2em; color: rgb(255 255 255 / .75); }
.briciole ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.briciole li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.briciole a { color: #fff; text-decoration: none; }
.briciole a:hover { text-decoration: underline; }

/* schede servizi */
.griglia { display: grid; gap: 24px; grid-template-columns: repeat(6, 1fr); }
.griglia > * { grid-column: span 2; }
.griglia > :nth-last-child(2):nth-child(3n + 1), .griglia > :last-child:nth-child(3n + 2) { grid-column: span 3; }
@media (max-width: 960px) { .griglia { grid-template-columns: 1fr 1fr; } .griglia > *, .griglia > :nth-last-child(2):nth-child(3n + 1), .griglia > :last-child:nth-child(3n + 2) { grid-column: auto; } .griglia > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 620px) { .griglia { grid-template-columns: 1fr; } }
.scheda { position: relative; background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 28px 28px 24px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.scheda:hover { transform: translateY(-3px); box-shadow: var(--ombra-forte); border-color: #c6d3ea; }
.scheda h3 { margin: 18px 0 .5em; }
.scheda h3 a { color: var(--testo); text-decoration: none; }
.scheda h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.scheda p { color: var(--testo-2); font-size: .98rem; flex: 1; }
.scheda .vai { font-weight: 600; color: var(--blu); display: inline-flex; align-items: center; gap: .4em; font-size: .95rem; }
.scheda .vai svg { width: 1em; height: 1em; transition: transform .2s; }
.scheda:hover .vai svg { transform: translateX(4px); }
.icona { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--sfondo-tenue); color: var(--blu); }
.icona svg { width: 28px; height: 28px; }

/* punti di forza */
.punti { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .punti { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .punti { grid-template-columns: 1fr; } }
.punto { background: #fff; border-radius: var(--raggio); padding: 26px; box-shadow: var(--ombra); }
.punto .spunta { width: 40px; height: 40px; border-radius: 50%; background: var(--blu); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.punto .spunta svg { width: 20px; height: 20px; }
.punto h3 { font-size: 1.12rem; margin-bottom: .4em; }
.punto p { color: var(--testo-2); font-size: .98rem; margin: 0; }

/* contenuto delle pagine servizio */
.dueparti { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.dueparti figure { margin: 0; }
.dueparti figure img { border-radius: 18px; box-shadow: var(--ombra-forte); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .dueparti { grid-template-columns: 1fr; } }
.testo-grande { font-size: 1.15rem; color: var(--testo-2); }
.testo-grande strong { color: var(--testo); }
.elenco-spunte { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 14px; }
.elenco-spunte li { position: relative; padding-left: 38px; }
.elenco-spunte li::before { content: ""; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%; background: var(--sfondo-tenue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003aa5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.vantaggi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .vantaggi { grid-template-columns: 1fr; } }
.vantaggio { background: #fff; border-radius: var(--raggio); padding: 26px; box-shadow: var(--ombra); border-top: 4px solid var(--blu); }
.vantaggio h3 { font-size: 1.15rem; margin-bottom: .35em; }
.vantaggio p { margin: 0; color: var(--testo-2); }
.schema { margin: 0 0 clamp(36px, 4vw, 56px); background: #fff; border: 1px solid var(--bordo); border-radius: 18px; padding: clamp(16px, 3vw, 36px); }
.schema figcaption { text-align: center; color: var(--testo-2); font-size: .92rem; margin-top: 12px; }
.altri { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.altri a { display: inline-block; padding: .55em 1.1em; border: 1px solid var(--bordo); border-radius: 999px; text-decoration: none; color: var(--testo); background: #fff; font-weight: 500; transition: border-color .2s, color .2s; }
.altri a:hover { border-color: var(--blu); color: var(--blu); }

/* fascia invito all'azione */
.invito { background: linear-gradient(120deg, var(--blu-scuro), var(--blu) 55%, var(--blu-chiaro)); color: #fff; border-radius: 22px; padding: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; box-shadow: var(--ombra-forte); }
.invito h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.invito p { margin: 0; color: rgb(255 255 255 / .85); max-width: 40em; }
.invito .azioni { margin: 0; }

/* chi siamo */
.chi .dueparti figure img { aspect-ratio: 4 / 3; }
.valori { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 860px) { .valori { grid-template-columns: 1fr; } }

/* contatti */
.contatti-griglia { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contatti-griglia { grid-template-columns: 1fr; } }
.recapiti { background: var(--ardesia); color: #fff; border-radius: 18px; padding: clamp(26px, 3vw, 40px); position: relative; overflow: hidden; }
.recapiti h2 { color: #fff; font-size: 1.5rem; }
.recapiti p { color: rgb(255 255 255 / .85); }
.recapiti dl { margin: 1.4em 0 0; display: grid; gap: 18px; }
.recapiti dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgb(255 255 255 / .65); font-weight: 600; }
.recapiti dd { margin: 2px 0 0; font-size: 1.05rem; }
.recapiti a { color: #fff; }
.recapiti img { margin-top: 26px; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; opacity: .95; }
.modulo { background: #fff; border: 1px solid var(--bordo); border-radius: 18px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--ombra); }
.modulo h2 { font-size: 1.5rem; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.campo label span { color: var(--blu); }
.campo input, .campo textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--testo); padding: .75em .9em; border: 1px solid #c9d2de; border-radius: 10px; background: #fbfcfe; transition: border-color .2s, box-shadow .2s; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 4px rgb(0 58 165 / .15); background: #fff; }
.campo textarea { min-height: 150px; resize: vertical; }
.campo [aria-invalid="true"] { border-color: #c62828; }
.nota { font-size: .88rem; color: var(--testo-2); margin-top: 14px; }
.esito { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--sfondo-tenue); color: var(--testo); font-size: .95rem; }
.esito[hidden] { display: none; }

/* testi lunghi (cookie policy) */
.prosa { max-width: 780px; margin-inline: auto; }
.prosa h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prosa p, .prosa li { color: #2b343c; }
.prosa .aggiornato { color: var(--testo-2); font-size: .95rem; border-top: 1px solid var(--bordo); padding-top: 1em; margin-top: 2em; }
.prosa a { word-break: break-word; }

/* 404 */
.errore { text-align: center; padding: clamp(72px, 10vw, 140px) 0; }
.errore .codice { font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 700; line-height: 1; color: var(--sfondo-tenue); -webkit-text-stroke: 2px var(--blu); margin-bottom: .2em; }
.errore .azioni { justify-content: center; }

/* ---------------------------------------------------------------- piede */
.piede { background: var(--ardesia-scuro); color: rgb(255 255 255 / .8); font-size: .97rem; margin-top: 0; }
.piede .contenitore { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 64px 0 48px; }
@media (max-width: 900px) { .piede .contenitore { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .piede .contenitore { grid-template-columns: 1fr; } }
.piede h2 { color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 1em; }
.piede ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.piede a { color: rgb(255 255 255 / .85); text-decoration: none; }
.piede a:hover { color: #fff; text-decoration: underline; }
.piede address { font-style: normal; line-height: 1.75; }
.piede .marchio img { height: 64px; margin-bottom: 16px; }
.piede .descr { max-width: 30em; }
.fondo { background: var(--ardesia-notte); color: rgb(255 255 255 / .65); font-size: .88rem; }
.fondo .contenitore { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; }
.fondo a { color: rgb(255 255 255 / .8); }
.menu a.btn { font-weight: 600; }
.lingue-404 { margin-top: 28px; }
.lingue-404 a { display: inline-flex; align-items: center; gap: 8px; }

/* tabelle nei testi (cookie policy) */
.tabella { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--bordo); border-radius: 12px; }
.tabella table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.tabella th, .tabella td { text-align: left; vertical-align: top; padding: .75em 1em; border-bottom: 1px solid var(--bordo); }
.tabella th { background: var(--sfondo-tenue); font-weight: 600; }
.tabella tr:last-child td { border-bottom: 0; }
.prosa code { font-size: .9em; background: var(--sfondo-tenue); padding: .1em .35em; border-radius: 5px; }

/* avviso cookie */
.avviso-cookie { position: fixed; left: 20px; bottom: 20px; z-index: 80; max-width: 520px; display: flex; align-items: center; gap: 16px 20px; padding: 18px 20px; background: var(--ardesia-scuro); color: rgb(255 255 255 / .9); border-radius: 14px; box-shadow: 0 12px 32px rgb(0 0 0 / .28); font-size: .93rem; line-height: 1.5; animation: sale .25s ease-out; }
.avviso-cookie[hidden] { display: none; }
.avviso-cookie p { margin: 0; }
.avviso-cookie a { color: #fff; font-weight: 600; }
.avviso-cookie .btn { flex: none; padding: .65em 1.2em; }
@keyframes sale { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 560px) { .avviso-cookie { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; } }
