/* Pagina "Chi siamo" — tecnologia AVR e servizi */

.about { --avr-1: #fd9526; --avr-2: #ff6a1a; --ink: #1d1b19; }

/* ---------- apertura */
.ab-hero { padding: 56px 0 64px; overflow: hidden; background: radial-gradient(1100px 520px at 85% 20%, var(--primary-soft), transparent 70%); }
.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.ab-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.ab-kicker::before { content: ""; width: 36px; height: 3px; border-radius: 3px; background: var(--brand); }
.ab-hero h1 { font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -.03em; line-height: 1.08; font-weight: 400; }
.ab-hero h1 em { font-style: normal; color: var(--brand); font-weight: 500; }
.ab-hero .lead { font-size: 19px; color: var(--text-2); max-width: 620px; margin: 20px 0 0; line-height: 1.6; }
.ab-hero .lead b { color: var(--text); font-weight: 500; }
.ab-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ab-actions.center { justify-content: center; }
.ab-proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 14px; }
.ab-proof li { display: inline-flex; align-items: center; gap: 6px; }
.ab-proof .ms { color: var(--brand); font-size: 20px; }

.ab-hero-visual { position: relative; justify-self: center; width: min(100%, 360px); margin: 12px 0; }
.ab-hero-visual img { width: 100%; aspect-ratio: 420 / 520; object-fit: cover; object-position: 30% 50%; border-radius: 32px; box-shadow: 0 24px 60px -20px rgba(179, 80, 0, .45); }
/* video verticale AVR (9:16) */
.ab-video { width: min(100%, 330px); margin: 0; }
.ab-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 32px; background: #fffaf5; box-shadow: 0 30px 70px -24px rgba(179, 80, 0, .5), 0 0 0 1px rgba(179, 80, 0, .08); }
.ab-video-btn { position: absolute; right: 14px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(29, 27, 25, .55); color: #fff; cursor: pointer; opacity: .8; transition: opacity .2s; }
.ab-video-btn:hover, .ab-video-btn:focus-visible { opacity: 1; }
.ab-video-btn .ms { font-size: 22px; }
/* animazione "Come funziona" (iframe con assets/avr/come-funziona.html) */
.ab-anim { width: min(100%, 440px); margin: 0; }
.ab-anim iframe { display: block; width: 100%; height: 560px; border: 0; border-radius: 28px; background: #1d1b19; box-shadow: 0 30px 70px -24px rgba(29, 27, 25, .55); color-scheme: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ab-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--pill); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-2); white-space: nowrap; }
.ab-chip.live { top: 22px; left: -28px; }
.ab-chip.live i { width: 10px; height: 10px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: ab-pulse 1.6s infinite; }
.ab-chip.agent { bottom: 70px; right: -34px; border-radius: 18px; padding: 10px 16px 10px 10px; }
.ab-chip.agent b { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; }
.ab-chip.agent small { display: block; font-size: 12px; color: var(--text-2); font-weight: 400; }
.ab-chip .avatar.sm { width: 36px; height: 36px; font-size: 20px; }
.ab-chip.km { bottom: 18px; left: -16px; color: var(--green); }
.ab-chip.km .ms { font-size: 18px; }
@keyframes ab-pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }

/* ---------- AVR */
.ab-avr { position: relative; padding: 72px 0; color: #fff; background:
    radial-gradient(900px 400px at 10% 0%, rgba(253, 149, 38, .35), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(255, 106, 26, .28), transparent 60%),
    var(--ink); overflow: hidden; scroll-margin-top: 40px; }
.ab-avr-head { max-width: 820px; }
.ab-patent { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: var(--pill); background: rgba(253, 149, 38, .16); color: #ffc58c; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(253, 149, 38, .35); }
.ab-patent .ms { font-size: 18px; color: var(--avr-1); }
.ab-avr h2 { font-size: clamp(32px, 4.8vw, 52px); letter-spacing: -.025em; margin-top: 18px; line-height: 1.1; }
.avr-word { font-weight: 800; letter-spacing: .02em; background: linear-gradient(90deg, var(--avr-1), var(--avr-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: .18em; }
.ab-avr-head p { font-size: 19px; line-height: 1.65; color: rgba(255, 255, 255, .78); margin-top: 18px; }
.ab-avr-head p b { color: #fff; font-weight: 500; }

.ab-avr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.ab-benefit { padding: 24px; border-radius: var(--radius-xl); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ab-benefit .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--avr-1), var(--avr-2)); color: #fff; }
.ab-benefit.green .ic { background: linear-gradient(135deg, #34a853, #188038); }
.ab-benefit h3 { font-size: 19px; font-weight: 500; margin: 16px 0 8px; }
.ab-benefit p { color: rgba(255, 255, 255, .72); margin: 0; font-size: 15px; line-height: 1.55; }

.ab-how { margin-top: 48px; padding: 28px; border-radius: var(--radius-xl); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.ab-how h3 { font-size: 22px; font-weight: 400; margin-bottom: 20px; }
.ab-how ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ab-how li { counter-increment: s; position: relative; padding-top: 52px; }
.ab-how li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; background: var(--avr-1); color: var(--ink); }
.ab-how li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 50px; right: -8px; height: 2px; background: repeating-linear-gradient(90deg, rgba(253, 149, 38, .6) 0 6px, transparent 6px 12px); }
.ab-how b { display: block; font-weight: 500; font-size: 17px; }
.ab-how span { display: block; color: rgba(255, 255, 255, .7); font-size: 15px; margin-top: 4px; }

.ab-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ab-for { padding: 28px; border-radius: var(--radius-xl); background: #fff; color: var(--text); display: flex; flex-direction: column; }
.ab-for .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #b35000; }
.ab-for .eyebrow .ms { font-size: 18px; }
.ab-for ul { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 10px; flex: 1; }
.ab-for li { display: flex; gap: 10px; align-items: flex-start; color: #3c4043; }
.ab-for li .ms { color: var(--avr-1); font-size: 22px; flex-shrink: 0; }
.ab-for .btn { align-self: flex-start; background: #b35000; color: #fff; }
.ab-for .btn:hover { background: #943f00; }

/* ---------- servizi */
.ab-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ab-svc { border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--outline); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.ab-svc:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ab-svc .ph { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.ab-svc .ph img { width: 100%; height: 100%; object-fit: cover; }
.ab-svc .stat-ph { display: grid; place-items: center; text-align: center; background: linear-gradient(140deg, #ffe3cc, #fff4ea 70%); }
.ab-svc .stat-ph b { display: block; font-size: clamp(46px, 5vw, 60px); font-weight: 500; letter-spacing: -.03em; color: #b35000; line-height: 1; }
.ab-svc .stat-ph span { color: #4d5156; font-size: 15px; }
.ab-svc .body { padding: 20px 22px 24px; }
.ab-svc .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.ab-svc .tag .ms { font-size: 17px; }
.ab-svc h3 { font-size: 20px; margin: 8px 0 8px; }
.ab-svc p { color: var(--text-2); margin: 0; font-size: 15px; line-height: 1.6; }
.ab-svc p b { color: var(--text); font-weight: 500; }
.ab-svc.more { background: var(--primary-soft); border-color: var(--primary-container); }
.ab-svc.more ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.ab-svc.more li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.ab-svc.more li .ms { color: var(--brand); font-size: 20px; flex-shrink: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ab-svc .stat-ph { background: linear-gradient(140deg, #4a2600, #2a1d14 70%); }
  :root:not([data-theme="light"]) .ab-svc .stat-ph b { color: var(--brand-2); }
  :root:not([data-theme="light"]) .ab-svc .stat-ph span { color: var(--text-2); }
}

/* ---------- sede */
.ab-office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ab-office-pics { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.ab-office-pics img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-l); aspect-ratio: 4 / 3; }
.ab-office-pics img.big { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.ab-h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.02em; margin-bottom: 12px; }
.ab-contacts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ab-contacts li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.ab-contacts .ms { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); font-size: 20px; flex-shrink: 0; }

/* ---------- chiusura */
.ab-final { padding: 72px 0 80px; text-align: center; background: radial-gradient(700px 300px at 50% 0%, var(--primary-soft), transparent 70%); }
.ab-final h2 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.025em; line-height: 1.12; }
.ab-final h2 em { font-style: normal; color: var(--brand); }
.ab-final p { color: var(--text-2); font-size: 18px; margin: 16px auto 0; max-width: 560px; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .ab-avr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-how ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-how li:nth-child(2)::after { display: none; }
}
@media (max-width: 860px) {
  .ab-hero-grid, .ab-office { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ab-hero-visual { width: min(100%, 320px); }
  .ab-video { width: min(78vw, 340px); }
  .ab-anim { width: min(100%, 520px); }
  .ab-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ab-hero { padding-top: 24px; }
  .ab-hero .lead, .ab-avr-head p { font-size: 17px; }
  .ab-avr { padding: 52px 0; }
  .ab-avr-grid, .ab-services, .ab-how ol { grid-template-columns: minmax(0, 1fr); }
  .ab-how li::after { display: none; }
  .ab-how { padding: 22px; }
  .ab-chip.live { left: -6px; }
  .ab-chip.agent { right: -6px; }
  .ab-chip.km { left: -6px; }
  .ab-actions .btn { flex: 1 1 100%; }
}
