/* ===========================================================
   Ritmo Visivo — Studio di Motion Design, Milano
   Design system: light, electric-blue, kinetic/angular
   Display: Oswald (condensed, uppercase)  Body: Instrument Sans
   =========================================================== */

:root {
  --blue:      #1d3cff;
  --blue-dark: #0a1f9c;
  --blue-soft: #eaeeff;
  --ink:       #0c1024;
  --ink-soft:  #4a4f63;
  --paper:     #f6f7fb;
  --white:     #ffffff;
  --line:      #e2e5f0;
  --accent:    #ff3d6e;   /* hot magenta kicker */
  --lime:      #c6ff3a;   /* electric lime micro-accent */
  --radius:    14px;
  --maxw:      1180px;
  --shadow:    0 18px 50px -22px rgba(16, 28, 90, .35);
  --shadow-sm: 0 6px 22px -12px rgba(16, 28, 90, .30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .display {
  font-family: 'Oswald', 'Instrument Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .01em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--blue { background: var(--ink); color: #fff; }
.section--soft { background: var(--white); }

.eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--accent);
  display: inline-block;
}
.section--blue .eyebrow { color: var(--lime); }

.h-xl { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.h-lg { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- accent text ---------- */
.hl { color: var(--blue); }
.hl-bar {
  background: linear-gradient(transparent 62%, var(--lime) 62%);
  padding: 0 .12em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--blue .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.section--blue .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #b2ed24; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,251,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 11px;
}
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue);
  position: relative;
  flex: none;
  overflow: hidden;
}
.brand__mark::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 45%, var(--lime) 45%, var(--lime) 55%, transparent 55%),
    linear-gradient(135deg, transparent 65%, var(--accent) 65%, var(--accent) 75%, transparent 75%);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--blue);
}
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { margin: 18px 0 22px; }
.hero__stats { display: flex; gap: 38px; margin-top: 38px; flex-wrap: wrap; }
.stat__n {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 2.6rem; color: var(--blue); line-height: 1;
}
.stat__l { font-size: .92rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.hero__chip {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--lime); color: var(--ink);
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  font-weight: 600; letter-spacing: .05em;
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.hero__deco {
  position: absolute; top: -60px; right: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, var(--blue-soft), transparent 70%);
  z-index: -1;
}

/* ---------- marquee ribbon ---------- */
.ribbon {
  background: var(--blue); color: #fff; overflow: hidden;
  border-top: 3px solid var(--lime); border-bottom: 3px solid var(--lime);
}
.ribbon__track {
  display: flex; gap: 40px; white-space: nowrap; padding: 14px 0;
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .14em; font-size: 15px;
  animation: slide 28s linear infinite;
}
.ribbon__track span { display: inline-flex; align-items: center; gap: 40px; }
.ribbon__track span::after { content: "◆"; color: var(--lime); font-size: 11px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon__track { animation: none; } }

/* ---------- generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.align-c { align-items: center; }

.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin: 14px 0 16px; }

/* ---------- service cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__num {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.1rem;
  color: var(--blue); letter-spacing: .1em;
}
.card h3 { font-size: 1.35rem; margin: 14px 0 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue-dark);
  padding: 5px 11px; border-radius: 100px; font-weight: 600;
}

/* ---------- feature row (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature--rev .feature__media { order: 2; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature ul { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.feature li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 4px; background: var(--blue); border-radius: 2px;
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery--offset .shot:nth-child(3n+2) { transform: translateY(28px); }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--ink);
}
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(transparent, rgba(8,12,30,.82));
  color: #fff;
}
.shot__cap span { font-size: 12px; color: var(--lime); text-transform: uppercase; letter-spacing: .1em; }
.shot__cap h4 { font-size: 1.05rem; margin-top: 4px; }

/* ---------- stats band ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.statband .stat__n { font-size: 3rem; color: var(--lime); }
.section--blue .stat__l { color: rgba(255,255,255,.7); }

/* ---------- testimonials ---------- */
.quote {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  position: relative;
}
.quote::before {
  content: "“"; font-family: 'Oswald', sans-serif; font-size: 4rem; color: var(--blue);
  line-height: .6; display: block; margin-bottom: 8px;
}
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote__who { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.quote__who b { color: var(--ink); display: block; font-size: 1rem; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.tier {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
}
.tier--feat { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; }
.tier--feat .muted { color: rgba(255,255,255,.65); }
.tier__badge {
  position: absolute; top: 22px; right: 22px;
  background: var(--lime); color: var(--ink);
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  font-size: 11px; letter-spacing: .1em; font-weight: 600;
  padding: 5px 11px; border-radius: 100px;
}
.tier__name { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 1.3rem; }
.tier__price { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 3rem; margin: 10px 0 4px; }
.tier__price small { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.tier--feat .tier__price small { color: rgba(255,255,255,.65); }
.tier ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; }
.tier li { padding-left: 28px; position: relative; font-size: .96rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.tier--feat li::before { color: var(--lime); }
.tier .btn { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 1.12rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.6rem; color: var(--blue); flex: none; transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 26px; color: var(--ink-soft); max-width: 75ch; }

/* ---------- timeline (chi siamo) ---------- */
.timeline { display: grid; gap: 0; }
.tl {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.tl__y { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--blue); }
.tl h4 { font-size: 1.15rem; margin-bottom: 6px; }
.tl p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- values ---------- */
.value { padding: 26px; border-left: 3px solid var(--blue); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.value h4 { font-size: 1.15rem; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue);
  color: #fff; border-radius: 20px; padding: 60px 50px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 55ch; margin: 0 auto 28px; }
.cta-band .btn--lime { box-shadow: 0 10px 30px -10px rgba(198,255,58,.6); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row__ic {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-weight: 700; font-family: 'Oswald', sans-serif;
}
.info-row b { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.info-row span { font-size: 1.05rem; }
.map-ph {
  margin-top: 24px; height: 220px; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, var(--blue-soft), var(--blue-soft) 14px, #fff 14px, #fff 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-dark);
}

/* ---------- forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; color: var(--ink-soft); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); border-color: transparent; }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }
.form__note { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 70px 0 64px; }
.page-hero .eyebrow { color: var(--lime); }
.page-hero h1 { margin: 16px 0 14px; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 60ch; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .1em; }
.crumbs a:hover { color: var(--lime); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer__about { margin-top: 18px; font-size: .95rem; max-width: 32ch; }
.footer h5 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--lime); }
.footer__bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer__bottom a:hover { color: #fff; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 22px; justify-content: space-between; flex-wrap: wrap;
  max-width: 820px; margin: 0 auto;
}
.cookie p { font-size: .9rem; color: rgba(255,255,255,.8); flex: 1 1 320px; }
.cookie a { color: var(--lime); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; }
.cookie .btn { padding: 11px 22px; font-size: 13px; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { margin: 0 0 16px 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal th { background: var(--blue-soft); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .hero__grid, .feature, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .grid-3, .grid-4, .tiers, .gallery, .statband { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery--offset .shot:nth-child(3n+2) { transform: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .tiers, .gallery, .statband, .footer__grid { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 70px 1fr; gap: 16px; }
  .cta-band { padding: 44px 26px; }
}
