:root {
  --blue: #2B5DAA; --navy: #13294B; --navy-2: #0D1E38; --cyan: #1DA8DC;
  --green: #3BA74A; --lime: #8DC63F; --orange: #F39233; --red: #D9302A; --red-dark: #B92520;
  --grey-logo: #B3B4B8; --text: #1F2A3C; --muted: #55617A; --bg: #F6F8FB; --card: #FFFFFF; --line: #E3E8F0;
  --grad: linear-gradient(90deg, #1DA8DC 0%, #3BA74A 35%, #8DC63F 50%, #F39233 72%, #E3312A 100%);
  --radius: 18px; --shadow: 0 10px 30px -12px rgba(19, 41, 75, .22);
  --font-title: "Ubuntu", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--navy); color: #D8E1F0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--font-title); font-weight: 500; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section--dark .eyebrow { color: var(--cyan); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section--dark .lead { color: #B9C6DB; }
.head { margin-bottom: 48px; }
.head--center { text-align: center; } .head--center .lead { margin-inline: auto; }
.grad-line { height: 4px; background: var(--grad); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; font-family: var(--font-body); }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(217, 48, 42, .6); }
.btn--primary:hover { background: var(--red-dark); }
.btn--wa { background: #1E8E4E; color: #fff; }
.btn--wa:hover { background: #17733F; }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Testata */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__badge { font-family: var(--font-title); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); border: 1.5px solid var(--orange); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: #EEF3FB; }
.nav .btn { padding: 10px 18px; margin-left: 8px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--red-dark); }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
@media (max-width: 1060px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 520px) { .brand img { height: 36px; } .brand__badge { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #E7F2FB 0%, transparent 60%), #fff; }
.hero__track { display: flex; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.hero__slide { flex: 0 0 100%; min-width: 0; }
.h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.01em; }
.hero__ctrl { display: flex; align-items: center; gap: 12px; padding-bottom: 32px; margin-top: -24px; position: relative; }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; border-radius: 99px; border: 0; padding: 0; background: #CBD4E2; cursor: pointer; transition: width .3s, background .3s; }
.hero__dots button[aria-current="true"] { width: 36px; background: var(--blue); }
.hero__btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #CBD4E2; background: #fff; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.hero__btn:hover { border-color: var(--blue); color: var(--blue); }
.hero__pause { font-size: .75rem; margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .hero__track { transition: none; } }
@media (max-width: 900px) { .hero__ctrl { margin-top: 24px; } }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: clamp(48px, 8vw, 96px) 0; }
.hero p.lead { margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__img { aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.seal { position: absolute; left: -36px; bottom: 36px; width: 148px; height: 148px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.seal::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; padding: 3px; background: conic-gradient(#1DA8DC, #3BA74A, #8DC63F, #F39233, #E3312A, #1DA8DC); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.seal text { font-family: var(--font-title); font-size: 10.5px; font-weight: 500; letter-spacing: 2.4px; fill: var(--navy); }
.seal__num { font-family: var(--font-title); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--navy); text-align: center; }
.seal__num small { display: block; font-size: .7rem; letter-spacing: .2em; color: var(--blue); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal svg { animation: none; } html { scroll-behavior: auto; } .reveal { transition: none !important; } }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } .hero__img { aspect-ratio: 16/11; } .seal { left: auto; right: 16px; bottom: -40px; width: 120px; height: 120px; } .seal__num { font-size: 2.4rem; } }

/* Segnaposto immagine (quando manca la foto) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: rgba(255,255,255,.85); text-align: center; font-family: var(--font-title); padding: 20px; position: relative; }
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.ph svg { width: 56px; height: 56px; margin: 0 auto 8px; opacity: .9; }

/* Numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat__v { font-family: var(--font-title); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1; }
.stat__l { color: #B9C6DB; margin-top: 8px; font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Schede */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card--link .more { margin-top: auto; padding-top: 18px; color: var(--blue); font-weight: 600; font-size: .95rem; }
.icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: #EEF3FB; color: var(--blue); }
.icon svg { width: 28px; height: 28px; }
.card:nth-child(4n+2) .icon { background: #EAF6EC; color: var(--green); }
.card:nth-child(4n+3) .icon { background: #FEF1E4; color: #C9661A; }
.card:nth-child(4n+4) .icon { background: #FCE9E8; color: var(--red); }

/* Storia / linea del tempo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split__img { aspect-ratio: 5/4; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.timeline { position: relative; display: grid; gap: 28px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #1DA8DC, #3BA74A, #F39233, #E3312A); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -33px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl__year { font-family: var(--font-title); font-weight: 700; color: var(--blue); font-size: 1.4rem; }
.tl p { color: var(--muted); margin: 0; }
.tl img { margin-top: 12px; border-radius: 14px; max-height: 260px; object-fit: cover; width: 100%; }
.tl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .tl-row { grid-template-columns: repeat(2, 1fr); } }
.tl-mini { border-top: 4px solid; border-image: var(--grad) 1; padding-top: 16px; }
.tl-mini b { font-family: var(--font-title); font-size: 1.6rem; color: var(--navy); display: block; }
.tl-mini span { color: var(--muted); font-size: .95rem; }

/* Team */
.member { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member__img { aspect-ratio: 1/1; background: var(--bg); overflow: hidden; }
.member__img img { width: 100%; height: 100%; object-fit: cover; }
.member__body { padding: 22px 22px 26px; border-top: 4px solid; border-image: var(--grad) 1; }
.member__name { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.member__role { color: var(--blue); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.member p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Recensioni */
.review { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.stars { color: #F2A516; letter-spacing: 2px; font-size: 1.15rem; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review cite { font-style: normal; font-weight: 600; color: var(--navy); margin-top: auto; }
.review cite span { color: var(--muted); font-weight: 400; }

/* CTA fascia */
.band { background: var(--navy); border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; color: #D8E1F0; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.band h2 { color: #fff; margin-bottom: .2em; }
.band p { margin: 0; }

/* Servizio dettaglio */
.page-hero { background: var(--navy); color: #D8E1F0; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #B9C6DB; }
.crumbs { font-size: .9rem; margin-bottom: 18px; } .crumbs a { color: #9FC3EA; }
.prose p { max-width: 720px; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: #fff; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: 12px 0 0; color: var(--muted); }

/* Moduli */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .92rem; color: var(--navy); display: grid; gap: 6px; }
input, textarea, select { font: inherit; font-weight: 400; padding: 13px 14px; border: 1.5px solid #CBD4E2; border-radius: 12px; background: #fff; color: var(--text); width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; }
.msg { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.msg--ok { background: #E6F5EA; color: #1C6B33; } .msg--err { background: #FCE9E8; color: #9E2420; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 3px; }
.info-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); } .hours td + td { text-align: right; color: var(--muted); }

/* Posizioni aperte */
.job { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 14px; padding: 24px; }
.job__meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.tag { background: #EEF3FB; color: var(--blue); border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 600; }

/* Piè di pagina */
.footer { background: var(--navy-2); color: #A9B6CC; padding: 64px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: #D8E1F0; text-decoration: none; } .footer a:hover { text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__logo { background: #fff; border-radius: 14px; padding: 12px 16px; display: inline-block; margin-bottom: 16px; }
.footer__logo img { height: 40px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials svg { width: 20px; height: 20px; }

/* WhatsApp fisso */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); transition: transform .15s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* Comparsa allo scorrimento */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.center { text-align: center; } .mt { margin-top: 40px; }
