/* === Tokens === */
:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #F5F3FF;
  --color-text: #1F1B4D;
  --color-muted: #5B5A8A;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 40px -18px rgba(49, 46, 129, 0.28);
  --shadow-lg: 0 30px 60px -30px rgba(49, 46, 129, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(99, 102, 241, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(99, 102, 241, 0.7); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--color-neutral-dark);
  border-color: var(--color-border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(16, 185, 129, 0.55);
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 18px 40px -14px rgba(16, 185, 129, 0.7); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: none;
  border: none;
  color: var(--color-neutral-dark);
  padding: 0.4rem;
  cursor: pointer;
  display: inline-flex;
}
.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.6rem 0;
  position: relative;
}
.primary-nav a.nav-cta {
  background: var(--color-neutral-dark);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-align: center;
  margin-top: 0.5rem;
}

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.25rem 5rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(129,140,248,0.25), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(16,185,129,0.12), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light) 0%, #fff 100%);
}
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 52ch;
  margin: 1rem auto 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.hero-visual {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.proof-strip {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 900px;
}
.proof-strip li {
  position: relative;
  padding-left: 1.25rem;
}
.proof-strip li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* === Sections === */
.section { padding: 4.5rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.section.narrow { max-width: 780px; }
.section-head { max-width: 780px; margin: 0 auto 2.5rem; text-align: center; }
.section-head .lede { margin-inline: auto; }

/* === Cards grid (piliere) === */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(16,185,129,0.15));
  color: var(--color-neutral-dark);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

/* === Testimonial === */
.testimonial-section { max-width: 900px; }
.testimonial-card {
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow-lg);
}
.testimonial-card .quote-mark { position: absolute; top: 1.5rem; left: 1.5rem; opacity: 0.2; color: #fff; }
.testimonial-card blockquote { margin: 0; }
.testimonial-card blockquote p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
  position: relative;
  z-index: 1;
}
.testimonial-card cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

/* === Services layout === */
.services-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.services-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  align-self: start;
  position: sticky;
  top: 100px;
}
.services-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.services-list { display: flex; flex-direction: column; gap: 1rem; }
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
  background: rgba(16,185,129,0.1);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-item h3 { margin-bottom: 0.35rem; }
.service-item p { margin: 0; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  margin: 2rem 1.25rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 20%, rgba(16,185,129,0.35), transparent 55%),
    linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 1rem auto 2rem; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  transition: box-shadow .2s;
}
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: rgba(99,102,241,0.35); }
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-neutral-dark);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform .2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 1.5rem; aspect-ratio: 16/10; object-fit: cover; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-lines li { display: grid; gap: 0.15rem; }
.contact-lines strong {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  font-weight: 600;
}
.contact-lines a { color: var(--color-neutral-dark); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours caption {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); text-align: left; }
.hours th { font-weight: 500; color: var(--color-neutral-dark); }
.hours td { color: var(--color-muted); text-align: right; }

/* === Form === */
.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
}
.field input, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fafaff;
  color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; }
.form-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.35);
  color: var(--color-neutral-dark);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin: 0;
  font-size: 0.95rem;
}

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(245,243,255,0.85);
  padding: 3.5rem 1.25rem 2rem;
  margin-top: 3rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.site-footer .logo img { height: 64px; filter: brightness(0) invert(1); }
.footer-tag { margin-top: 1rem; font-size: 0.95rem; max-width: 32ch; color: rgba(245,243,255,0.7); }
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a { color: rgba(245,243,255,0.75); font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { font-size: 0.95rem; color: rgba(245,243,255,0.75); margin-bottom: 0.75rem; }
.footer-contact a { color: rgba(245,243,255,0.9); }
.footer-legal { font-size: 0.85rem; margin-top: 0.5rem; }
.footer-legal a { color: rgba(245,243,255,0.7); }
.footer-legal a:hover { color: #fff; }
.copy {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(245,243,255,0.6);
  text-align: center;
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  max-width: 520px;
  margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--color-neutral-light);
  transition: background .2s;
}
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.08); }
.cookie-banner__actions [data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.cookie-banner__actions [data-cookie-accept]:hover { background: #0ea371; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs [data-cookie-save] {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* === Responsive === */
@media (min-width: 768px) {
  .logo img { height: 96px; }
  .site-footer .logo img { height: 80px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    background: transparent;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    border: none;
    backdrop-filter: none;
  }
  .primary-nav a { padding: 0.4rem 0; }
  .primary-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .primary-nav a.nav-cta { margin-top: 0; }
  .hero { padding: 6rem 2rem 6rem; }
  .section { padding: 6rem 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .services-layout { grid-template-columns: 1fr 1.4fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
  .cta-band { margin: 3rem 2rem; padding: 5rem 3rem; }
  .testimonial-card { padding: 4rem 3.5rem; }
  .testimonial-card blockquote p { font-size: 1.4rem; }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 7rem 2rem 7rem; }
}
