/* =========================================================================
   Sii Re Academy — Formazione Consapevole Integrata
   Foglio di stile unico. CSS custom, zero framework.
   Palette derivata dal logo: blu reale #0040A0 -> famiglia notte/navy,
   oro #F0D830/#E0B050 -> #C9A227 (accento) e #E8C766 (decorativo).
   60% avorio caldo · 30% notte · 10% oro (solo CTA, occhielli, filetti).
   ========================================================================= */

/* ---------- 1. FONT SELF-HOSTED (niente terze parti, niente cookie) ------ */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- 2. DESIGN SYSTEM -------------------------------------------- */
:root {
  --night:      #0A1222;
  --night-2:    #101C33;
  --brand:      #0B2A5B;
  --brand-2:    #16386F;
  --accent:     #C9A227;
  --accent-2:   #E8C766;
  --accent-ink: #7B5D0D;

  --ink:   #0A1222;
  --text:  #3A4150;
  --muted: #5F6672;

  --bg:      #FBF9F4;
  --bg-alt:  #F3EEE4;
  --line:    #E6DECF;
  --line-on-dark: rgba(232, 199, 102, .18);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(10, 18, 34, .06);
  --shadow-md: 0 10px 30px rgba(10, 18, 34, .10);
  --shadow-lg: 0 24px 60px rgba(10, 18, 34, .18);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --nav-h: 124px;
  --nav-h-scrolled: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 3. RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h-scrolled) + 16px);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent-ink); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-header :focus-visible,
.site-footer :focus-visible, .hero :focus-visible, .cta-banner :focus-visible,
.page-hero :focus-visible { outline-color: var(--accent-2); }
::selection { background: var(--accent-2); color: var(--night); }

/* ---------- 4. TIPOGRAFIA ------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.68;
  color: var(--muted);
  max-width: 62ch;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ''; width: 30px; height: 1px; background: var(--accent); flex: none;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--accent-2); }
.section-dark .eyebrow::before, .hero .eyebrow::before { background: var(--accent-2); }

/* ---------- 5. LAYOUT ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(68px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--night); color: #CBD3E1; position: relative; }
.section-dark::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(560px, 76%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lead { color: #AEB9CC; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .lead { margin-inline: auto; }
.text-center { text-align: center; }

/* ---------- 6. BOTTONI --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .93rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--night); box-shadow: 0 8px 22px rgba(201,162,39,.28); }
.btn-primary:hover { background: var(--accent-2); color: var(--night); box-shadow: 0 12px 28px rgba(201,162,39,.36); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--night); border-color: #fff; }
.btn-sm { padding: 11px 22px; font-size: .85rem; }

.link-more {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .9rem; letter-spacing: .03em;
  color: var(--accent-ink);
}
.link-more::after { content: '→'; transition: transform .25s var(--ease); }
.link-more:hover::after { transform: translateX(4px); }
.section-dark .link-more { color: var(--accent-2); }

/* ---------- 7. HEADER + NAVIGAZIONE -------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--night);
  border-bottom: 1px solid var(--line-on-dark);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(10,18,34,.28); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--nav-h);
  transition: height .3s var(--ease);
}
.site-header.scrolled .nav-inner { height: var(--nav-h-scrolled); }

.nav-brand { display: flex; align-items: center; flex: none; }
.nav-brand img {
  height: 100px; width: auto;
  transition: height .3s var(--ease);
}
.site-header.scrolled .nav-brand img { height: 66px; }

.nav { display: flex; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  display: block; padding: 10px 15px;
  color: #D6DDE9; font-size: .93rem; font-weight: 500; letter-spacing: .02em;
  border-radius: 10px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-menu a:hover { color: var(--accent-2); background: rgba(232,199,102,.08); }
.nav-menu a[aria-current="page"] { color: var(--accent-2); }
.nav-menu .nav-cta { margin-left: 12px; }
.nav-menu .nav-cta a, .nav-menu a.btn {
  background: var(--accent); color: var(--night); padding: 12px 24px; border-radius: 999px;
}
.nav-menu .nav-cta a:hover, .nav-menu a.btn:hover { background: var(--accent-2); color: var(--night); }

/* --- menu mobile: blocco standard Royaletiger (templates/menu.css) ------- */
body.is-locked {
  position: fixed; width: 100%; overflow: hidden;
  top: var(--scroll-lock-top, 0); overflow-anchor: none;
}
.nav-overlay { display: none; }
.site-header.has-menu-open {
  backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--night);
}
.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line-on-dark); border-radius: 12px;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.6px; background: var(--accent-2);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89;
    background: rgba(5, 9, 18, .55);
    border: 0; padding: 0; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open {
    opacity: 1; visibility: visible;
    transition: opacity .38s var(--ease), visibility 0s linear 0s;
  }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: var(--night);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 100px 26px 40px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open {
    transform: none; visibility: visible;
    transition: transform .38s var(--ease), visibility 0s linear 0s;
  }
  .nav-menu a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-menu .nav-cta { margin: 14px 0 0; }
  .nav-menu .nav-cta a { display: block; text-align: center; }
}

/* ---------- 8. HERO ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  padding: clamp(80px, 10vw, 130px) 0;
  overflow: hidden;
  background: var(--night);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7,13,28,.93) 0%, rgba(8,17,36,.82) 45%, rgba(9,20,44,.55) 100%),
    linear-gradient(to top, rgba(7,12,26,.85), rgba(7,12,26,0) 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero .lead { color: #C3CCDC; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--line-on-dark);
  list-style: none;
}
.hero-badges li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .86rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: #A9B4C8;
}
.hero-badges li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* hero interno (pagine secondarie) */
.page-hero {
  position: relative; background: var(--night);
  padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 76px);
  overflow: hidden;
}
.page-hero .hero-media::after {
  background: linear-gradient(100deg, rgba(7,13,28,.94) 0%, rgba(9,19,40,.78) 60%, rgba(11,24,50,.62) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.page-hero .lead { color: #BAC4D6; }

.breadcrumb { margin: 0 0 18px; font-size: .84rem; color: #8E9AB0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.breadcrumb li::after { content: '/'; margin-left: .45rem; color: #55617A; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: #AEB9CC; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb [aria-current] { color: var(--accent-2); }

/* ---------- 9. CARD ------------------------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-2); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .98rem; }
.card p { flex: 1; }
.card .link-more { margin-top: 20px; align-self: flex-start; }

.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--night), var(--brand));
  margin-bottom: 22px;
}
.card-icon svg { width: 27px; height: 27px; stroke: var(--accent-2); fill: none; stroke-width: 1.6; }

.section-dark .card { background: var(--night-2); border-color: var(--line-on-dark); box-shadow: none; }
.section-dark .card p { color: #A8B3C7; font-size: 1rem; line-height: 1.7; }
.section-dark .card:hover { border-color: var(--accent); }

/* numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 14px; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; color: var(--accent-2);
}
.stat span { display: block; margin-top: 10px; font-size: .86rem; letter-spacing: .09em; text-transform: uppercase; color: #9FAABE; }

/* ---------- 10. SPLIT (immagine + testo) --------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.split-media img { position: relative; z-index: 1; }
.split-media::before {
  content: ''; position: absolute; inset: auto -18px -18px auto;
  width: 58%; height: 58%; border: 1px solid var(--accent);
  border-radius: var(--radius-lg); z-index: 0;
}
.split-reverse .split-media { order: 2; }
.split ul.ticks { list-style: none; margin: 24px 0 0; display: grid; gap: 12px; }
.split ul.ticks li { position: relative; padding-left: 32px; font-size: .99rem; }
.split ul.ticks li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: inset 0 0 0 4px var(--bg);
}
.section-dark .split ul.ticks li::before { box-shadow: inset 0 0 0 4px var(--night); }

/* ---------- 11. PILASTRI (aree) ------------------------------------------ */
.pillar {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 66px); align-items: center;
  padding: clamp(40px, 5vw, 62px) 0;
  border-top: 1px solid var(--line);
}
.pillar:first-of-type { border-top: 0; padding-top: 0; }
.pillar:nth-of-type(even) .pillar-media { order: 2; }
.pillar-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pillar-num {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--accent-ink); letter-spacing: .12em;
}

/* ---------- 11-bis. PASSI (come si comincia) ---------------------------- */
.passi { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: p; }
.passi li {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 32px 34px; box-shadow: var(--shadow-sm);
}
.passi li::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.passo-n {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--night); color: var(--accent-2);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  margin-bottom: 20px;
}
.passi h3 { font-size: 1.32rem; margin-bottom: .4em; }
.passi p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- 11-ter. FAQ A FISARMONICA ----------------------------------
   I pannelli partono APERTI nel markup: se il JS non parte (o è bloccato)
   le risposte restano leggibili e indicizzabili. È il JS a chiuderli. */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq .faq-item { border-bottom: 1px solid var(--line); padding: 0; }
.faq .faq-item h3 { margin: 0; font-size: 1.12rem; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: var(--ink);
  transition: color .25s var(--ease);
}
.faq-q:hover { color: var(--accent-ink); }
.faq-q::after {
  content: ''; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-a { padding: 0 4px 24px; color: var(--text); max-width: 74ch; }
.faq-a p { margin: 0; font-size: 1rem; }

/* ---------- 12. GALLERIA + LIGHTBOX -------------------------------------- */
/* Griglia a ritmo variabile: due riquadri grandi rompono la monotonia della
   scacchiera. Righe ad altezza fissa (non aspect-ratio): in un grid gli elementi
   si stirano sulla riga e l'aspect-ratio verrebbe ignorato. */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 212px;
  grid-auto-flow: dense;   /* i riquadri piccoli tappano i buchi lasciati dai grandi */
  gap: 16px;
}
.gallery button {
  position: relative;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; display: block;
  box-shadow: var(--shadow-sm);
}
.gallery button.g-big { grid-column: span 2; grid-row: span 2; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.gallery button:hover img, .gallery button:focus-visible img {
  transform: scale(1.05); filter: saturate(1.06);
}
/* didascalia: compare al passaggio, non copre mai l'immagine a riposo */
.gallery button::after {
  content: attr(data-titolo);
  position: absolute; inset: auto 0 0 0;
  padding: 34px 16px 14px;
  font-size: .82rem; font-weight: 500; line-height: 1.35; text-align: left;
  color: #fff;
  background: linear-gradient(to top, rgba(7,12,26,.88), rgba(7,12,26,0));
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery button:hover::after, .gallery button:focus-visible::after {
  opacity: 1; transform: none;
}

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  background: rgba(5, 9, 18, .93); padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(94vw, 1000px); max-height: 86vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.07);
  color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
  transition: background .25s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #C3CCDC; font-size: .9rem; padding: 0 70px; }

/* ---------- 13. BLOG ----------------------------------------------------- */
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.post-card h3 { font-size: 1.32rem; }
.post-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.post-card .link-more { margin-top: 18px; align-self: flex-start; }

.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-top: 2em; }
.article h3 { font-size: 1.3rem; margin-top: 1.7em; }
.article ul, .article ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article li { margin-bottom: .55em; }
.article img { border-radius: var(--radius-lg); margin: 2em auto; }
.article-intro {
  font-size: 1.15rem; line-height: 1.7; color: var(--ink);
  border-left: 3px solid var(--accent); padding-left: 24px; margin-bottom: 2em;
}
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { margin: 0 0 .5em; font-size: 1.15rem; }
.article-cta {
  margin-top: 3em; padding: 34px; border-radius: var(--radius-lg);
  background: var(--bg-alt); border: 1px solid var(--line); text-align: center;
}

/* ---------- 14. FORM ----------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 5vw, 68px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--night), var(--brand));
}
.contact-list .ico svg { width: 20px; height: 20px; stroke: var(--accent-2); fill: none; stroke-width: 1.7; }
.contact-list h3 { margin: 0 0 .2em; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list p, .contact-list a { margin: 0; font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--accent-ink); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,39,.16);
}
.field textarea { min-height: 148px; resize: vertical; }
.field-check { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field-check input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--accent); }
.form .btn { width: 100%; margin-top: 6px; }
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1.4em; color: var(--accent-ink); font-weight: 500; }
.form-alt { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- 15. CTA BANNER ----------------------------------------------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--night) 0%, var(--brand) 100%);
  color: #fff; text-align: center;
  padding: clamp(60px, 8vw, 104px) 0;
}
.cta-banner::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.20) 0%, rgba(201,162,39,0) 70%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #BFC9DB; max-width: 58ch; margin-inline: auto; }
.cta-banner .eyebrow { color: var(--accent-2); justify-content: center; max-width: none; }
.cta-banner .eyebrow::before { background: var(--accent-2); }
.cta-banner .hero-cta { justify-content: center; }

/* ---------- 16. FOOTER --------------------------------------------------- */
.site-footer { background: var(--night); color: #98A4B8; padding: clamp(56px, 7vw, 84px) 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand-logo { height: 96px; width: auto; margin-bottom: 20px; }
.site-footer .footer-h { color: #fff; font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; line-height: 1.3; }
.site-footer ul { list-style: none; display: grid; gap: 11px; }
.site-footer a { color: #98A4B8; }
.site-footer a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line-on-dark);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.footer-social a:hover { background: rgba(232,199,102,.12); border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 60px); padding: 24px 28px 28px;
  border-top: 1px solid var(--line-on-dark);
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  align-items: center; justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-credit a { color: var(--accent-2); font-weight: 600; }

/* ---------- 17. CONTATTO FLOTTANTE (mobile) ------------------------------ */
.quick-contact { display: none; }
@media (max-width: 768px) {
  .quick-contact {
    display: flex; position: fixed; z-index: 85;
    left: 16px; right: 16px; bottom: 16px; gap: 10px;
  }
  .quick-contact a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 14px; border-radius: 14px;
    font-size: .92rem; font-weight: 600;
    box-shadow: var(--shadow-lg);
  }
  .quick-contact .qc-call { background: var(--accent); color: var(--night); }
  .quick-contact .qc-wa { background: #0F7A3D; color: #fff; }  /* verde WhatsApp scurito: sul #1FA855 il bianco stava a 3.09 */
  .quick-contact svg { width: 18px; height: 18px; fill: currentColor; }
  body { padding-bottom: 78px; }
}

/* ---------- 18. REVEAL ---------------------------------------------------
   I contenuti partono VISIBILI. Il JS aggiunge .js-anim su <html> e solo
   allora scattano le animazioni: senza JS (o col JS bloccato) la pagina
   resta leggibile e indicizzabile.                                         */
.js-anim .reveal { opacity: 0; transform: translateY(16px); }
.js-anim .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js-anim .reveal.d1 { transition-delay: .07s; }
.js-anim .reveal.d2 { transition-delay: .14s; }
.js-anim .reveal.d3 { transition-delay: .21s; }

/* ---------- 19. BREAKPOINT ----------------------------------------------- */
@media (max-width: 1024px) {
  :root { --nav-h: 104px; }
  .nav-brand img { height: 84px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 92px; --nav-h-scrolled: 76px; }
  .nav-brand img { height: 74px; }
  .site-header.scrolled .nav-brand img { height: 62px; }
  .split, .pillar, .contact-grid { grid-template-columns: 1fr; }
  .passi { grid-template-columns: 1fr; }
  .split-reverse .split-media, .pillar:nth-of-type(even) .pillar-media { order: 0; }
  .split-media::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .faq-q { font-size: 1.08rem; padding: 19px 2px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; gap: 12px; }
  .gallery button.g-big { grid-column: span 2; grid-row: span 1; }
  /* su touch non c'e' hover: la didascalia resta visibile ma tagliata a due
     righe, altrimenti su un riquadro di 168px copre meta' immagine. */
  .gallery button::after {
    opacity: 1; transform: none; font-size: .74rem; line-height: 1.3;
    padding: 22px 11px 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero { min-height: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }
  .lightbox-caption { padding: 0 20px; bottom: 76px; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .card { padding: 30px 24px; }
  .gallery { grid-auto-rows: 136px; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .nav-menu, .nav-overlay { transition: none; }
}

@media print {
  .site-header, .site-footer, .quick-contact, .cta-banner, .nav-overlay { display: none !important; }
}
