/* Iurnova S.r.l. — foglio di stile del sito
   Palette: blu notte #14233A · oro #C9A227 · grigio azzurro #9AA6B8 · carta #F7F5F0 */

/* Caratteri ospitati sul sito (nessuna chiamata a servizi esterni) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-400.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-600.woff2") format("woff2"); }

:root {
  --ink: #14233A;
  --ink-2: #1E3150;
  --ink-3: #2B4370;
  --gold: #C9A227;
  --gold-2: #E2C15A;
  --mist: #9AA6B8;
  --slate: #5E6878;
  --gold-text: #7A5F0E; /* oro per testi e icone su fondo chiaro: contrasto AA */
  --paper: #F7F5F0;
  --paper-2: #EFEBE2;
  --white: #FFFFFF;
  --text: #1B2433;
  --text-2: #4B5568;
  --line: #E1DDD3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 35, 58, .10);
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-3); }
p a, li a, .prose a { text-decoration: underline; text-decoration-color: rgba(20,35,58,.3); text-underline-offset: 3px; }
.footer a, .nav a, .brand, .btn, .social a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--text-2); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 1rem;
}
.container { width: min(var(--max), 100% - 32px); margin: 0 auto; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.dark { background: var(--ink); color: #E6E9EF; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .lead, .section.dark p { color: #C5CCD8; }
.section.paper2 { background: var(--paper-2); }
.section.white { background: var(--white); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-weight: 500; font-size: .98rem; color: var(--text-2); }
.nav a.active, .nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-3); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost.light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost.light:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,162,39,.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  padding: 110px 0 96px;
  position: relative; overflow: hidden;
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { color: #C9D1DE; max-width: 58ch; font-size: 1.25rem; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero .eyebrow { color: var(--gold-2); }
.hero-note { margin-top: 28px; font-size: .92rem; color: #9AA6B8; }

/* Grid & cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 0 rgba(20,35,58,.03);
}
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--font-serif); font-size: 2rem; color: var(--gold-text); font-weight: 600; line-height: 1;
}
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
}
.icon svg { width: 24px; height: 24px; }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.dark .card h3 { color: var(--white); }
.dark .card p { color: #C5CCD8; }
.dark .icon { background: rgba(255,255,255,.08); color: var(--gold-2); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse > :first-child { order: 2; }
.feature-visual {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.mock { font-family: var(--font-sans); font-size: .9rem; }
.mock .bar { height: 10px; border-radius: 6px; background: var(--paper-2); margin: 10px 0; }
.mock .bar.short { width: 60%; }
.mock .bar.mid { width: 80%; }
.mock .tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem;
  background: var(--paper); color: var(--slate); border: 1px solid var(--line); margin-right: 6px;
}
.mock .tag.gold { background: rgba(201,162,39,.15); color: #7A5F0E; border-color: rgba(201,162,39,.4); }
.mock .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mock .row:last-child { border-bottom: 0; }
.mock .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.mock .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--slate); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-text);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.4-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.4-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/></svg>") center/contain no-repeat;
}
.dark .checks li::before { background: var(--gold-2); }
.dark .stats .value, .dark .card .num { color: var(--gold-2); }
.section.dark .eyebrow, .cta-band .eyebrow { color: var(--gold-2); }

/* Quote / principle */
.principle {
  border-left: 4px solid var(--gold); padding: 8px 0 8px 24px; margin: 24px 0;
  font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); line-height: 1.4;
}
.dark .principle { color: var(--white); }
.legal-quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
  font-style: italic; color: var(--text-2); margin: 0 0 1em;
}
.legal-quote cite { display: block; font-style: normal; font-size: .88rem; color: var(--slate); margin-top: 10px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); color: var(--gold-text); font-size: 1.6rem; font-weight: 600; display: block; margin-bottom: 8px;
}
.step h3 { font-size: 1.1rem; }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roadmap li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.roadmap li strong { display: block; color: var(--ink); margin-bottom: 4px; }
.roadmap li span { font-size: .92rem; color: var(--text-2); }
.pill { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--slate); margin-left: 8px; vertical-align: middle; }
.pill.gold { background: rgba(201,162,39,.18); color: #7A5F0E; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats .value { font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold-text); font-weight: 600; line-height: 1; }
.stats .label { color: var(--text-2); margin-top: 8px; }
.dark .stats .label { color: #C5CCD8; }

/* CTA band */
.cta-band {
  background: var(--ink); color: var(--white); border-radius: 20px; padding: 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(201,162,39,.18), transparent 60%);
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #C9D1DE; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .9rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
  background: var(--white); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,162,39,.55); border-color: var(--gold); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.consent input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--slate); }

/* Contact info */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--ink); font-weight: 600; }

/* Prose (pagine legali) */
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }

/* Page hero (interne) */
.page-hero { background: var(--ink); color: var(--white); padding: 72px 0 56px; }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: #C9D1DE; max-width: 62ch; }
.page-hero .eyebrow { color: var(--gold-2); }

/* Footer */
.footer { background: #0F1A2C; color: #B7C0CE; padding: 64px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); font-family: var(--font-sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #D6DCE6; }
.footer a:hover { color: var(--gold-2); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .brand img { height: 36px; }
.footer .disclaimer { font-size: .84rem; color: #8D98AA; margin-top: 14px; max-width: 46ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #8D98AA; }
.social { display: flex; gap: 12px; }
.social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--gold-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 20px; color: var(--text-2); }
.faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 18px; }

/* Segmenti */
.segments { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.segments th, .segments td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.segments tr:last-child td { border-bottom: 0; }
.segments th { background: var(--paper-2); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.segments td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Honeypot antispam */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; color: var(--ink); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-family: var(--font-serif); font-size: 6rem; color: var(--gold-text); line-height: 1; }

/* Utility */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }

/* Responsive */
@media (max-width: 980px) {
  .grid-3, .grid-4, .steps, .roadmap, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .feature, .cta-band { grid-template-columns: 1fr; }
  .feature.reverse > :first-child { order: 0; }
  .cta-band .btn-row { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .segments, .segments tbody, .segments tr, .segments td { display: block; width: 100%; }
  .segments thead { display: none; }
  .segments tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .segments td { border: 0; padding: 6px 18px; }
  .segments td:first-child { white-space: normal; padding-top: 14px; }
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-2, .grid-3, .grid-4, .steps, .roadmap, .stats, .footer-grid, .form .two { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: block; }
  .cta-band { padding: 36px 24px; }
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
  .hero-art { display: none; }
}

/* Correzioni di contrasto */
.nav a.btn-gold, .nav a.btn-gold:hover { color: var(--ink); }
.dark .mock .tag.gold { color: var(--gold-2); background: rgba(201,162,39,.12); border-color: rgba(226,193,90,.45); }

/* Riga dei dati societari nel footer */
.footer-bottom .legal-line { max-width: 820px; line-height: 1.55; }
.footer-bottom .legal-links { white-space: nowrap; }
.prose table th { width: 32%; }
.consent { font-weight: 400; margin-bottom: 0; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
