/* AlaRiservo — sito istituzionale.
   Linguaggio visivo allineato ad alaconnect.it (navy, blu, arancio, Avenir Next, pill, eyebrow con punto arancio)
   per rendere evidente che AlaRiservo è un prodotto ALAconnect. Nessun font o script esterno. */
:root {
  --navy-950: #04111d; --navy-900: #071724; --navy-850: #0a1d2c; --navy-800: #0d2536;
  --blue-400: #55b7f0; --blue-600: #1886d0; --blue-700: #0f70b7;
  --orange-400: #ffa72c; --orange-500: #f39200; --orange-700: #a85600;
  --paper: #f3f6f7; --paper-blue: #eaf1f5; --white: #fff;
  --ink: #0d2635; --copy: #405866; --muted: #6f828c;
  --line: #0d263524; --line-dark: #ffffff24;
  --ok: #1e6b45; --ok-bg: #e6f2ea; --soon: #5a6474; --soon-bg: #eceff4; --part: #0e6b78; --part-bg: #e3f3f5;
  --font: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 78rem; --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --r-sm: .5rem; --r-md: 1rem; --r-lg: 1.75rem; --pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Header scuro come alaconnect.it */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--navy-900) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: #ffffffa8; letter-spacing: .04em; }
nav.main ul { display: flex; gap: 6px 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav.main a { color: #ffffffd9; text-decoration: none; font-size: 15px; font-weight: 600; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--orange-400); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--pill); font-weight: 700; text-decoration: none; transition: background .18s var(--ease), transform .18s var(--ease); }
.btn.primary { background: var(--orange-500); color: var(--navy-950); box-shadow: 0 10px 30px #f392004d; }
.btn.primary:hover { background: var(--orange-400); }
.btn.ghost { color: var(--white); border: 1px solid var(--line-dark); }
.btn.ghost:hover { background: #ffffff17; }
.btn.dark { background: var(--navy-900); color: var(--white); }
.btn.dark:hover { background: var(--blue-700); }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.header-cta { min-height: 40px; padding: 0 18px; font-size: 14px; }
details.menu { display: none; }
@media (max-width: 960px) {
  nav.main, .header-cta { display: none; }
  details.menu { display: block; position: relative; }
  details.menu summary { list-style: none; cursor: pointer; color: var(--white); border: 1px solid var(--line-dark); padding: 8px 14px; border-radius: var(--pill); font-weight: 700; }
  details.menu summary::-webkit-details-marker { display: none; }
  details.menu ul { position: absolute; right: 0; top: 52px; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: var(--navy-850); border: 1px solid var(--line-dark); border-radius: var(--r-md); box-shadow: 0 20px 50px #0008; }
  details.menu a { display: block; padding: 11px 14px; color: var(--white); text-decoration: none; border-radius: 10px; font-weight: 600; }
  details.menu a:hover { background: #ffffff14; }
}

/* Sezioni */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px #f3920026; }
.dark .eyebrow { color: #ffffffc4; }
.hero { position: relative; overflow: hidden; color: var(--white); background:
  radial-gradient(60rem 40rem at 78% 30%, #1886d033 0%, transparent 60%),
  radial-gradient(40rem 30rem at 10% 100%, #f3920014 0%, transparent 60%), var(--navy-900); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: .98; letter-spacing: -.035em; margin: 18px 0 22px; font-weight: 700; }
.hero h1 .accent { color: var(--blue-400); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: #ffffffcc; max-width: 34ch; margin: 0; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.micro { font-family: var(--mono); font-size: 13px; color: #ffffff9e; margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.micro::before { content: ""; width: 26px; height: 1px; background: var(--orange-500); }
.phone { justify-self: center; position: relative; width: min(300px, 70vw); border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #1d3448, #0b1b29); box-shadow: 0 40px 90px #0009, inset 0 0 0 1px #ffffff1f; }
.phone img { border-radius: 36px; width: 100%; }
.phone .tag { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--navy-850); border: 1px solid var(--line-dark); padding: 7px 12px; border-radius: var(--pill); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.phone .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); }
.phone .t1 { left: -84px; top: 30%; } .phone .t2 { right: -70px; top: 50%; } .phone .t3 { left: -56px; bottom: 7%; }
.phone .t2::before { background: var(--blue-400); }
.stats { border-top: 1px solid var(--line-dark); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; padding-top: 28px; padding-bottom: 36px; }
.stats .wrap > div { color: #ffffffc4; font-size: 15px; }
.stats .wrap > div::before { content: ""; display: block; width: 28px; height: 2px; background: var(--orange-500); margin-bottom: 12px; }
.stats strong { display: block; color: var(--white); font-size: 17px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .phone { width: 230px; } .phone .tag { display: none; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
}
section.block { padding: clamp(56px, 8vw, 104px) 0; }
section.block.white { background: var(--white); }
section.block.blue { background: var(--paper-blue); }
section.block.dark { background: var(--navy-900); color: var(--white); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 16px; } }
h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.02; letter-spacing: -.03em; margin: 16px 0 20px; }
h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.028em; margin: 0 0 18px; }
h3 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 8px; }
p.lead { font-size: clamp(18px, 2vw, 20px); color: var(--copy); max-width: 62ch; }
.dark p.lead, .dark p { color: #ffffffcc; }
.page-hero { background: radial-gradient(50rem 30rem at 85% 0%, #1886d02e 0%, transparent 60%), var(--navy-900); color: var(--white); padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.page-hero p.lead { color: #ffffffcc; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: transform .42s var(--ease), box-shadow .42s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px #0d26351a; }
.card p { margin: 0; color: var(--copy); }
.dark .card { background: var(--navy-850); border-color: var(--line-dark); }
.dark .card p { color: #ffffffbf; }
.num { font-family: var(--mono); font-size: 13px; color: var(--orange-700); display: block; margin-bottom: 14px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--pill); margin-bottom: 14px; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.soon { color: var(--soon); background: var(--soon-bg); }
.pill.part { color: var(--part); background: var(--part-bg); }
.note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange-500); padding: 16px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--copy); }
.dark .note { background: var(--navy-850); border-color: var(--line-dark); border-left-color: var(--orange-500); }
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { position: relative; padding-left: 30px; margin: 10px 0; }
ul.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--orange-500); border-bottom: 2.5px solid var(--orange-500); transform: rotate(-45deg); }
ul.cross li::before { border: 0; width: 14px; height: 2.5px; top: .75em; background: var(--muted); transform: none; }
.table-scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-blue); font-size: 14px; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; color: var(--orange-500); font-size: 24px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--copy); margin: 12px 0 0; }
.cta-band { background: radial-gradient(40rem 20rem at 90% 50%, #f392002e, transparent 60%), var(--navy-900); color: var(--white); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); }
.draft { background: var(--part-bg); color: var(--part); padding: 14px 18px; border-radius: var(--r-md); font-weight: 700; }
.site-footer { background: var(--navy-950); color: #ffffffb3; padding: 56px 0 40px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #ffffffd9; text-decoration: none; }
.site-footer a:hover { color: var(--orange-400); }
.site-footer .legal { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 22px; font-size: 13px; font-family: var(--mono); color: #ffffff8c; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.dark .num { color: var(--orange-500); }
