/*
Theme Name: Reviso
Theme URI: https://melo-grano.com:5005/
Author: Melograno
Description: Tema editoriale e commerciale per Reviso, piattaforma di raccolta documentale per revisori legali.
Version: 1.0.0
Text Domain: revisori-suite
*/

:root {
  --ink: #142a2d;
  --ink-soft: #496064;
  --paper: #f6f4ee;
  --paper-deep: #ece8de;
  --white: #ffffff;
  --teal: #0b6b67;
  --teal-dark: #074e4b;
  --teal-soft: #d8eeea;
  --lime: #d9ed92;
  --gold: #d9a441;
  --line: rgba(20, 42, 45, 0.14);
  --shadow: 0 24px 70px rgba(20, 42, 45, 0.13);
  --radius: 22px;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.section-title {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.section-lead { max-width: 680px; margin: 24px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--teal-dark); box-shadow: 0 12px 28px rgba(11,107,103,.22); }
.button--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--white); color: var(--ink); box-shadow: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(246,244,238,.9);
  backdrop-filter: blur(16px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.18rem; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: var(--teal); color: var(--lime); }
.brand-mark svg { width: 20px; height: 20px; }
.brand em { color: var(--teal); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 25px; color: var(--ink-soft); font-size: .92rem; font-weight: 650; }
.nav-links a:hover { color: var(--teal); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); }

.hero { position: relative; overflow: hidden; padding: 92px 0 72px; }
.hero::before {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,238,234,.94), rgba(216,238,234,0) 68%);
  content: "";
  right: -120px;
  top: -170px;
}
.hero-grid { position: relative; display: grid; align-items: center; gap: 72px; grid-template-columns: .92fr 1.08fr; }
.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .95;
}
.hero h1 span { color: var(--teal); }
.hero-copy > p:not(.eyebrow) { max-width: 590px; margin: 27px 0 0; color: var(--ink-soft); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--ink-soft); font-size: .82rem; }
.hero-note svg { width: 17px; color: var(--teal); }

.product-frame { position: relative; padding: 12px; border: 1px solid rgba(20,42,45,.12); border-radius: 30px; background: rgba(255,255,255,.68); box-shadow: var(--shadow); transform: rotate(1deg); }
.product-frame::after { position: absolute; z-index: -1; width: 150px; height: 150px; border-radius: 50%; background: var(--lime); content: ""; right: -35px; bottom: -35px; }
.app-shell { overflow: hidden; min-height: 510px; border-radius: 21px; background: #fdfdfb; }
.app-top { height: 52px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-deep); }
.app-layout { display: grid; min-height: 458px; grid-template-columns: 154px 1fr; }
.app-sidebar { padding: 21px 14px; background: var(--ink); color: rgba(255,255,255,.7); }
.app-logo { margin-bottom: 24px; color: var(--white); font-size: .86rem; font-weight: 800; }
.app-nav-item { margin: 5px 0; padding: 9px 10px; border-radius: 8px; font-size: .67rem; }
.app-nav-item.is-active { background: rgba(217,237,146,.16); color: var(--lime); }
.app-main { padding: 26px; }
.app-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.app-heading h3 { margin: 0; font-size: 1.1rem; }
.app-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: .67rem; }
.app-pill { padding: 6px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: .6rem; font-weight: 800; }
.metric-grid { display: grid; gap: 10px; margin-top: 22px; grid-template-columns: repeat(3,1fr); }
.metric { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.metric span { display: block; color: var(--ink-soft); font-size: .55rem; }
.metric strong { display: block; margin-top: 4px; font-size: 1.12rem; }
.metric i { display: block; width: 65%; height: 4px; margin-top: 10px; border-radius: 10px; background: var(--teal-soft); }
.metric:nth-child(2) i { width: 82%; background: #f2dfb8; }
.metric:nth-child(3) i { width: 45%; background: #e5dcef; }
.audit-list { margin-top: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.audit-row { display: grid; align-items: center; gap: 9px; padding: 11px 13px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 62px 54px; font-size: .59rem; }
.audit-row:last-child { border-bottom: 0; }
.audit-row strong { font-size: .62rem; }
.progress { height: 5px; overflow: hidden; border-radius: 10px; background: var(--paper-deep); }
.progress::after { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--teal); content: ""; }
.status { color: var(--teal); font-weight: 800; text-align: right; }

.proof { border-block: 1px solid var(--line); background: rgba(255,255,255,.34); }
.proof-grid { min-height: 104px; display: grid; align-items: center; grid-template-columns: 1.25fr repeat(4,1fr); }
.proof-label { color: var(--ink-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.proof-item { display: flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 750; }
.proof-item svg { width: 19px; color: var(--teal); }

.section { padding: 118px 0; }
.section--white { background: var(--white); }
.section--dark { overflow: hidden; background: var(--ink); color: var(--white); }
.section--dark .eyebrow { color: var(--lime); }
.section--dark .section-lead { color: rgba(255,255,255,.64); }
.problem-grid { display: grid; gap: 20px; margin-top: 58px; grid-template-columns: repeat(3,1fr); }
.problem-card { min-height: 265px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.problem-number { display: block; margin-bottom: 40px; color: var(--gold); font-family: var(--font-serif); font-size: 1.15rem; font-style: italic; }
.problem-card h3 { margin: 0; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -.03em; }
.problem-card p { margin: 13px 0 0; color: var(--ink-soft); font-size: .94rem; }

.feature-layout { display: grid; align-items: start; gap: 75px; grid-template-columns: .8fr 1.2fr; }
.feature-intro { position: sticky; top: 120px; }
.feature-list { border-top: 1px solid rgba(255,255,255,.16); }
.feature-item { display: grid; gap: 20px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.16); grid-template-columns: 46px 1fr; }
.feature-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: rgba(217,237,146,.1); color: var(--lime); }
.feature-icon svg { width: 20px; }
.feature-item h3 { margin: 0; font-size: 1.03rem; }
.feature-item p { margin: 6px 0 0; color: rgba(255,255,255,.58); font-size: .9rem; }

.steps { position: relative; display: grid; gap: 0; margin-top: 64px; grid-template-columns: repeat(3,1fr); }
.steps::before { position: absolute; height: 1px; background: var(--line); content: ""; left: 8%; right: 8%; top: 26px; }
.step { position: relative; padding-right: 48px; }
.step-dot { display: grid; position: relative; z-index: 1; width: 52px; height: 52px; place-items: center; border: 7px solid var(--paper); border-radius: 50%; background: var(--teal); color: var(--white); font-family: var(--font-serif); }
.step h3 { margin: 25px 0 0; font-family: var(--font-serif); font-size: 1.65rem; font-weight: 500; }
.step p { margin: 10px 0 0; color: var(--ink-soft); font-size: .93rem; }

.audience-grid { display: grid; gap: 16px; margin-top: 58px; grid-template-columns: repeat(4,1fr); }
.audience-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.audience-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(20,42,45,.09); }
.audience-card svg { width: 28px; color: var(--teal); }
.audience-card h3 { margin: 35px 0 0; font-size: 1rem; }
.audience-card p { margin: 8px 0 0; color: var(--ink-soft); font-size: .86rem; }

.security-wrap { display: grid; align-items: center; gap: 70px; grid-template-columns: 1fr 1fr; }
.security-panel { position: relative; padding: 40px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.security-badge { display: grid; width: 88px; height: 88px; place-items: center; margin-bottom: 32px; border-radius: 24px; background: var(--teal-soft); color: var(--teal); }
.security-badge svg { width: 42px; }
.security-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.security-line:last-child { border-bottom: 0; }
.security-line span:last-child { color: var(--teal); font-size: .76rem; font-weight: 800; }
.security-copy ul { padding: 0; margin: 30px 0 0; list-style: none; }
.security-copy li { display: flex; gap: 12px; margin: 15px 0; color: var(--ink-soft); }
.security-copy li::before { content: "✓"; color: var(--teal); font-weight: 900; }

.faq-grid { display: grid; gap: 70px; grid-template-columns: .72fr 1.28fr; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::after { content: "+"; color: var(--teal); font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 680px; margin: -6px 0 22px; color: var(--ink-soft); font-size: .92rem; }

.cta { padding: 0 0 90px; }
.cta-box { position: relative; overflow: hidden; padding: 72px; border-radius: 32px; background: var(--teal); color: var(--white); }
.cta-box::before, .cta-box::after { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ""; }
.cta-box::before { width: 360px; height: 360px; right: -130px; top: -190px; }
.cta-box::after { width: 230px; height: 230px; right: 20px; bottom: -170px; }
.cta-grid { position: relative; z-index: 1; display: grid; align-items: end; gap: 40px; grid-template-columns: 1fr auto; }
.cta-grid--form { align-items: start; gap: 58px; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); }
.cta h2 { max-width: 750px; margin: 0; font-family: var(--font-serif); font-size: clamp(2.3rem,5vw,4.5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.cta p { max-width: 620px; margin: 20px 0 0; color: rgba(255,255,255,.74); }
.cta .button { background: var(--lime); color: var(--ink); }
.cta .eyebrow { color: var(--lime); }
.cta-points { padding: 0; margin: 34px 0 0; list-style: none; }
.cta-points li { display: flex; gap: 11px; margin: 13px 0; color: rgba(255,255,255,.84); font-size: .92rem; }
.cta-points li::before { color: var(--lime); content: "✓"; font-weight: 900; }
.demo-card { padding: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 24px 55px rgba(7,78,75,.28); }
.demo-form { display: grid; gap: 17px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.demo-form label { display: grid; gap: 7px; color: var(--ink); font-size: .78rem; font-weight: 750; }
.demo-form label > span { color: var(--gold); }
.demo-form input, .demo-form select, .demo-form textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--paper); color: var(--ink); font-weight: 500; }
.demo-form textarea { min-height: 92px; resize: vertical; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,107,103,.12); }
.demo-form .privacy-check { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: .73rem; font-weight: 500; }
.demo-form .privacy-check input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--teal); }
.demo-form .privacy-check span { color: inherit; }
.demo-form .privacy-check a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.demo-form .button { width: 100%; border: 0; cursor: pointer; }
.form-note { margin: -5px 0 0 !important; color: var(--ink-soft) !important; font-size: .68rem; text-align: center; }
.form-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-success, .form-error { padding: 22px; border-radius: 15px; }
.form-success { background: var(--teal-soft); color: var(--teal-dark); }
.form-error { margin-bottom: 18px; background: #fff0ee; color: #8a3025; }
.form-success strong { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 500; }
.form-success p { margin: 8px 0 0; color: var(--teal-dark); }

.legal-main { min-height: 70vh; padding: 82px 0 110px; }
.legal-article { max-width: 820px; }
.legal-article h1 { margin: 0 0 28px; font-family: var(--font-serif); font-size: clamp(2.7rem,6vw,5.2rem); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.legal-article h2 { margin: 42px 0 12px; font-family: var(--font-serif); font-size: 1.8rem; font-weight: 500; }
.legal-article p, .legal-article li { color: var(--ink-soft); }
.legal-article a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal-notice { padding: 20px; border-left: 3px solid var(--gold); background: var(--white); }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.footer-note { color: var(--ink-soft); font-size: .78rem; }
.footer-links { display: flex; gap: 22px; color: var(--ink-soft); font-size: .78rem; }

@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; inset: 78px 20px auto; flex-direction: column; align-items: stretch; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding-top: 60px; }
  .hero-grid, .feature-layout, .security-wrap, .faq-grid, .cta-grid--form { grid-template-columns: 1fr; }
  .feature-intro { position: static; }
  .product-frame { max-width: 720px; }
  .proof-grid { padding: 25px 0; gap: 20px; grid-template-columns: repeat(2,1fr); }
  .proof-label { grid-column: 1/-1; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 660px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 82px 0; }
  .hero h1 { font-size: 3.55rem; }
  .hero-grid { gap: 45px; }
  .hero-actions .button { width: 100%; }
  .app-shell { min-height: 410px; }
  .app-layout { min-height: 358px; grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { padding: 18px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric:last-child { display: none; }
  .proof-grid, .problem-grid, .audience-grid, .steps { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .steps::before { display: none; }
  .step { padding-right: 0; }
  .problem-card { min-height: 0; }
  .audience-card h3 { margin-top: 20px; }
  .security-panel { padding: 26px; }
  .cta-box { padding: 44px 26px; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta .button { width: 100%; }
  .demo-card { padding: 23px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
