/* =========================================================
   AVYRA — Design tokens & global styles
   ========================================================= */
@font-face {
  font-family: 'Anton';
  src: url('fonts/Anton-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primary */
  --navy: #0C253B;
  --graphite: #1F2933;
  --digital-blue: #2563EB;
  --white: #FFFFFF;

  /* Accents */
  --coral: #FF7A45;
  --coral-hover: #F56533;
  --coral-press: #E0531E;
  --cyan: #7DC8CC;

  /* Neutrals */
  --ice-blue: #EAF4FF;
  --line-grey: #D8E1E8;
  --mist-grey: #F4F7FA;

  /* Type stacks */
  --display: 'Anton', 'Oswald', Impact, sans-serif; /* @kind font */
  --body: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif; /* @kind font */

  /* Scale */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12,37,59,0.05), 0 1px 1px rgba(12,37,59,0.04);
  --shadow-md: 0 6px 18px rgba(12,37,59,0.07), 0 2px 4px rgba(12,37,59,0.04);
  --shadow-lg: 0 24px 60px -16px rgba(12,37,59,0.18), 0 8px 16px -8px rgba(12,37,59,0.06);

  --container: 1200px;
  --container-narrow: 920px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */

  --header-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--graphite);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--digital-blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 120px 0;
}
.section-tight { padding: 80px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 56px 0; }
}

/* Typography */
.display, h1.display, .h-display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: var(--navy);
  text-transform: none;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(44px, 6.5vw, 88px); }
h2 { font-size: clamp(36px, 4.8vw, 64px); }
h3 { font-size: clamp(24px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }

p { margin: 0 0 1em; }
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--graphite);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--digital-blue);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--digital-blue);
  display: inline-block;
}

.kw { color: var(--coral); font-weight: 500; }
.k-navy { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
  position: relative;
  border: 1px solid transparent;
  line-height: 1;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 16px -6px rgba(255,122,69,0.55);
}
.btn-primary:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(255,122,69,0.6);
}
.btn-primary:active { background: var(--coral-press); }

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover { background: #0a1d2f; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-grey);
}
.btn-ghost:hover { border-color: var(--navy); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 500;
  font-size: 16px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.btn-link .arr {
  transition: transform .25s var(--ease);
  display: inline-block;
}
.btn-link:hover { color: var(--coral); }
.btn-link:hover .arr { transform: translateX(4px); }

.btn-large {
  padding: 18px 34px;
  font-size: 17px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  align-items: stretch;
  min-height: 84px;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-grey);
  box-shadow: 0 4px 16px -10px rgba(12, 37, 59, 0.18);
}

.header-logo {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  /* Sit flush at the left edge, no margin */
  margin-left: 0;
}

/* The navy band hosting the logo on the far-left.
   Full header height, flush with the white area to its right. */
.header-band {
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 14px 44px 14px max(24px, calc((100vw - 1200px) / 2 + 28px));
  transition: filter .35s var(--ease);
  /* Ensure no transparent edge */
  border: 0;
}
.header-logo:hover .header-band { filter: brightness(1.18); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.header-band .brand-swoosh-img {
  height: 30px;
  width: auto;
  display: block;
  transition: transform .4s var(--ease);
}
.header-logo:hover .brand-swoosh-img { transform: translateY(-2px); }
.header-band .brand-wordmark {
  font-family: 'Anton', Impact, sans-serif;
  letter-spacing: 0.22em;
  font-size: 30px;
  color: #FFFFFF;
  line-height: 1;
  padding-right: 4px;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px)) 0 32px;
}
.nav a {
  color: var(--graphite);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--navy); background: var(--mist-grey); }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--navy);
  align-self: center;
  margin-left: auto;
  margin-right: max(16px, calc((100vw - 1200px) / 2 + 16px));
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .site-header { min-height: 72px; }
  .header-band {
    padding: 10px 22px 10px 18px;
  }
  .header-band .brand-swoosh-img { height: 22px; }
  .header-band .brand-wordmark { font-size: 22px; letter-spacing: 0.18em; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    padding: 12px 16px 24px;
    border-bottom: 1px solid var(--line-grey);
    gap: 2px;
  }
  .nav.is-open a {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
  }
  .nav.is-open .nav-cta {
    margin-top: 12px;
    text-align: center;
    background: var(--coral);
    color: var(--white);
    padding: 14px 16px;
  }
  .nav.is-open .nav-cta:hover { background: var(--coral-hover); }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #BFCDD9;
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  display: inline-block;
  transition: transform .35s var(--ease);
}
.footer-brand .footer-logo:hover { transform: translateY(-1px); }
.footer-brand .brand-swoosh-img {
  height: 26px;
  width: auto;
  display: block;
}
.brand-wordmark {
  font-family: 'Anton', Impact, sans-serif;
  letter-spacing: 0.22em;
  line-height: 1;
  display: inline-block;
}
.footer-brand .brand-wordmark {
  font-size: 26px !important;
  color: #FFFFFF !important;
}
.footer-tagline {
  margin-top: 22px;
  color: #E2EAF1;
  font-size: 15px;
  line-height: 1.55;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a {
  color: #BFCDD9;
  font-size: 14px;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--white); }

/* Social row at top of Contatti column */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF !important;
}
.footer-social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .25s var(--ease);
  color: #FFFFFF;
}
.footer-social:hover .footer-social-icon {
  transform: scale(1.1);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  font-size: 13px;
  color: #8FA2B5;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-legal-links a { color: #8FA2B5; font-size: 13px; }
.footer-legal-links a:hover { color: var(--white); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* WhatsApp floating button */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0,0,0,0.12);
  z-index: 60;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-fab:hover {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.65);
}
.wa-fab svg { width: 30px; height: 30px; fill: white; }
.wa-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 520px) {
  .wa-fab { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .wa-fab svg { width: 28px; height: 28px; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  background: var(--white);
  border: 1px solid var(--line-grey);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .35s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--graphite);
}
.cookie-banner p strong { color: var(--navy); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 11px 20px; font-size: 14px; }
.cookie-actions .btn-ghost { color: var(--graphite); }
@media (max-width: 620px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    left: 12px; right: 12px; bottom: 12px;
    padding: 18px 18px 16px;
  }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* Reveal animations on scroll — fail-open: visible by default, JS adds .js-anim wrapper to enable hidden initial state */
.js-anim .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1), transform .9s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line-grey);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-number {
  font-family: var(--display);
  font-size: 14px;
  color: var(--coral);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.card h3 {
  font-size: clamp(22px, 2vw, 26px);
  margin-bottom: 14px;
  line-height: 1.12;
}
.card p {
  color: var(--graphite);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

/* Form */
.contact-section {
  background: var(--ice-blue);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125,200,204,0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-intro h2 { margin-bottom: 18px; }
.contact-intro .lead { color: var(--graphite); }
.contact-meta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-grey);
  display: grid;
  gap: 16px;
}
.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--graphite);
}
.contact-meta-item svg { width: 18px; height: 18px; color: var(--digital-blue); flex-shrink: 0; }
.contact-meta-item a { color: var(--graphite); font-weight: 500; transition: color .2s var(--ease); }
.contact-meta-item a:hover { color: var(--coral); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(216, 225, 232, 0.6);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.field input, .field select {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-grey);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--graphite);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  font-size: 15px;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--digital-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231F2933' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 42px; }
.form-submit { margin-top: 10px; display: flex; justify-content: flex-end; }
.form-submit .btn { width: 100%; padding: 18px 30px; font-size: 16px; }
.form-note { margin-top: 18px; font-size: 12.5px; color: #6B7B8C; text-align: center; line-height: 1.5; }
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 28px; }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Reusable: avyra wordmark inline */
.avyra-wordmark {
  display: inline-block;
  line-height: 1;
}
.avyra-wordmark .swoosh-main { fill: var(--cyan); }
.avyra-wordmark .swoosh-dark { fill: #5BA0A4; }

/* HERO — dark editorial treatment */
.hero {
  position: relative;
  padding: 56px 0 110px;
  overflow: hidden;
  background: #0A2034;
  color: #E2EAF1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -100px, rgba(125, 200, 204, 0.20), transparent 60%),
    radial-gradient(ellipse 700px 500px at 95% 100%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(ellipse 500px 400px at 5% 70%, rgba(125, 200, 204, 0.10), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Hero logo — full-width AVYRA wordmark with swoosh above */
.hero-logo {
  width: 100%;
  margin: 24px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .5s var(--ease);
}
.hero-logo:hover {
  transform: translateY(-2px);
}

.hero-swoosh {
  display: block;
  width: min(48%, 520px);
  opacity: 0;
  transform: translate3d(0, -50px, 0) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-swoosh img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(125, 200, 204, 0.25));
}

.hero-wordmark {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  font-family: 'Anton', 'Oswald', Impact, sans-serif;
  color: #FFFFFF;
  /* Massive — letters stretch across the hero from edge to edge */
  font-size: clamp(72px, 18.5vw, 280px);
  line-height: 0.95;
  letter-spacing: 0;
  user-select: none;
}
.hl-letter {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* PLAY state: swoosh first, then letters one by one */
.hero-logo.play .hero-swoosh {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0.05s;
}
.hero-logo.play .hl-letter {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hero-logo.play .hl-1 { transition-delay: 0.65s; }
.hero-logo.play .hl-2 { transition-delay: 0.80s; }
.hero-logo.play .hl-3 { transition-delay: 0.95s; }
.hero-logo.play .hl-4 { transition-delay: 1.10s; }
.hero-logo.play .hl-5 { transition-delay: 1.25s; }

.hero h1 {
  max-width: 16ch;
  margin: 24px auto 28px;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: #FFFFFF;
}
.hero h1 .kw { color: var(--coral); }

.hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  color: #B6C5D4;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}
.hero-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero .btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.18);
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

@media (max-width: 700px) {
  .hero-logo { margin: 8px 0 40px; gap: 4px; }
  .hero-swoosh { width: 55%; }
  .hero-wordmark { font-size: clamp(56px, 21vw, 140px); }
}

/* Problem section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 16px; }
}

.section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.section-head.start { text-align: left; margin: 0; }

/* Product section — single centered narrow column (text-only, honest) */
.product-section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.product-section.alt { background: var(--mist-grey); }
.product-section.dark { background: var(--navy); color: #C7D6E5; }
.product-section.dark h2, .product-section.dark h3 { color: var(--white); }
.product-section.dark .eyebrow { color: var(--cyan); }
.product-section.dark .eyebrow::before { background: var(--cyan); }
.product-section.dark .btn-link { color: var(--white); }
.product-section.dark .btn-link:hover { color: var(--coral); }
.product-section.dark .product-essence { color: var(--white); }

.product-narrow {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.product-narrow .eyebrow {
  justify-content: center;
}
.product-narrow .eyebrow::before {
  display: none;
}
.product-narrow .eyebrow {
  display: inline-flex;
  padding: 6px 18px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  margin-bottom: 28px;
}
.product-section.dark .product-narrow .eyebrow {
  background: rgba(125, 200, 204, 0.12);
}
.product-narrow h2 {
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: 0;
}
.product-narrow .product-essence {
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.35;
  max-width: 26ch;
  margin: 0 auto 32px;
}
.product-narrow p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--graphite);
  max-width: 58ch;
  margin: 0 auto 36px;
}
.product-section.dark .product-narrow p { color: #B6C5D4; }
.product-narrow .btn-link {
  font-size: 17px;
}

/* Decorative swoosh accent inside a product section */
.product-narrow .swoosh-accent {
  display: inline-block;
  margin: 0 auto 28px;
  opacity: 0.85;
}
.product-narrow .swoosh-accent img {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .product-section { padding: 96px 0; }
  .product-narrow h2 { font-size: clamp(40px, 9vw, 56px); }
  .product-narrow .product-essence { font-size: 19px; }
}

/* Legacy two-column layout (also used by homepage Servizi aggiuntivi section) */
.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.product-text h2 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 18px;
}
.product-text .product-essence {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.3;
}
.product-section.dark .product-text .product-essence { color: var(--white); }
.product-text p { font-size: 16px; line-height: 1.7; margin-bottom: 32px; max-width: 50ch; }

.product-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(140deg, #0C253B 0%, #1F2933 100%);
  box-shadow: var(--shadow-lg);
}
.product-visual.light {
  background: linear-gradient(140deg, var(--ice-blue) 0%, #FFFFFF 100%);
  border: 1px solid var(--line-grey);
}
@media (max-width: 900px) {
  .product-inner { grid-template-columns: 1fr; gap: 48px; }
  .product-inner.reverse .product-visual { order: -1; }
  .product-visual { aspect-ratio: 4/3; }
}

/* Founder section — navy split, photo flush left full-height */
.founder-section {
  background: #0A2034;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.founder-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 90% 50%, rgba(125, 200, 204, 0.14), transparent 60%),
    radial-gradient(ellipse 600px 500px at 10% 100%, rgba(37, 99, 235, 0.14), transparent 60%);
  pointer-events: none;
}
.founder-split {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) 1.15fr;
  align-items: stretch;
  min-height: 560px;
  position: relative;
  z-index: 1;
}
.founder-photo-col {
  overflow: hidden;
  background: linear-gradient(160deg, #2A3D52, #0C253B);
}
.founder-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.founder-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px clamp(40px, 7vw, 110px);
}
.founder-text-col h2 {
  color: #FFFFFF;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  margin: 0 0 28px;
}
.founder-name {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  color: #FFFFFF;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.founder-role {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 16px);
  color: #B6C5D4;
  margin: 0;
  letter-spacing: 0.02em;
}
@media (max-width: 820px) {
  .founder-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .founder-photo-col {
    aspect-ratio: 4/5;
    max-height: 60vh;
  }
  .founder-text-col {
    padding: 56px 32px 64px;
    text-align: center;
    align-items: center;
  }
}

/* Marquee / scroll-text decorative */
.scroll-text {
  font-family: var(--display);
  font-size: clamp(60px, 12vw, 180px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(12,37,59,0.12);
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
}

/* Bullets for service detail */
.feature-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 20px; }
.feature-list.feature-list-wide {
  max-width: 720px;
  margin: 0 auto;
  gap: 0;
}
.feature-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line-grey);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line-grey); }
.feature-list .icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ice-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--digital-blue);
}
.feature-list .icon svg { width: 16px; height: 16px; }
.feature-list h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 4px;
}
.feature-list p { font-size: 15px; color: var(--graphite); margin: 0; line-height: 1.55; }

/* Page hero (subpages) — navy, white text, matches home hero */
.page-hero {
  padding: 96px 0 88px;
  background: #0A2034;
  color: #E2EAF1;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -100px, rgba(125, 200, 204, 0.20), transparent 60%),
    radial-gradient(ellipse 700px 500px at 95% 100%, rgba(37, 99, 235, 0.18), transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.page-hero > .container,
.page-hero > .container-narrow { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  margin-bottom: 20px;
  line-height: 1.0;
  color: #FFFFFF;
}
.page-hero h1 .kw { color: var(--coral); }
.page-hero .eyebrow {
  color: var(--cyan);
}
.page-hero .eyebrow::before { background: var(--cyan); }
.page-hero .lead {
  max-width: 640px;
  font-size: clamp(17px, 1.5vw, 21px);
  color: #B6C5D4;
}

/* Legal page content */
.legal-content {
  padding: 64px 0 80px;
}
.legal-content h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 14px;
}
.legal-content h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal-content p { font-size: 15.5px; line-height: 1.7; color: var(--graphite); }
.legal-content .placeholder-block {
  background: var(--mist-grey);
  border-left: 3px solid var(--cyan);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
  color: #5B6B7D;
  margin: 16px 0;
}

/* Step list (Marketing4You etc) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 64px 0;
}
.step {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line-grey);
  position: relative;
}
.step-num {
  font-family: var(--display);
  font-size: 44px;
  color: var(--coral);
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 10px;
}
.step p { font-size: 14.5px; color: var(--graphite); margin: 0; line-height: 1.55; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Big stat / pull quote */
.pull {
  padding: 100px 0;
  text-align: center;
}
.pull p {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  color: var(--navy);
  max-width: 18ch;
  margin: 0 auto;
}
.pull p .kw { color: var(--coral); }

/* Service pillars (Marketing completo) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.pillar {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line-grey);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-md); }
.pillar .label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--digital-blue); font-weight: 600;
}
.pillar h3 { font-size: 22px; font-family: var(--display); margin: 0; line-height: 1.1; }
.pillar p { font-size: 14.5px; line-height: 1.6; color: var(--graphite); margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Add-on service cards */
.addons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.addon {
  padding: 44px 38px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line-grey);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.addon .tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.product-section.dark .addon { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.product-section.dark .addon h3 { color: var(--white); }
.product-section.dark .addon p { color: #B6C5D4; }
@media (max-width: 820px) { .addons { grid-template-columns: 1fr; } }

/* Animated underline for nav links / accents */
.swoosh-divider {
  display: block;
  width: 80px; height: 8px;
  margin: 0 auto 28px;
  overflow: visible;
}

/* Decorative big-word section break */
.section-break {
  padding: 0 0 80px;
  text-align: center;
  font-family: var(--display);
  color: rgba(12,37,59,0.06);
  font-size: clamp(80px, 18vw, 280px);
  line-height: 1;
  overflow: hidden;
  user-select: none;
  letter-spacing: 0.02em;
}
