:root {
  --nero: #111111;
  --bianco: #ffffff;
  --argento: #c0c0c0;
  --argento-scuro: #8a8a8a;
  --grigio-chiaro: #f5f5f5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  color: var(--nero);
  background: var(--bianco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--argento);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo-header svg { height: 26px; width: auto; display: block; color: var(--nero); }
nav.menu { display: flex; gap: 32px; align-items: center; }
nav.menu a {
  color: var(--nero); text-decoration: none;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color .2s;
}
nav.menu a.active { color: var(--argento-scuro); border-bottom: 1px solid var(--nero); padding-bottom: 4px; }
nav.menu a:hover { color: var(--argento-scuro); }
.btn {
  display: inline-block;
  background: var(--nero); color: var(--bianco) !important;
  padding: 12px 28px; text-decoration: none;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--nero);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--bianco); color: var(--nero) !important; }
.btn.small { padding: 9px 20px; }
.btn.ghost {
  background: transparent; color: var(--nero) !important;
  border: 1px solid var(--argento-scuro);
}
.btn.ghost:hover { border-color: var(--nero); background: var(--nero); color: var(--bianco) !important; }

/* ===== Hero manifesto ===== */
.hero {
  padding: 64px 0 44px;
  background: linear-gradient(180deg, var(--bianco) 0%, var(--grigio-chiaro) 100%);
  border-bottom: 1px solid var(--argento);
}
.hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 56px; flex-wrap: wrap;
}
.hero-left { flex: 0 0 auto; }
.hero-left .monogram svg { height: 150px; width: auto; color: var(--nero); }
.hero-right { flex: 1 1 420px; text-align: left; }
.hero h1 {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300; letter-spacing: -0.01em; line-height: 1.1;
}
.hero h1 strong { font-weight: 700; }
.hero .actions { margin-top: 36px; display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 800px) {
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-right { text-align: left; }
}

/* ===== Page header (pagine interne) ===== */
.page-hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--argento);
  background: var(--grigio-chiaro);
}
.page-hero .section-label { color: var(--argento-scuro); }
.page-hero h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 300; letter-spacing: -0.01em; line-height: 1.1; max-width: 780px;
}
.page-hero h1 strong { font-weight: 700; }
.page-hero p.sub { margin-top: 20px; max-width: 560px; color: var(--argento-scuro); font-size: 17px; }

/* ===== Sezioni generiche ===== */
section { padding: 52px 0; }
.section-label {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--argento-scuro); margin-bottom: 10px;
}
h2.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 300; margin-bottom: 28px;
}
h2.section-title strong { font-weight: 700; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.section-head h2.section-title { margin-bottom: 0; }
.link-arrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border-bottom: 1px solid var(--nero); padding-bottom: 3px; }
.link-arrow:hover { color: var(--argento-scuro); border-color: var(--argento-scuro); }

/* ===== Un'agenzia. Tutta la filiera. ===== */
#filiera { background: var(--nero); color: var(--bianco); text-align: center; }
#filiera .section-label { color: var(--argento); }
#filiera p.big {
  font-size: clamp(22px, 3.4vw, 34px); font-weight: 300;
  max-width: 780px; margin: 0 auto; line-height: 1.5;
}
#filiera p.big strong { font-weight: 600; }

/* ===== Servizi ===== */
#servizi, .servizi-full { background: var(--bianco); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; background: var(--argento);
  border: 1px solid var(--argento);
}
.service {
  background: var(--bianco); padding: 30px 26px;
  transition: background .25s;
}
.service:hover { background: var(--grigio-chiaro); }
.service .num {
  font-size: 13px; color: var(--argento-scuro);
  letter-spacing: 0.15em; margin-bottom: 18px; display: block;
}
.service h3 {
  font-size: 19px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 12px;
}
.service p { color: var(--argento-scuro); font-size: 15px; }

/* ===== Servizi pagina completa (lista numerata grande) ===== */
.services-list { border-top: 1px solid var(--argento); }
.service-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: 26px 0; border-bottom: 1px solid var(--argento);
  align-items: baseline;
}
.service-row .num { font-size: 15px; color: var(--argento-scuro); letter-spacing: 0.1em; }
.service-row h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.service-row p { color: var(--argento-scuro); font-size: 16px; max-width: 640px; }
@media (max-width: 640px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== Studio ===== */
#studio { background: var(--grigio-chiaro); padding: 60px 0; }
#studio .section-label { margin-bottom: 8px; }
#studio p.big {
  font-size: clamp(22px, 3.2vw, 32px); font-weight: 600;
  max-width: 820px; line-height: 1.3; margin-bottom: 0;
}
#studio p.body {
  font-size: 17px; color: var(--argento-scuro);
  max-width: 700px; line-height: 1.5; margin-top: 2px;
}

/* ===== Progetti grid ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.project-card { display: block; text-decoration: none; color: var(--nero); }
.project-card .thumb {
  aspect-ratio: 4/3; background: var(--grigio-chiaro);
  border: 1px solid var(--argento);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 16px;
  color: var(--argento-scuro); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background .2s;
}
.project-card:hover .thumb { background: var(--argento); color: var(--bianco); }
.project-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.project-card p { font-size: 14px; color: var(--argento-scuro); }
.projects-note {
  margin-top: 48px; padding: 24px; border: 1px dashed var(--argento);
  color: var(--argento-scuro); font-size: 14px; text-align: center;
}

/* ===== Testimonianze ===== */
#testimonianze { background: var(--nero); color: var(--bianco); }
#testimonianze .section-label { color: var(--argento); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.testimonial { border-top: 1px solid #333; padding-top: 24px; }
.testimonial p.quote { font-size: 17px; font-weight: 300; margin-bottom: 20px; line-height: 1.5; }
.testimonial .author { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--argento); }

/* ===== CTA banda ===== */
.cta-band { background: var(--grigio-chiaro); border-top: 1px solid var(--argento); border-bottom: 1px solid var(--argento); text-align: center; padding: 46px 0; }
.cta-band h2 { font-size: clamp(15px, 4.4vw, 36px); font-weight: 300; margin-bottom: 22px; white-space: nowrap; }
.cta-band h2 strong { font-weight: 700; }
@media (max-width: 420px) {
  .cta-band h2 { font-size: 4vw; }
}

/* ===== Preventivo / Contatti ===== */
#preventivo { background: var(--grigio-chiaro); border-top: 1px solid var(--argento); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-info h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--argento-scuro); margin: 28px 0 8px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a { font-size: 16px; }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--argento); }
.contact-info a:hover { border-color: var(--nero); }
.form-wrap { max-width: 640px; }
form .field { margin-bottom: 22px; }
form label {
  display: block; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--argento-scuro); margin-bottom: 8px;
}
form input, form select, form textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--argento); background: var(--bianco);
  font-size: 15px; font-family: inherit; color: var(--nero);
  outline: none; transition: border-color .2s;
  border-radius: 0; appearance: none; -webkit-appearance: none;
}
form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23888'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--nero); }
form textarea { min-height: 130px; resize: vertical; }
form button {
  cursor: pointer; width: 100%;
  background: var(--nero); color: var(--bianco);
  border: 1px solid var(--nero); padding: 16px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  font-family: inherit; transition: background .2s, color .2s;
}
form button:hover { background: transparent; color: var(--nero); }
form button:disabled { opacity: .6; cursor: default; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--argento-scuro); }

/* ===== Footer ===== */
footer { background: var(--nero); color: var(--argento); padding: 44px 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px; padding-bottom: 28px; border-bottom: 1px solid #333;
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand svg { height: 24px; width: auto; color: var(--bianco); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--argento-scuro); max-width: 240px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bianco); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--argento); text-decoration: none; margin-bottom: 12px; }
.footer-col a:hover { color: var(--bianco); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding-top: 18px;
  font-size: 13px; letter-spacing: 0.04em; color: var(--argento-scuro);
}
.footer-bottom a { text-decoration: none; color: var(--argento-scuro); }
.footer-bottom a:hover { color: var(--bianco); }

@media (max-width: 640px) {
  nav.menu a:not(.btn) { display: none; }
  .hero { padding: 48px 0 32px; }
  section { padding: 36px 0; }
}

/* ===== Dinamico: header, reveal, ticker, micro-interazioni ===== */
header .nav { transition: height .25s ease; }
header.scrolled .nav { height: 56px; }
header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.services-grid .service.reveal:nth-child(1) { transition-delay: .05s; }
.services-grid .service.reveal:nth-child(2) { transition-delay: .12s; }
.services-grid .service.reveal:nth-child(3) { transition-delay: .19s; }
.services-grid .service.reveal:nth-child(4) { transition-delay: .26s; }
.services-grid .service.reveal:nth-child(5) { transition-delay: .33s; }
.services-grid .service.reveal:nth-child(6) { transition-delay: .40s; }
.projects-grid .project-card.reveal:nth-child(1) { transition-delay: .05s; }
.projects-grid .project-card.reveal:nth-child(2) { transition-delay: .12s; }
.projects-grid .project-card.reveal:nth-child(3) { transition-delay: .19s; }
.projects-grid .project-card.reveal:nth-child(4) { transition-delay: .26s; }
.projects-grid .project-card.reveal:nth-child(5) { transition-delay: .33s; }
.projects-grid .project-card.reveal:nth-child(6) { transition-delay: .40s; }
.services-list .service-row.reveal:nth-child(1) { transition-delay: .05s; }
.services-list .service-row.reveal:nth-child(2) { transition-delay: .1s; }
.services-list .service-row.reveal:nth-child(3) { transition-delay: .15s; }
.services-list .service-row.reveal:nth-child(4) { transition-delay: .2s; }
.services-list .service-row.reveal:nth-child(5) { transition-delay: .25s; }
.services-list .service-row.reveal:nth-child(6) { transition-delay: .3s; }
.testimonials-grid .testimonial.reveal:nth-child(1) { transition-delay: .05s; }
.testimonials-grid .testimonial.reveal:nth-child(2) { transition-delay: .15s; }

/* Ingresso hero al caricamento della pagina */
.hero-left .monogram, .hero h1, .hero .marquee-wrap, .hero .actions {
  opacity: 0; transform: translateY(18px);
  animation: heroIn .7s ease forwards;
}
.hero-left .monogram { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero .marquee-wrap { animation-delay: .3s; }
.hero .actions { animation-delay: .4s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* Ticker servizi animato */
.marquee-wrap {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--argento); border-bottom: 1px solid var(--argento);
  background: var(--nero); margin-top: 28px;
}
.marquee-track {
  display: inline-block; padding: 14px 0;
  animation: marquee 20s linear infinite;
}
.marquee-track span {
  display: inline-block; margin: 0 26px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bianco);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Micro-interazioni */
.btn, .link-arrow { transition: background .2s, color .2s, transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.project-card .thumb { transition: background .25s, transform .35s; }
.project-card:hover .thumb { transform: scale(1.02); }
.service { transition: background .25s, transform .25s; }
.service:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .monogram, .hero h1, .hero p.sub, .hero .marquee-wrap, .hero .actions {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important;
  }
  .marquee-track { animation: none !important; }
}
