/* Atomic AoL — Accreditation & AssuranceOfLearning · a project by Marino&Carli
   Sito statico · self-contained (funziona da file:// e da CDN)
   Palette brand: navy #0f1c3f · gold #c9a961 · paper #f7f5f0 */

:root {
  --navy: #0f1c3f;
  --navy-soft: #1c2c55;
  --gold: #c9a961;
  --gold-soft: #e3d3ae;
  --paper: #f7f5f0;
  --ink: #1a1a1a;
  --muted: #5b6172;
  --ok: #0f7b4d;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
}

h1, h2, h3, .serif { font-family: var(--serif); color: var(--navy); }
h1 { font-size: 2.6rem; line-height: 1.15; font-weight: 700; }
h2 { font-size: 1.9rem; margin-bottom: .6rem; font-weight: 600; }
h3 { font-size: 1.25rem; margin-bottom: .35rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--navy); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 42px; height: 42px; border-radius: 8px; }
.brand .name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .4px; }
.brand .sub  { display: block; font-size: .68rem; color: rgba(255,255,255,.65); font-style: italic; letter-spacing: .3px; }

nav.main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav.main a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .92rem; }
nav.main a:hover { color: var(--gold-soft); }
nav.main a.active { color: var(--gold); font-weight: 600; }

.lang { display: flex; gap: 6px; align-items: center; font-size: .8rem; }
.lang a { color: rgba(255,255,255,.65); text-decoration: none; padding: 2px 7px; border-radius: 5px; }
.lang a.on { background: var(--gold); color: var(--navy); font-weight: 700; }
.lang a:hover:not(.on) { color: #fff; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 11px 22px; border-radius: 8px; font-size: .95rem;
  transition: opacity .15s ease, transform .15s ease;
}
.btn:hover { opacity: .92; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-line { border: 1.5px solid var(--gold); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; padding: 84px 0 72px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .tag { color: var(--gold-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 18px; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.18rem; max-width: 660px; margin: 18px 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .foot { margin-top: 34px; font-size: .8rem; color: rgba(255,255,255,.5); font-style: italic; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: #fff; }
.kicker { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: 2.5px; font-weight: 700; margin-bottom: 8px; }
.lead-sub { color: var(--muted); max-width: 700px; }

.grid { display: grid; gap: 22px; margin-top: 34px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid #e8e4da; border-radius: 12px;
  padding: 26px; box-shadow: 0 1px 3px rgba(15,28,63,.06);
}
section.block.alt .card { background: var(--paper); }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px;
}
.card.gold-top { border-top: 5px solid var(--gold); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 18px 8px; }
.stat .v { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--navy); }
.stat .l { font-size: .82rem; color: var(--muted); }

/* layer pipeline */
.layers { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin-top: 34px; }
@media (max-width: 820px) { .layers { grid-template-columns: 1fr; } .layers .arrow { transform: rotate(90deg); margin: -4px auto; } }
.layer { background: #fff; border: 1px solid #e8e4da; border-top: 5px solid var(--navy); border-radius: 12px; padding: 22px; }
.layer.l2 { border-top-color: var(--gold); }
.layer.l3 { border-top-color: var(--ok); }
.layer .pill { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.arrow { align-self: center; color: var(--gold); font-size: 1.6rem; font-weight: 700; }

/* pricing */
.price-card {
  max-width: 460px; margin: 36px auto 0; background: #fff;
  border-radius: 14px; border-top: 8px solid var(--gold);
  box-shadow: 0 10px 36px rgba(15,28,63,.12); overflow: hidden;
}
.price-card .inner { padding: 34px; }
.price-card .amount { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; color: var(--navy); }
.price-card .amount span { font-size: 1rem; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.price-card ul { list-style: none; margin: 22px 0; }
.price-card li { padding: 7px 0 7px 28px; position: relative; font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-card .post { background: var(--navy); color: rgba(255,255,255,.85); padding: 16px 34px; font-size: .85rem; }
.price-card .post strong { color: #fff; }

/* pricing tiers · griglia 4 livelli (Corso → Enterprise) · 11 giu 2026 */
.tiers { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 38px; align-items: stretch; }
@media (min-width: 768px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier {
  background: #fff; border: 1px solid #e8e4da; border-radius: 14px;
  padding: 28px 24px; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(15,28,63,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(15,28,63,.14); }
.tier.featured { border-top: 6px solid var(--gold); box-shadow: 0 12px 40px rgba(15,28,63,.16); }
.tier .badge-pop { display: inline-block; align-self: flex-start; background: var(--gold); color: var(--navy); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.tier .t-name { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 700; }
.tier .t-scope { color: var(--muted); font-size: .85rem; margin: 4px 0 16px; min-height: 2.4em; }
.tier .t-price { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.tier .t-price span { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.tier ul { list-style: none; margin: 18px 0 22px; flex: 1; }
.tier li { padding: 6px 0 6px 24px; position: relative; font-size: .88rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.tier .btn { width: 100%; text-align: center; box-sizing: border-box; }
.tier-foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 26px; }

/* faq */
.faq-item { background: #fff; border: 1px solid #e8e4da; border-radius: 10px; margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding: 0 22px 18px; color: var(--muted); }

/* tables */
table.spec { width: 100%; border-collapse: collapse; margin-top: 24px; background: #fff; border-radius: 10px; overflow: hidden; }
table.spec th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-size: .85rem; }
table.spec td { padding: 12px 16px; border-bottom: 1px solid #eee9de; font-size: .92rem; }

/* security badges */
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.badge { background: var(--navy); color: var(--gold-soft); padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 58px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin: 10px auto 26px; }

/* footer */
footer.site { background: #0b1530; color: rgba(255,255,255,.6); padding: 40px 0; font-size: .85rem; }
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site a { color: rgba(255,255,255,.75); text-decoration: none; }
footer.site a:hover { color: var(--gold-soft); }
footer.site .brandline { font-family: var(--serif); color: #fff; font-size: 1rem; }
footer.site .legal { margin-top: 18px; font-size: .75rem; color: rgba(255,255,255,.4); }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 26px; color: var(--navy-soft); }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: .4rem; }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  .hero { padding: 56px 0 48px; }
  body { font-size: 15.5px; }
}

/* ============================================================
   Polish pass · 11 giugno 2026 · solo additivo (markup intatto)
   ============================================================ */

/* selezione testo on-brand */
::selection { background: var(--gold); color: var(--navy); }

/* accessibilità · focus visibile coerente (tastiera) */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* hero · entrata morbida CSS-only (nessun JS richiesto) */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .tag    { animation: rise .5s ease both; }
.hero h1      { animation: rise .55s ease .08s both; }
.hero p.lead  { animation: rise .6s ease .16s both; }
.hero .cta    { animation: rise .6s ease .24s both; }
.hero .foot   { animation: rise .6s ease .32s both; }

/* card · lift al passaggio (era statica) */
.card, .layer, .price-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover, .layer:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,28,63,.13);
}
.price-card:hover { box-shadow: 0 16px 44px rgba(15,28,63,.18); }

/* bottoni · ombra al lift (il translateY c'era già) */
.btn:hover { box-shadow: 0 8px 22px rgba(15,28,63,.18); }
.btn-gold:hover, .btn-navy:hover { opacity: 1; }

/* nav · underline animata oro */
nav.main a { position: relative; padding-bottom: 3px; }
nav.main a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
nav.main a:hover::after, nav.main a.active::after { transform: scaleX(1); }

/* faq · apertura morbida + bordo attivo */
.faq-item { transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--gold); }
.faq-item .a { animation: rise .25s ease both; }

/* tabelle · zebra + hover riga */
table.spec tbody tr:nth-child(even) td { background: #fbfaf6; }
table.spec tbody tr:hover td { background: #f3efe5; }

/* footer · separatore oro sottile */
footer.site { border-top: 3px solid var(--gold); }

/* stat · numero oro su hover (richiamo brand) */
.stat { transition: transform .2s ease; }
.stat:hover { transform: translateY(-3px); }
.stat:hover .v { color: var(--gold); transition: color .2s ease; }

/* ============================================================
   Motion system · 11 giu 2026 · classi usate da assets/motion.js
   ============================================================ */

/* reveal automatico (applicato via JS · niente markup da toccare) */
.m-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.m-reveal.m-in { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in, .reveal.m-in { opacity: 1; transform: none; }

/* header · stato compatto con blur stile Apple */
header.site { transition: background .3s ease, box-shadow .3s ease, padding .3s ease; }
header.site.scrolled {
  background: rgba(15, 28, 63, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 8px 30px rgba(11, 21, 48, .35);
}
header.site.scrolled .bar { padding: 9px 0; }
header.site .bar { transition: padding .3s ease; }

/* ============================================================
   Hero cinematic · homepage · 11 giu 2026 (stile "keynote")
   ============================================================ */
.hero-cine {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(201,169,97,.16), transparent 62%),
    radial-gradient(700px 420px at 12% 85%, rgba(28,44,85,.9), transparent 70%),
    linear-gradient(168deg, #0b1530 0%, var(--navy) 45%, var(--navy-soft) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-cine::after { /* linea oro orizzonte */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.55), transparent);
}
.hero-cine .hc-inner { width: 100%; will-change: transform, opacity; }
.hero-cine .tag { color: var(--gold-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 22px; }
.hero-cine h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.5px;
  max-width: 880px;
}
.hero-cine h1 em { font-style: normal; color: var(--gold); }
.hero-cine p.lead { color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 640px; margin: 26px 0 36px; }
.hero-cine .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cine .foot { margin-top: 42px; font-size: .8rem; color: rgba(255,255,255,.45); font-style: italic; }

/* parole del titolo · entrata sequenziale al load */
.hw { display: inline-block; opacity: 0; transform: translateY(28px) rotate(.4deg); animation: hw-in .7s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes hw-in { to { opacity: 1; transform: none; } }
.hero-cine .tag    { opacity: 0; animation: hw-in .6s ease .05s forwards; }
.hero-cine p.lead  { opacity: 0; animation: hw-in .7s ease .75s forwards; }
.hero-cine .cta    { opacity: 0; animation: hw-in .7s ease .95s forwards; }
.hero-cine .foot   { opacity: 0; animation: hw-in .7s ease 1.15s forwards; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px;
  opacity: 0; animation: hw-in .8s ease 1.6s forwards;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 9px;
  margin-left: -2px; border-radius: 2px; background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(13px); opacity: .25; } }

/* statement · frase manifesto gigante centrata (stile keynote) */
.statement { padding: 110px 0; background: #fff; text-align: center; }
.statement p {
  font-family: var(--serif); color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.22; font-weight: 600;
  max-width: 900px; margin: 0 auto;
}
.statement p em { font-style: normal; color: var(--gold); }
.statement .who { margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* stats hero · numeri grandi su navy */
.hero-cine .stats { border-top: 1px solid rgba(255,255,255,.14); padding-top: 30px; margin-top: 52px; opacity: 0; animation: hw-in .8s ease 1.3s forwards; }
.hero-cine .stat .v { color: var(--gold); font-size: 2.5rem; }
.hero-cine .stat .l { color: rgba(255,255,255,.55); }
.hero-cine .stat:hover .v { color: var(--gold-soft); }

@media (max-width: 600px) {
  .hero-cine { min-height: 86vh; }
  .hero-cine .stats { margin-top: 36px; }
}

/* riduzione movimento · spegne tutto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .m-reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .hw, .hero-cine .tag, .hero-cine p.lead, .hero-cine .cta, .hero-cine .foot,
  .hero-cine .stats, .scroll-cue { opacity: 1 !important; transform: none !important; }
}
