/* Iron S.r.l. – sito vetrina. Blu notte e ambra, titoli larghi (Archivo expanded), testo Inter. */
:root {
  --navy: #0f1f3d; --navy-2: #1a2f5a; --accent: #f5a524; --accent-dark: #d98a0b; --blue: #2f6fb2;
  --text: #283040; --muted: #586274; --soft: #f3f5f9; --line: #e2e7ef; --white: #fff;
  --radius: 14px; --wrap: 1180px;
  --title: "Archivo", "Arial Black", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 16px/1.65 "Inter", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--white); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--title); font-stretch: 125%; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; color: var(--white); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 600; }
.kicker { display: inline-block; margin-bottom: 10px; color: var(--accent); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.kicker.dark { color: var(--blue); }
.todo { background: #fff3c4; color: #7a5200; border-radius: 4px; padding: 0 4px; font-size: .9em; }

/* pulsanti a pillola */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .8rem; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.actions.center { justify-content: center; }

/* intestazione */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-svg { width: 150px; height: auto; display: block; }
.logo-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--accent);
  font-family: var(--title); font-stretch: 125%; font-weight: 800; font-size: 1.05rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--title); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; color: var(--navy); letter-spacing: .04em; }
.logo-text small { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.btn) { text-decoration: none; color: var(--navy); font-weight: 500; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.menu a:not(.btn):hover { color: var(--blue); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); }

/* foto grande con il titolo */
.hero { position: relative; display: flex; align-items: center; min-height: min(78vh, 680px);
  background: linear-gradient(100deg, rgba(10,22,45,.9) 0%, rgba(10,22,45,.62) 48%, rgba(10,22,45,.15) 100%), url('../img/codex/hero.jpg') center / cover, var(--navy); }
.hero-inner { padding: 90px 0; max-width: var(--wrap); }
.hero-inner > * { max-width: 620px; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.08rem; }

.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 84px 0; }
.intro p { color: var(--muted); margin: 0 0 22px; }

.band { padding: 84px 0; background: var(--navy); }
.band h2, .band h3 { color: var(--white); }
.band.soft { background: var(--soft); }
.band.soft h2, .band.soft h3 { color: var(--navy); }
.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.line { overflow: hidden; border-radius: var(--radius); background: var(--navy-2); }
.line img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.line div { padding: 18px 20px 22px; }
.line p { margin: 0; color: rgba(255,255,255,.78); font-size: .93rem; }

.showcase { padding: 84px 0; }
.showcase-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: 0 12px 30px rgba(15,31,61,.12); transform: translateY(-2px); }
.product img { aspect-ratio: 1; object-fit: contain; width: 100%; margin-bottom: 8px; }
.product span { color: var(--blue); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product strong { color: var(--navy); font-size: .98rem; }

.photo-band { height: clamp(240px, 38vw, 460px); background: url('../img/codex/consegna.jpg') center 60% / cover, var(--soft); }

.steps { padding: 84px 0; text-align: center; }
.steps ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0; margin: 34px 0 10px; text-align: left; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--soft); }
.steps li > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 800; }
.steps p { margin: 0; color: var(--muted); }

.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-inner img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about p { color: var(--muted); }

.cta { padding: 84px 0; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: var(--white); }
.cta h2 { color: var(--white); }
.cta p { color: rgba(255,255,255,.82); }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact-list { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-list > a:not(.btn), .contact-list > span { text-decoration: none; color: var(--white); font-size: 1.05rem; }
.contact-list b { display: inline-block; min-width: 92px; color: var(--accent); font-weight: 600; }
.contact-list .btn { margin-top: 10px; }

.footer { padding: 36px 0; background: #0a1630; color: rgba(255,255,255,.78); font-size: .9rem; }
.footer strong { color: var(--white); font-family: var(--title); font-stretch: 125%; }
.footer p { margin: 4px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* pagine di testo (privacy) */
.page { padding: 64px 0 84px; max-width: 820px; }
.page h1 { color: var(--navy); font-size: 2rem; }
.page h2 { font-size: 1.2rem; margin-top: 1.6em; }

@media (max-width: 980px) {
  .lines, .products { grid-template-columns: repeat(2, 1fr); }
  .intro, .about-inner, .cta-inner { grid-template-columns: 1fr; gap: 26px; }
  .steps ol { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .menu { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
    background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; }
}
@media (max-width: 560px) {
  .lines, .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product { padding: 10px; }
  .hero-inner { padding: 64px 0; }
  .logo-text small { display: none; }
  .logo-svg { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .product { transition: none; } }
