/* ===== IMPULSA — design tokens v2 ===== */
/* Tipografia da Documento di Posizionamento §11: Archivo (titoli/numeri), Inter (testo/menu/bottoni).
   Nunito resta SOLO nel file del logo (wordmark), mai nel corpo del sito. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #FAFAF8;      /* bianco carta freddo — sfondo principale */
  --ink: #14213D;        /* blu inchiostro — titoli, testo principale */
  --slate: #57606F;      /* grigio ardesia — paragrafi */
  --pulse: #0F8B8D;      /* verde smeraldo clinico — accento, CTA */
  --pulse-deep: #0A6668; /* teal cupo — testo/UI su fondo chiaro, contrasto AA */
  --dark: #0B1F33;       /* blu quasi nero — l'UNICA sezione scura della pagina */
  --line: #E4DFD3;       /* linee sottili di separazione editoriale */
  --white: #FFFFFF;

  /* alias di compatibilità con le pagine costruite nella v1 */
  --navy: #14213D; --navy-deep: #0B1F33; --teal: #0F8B8D; --teal-deep: #0A6668;
  --cream: #FAFAF8; --stone: #F1EFE8; --stone-line: #E4DFD3; --ink-soft: #57606F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: none;
}
h1 { font-size: 56px; }
h2 { font-size: 38px; }
h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 21px; }
p.lede { font-size: 21px; line-height: 1.55; color: var(--slate); font-weight: 500; }
p { color: var(--slate); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px;
  padding: 17px 32px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--pulse); color: var(--white); }
.btn-primary:hover { background: var(--pulse-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(15,139,141,0.5); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.label { font-family:'Inter',sans-serif; font-weight: 700; font-size: 14px; color: var(--pulse-deep); }
.pill { display:inline-block; font-family:'Inter',sans-serif; font-weight: 700; font-size: 14px; color: var(--pulse-deep); background:none; padding:0; }

nav.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px; max-width: 1180px; margin: 0 auto;
}
nav.topnav .links { display: flex; gap: 34px; font-weight: 600; font-size: 15.5px; }
nav.topnav .links a { position:relative; padding-bottom:4px; transition: color 0.15s ease; }
nav.topnav .links a::after { content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--pulse); transition: width 0.2s ease; }
nav.topnav .links a:hover::after, nav.topnav .links a.active::after { width:100%; }
nav.topnav .links a.active { color: var(--pulse-deep); }
nav.topnav .logo { display: flex; align-items: center; gap: 11px; }
nav.topnav .logo img { height: 30px; }
nav.topnav .navcta { display: flex; align-items: center; gap: 18px; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; border: none; background: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  h1 { font-size: 38px !important; }
  h2 { font-size: 28px !important; }
  .burger { display: flex; }
  nav.topnav { padding: 18px 20px; flex-wrap: wrap; }
  nav.topnav .links {
    display: none; flex-direction: column; gap: 0; width: 100%;
    order: 3; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px;
  }
  nav.topnav .links.open { display: flex; }
  nav.topnav .links a { padding: 12px 0; }
  nav.topnav .links a::after { display: none; }
  nav.topnav .navcta .btn { padding: 10px 16px !important; font-size: 13.5px !important; }
  .editorial-row, .two-link-row { grid-template-columns: 1fr !important; flex-direction: column; }
  .editorial-col { border-left: none !important; border-top: 1px solid var(--line); }
  .editorial-col:first-child { border-top: none; }
  footer.sitefoot .wrap { flex-direction: column; gap: 40px; }

  .hero-grid, .rc-wrap, .cs-hero, .metodo-band, .c-grid { grid-template-columns: 1fr !important; }
  .hero-grid > div:last-child, .cs-hero img { margin-top: 32px; }
  .plans-grid, .serv-grid, .ach-grid, .stat-grid, .get-grid, .disc-grid, .book-grid {
    grid-template-columns: 1fr 1fr !important; gap: 16px !important;
  }
  .center-item { grid-template-columns: 1fr auto !important; row-gap: 6px; }
  .center-item .city { grid-column: 1 / 2; }
  .trilogy-row { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .plans-grid, .serv-grid, .ach-grid, .stat-grid, .get-grid, .disc-grid, .book-grid {
    grid-template-columns: 1fr !important;
  }
}

.editorial-row { display:flex; }
.editorial-col { flex:1; padding: 36px 32px; border-left: 1px solid var(--line); transition: background 0.25s ease; }
.editorial-col:first-child { border-left: none; }
.editorial-col:hover { background: rgba(15,139,141,0.035); }

footer.sitefoot { background: var(--dark); color: rgba(255,255,255,0.68); padding: 72px 0 32px; }
footer.sitefoot .wrap { display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
footer.sitefoot h4 { font-family:'Inter',sans-serif; color: var(--white); font-size: 14px; margin-bottom: 16px; }
footer.sitefoot a { display: block; margin-bottom: 10px; font-size: 15px; transition: color 0.15s ease; }
footer.sitefoot a:hover { color: var(--pulse); }
footer.sitefoot .capture { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 30px; max-width: 400px; }
footer.sitefoot .capture input {
  width: 100%; padding: 13px 15px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03); color: white; margin: 12px 0; font-family: 'Inter', sans-serif; font-size: 14.5px;
}
footer.sitefoot .bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 52px; padding-top: 22px;
  font-size: 12.5px; color: rgba(255,255,255,0.4); text-align: center;
}

.lift { transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s ease; }
.lift:hover { transform: translateY(-6px); }

.form-msg { min-height:18px; font-size:13px; margin-top:8px; }
footer.sitefoot .form-msg { color: var(--pulse); }

.spine { width: 54px; height: 84px; border-radius: 3px 6px 6px 3px; position: relative; transition: transform 0.25s ease; box-shadow: -3px 0 0 rgba(0,0,0,0.08) inset; }
.spine::after { content:''; position:absolute; left:10px; top:14px; right:10px; height:2px; background:rgba(255,255,255,0.5); }

@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s cubic-bezier(.2,.7,.3,1) forwards; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: floatY 5s ease-in-out infinite; }
