:root {
  --red: #e8173f;
  --red-dark: #c50f31;
  --title-red: #dd3333;
  --black: #0d0d0d;
  --foot: #151515;
  --text: #686868;
  --head: #222;
  --line: #e6e6e6;
  --font: "Oswald", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { overflow-x: clip; margin: 0; font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--text); background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }
h1, h2, h3 { font-family: var(--font-head, var(--font)); color: var(--head); margin: 0; line-height: 1.1; }

/* barra di lettura */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); z-index: 40; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: box-shadow .3s; }
.top.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.top-in { display: flex; justify-content: space-between; align-items: stretch; height: 70px; padding: 0 0 0 40px; max-width: 1400px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--title-red); font-family: var(--font-head, var(--font)); text-transform: uppercase; font-size: 24px; font-weight: 400; letter-spacing: .01em; }
.logo-icon { width: 42px; height: 42px; color: #222; }
.nav { display: flex; }
.nav a { display: flex; align-items: center; padding: 0 16px; text-decoration: none; text-transform: uppercase; font-size: 14px; font-weight: 400; color: #333; transition: background .25s, color .25s; }
.nav a:hover { color: var(--title-red); }
.nav a.active { background: var(--title-red); color: #fff; }
.nav-btn { display: none; }

/* apertura */
.hero { background: var(--black); position: relative; height: calc(100vh - 70px); min-height: 540px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; top: 0; bottom: 0; right: 0; left: 34%; background-size: cover; background-position: center 30%; transform: scale(1.06); animation: zoom 14s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 22%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.25) 100%); }
@keyframes zoom { to { transform: scale(1); } }
.hero-in { position: relative; padding: 0 70px; max-width: 1400px; width: 100%; margin: 0 auto; }
.hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(44px, 6vw, 77px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.hero-pre { display: block; }
.hero-typed { color: var(--red); font-weight: 500; }
.cursor { color: var(--red); font-weight: 200; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { margin: 18px 0 34px; font-size: 20px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero-down { position: absolute; left: 50%; bottom: 28px; width: 40px; height: 40px; margin-left: -20px; color: #fff; animation: bounce 2s infinite; }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-12px); } 60% { transform: translateY(-6px); } }

/* bottoni */
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; text-transform: uppercase; font-size: 14px; font-weight: 400; letter-spacing: .06em; padding: 18px 46px; border-radius: 7px; transition: background .3s, transform .3s, box-shadow .3s; }
.btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,23,63,.3); }

/* banda nera */
.band { background: var(--black); color: #9a9a9a; padding: 80px 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.box { display: flex; gap: 22px; align-items: flex-start; }
.box-icon { width: 46px; height: 46px; flex: none; color: var(--red); }
.box h3 { color: #fff; font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.box p { margin: 0; font-size: 16px; }

/* sezioni alternate testo/foto */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.split.reverse .split-text { order: 2; }
.split-text { padding: 90px 9%; display: flex; flex-direction: column; justify-content: center; }
.split-img { background-size: cover; background-position: center 25%; min-height: 420px; position: relative; }
.split-img.dark::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.split-mark { position: absolute; z-index: 1; width: 110px; height: 110px; left: 50%; top: 50%; transform: translate(-50%,-50%); color: rgba(255,255,255,.85); }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: 13px; font-weight: 400; color: #8a8a8a; margin: 0 0 18px; }
h2 { text-transform: uppercase; font-size: clamp(32px, 3.2vw, 44px); font-weight: 400; color: #333; letter-spacing: .01em; }
.rule { display: block; width: 90px; height: 1px; background: #cfcfcf; margin: 26px 0 30px; }
.split-text p { color: #333; font-size: 16px; margin: 0 0 14px; max-width: 34em; }
.split-text .btn { align-self: flex-start; margin-top: 22px; }

/* servizi */
.services { padding: 110px 0; background: #f6f6f6; }
.center { text-align: center; }
.center-rule { margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 20px; }
.card { background: #fff; padding: 40px 30px; text-align: center; border-bottom: 3px solid transparent; transition: transform .35s, box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.08); border-color: var(--red); }
.card-icon { width: 52px; height: 52px; color: var(--red); margin: 0 auto 20px; }
.card h3 { text-transform: uppercase; font-size: 21px; font-weight: 400; line-height: 1.25; margin-bottom: 12px; }
.card p { margin: 0; font-size: 15.5px; }

/* contatti */
.contacts { padding: 110px 0; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contacts p { color: #333; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: #333; font-weight: 400; }
.contact-list span { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: #8a8a8a; padding-top: 3px; }

/* footer */
.foot { background: var(--foot); color: #9a9a9a; padding: 60px 0 24px; font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-title { font-family: var(--font-head, var(--font)); color: #fff; text-transform: uppercase; font-size: 22px; font-weight: 400; margin: 0 0 14px; }
.foot p { margin: 0; }
.foot-nav { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.foot-nav a { text-decoration: none; color: #ccc; }
.foot-nav a:hover { color: var(--red); }
.foot-copy { text-align: center; margin: 40px 0 0 !important; font-size: 13px; color: #666; }

/* animazioni allo scorrimento */
.reveal { opacity: 0; transition: opacity .9s ease, transform .9s ease; transition-delay: var(--d, 0s); }
.reveal.up { transform: translateY(50px); }
.reveal.left { transform: translateX(-60px); }
.reveal.right { transform: translateX(60px); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-down, .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* tablet e telefono */
@media (max-width: 960px) {
  .top-in { padding: 0 0 0 20px; }
  .logo { font-size: 18px; }
  .logo-icon { width: 34px; height: 34px; }
  .nav-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 70px; cursor: pointer; align-items: center; }
  .nav-btn span { width: 24px; height: 2px; background: #222; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav a { padding: 14px 24px; }
  #nav-toggle:checked ~ .nav { display: flex; }
  .hero-in { padding: 0 28px; }
  .hero-bg { left: 0; background-position: 62% 30%; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%); }
  .hero { align-items: flex-end; padding-bottom: 90px; }
  .band-grid, .cards, .contacts-grid { grid-template-columns: 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split.reverse .split-text { order: 0; }
  .split-text { padding: 70px 28px; }
  .split-img { min-height: 70vh; }
  .foot-nav { text-align: left; }
}
@media (min-width: 961px) and (max-width: 1150px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
