:root {
  --blu: #2b4a9e;
  --blu-scuro: #1d3577;
  --navy: #12204a;
  --navy-2: #0c1736;
  --giallo: #f5b700;
  --giallo-scuro: #d99f00;
  --bg: #f4f6fb;
  --testo: #1b2333;
  --muted: #5b6478;
  --bordo: #e2e6f0;
  --raggio: 18px;
  --ombra: 0 18px 40px -18px rgba(18, 32, 74, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: "Manrope", system-ui, sans-serif; color: var(--testo); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bordo); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover, .nav a.attivo { color: var(--blu); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s, background .2s, box-shadow .2s; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-giallo { background: var(--giallo); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(245,183,0,.8); }
.btn-giallo:hover { background: var(--giallo-scuro); }
.btn-chiaro { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-chiaro:hover { border-color: #fff; }
.btn-blu { background: var(--blu); color: #fff; }
.btn-blu:hover { background: var(--blu-scuro); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 80px 0 150px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -140px; top: -200px; background: radial-gradient(circle, rgba(43,74,158,.9), transparent 65%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.etichetta { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(245,183,0,.14); color: var(--giallo); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.etichetta i { width: 8px; height: 8px; border-radius: 50%; background: var(--giallo); }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.025em; margin: 22px 0 22px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--giallo); }
.hero p.lead { font-size: 19px; color: #c8d1ea; max-width: 520px; }
.hero .azioni { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-foto { position: relative; }
.hero-foto img { border-radius: 22px; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: 50% 30%; width: 100%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.badge { position: absolute; background: #fff; color: var(--navy); border-radius: 16px; padding: 16px 20px; box-shadow: var(--ombra); display: flex; align-items: center; gap: 14px; }
.badge strong { font-size: 30px; line-height: 1; font-weight: 800; color: var(--blu); }
.badge span { font-size: 13px; line-height: 1.35; color: var(--muted); font-weight: 600; }
.badge-1 { left: -28px; bottom: -26px; }
.badge-2 { right: -18px; bottom: -26px; padding: 12px 16px; }
.badge-2 .punto { width: 38px; height: 38px; border-radius: 12px; background: var(--giallo); display: grid; place-items: center; }
.badge-2 .punto svg { width: 20px; height: 20px; color: var(--navy); }

/* Vantaggi */
.vantaggi { position: relative; z-index: 2; margin-top: -86px; }
.vantaggi .griglia { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--raggio); box-shadow: var(--ombra); }
.vantaggio { padding: 30px 28px; border-right: 1px solid var(--bordo); }
.vantaggio:last-child { border-right: 0; }
.icona { width: 46px; height: 46px; border-radius: 13px; background: var(--bg); color: var(--blu); display: grid; place-items: center; margin-bottom: 16px; }
.icona svg { width: 23px; height: 23px; }
.vantaggio h3 { font-size: 17px; margin-bottom: 6px; }
.vantaggio p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Sezioni */
section { padding: 100px 0; }
.titolo-sez { max-width: 680px; margin-bottom: 50px; }
.titolo-sez.centro { margin-inline: auto; text-align: center; }
.occhiello { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blu); }
.titolo-sez h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 14px; font-weight: 800; }
.titolo-sez p { color: var(--muted); font-size: 18px; }

/* Servizi */
.servizi { background: #fff; padding-top: 110px; }
.aree { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.area { background: var(--bg); border-radius: var(--raggio); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.area:hover { transform: translateY(-6px); box-shadow: var(--ombra); }
.area-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.area-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.area:hover .area-foto img { transform: scale(1.05); }
.area-foto .icona { position: absolute; left: 16px; bottom: 16px; margin: 0; background: var(--giallo); color: var(--navy); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.area-testo { padding: 22px 22px 26px; }
.area h3 { font-size: 19px; margin-bottom: 14px; line-height: 1.25; }
.area p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.area-foto { aspect-ratio: 3 / 2; }
.area h3 { margin-bottom: 8px; }
.area ul { list-style: none; display: grid; gap: 9px; }
.area li { display: flex; gap: 10px; font-size: 15px; color: #3a4459; align-items: flex-start; }
.area li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--blu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.nota-servizi { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 32px; border: 1.5px dashed #c9d2e8; border-radius: var(--raggio); }
.nota-servizi p { font-size: 17px; font-weight: 600; max-width: 700px; }

/* Storia (teaser) */
.storia { background: var(--bg); }
.storia .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.polaroid { background: #fff; padding: 14px 14px 56px; border-radius: 6px; box-shadow: var(--ombra); transform: rotate(-3deg); position: relative; max-width: 420px; justify-self: center; }
.polaroid img { border-radius: 2px; }
.polaroid figcaption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-family: "Caveat", cursive; font-size: 26px; color: var(--navy); }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(2deg); background: rgba(245,183,0,.55); }
.storia-testo p { color: #3a4459; margin-bottom: 16px; font-size: 17.5px; }
.anni { display: flex; align-items: center; gap: 22px; margin: 30px 0 34px; padding: 22px 26px; background: var(--navy); border-radius: var(--raggio); color: #fff; }
.anni .numero { font-size: 54px; font-weight: 800; line-height: 1; color: var(--giallo); letter-spacing: -.03em; }
.anni p { margin: 0; color: #c8d1ea; font-size: 15.5px; }
.anni p strong { color: #fff; display: block; font-size: 17px; }

/* Partner */
.partner { padding: 70px 0; border-top: 1px solid var(--bordo); border-bottom: 1px solid var(--bordo); background: #fff; }
.partner .occhiello { display: block; text-align: center; margin-bottom: 34px; color: var(--muted); }
.loghi { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 52px; }
.loghi img { height: 34px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.loghi img.alto { height: 46px; }
.loghi img:hover { filter: none; opacity: 1; }

/* Contatti */
.contatti .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--ombra); }
.contatti-info { background: var(--navy); color: #fff; padding: 54px 46px; position: relative; overflow: hidden; }
.contatti-info::after { content: ""; position: absolute; width: 360px; height: 360px; right: -160px; bottom: -160px; border-radius: 50%; border: 60px solid rgba(245,183,0,.12); }
.contatti-info h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 14px; }
.contatti-info > p { color: #c8d1ea; margin-bottom: 34px; }
.contatti-info .occhiello { color: var(--giallo); }
.recapito { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; position: relative; z-index: 1; }
.recapito .icona { margin: 0; background: rgba(255,255,255,.08); color: var(--giallo); flex: none; }
.recapito small { display: block; color: #9eabcf; font-size: 13px; font-weight: 600; }
.recapito a, .recapito span { font-weight: 700; font-size: 17px; }
.recapito a:hover { color: var(--giallo); }
.modulo { background: #fff; padding: 54px 46px; }
.modulo h3 { font-size: 24px; margin-bottom: 6px; }
.modulo > p { color: var(--muted); margin-bottom: 28px; font-size: 15.5px; }
.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo.pieno { grid-column: 1 / -1; }
.campo label { font-size: 13.5px; font-weight: 700; color: #3a4459; }
.campo input, .campo select, .campo textarea { font: inherit; font-size: 15.5px; padding: 13px 15px; border: 1.5px solid var(--bordo); border-radius: 12px; background: var(--bg); color: var(--testo); transition: border-color .2s, background .2s; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--blu); background: #fff; }
.campo textarea { min-height: 130px; resize: vertical; }
.consensi { margin: 20px 0 24px; display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--blu); width: 17px; height: 17px; flex: none; }
.check a { color: var(--blu); text-decoration: underline; }
.esito { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #e9f7ef; color: #1d6b3d; font-weight: 600; font-size: 15px; }

/* Mappa */
.titolo-sez.largo { max-width: 900px; }
.dove { padding: 0 0 100px; }
.mappa { position: relative; height: 440px; border-radius: 24px; overflow: hidden; box-shadow: var(--ombra); background: var(--bg); }
.mappa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75); }
.mappa-card { position: absolute; right: 32px; top: 32px; width: min(360px, calc(100% - 64px)); background: #fff; border-radius: var(--raggio); padding: 30px 28px; box-shadow: var(--ombra); z-index: 1; }
.mappa-card h3 { font-size: 24px; letter-spacing: -.01em; margin: 8px 0 10px; line-height: 1.2; }
.mappa-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.mappa-card .indirizzo { display: flex; gap: 12px; align-items: flex-start; color: var(--testo); font-weight: 700; margin-bottom: 22px; }
.mappa-card .indirizzo .icona { margin: 0; flex: none; width: 40px; height: 40px; }

/* Pagina interna */
.testata { background: var(--navy); color: #fff; padding: 80px 0 90px; position: relative; overflow: hidden; }
.testata::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 80% 30%, #000 0%, transparent 70%); }
.testata .wrap { position: relative; }
.briciole { font-size: 14px; color: #9eabcf; font-weight: 600; margin-bottom: 18px; }
.briciole a:hover { color: #fff; }
.testata h1 { font-size: clamp(40px, 5vw, 62px); letter-spacing: -.025em; line-height: 1.05; font-weight: 800; }
.testata p { font-size: 20px; color: #c8d1ea; max-width: 640px; margin-top: 18px; }

.passi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: passo; }
.passo { background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 34px 30px; position: relative; }
.passo::before { counter-increment: passo; content: "0" counter(passo); position: absolute; top: 26px; right: 28px; font-size: 44px; font-weight: 800; color: #e7ebf5; line-height: 1; }
.passo h3 { font-size: 20px; margin-bottom: 10px; }
.passo p { color: var(--muted); font-size: 15.5px; }

.staff { background: var(--bg); }
.staff-foto { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--ombra); }
.staff-foto img { width: 100%; aspect-ratio: 16 / 7.6; object-fit: cover; object-position: 50% 35%; }
.staff-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(12,23,54,.75)); }
.staff-foto figcaption { position: absolute; left: 34px; bottom: 28px; z-index: 1; color: #fff; font-weight: 700; font-size: 20px; max-width: 560px; line-height: 1.35; }
.staff-testo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 50px; }
.staff-testo div { border-top: 3px solid var(--giallo); padding-top: 18px; }
.staff-testo h3 { font-size: 18px; margin-bottom: 8px; }
.staff-testo p { color: var(--muted); font-size: 15.5px; }

.banda { background: var(--giallo); padding: 64px 0; }
.banda .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.banda h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); letter-spacing: -.02em; line-height: 1.2; max-width: 620px; }
.banda .azioni { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-bordo { border-color: var(--navy); color: var(--navy); }

/* Footer */
.footer { background: var(--navy-2); color: #9eabcf; padding: 64px 0 30px; font-size: 15px; }
.footer .griglia { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer img { height: 30px; width: auto; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .fondo { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; }

/* Mobile */
@media (max-width: 1020px) {
  .aree { grid-template-columns: repeat(2, 1fr); }
  .vantaggi .griglia { grid-template-columns: repeat(2, 1fr); }
  .vantaggio:nth-child(2) { border-right: 0; }
  .vantaggio:nth-child(-n+2) { border-bottom: 1px solid var(--bordo); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 22px; gap: 4px; border-bottom: 1px solid var(--bordo); box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); }
  .nav.aperto { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--bordo); }
  .nav .btn { justify-content: center; margin-top: 12px; }
  .menu-btn { display: block; }
  .hero { padding: 54px 0 130px; }
  .hero .wrap, .storia .wrap, .contatti .wrap { grid-template-columns: 1fr; gap: 50px; }
  .badge-1 { left: 12px; bottom: -22px; }
  .badge-2 { display: none; }
  .solo-desktop { display: none; }
  .mappa { height: auto; }
  .mappa iframe { position: static; height: 300px; }
  .mappa-card { position: relative; right: auto; top: auto; width: auto; margin: 0; border-radius: 0; box-shadow: none; }
  section { padding: 76px 0; }
  .passi, .staff-testo { grid-template-columns: 1fr; }
  .contatti-info, .modulo { padding: 40px 26px; }
  .footer .griglia { grid-template-columns: 1fr; }
  .staff-foto img { aspect-ratio: 4 / 3; }
  .staff-foto figcaption { left: 20px; bottom: 18px; font-size: 16px; }
}
@media (max-width: 560px) {
  .aree, .vantaggi .griglia { grid-template-columns: 1fr; }
  .vantaggio { border-right: 0; border-bottom: 1px solid var(--bordo); padding: 22px 22px; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
  .vantaggio .icona { grid-row: span 2; margin: 0; }
  .vantaggio:last-child { border-bottom: 0; }
  .campi { grid-template-columns: 1fr; }
  .aree { gap: 12px; }
  .area { flex-direction: row; }
  .area-foto { flex: none; width: 112px; aspect-ratio: auto; }
  .area-foto .icona { display: none; }
  .area-testo { padding: 16px 16px; }
  .area h3 { font-size: 17px; margin-bottom: 4px; }
  .area p { font-size: 14px; line-height: 1.45; }
  .logo img { height: 26px; }
  .anni { flex-direction: column; align-items: flex-start; }
}
