/* Ing. Antonino Parisi · foglio di stile condiviso (tema "Professionale") */

/* ─── Font (subset latin, ospitati in locale) ─── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/inter-variable.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-500.woff2') format('woff2'); }

:root {
  --ink: #0E1116;
  --text: #1F2937;
  --muted: #4B5563;
  --line: #D9DEE7;
  --line-soft: #E5E9F0;
  --tint: #EEF1F6;
  --accent: #2B50F0;
  --accent-soft: #8EA2FF;
  --on-dark: #D5DCEA;
  --on-dark-muted: #B8C4D8;
  --dark-line: #2E3646;
  --footer: #07090D;
  --ff-head: 'Poppins', sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
  --gutter: clamp(20px, 4vw, 32px);
  --band-pad: clamp(64px, 9vw, 104px);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.band--dark :focus-visible, .topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-soft); }

h1, h2, h3 { font-family: var(--ff-head); color: var(--ink); }
h1 { font-weight: 700; font-size: clamp(36px, 4.8vw, 58px); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; }
h3 { font-weight: 600; font-size: 22px; line-height: 1.25; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 52px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }

/* ─── Barra superiore ─── */
.topbar { background: var(--ink); color: var(--on-dark); font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; padding-block: 10px; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar a { color: #FFFFFF; }

/* ─── Intestazione ─── */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; flex-direction: column; gap: 6px; font-family: var(--ff-head); color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 700; font-size: clamp(24px, 6vw, 30px); line-height: 1; letter-spacing: -1px; }
.brand-tag { font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: -0.2px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }

/* ─── Fasce di sezione ─── */
.band { position: relative; padding-block: var(--band-pad); }
.band--tint { background: var(--tint); border-block: 1px solid var(--line); }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--dark h1, .band--dark h2, .band--dark h3 { color: #FFFFFF; }
.band--dark .eyebrow { color: var(--accent-soft); }
.band--dark a, .site-footer a { color: #FFFFFF; }
.topbar a:hover, .band--dark a:hover, .site-footer a:hover { color: var(--accent-soft); }

/* Linea verticale con nodo, solo su schermi ampi */
@media (min-width: 1360px) {
  .band::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 664px); width: 3px; background: var(--ink); }
  .band--dark::before { background: #FFFFFF; }
  .hero::before { top: calc(var(--hero-top) + 11px); }
  .band .eyebrow::before { content: ""; position: absolute; left: calc(50% - 671px); width: 17px; height: 17px; margin-top: 3px; border-radius: 50%; background: var(--accent); }
  .band--dark .eyebrow::before { background: var(--accent-soft); }
}

/* ─── Pulsanti ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 1px solid transparent; border-radius: 3px; font-weight: 600; text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn--sm { min-height: 44px; padding: 0 22px; }
a.btn--dark { background: var(--ink); color: #FFFFFF; }
a.btn--dark:hover { background: var(--accent); color: #FFFFFF; }
a.btn--light { background: #FFFFFF; color: var(--ink); }
a.btn--light:hover { background: var(--on-dark); color: var(--ink); }
a.btn--ghost { border-color: #9CB0D3; color: #FFFFFF; }
a.btn--ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* ─── Hero ─── */
.hero { --hero-top: clamp(72px, 10vw, 120px); overflow: hidden; isolation: isolate; padding-block: var(--hero-top) clamp(80px, 10.5vw, 128px); }
.hero--project { --hero-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 96px); }
.hero-art, .hero-grid { position: absolute; top: 0; right: 0; z-index: -1; width: 60%; height: 100%; }
.hero-grid {
  background-image: linear-gradient(#1F2740 1px, transparent 1px), linear-gradient(90deg, #1F2740 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%);
  mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.hero-copy { max-width: 680px; display: flex; flex-direction: column; gap: 26px; }
.hero .lead { max-width: 580px; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border: 1px solid var(--dark-line); border-radius: 3px; font-size: 13px; font-weight: 500; color: var(--on-dark-muted); }

/* ─── Schede con filetto superiore ─── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 3px solid var(--ink); }
.cards--lead .card h3 { font-size: 24px; }
.card p { color: var(--muted); font-size: 16px; }

/* ─── Elenco progetti ─── */
.project-list { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line); }
.project-row { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; padding: 28px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line-soft); }
.project-row:last-child { border-bottom: 0; }
.project-kind { flex: 0 1 200px; min-width: 150px; font-size: 14px; font-weight: 600; color: var(--muted); }
.project-body { flex: 1 1 380px; min-width: 0; }
.project-body h3 { margin-bottom: 4px; }
.project-body h3 a { text-decoration: none; }
.project-logo { display: inline-block; }
.project-logo svg { display: block; height: 30px; width: auto; }
.hero-logo svg { display: block; height: clamp(56px, 7vw, 84px); width: auto; }
.project-body p { color: var(--muted); font-size: 16px; }
.more { font-size: 15px; font-weight: 600; }

/* ─── Passi numerati ─── */
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.steps li { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--ff-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--on-dark-muted); }
.steps h3 { font-family: var(--ff-body); font-size: 19px; line-height: 1.65; }
.steps p { color: var(--muted); font-size: 16px; }

/* ─── Due colonne ─── */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.split--top { align-items: flex-start; }
.split-main { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.split-side { flex: 1 1 380px; min-width: 0; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.band--dark .split-main > p:not(.eyebrow) { font-size: 18px; }

.facts { border-top: 1px solid var(--line); }
.facts div { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { min-width: 130px; font-size: 14px; color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 500; }
.band--dark .facts, .band--dark .facts div { border-color: var(--dark-line); }
.band--dark .facts dt { color: var(--on-dark-muted); }
.band--dark .facts dd { color: #FFFFFF; font-weight: 400; }

/* ─── Risultati ─── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 3px solid var(--ink); }
.stat-num { font-family: var(--ff-head); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.stat-label { color: var(--muted); font-size: 16px; }

/* ─── Tecnologie ─── */
.chip-groups { display: flex; flex-direction: column; gap: 32px; }
.chip-group h3 { margin-bottom: 12px; font-family: var(--ff-body); font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 3px; font-size: 15px; font-weight: 500; color: var(--ink); }

/* ─── Domande frequenti ─── */
.faq { background: #FFFFFF; border: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px clamp(20px, 3vw, 32px); font-family: var(--ff-head); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--ff-body); font-weight: 500; font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq p { max-width: 860px; padding: 0 clamp(20px, 3vw, 32px) 24px; color: var(--muted); font-size: 16px; }

/* ─── Contatti ─── */
.contact-intro { max-width: 480px; color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 3px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.contact-link:hover { border-color: var(--accent); }
a.contact-link--primary { background: var(--ink); color: #FFFFFF; }
a.contact-link--primary:hover { background: var(--accent); color: #FFFFFF; }
.social { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 8px; font-size: 15px; }

.cta .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }

/* ─── Piè di pagina ─── */
.site-footer { background: var(--footer); color: var(--on-dark-muted); padding-block: 48px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; font-family: var(--ff-head); color: #FFFFFF; }
.footer-name { font-weight: 700; font-size: clamp(26px, 6.5vw, 32px); line-height: 1; letter-spacing: -1.1px; }
.footer-tag { font-weight: 600; font-size: 15px; letter-spacing: -0.2px; }
.footer-meta { font-family: var(--ff-mono); font-weight: 500; font-size: 12px; line-height: 1.7; letter-spacing: 1.4px; text-transform: uppercase; color: var(--on-dark-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-copy { padding-top: 24px; border-top: 1px solid #232B38; font-size: 13px; }

/* ─── Pagine informative ─── */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.legal h2 { margin-top: 24px; font-size: 24px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ─── Avviso cookie ─── */
.cookie-banner { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; background: var(--ink); color: var(--on-dark); border-top: 1px solid var(--dark-line); font-size: 14px; line-height: 1.5; }
.cookie-banner .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-block: 14px; }
.cookie-banner p { flex: 1 1 420px; }
.cookie-banner a { color: #FFFFFF; }
.cookie-banner a:hover { color: var(--accent-soft); }
.cookie-banner :focus-visible { outline-color: var(--accent-soft); }
.cookie-banner .btn { background: #FFFFFF; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.cookie-banner .btn:hover { background: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .contact-link { transition: none; }
}
