/* =================================================================
   FORTISSIMO — Crescendo Manifesto · crescendodigitale.it
   Production CSS — Bootstrap 5 + custom
   ================================================================= */

/* VANGUARD CF — commercial font, self-hosted (client provides woff2)
   Drop VanguardCF-Heavy.woff2 + VanguardCF-Heavy.woff in /fonts/
   ----------------------------------------------------------------- */
@font-face {
  font-family: 'Vanguard CF';
  src: url('../fonts/VanguardCF-Heavy.woff2') format('woff2'),
       url('../fonts/VanguardCF-Heavy.woff')  format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vanguard CF';
  src: url('../fonts/VanguardCF-Bold.woff2') format('woff2'),
       url('../fonts/VanguardCF-Bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* DESIGN TOKENS */
:root {
  --ff-ink:   #202020;
  --ff-red:   #FF3F21;
  --ff-cream: #FAFAF7;
  --ff-paper: #F2EFE9;
  --ff-black: #0A0A0A;

  /* Display font stack — Vanguard CF when available, Archivo 800 fallback */
  --ff-display: 'Vanguard CF', 'Archivo', system-ui, sans-serif;
}

/* BASE */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ff-cream);
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER */
.v8 {
  width: 100%;
  color: var(--ff-ink);
  line-height: 1.4;
  position: relative;
  overflow-x: hidden;
  background: var(--ff-cream);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
}
.v8 * { box-sizing: border-box; }
.v8 a { color: inherit; text-decoration: none; }
.v8 button {
  font: inherit; color: inherit; cursor: pointer;
  border: 0; background: none; padding: 0;
}
.v8 input,
.v8 textarea {
  font: inherit; color: inherit;
  border: 0; outline: 0; background: transparent;
  width: 100%;
}

/* ---- NAV ---- */
.v8__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 56px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}
.v8__nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.v8__nav-brand-word {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 15px;
}
.v8__nav-tag {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ff-red);
}
.v8__nav-links {
  display: flex;
  gap: 32px;
}
.v8__nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* hamburger — hidden on desktop */
.v8__nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.v8__nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--ff-ink);
  transition: all 0.2s;
}

/* ---- HERO ---- */
.v8__hero {
  padding: 60px 56px 80px;
  border-bottom: 1px solid var(--ff-ink);
  position: relative;
      background-image: linear-gradient(rgba(0, 0, 0, .025) 1px, transparent 1px), linear-gradient(to right, rgba(0, 0, 0, .025) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Dynamic markings row */
.v8__hero-markings {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--ff-ink);
  margin-bottom: 32px;
  align-items:center;
}
.v8__hero-markings span:nth-child(1)  { font-size: 18px; opacity: 0.3; }
.v8__hero-markings span:nth-child(2)  { font-size: 24px; opacity: 0.5; } /* → arrow */
.v8__hero-markings span:nth-child(3)  { font-size: 24px; opacity: 0.5; }
.v8__hero-markings span:nth-child(4)  { font-size: 24px; opacity: 0.5; } /* → */
.v8__hero-markings span:nth-child(5)  { font-size: 32px; opacity: 0.7; }
.v8__hero-markings span:nth-child(6)  { font-size: 24px; opacity: 0.5; } /* → */
.v8__hero-markings span:nth-child(7)  { font-size: 48px; opacity: 0.9; }
.v8__hero-markings span:nth-child(8)  { font-size: 24px; opacity: 0.5; } /* → */
.v8__hero-markings span:nth-child(9)  { font-size: 72px; color: var(--ff-red); }
.v8__hero-markings .arrow {
  margin: 0 8px;
  font-size: 24px;
  color: #aaa;
  font-style: normal;
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  opacity: 0.5;
}

/* Hero H1 — crescendo effect */
.v8__hero h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(4rem, 11.8vw, 10.625rem); /* 64px → 170px @ 1440px */
  line-height: 0.78;
  letter-spacing: -0.05em;
  margin: 0;
  text-transform: uppercase;
}
/* crescendo-word: chars injected by JS, one per letter */
.v8__hero h1 .crescendo-word {
  display: inline-block;
  line-height: 1;
  font-size: 0.765em; /* = 130/170 — scala con h1 */
  color:#202020;
}
.v8__hero h1 .crescendo-char {
  display: inline-block;
  vertical-align: bottom; /* align all bottoms → staircase grows upward */
}
.v8__hero h1 span {
  font-weight: 700;
  color: var(--ff-red);
}

/* Hero meta row */
.v8__hero-meta {
  display: grid;
  grid-template-columns: 500px 1fr 280px;
  gap: 80px;
  margin-top: 80px;
  align-items: end;
}
.v8__hero-meta-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ff-red);
  font-weight: 700;
  margin-bottom: 14px;
}
.v8__hero-meta p {
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
}
.v8__hero-meta-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ff-ink);
  color: #fff!important;
  padding: 24px;
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  align-self: end;
  transition: background 0.2s ease;
}
.v8__hero-meta-cta:hover {
  background: var(--ff-red);
  color: #fff;
}

/* ---- MANIFESTO STRIP (marquee) ---- */
.v8__strip {
  background: var(--ff-ink);
  color: var(--ff-cream);
  padding: 28px 0;
  font-style: normal;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow: hidden;
  white-space: nowrap;
  font-weight:bold;
  text-transform:uppercase;
}
.v8__strip .red { color: var(--ff-red); }
.v8__strip .marquee {
  display: inline-flex;
  gap: 56px;
  animation: v8-marquee 35s linear infinite;
  padding-left: 56px;
}
.v8__strip .marquee span { flex-shrink: 0; }
@keyframes v8-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- MOVIMENTI / SERVIZI ---- */
.v8__movimenti {
  padding: 80px 56px 32px;
}
.v8__sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: baseline;
  border-bottom: 1px solid var(--ff-ink);
  padding-bottom: 32px;
  margin-bottom: 56px;
}
.v8__sec-head .num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 56px;
  color: var(--ff-red);
  line-height: 1;
}
.v8__sec-head h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.1vw, 5.5rem); /* 40px → 88px @ 1440px */
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}
.v8__sec-head h2 em {
 /* font-family: 'Instrument Serif', Georgia, serif;*/
  font-style: normal;
  font-weight: 700;
  color: var(--ff-red);
}
.v8__sec-head .label {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-top: 12px;
}
.v8__sec-head > p {
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
  max-width: 460px;
}

/* Service grid */
.v8__serv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--ff-ink);
}
.v8__serv {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v8__serv-mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 48px;
  color: var(--ff-red);
  line-height: 1;
}
.v8__serv-mark::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--ff-ink);
  margin-top: 12px;
}
.v8__serv h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.v8__serv p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: #2a2a2a;
}

/* ---- CONTATTI ---- */
.v8__contact {
  padding: 80px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  background: var(--ff-cream);
}
.v8__contact h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.9vw, 6.25rem); /* 40px → 100px @ 1440px */
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.v8__contact h2 em {
  font-style: normal;
  font-weight: 700;
  color: var(--ff-red);
}
.v8__contact-side > p {
  font-size: 19px;
  max-width: 460px;
  margin: 0 0 40px;
  line-height: 1.5;
}

/* Contact info table */
.v8__contact-info {
  display: grid;
  gap: 14px;
  border-top: 2px solid var(--ff-ink);
  padding-top: 24px;
  max-width: 460px;
}
.v8__contact-info .info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
}
.v8__contact-info .k {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b6b6b;
  padding-top: 4px;
}
.v8__contact-info .v {
  font-size: 17px;
  line-height: 1.4;
}

/* Form */
.v8__form {
  display: grid;
  gap: 22px;
  align-self: start;
}
.v8__form-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b6b;
  font-weight: 600;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ff-ink);
}
.v8__form-header .red { color: var(--ff-red); }
.v8__form label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b6b6b;
  margin-bottom: 6px;
  display: block;
}
.v8__form input,
.v8__form textarea {
  font-size: 18px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--ff-ink);
  display: block;
}
.v8__form textarea {
  resize: none;
  min-height: 70px;
}
.v8__form button {
  font-family: var(--ff-display);
  background: var(--ff-red);
  color: #fff;
  padding: 22px 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 13px;
  justify-self: start;
  margin-top: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.v8__form button:hover { background: var(--ff-ink); }

/* ---- FOOTER ---- */
.v8__footer {
  border-top: 1px solid var(--ff-ink);
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6b6b;
  font-weight: 600;
}
.v8__footer a { color: #6b6b6b; }
.v8__footer a:hover { color: var(--ff-ink); }

/* =================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================= */

/* 1024–1280px */
@media (max-width: 1280px) {
  .v8__nav        { padding: 28px 40px; }
  .v8__hero       { padding: 50px 40px 70px; }
  .v8__movimenti  { padding: 70px 40px 28px; }
  .v8__contact    { padding: 70px 40px; }
  .v8__footer     { padding: 24px 40px; }
  .v8__strip .marquee { padding-left: 40px; }
}

/* 768–1024px */
@media (max-width: 1024px) {
  .v8__nav       { padding: 24px 32px; }
  .v8__hero      { padding: 40px 32px 60px; }
  /* collapse crescendo effect — all chars uniform */
  .v8__hero h1 .crescendo-char { font-size: 1em !important; vertical-align: baseline !important; }
  .v8__hero-meta {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
  }
  .v8__hero-meta > div:nth-child(2) { display: none; }
  .v8__hero-meta-cta { align-self: auto; }
  .v8__strip     { font-size: 28px; }
  .v8__strip .marquee { padding-left: 32px; }
  .v8__movimenti { padding: 60px 32px 24px; }
  .v8__sec-head  { grid-template-columns: 1fr; gap: 32px; }
  .v8__serv-grid { grid-template-columns: repeat(2, 1fr); }
  .v8__contact   { padding: 60px 32px; grid-template-columns: 1fr; gap: 56px; }
  .v8__footer    { padding: 22px 32px; }
}

/* 480–768px */
@media (max-width: 768px) {
	
	/* Hamburger visible, links hidden until toggled */
  .v8__nav-hamburger { display: flex; }
  .v8__nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ff-cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--ff-ink);
    z-index: 100;
  }
	
  .v8__nav       { padding: 20px 24px; }
  .v8__hero      { padding: 32px 24px 48px; }

  /* Kill crescendo effect at small sizes */
  .v8__hero h1 { line-height: 0.9; }
  .v8__hero h1 .crescendo-char { font-size: 1em !important; vertical-align: baseline !important; }

  .v8__hero-markings { flex-wrap: wrap; }
  .v8__hero-meta { margin-top: 32px; }
  .v8__hero-meta p { font-size: 16px; }

  .v8__strip     { font-size: 24px; }
  .v8__strip .marquee { padding-left: 24px; gap: 32px; }

  .v8__movimenti { padding: 48px 24px 20px; }
  .v8__sec-head .num { font-size: 40px; }
  .v8__serv-grid { grid-template-columns: 1fr; }

  .v8__contact   { padding: 48px 24px; gap: 48px; }

  .v8__footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* <480px — mobile first */
@media (max-width: 480px) {
  .v8__nav { padding: 18px 20px; }

  
  .v8__nav-links.is-open { display: flex; }
  .v8__nav-links a {
    padding: 14px 20px;
    border-top: 1px solid var(--ff-ink);
    font-size: 11px;
  }

  .v8__hero      { padding: 28px 20px 40px; }
  .v8__hero-markings { gap: 4px; }
  .v8__hero-markings .arrow { margin: 0 4px; }

  /* Speed up marquee on mobile */
  .v8__strip .marquee { animation-duration: 20s; }
  .v8__strip { font-size: 20px; }

  .v8__movimenti { padding: 40px 20px 16px; }

  .v8__contact   { padding: 40px 20px; }
  .v8__contact-info .info-row { grid-template-columns: 70px 1fr; }

  .v8__footer { padding: 18px 20px; }
}
