:root {
  --terra: #C55A3A;
  --terra-dark: #9E4228;
  --terra-deep: #7A3420;
  --terra-light: #F5EBE6;
  --terra-glow: rgba(197,90,58,0.08);
  --dark: #1A1917;
  --dark-soft: #2C2B28;
  --mid: #6B6864;
  --light: #B0ADA8;
  --muted: #D4D2CD;
  --bg: #FAF9F6;
  --cream: #F5EDE4;
  --white: #FFFFFF;
  --border: rgba(26,25,23,0.1);
  --border-strong: rgba(26,25,23,0.18);
  --green: #1a7a4a;
  --green-bg: #eaf4ee;
  --amber: #c07b1a;
  --amber-bg: #fdf3e0;
  --red: #b03025;
  --red-bg: #fde8e8;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-d1 { animation: fadeUp 0.6s 0.1s ease forwards; opacity: 0; }
.fade-up-d2 { animation: fadeUp 0.6s 0.2s ease forwards; opacity: 0; }
.fade-up-d3 { animation: fadeUp 0.6s 0.3s ease forwards; opacity: 0; }
.state-anim { animation: fadeUp 0.5s ease both; }

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark { width: 4px; height: 30px; background: var(--terra); border-radius: 2px; }
.nav-logo-text { font-family: var(--sans); font-size: 20px; font-weight: 500; letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--terra); }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 13px; color: var(--mid); transition: color 0.2s; }
.nav-link:hover { color: var(--dark); }
.nav-cta {
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--terra); border: 1.5px solid var(--terra);
  padding: 7px 16px; border-radius: 8px; transition: all 0.2s;
}
.nav-cta:hover { background: var(--terra); color: white; }

.hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(197,90,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.8px;
  color: var(--terra); background: var(--terra-light);
  padding: 6px 16px; border-radius: 24px;
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--terra); border-radius: 50%;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 400; line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 1.25rem;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero h1 em { font-style: italic; color: var(--terra); }
.hero-sub {
  font-size: 18px; color: var(--mid); font-weight: 300;
  line-height: 1.7; max-width: 520px; margin: 0 auto 3rem;
}

.tool-wrapper { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.tool-box {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
.input-row { display: flex; gap: 10px; margin-bottom: 1rem; }
.url-input {
  flex: 1; height: 52px; padding: 0 18px;
  font-size: 15px; font-family: var(--sans);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg); color: var(--dark);
  transition: all 0.2s;
}
.url-input::placeholder { color: var(--light); font-weight: 300; }
.url-input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-glow); }
.btn-primary {
  height: 52px; padding: 0 24px;
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  background: var(--terra); color: white;
  border: none; border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(197,90,58,0.3); }
.btn-primary:active { transform: translateY(0); }
.tool-features { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.tool-feature { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mid); font-weight: 300; }
.tool-feature svg { flex-shrink: 0; }
.err-msg { font-size: 13px; color: var(--red); margin-bottom: 12px; padding: 10px 14px; background: var(--red-bg); border-radius: var(--radius); display: none; }

.loading-state { padding: 3rem 0; text-align: center; display: none; }
.spinner {
  width: 48px; height: 48px; margin: 0 auto 1.25rem;
  border: 3px solid rgba(197,90,58,0.12);
  border-top-color: var(--terra);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.loading-txt { font-size: 14px; color: var(--mid); font-weight: 300; }

#stateResults { display: none; }

.score-card {
  display: flex; align-items: center; gap: 1.5rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--cream) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.score-meta { flex: 1; }
.score-domain { font-size: 11px; letter-spacing: 1.2px; color: var(--mid); margin-bottom: 5px; }
.score-verdict { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.score-schema { font-size: 12px; color: var(--mid); }
.score-schema b { font-weight: 500; }
.score-note { font-size: 11px; color: var(--light); margin-top: 6px; font-style: italic; }

.section-label {
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
  color: var(--light); margin-bottom: 10px; margin-top: 1.5rem;
  text-transform: uppercase;
}

.issue-card {
  padding: 11px 14px; margin-bottom: 7px;
  background: var(--white);
  border: 1px solid rgba(176,48,37,0.12);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px; line-height: 1.6; color: var(--dark);
}

.cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px;
}
.cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cat-name { font-size: 13px; font-weight: 500; }
.cat-score { font-size: 13px; font-weight: 500; }
.progress-track { height: 4px; background: rgba(26,25,23,0.06); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.cat-items { margin-top: 10px; }
.cat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; border-top: 1px solid var(--border);
  font-size: 12px;
}
.item-icon { font-size: 13px; flex-shrink: 0; font-weight: 500; }
.item-label { flex: 1; display: flex; align-items: center; gap: 6px; }
.badge-critical {
  font-size: 9px; font-weight: 500; letter-spacing: 0.3px;
  background: var(--red-bg); color: var(--red);
  padding: 2px 7px; border-radius: 4px;
}
.blurred { filter: blur(5px); user-select: none; pointer-events: none; }

.affidabilita {
  background: linear-gradient(135deg, #FEF7ED 0%, #FDF0DC 100%);
  border: 1px solid rgba(192,123,26,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.aff-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.aff-title { font-size: 14px; font-weight: 500; color: var(--amber); display: flex; align-items: center; gap: 6px; }
.aff-score-block { text-align: right; }
.aff-score-num { font-size: 24px; font-weight: 500; color: var(--amber); line-height: 1; }
.aff-score-label { font-size: 10px; letter-spacing: 0.5px; color: var(--amber); opacity: 0.7; margin-top: 2px; }
.aff-signals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
.sig-card { background: rgba(255,255,255,0.7); border: 1px solid rgba(192,123,26,0.15); border-radius: var(--radius); padding: 9px 12px; }
.sig-label { font-size: 10px; letter-spacing: 0.5px; color: var(--mid); margin-bottom: 3px; }
.sig-value { font-size: 12px; font-weight: 500; }
.sig-value.bad { color: var(--red); }
.sig-value.warn { color: var(--amber); }
.aff-message { font-size: 13px; color: #7A5A1A; line-height: 1.6; border-top: 1px solid rgba(192,123,26,0.15); padding-top: 1rem; }

.email-gate {
  background: linear-gradient(135deg, #FDF6F3, var(--terra-light));
  border: 1px solid rgba(197,90,58,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.gate-title { font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.gate-sub { font-size: 13px; color: var(--mid); line-height: 1.55; margin-bottom: 1rem; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 0.85rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mid);
  text-align: left;
}
.consent-row input { margin-top: 2px; accent-color: var(--terra); flex-shrink: 0; }
.consent-row-form { margin-top: -0.25rem; margin-bottom: 0.85rem; }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-status {
  display: none;
  margin-top: 0.85rem;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}
.form-status.error { display: block; color: var(--red); background: var(--red-bg); }
.form-status.success { display: block; color: var(--green); background: var(--green-bg); }
.optional-label { color: var(--light); font-weight: 300; text-transform: none; letter-spacing: 0; }
.btn-primary:disabled,
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }


.action-box {
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.action-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.action-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; font-size: 13px; line-height: 1.6; color: var(--mid);
}
.action-step:not(:last-child) { border-bottom: 1px solid var(--border); }
.action-num {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--terra-light); color: var(--terra);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
}
.action-step strong { color: var(--dark); font-weight: 500; }
.subtle-cta {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: var(--bg); border-radius: var(--radius);
  font-size: 13px; color: var(--mid); line-height: 1.6;
}
.subtle-cta a {
  color: var(--terra); font-weight: 500;
  border-bottom: 1px solid rgba(197,90,58,0.3);
  transition: border-color 0.2s;
}
.subtle-cta a:hover { border-color: var(--terra); }

.win-card {
  padding: 11px 14px; margin-bottom: 7px;
  background: var(--white);
  border: 1px solid rgba(26,122,74,0.12);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px; line-height: 1.6; color: var(--dark);
}

.reset-btn {
  margin-top: 1.5rem; font-size: 13px; color: var(--mid); font-weight: 300;
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  display: flex; align-items: center; gap: 5px; transition: color 0.2s;
}
.reset-btn:hover { color: var(--dark); }

.stats {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--serif); font-size: 40px; font-weight: 400;
  color: var(--dark); line-height: 1; margin-bottom: 6px;
}
.stat-num span { color: var(--terra); }
.stat-label { font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.5; }

.why { padding: 6rem 2rem; }
.why-inner { max-width: 1080px; margin: 0 auto; }
.why-header { max-width: 560px; margin-bottom: 3.5rem; }
.section-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 1.8px; color: var(--terra); margin-bottom: 1rem; }
.why h2 { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 40px); font-weight: 400; line-height: 1.2; }
.why h2 em { font-style: italic; color: var(--terra); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  transition: all 0.3s; position: relative;
}
.why-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-card-num { font-family: var(--serif); font-size: 56px; font-weight: 400; color: var(--terra); opacity: 0.15; line-height: 1; position: absolute; top: 1rem; right: 1.25rem; }
.why-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 0.75rem; line-height: 1.35; }
.why-card p { font-size: 14px; color: var(--mid); line-height: 1.7; font-weight: 300; }

.how { background: var(--dark); padding: 6rem 2rem; position: relative; overflow: hidden; }
.how::before { content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(197,90,58,0.08) 0%, transparent 70%); pointer-events: none; }
.how-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.how h2 { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 40px); font-weight: 400; color: white; max-width: 420px; margin-bottom: 3.5rem; line-height: 1.2; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.how-step-num { font-family: var(--serif); font-size: 64px; font-weight: 400; color: rgba(197,90,58,0.2); line-height: 1; margin-bottom: 1.25rem; }
.how-step h3 { font-size: 16px; font-weight: 500; color: white; margin-bottom: 0.6rem; line-height: 1.35; }
.how-step p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; font-weight: 300; }

.partner { padding: 6rem 2rem; background: linear-gradient(180deg, var(--bg) 0%, var(--cream) 50%, var(--bg) 100%); }
.partner-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.partner h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.2; margin-bottom: 1.25rem; }
.partner h2 em { font-style: italic; color: var(--terra); }
.partner-lead { font-size: 15px; color: var(--mid); line-height: 1.7; font-weight: 300; margin-bottom: 2.5rem; }
.partner-benefits { display: flex; flex-direction: column; gap: 1.25rem; }
.partner-benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--terra-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.benefit-icon svg { color: var(--terra); }
.benefit-text h4 { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.benefit-text p { font-size: 13px; color: var(--mid); line-height: 1.55; font-weight: 300; }

.partner-form-card {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-title { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 0.5rem; }
.form-sub { font-size: 14px; color: var(--mid); font-weight: 300; margin-bottom: 2rem; line-height: 1.5; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--mid); margin-bottom: 6px; letter-spacing: 0.3px; }
.form-input {
  width: 100%; height: 46px; padding: 0 14px;
  font-size: 14px; font-family: var(--sans);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--dark); transition: all 0.2s;
}
.form-input::placeholder { color: var(--light); font-weight: 300; }
.form-input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-glow); }
.form-textarea { height: auto; min-height: 96px; padding-top: 12px; resize: vertical; line-height: 1.5; }
.form-select {
  width: 100%; height: 46px; padding: 0 14px;
  font-size: 14px; font-family: var(--sans);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--dark);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6864' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  cursor: pointer; transition: all 0.2s;
}
.form-select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-glow); }
.btn-submit {
  width: 100%; height: 50px;
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  background: var(--terra); color: white;
  border: none; border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--terra-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(197,90,58,0.3); }
.form-note { text-align: center; font-size: 11px; color: var(--light); margin-top: 1rem; }

.book-section { padding: 5rem 2rem; border-top: 1px solid var(--border); }
.book-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.book-section h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 1rem; line-height: 1.3; }
.book-section p { font-size: 15px; color: var(--mid); font-weight: 300; line-height: 1.7; margin-bottom: 1.5rem; }
.book-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--terra); border-bottom: 1.5px solid rgba(197,90,58,0.3); padding-bottom: 2px; transition: border-color 0.2s; }
.book-link:hover { border-color: var(--terra); }

footer { padding: 3rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-size: 16px; font-weight: 500; }
.footer-logo span { color: var(--terra); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 13px; color: var(--mid); transition: color 0.2s; }
.footer-links a:hover { color: var(--dark); }
.footer-copy { font-size: 12px; color: var(--light); font-weight: 300; }

@media (max-width: 768px) {
  .nav-right { gap: 1rem; }
  .nav-link { display: none; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .tool-box { padding: 1.5rem; }
  .input-row { flex-direction: column; }
  .input-row .url-input, .input-row .btn-primary { width: 100%; height: 52px !important; min-height: 52px; }
  .score-card { flex-direction: column; text-align: center; }
  .aff-signals { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .why-grid, .how-grid { grid-template-columns: 1fr; }
  .partner-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
/* ===== Refactor "Fonte Ufficiale AI" ===== */
.score-kicker {
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
  color: var(--terra); margin-bottom: 2px;
}
.score-desc {
  font-size: 12px; color: var(--mid); line-height: 1.55; margin-top: 6px;
  font-weight: 300;
}
.ai-view {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 14px; margin-bottom: 0.5rem;
}
.ai-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 13px; color: var(--dark);
}
.ai-row + .ai-row { border-top: 1px solid var(--border); }
.ai-ico {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.ai-ok .ai-ico { background: var(--green-bg); color: var(--green); }
.ai-warning .ai-ico { background: var(--amber-bg); color: var(--amber); }
.ai-fail .ai-ico { background: var(--red-bg); color: var(--red); }
.ai-fail span:last-child { color: var(--red); }
.ai-warning span:last-child { color: #7A5A1A; }
.cat-desc {
  font-size: 11px; color: var(--light); font-weight: 300;
  margin: -4px 0 8px;
}
.impact-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 1.25rem;
}
.impact-intro {
  font-size: 13px; color: var(--mid); line-height: 1.55; margin-bottom: 6px;
}
.cta-final {
  background: linear-gradient(135deg, #FDF6F3, var(--terra-light));
  border: 1px solid rgba(197,90,58,0.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; margin-top: 1.5rem; text-align: center;
}
.cta-final-title {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  margin-bottom: 8px; color: var(--dark);
}
.cta-final-text {
  font-size: 14px; color: var(--mid); line-height: 1.6; margin-bottom: 1.25rem;
}
.cta-final-btn {
  display: inline-block; padding: 11px 26px;
  background: var(--terra); color: white;
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.cta-final-btn:hover { background: var(--terra-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(197,90,58,0.3); }
.tech-details {
  margin-top: 1.25rem; font-size: 12px; color: var(--mid);
}
.tech-details summary {
  cursor: pointer; font-size: 12px; color: var(--light);
  letter-spacing: 0.5px; user-select: none;
}
.tech-details summary:hover { color: var(--mid); }
.tech-body {
  padding: 10px 0 0 4px; display: flex; flex-direction: column; gap: 4px;
}
.tech-body span { color: var(--light); }
.socialstream-footer {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border); text-align: center;
}
.ss-brand {
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--dark); margin-bottom: 5px;
}
.ss-text {
  font-size: 11px; color: var(--light); line-height: 1.6;
  max-width: 460px; margin: 0 auto; font-weight: 300;
}

/* ============================================================
   Adeguamento a POST /api/analyze (report unico) — nuove sezioni
   ============================================================ */

/* Form di analisi: link informativa nei consensi e spaziatura feature */
.consent-row .consent-link { color: var(--terra); text-decoration: underline; }
#stateInput .tool-features { margin-top: 1.1rem; }

/* Nota cache sotto l'hero (meta.cached / refresh admin) */
.cache-note {
  display: none;
  font-size: 12px; color: var(--mid); font-weight: 300;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px;
  margin: -0.75rem 0 1rem;
}

/* Coerenza sito <-> Google: righe con 4 stati */
.coherence-list {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 14px; margin-bottom: 0.5rem;
}
.coh-row { padding: 9px 0; border-bottom: 1px solid var(--border); }
.coh-row:last-child { border-bottom: none; }
.coh-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.coh-label { font-size: 13px; color: var(--dark); }
.coh-status {
  font-size: 11px; font-weight: 500; letter-spacing: 0.3px;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.coh-coerente .coh-status { color: var(--green); background: var(--green-bg); }
.coh-parziale .coh-status { color: var(--amber); background: var(--amber-bg); }
.coh-da_verificare .coh-status { color: var(--terra-dark); background: var(--terra-light); }
.coh-non_disponibile .coh-status { color: var(--mid); background: rgba(26,25,23,0.05); }
.coh-values {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 11px; color: var(--mid); font-weight: 300; margin-top: 3px;
}

/* Blocco scheda Google Business */
.google-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; margin: 1rem 0 0.5rem;
}
.gb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gb-title { font-size: 13px; font-weight: 500; }
.gb-badge { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.gb-found { color: var(--green); background: var(--green-bg); }
.gb-unverified { color: var(--amber); background: var(--amber-bg); }
.gb-missing { color: var(--red); background: var(--red-bg); }
.gb-rating { font-size: 13px; color: var(--dark); margin-top: 6px; }
.gb-count { color: var(--mid); font-weight: 300; }
.gb-notice {
  font-size: 12px; color: var(--mid); font-weight: 300; line-height: 1.5;
  margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px;
}

/* Card area non valutabile (scheda Google Business non trovata) */
.cat-unavailable { background: rgba(26,25,23,0.03); border-style: dashed; }
.cat-unavailable .cat-name, .cat-unavailable .cat-score { color: var(--light); }
.cat-na-note { font-size: 12px; color: var(--mid); font-weight: 300; }

/* Stati degli item area (ok | warning | fail; i critical mancanti in rosso) */
.cat-item.item-ok .item-icon { color: var(--green); }
.cat-item.item-ok .item-label { color: var(--dark); }
.cat-item.item-warning .item-icon { color: var(--amber); }
.cat-item.item-warning .item-label { color: #7A5A1A; }
.cat-item.item-fail .item-icon { color: var(--light); }
.cat-item.item-fail .item-label { color: var(--mid); }
.cat-item.item-fail.item-critical .item-icon,
.cat-item.item-fail.item-critical .item-label { color: var(--red); }

/* Azioni rapide (winsList senza inline style) e "Come viene calcolato" */
#winsList { margin-top: 1.5rem; }
.how-calculated {
  display: none;
  font-size: 12px; color: var(--mid); font-weight: 300; line-height: 1.55;
  margin-top: 1.5rem;
}

/* ===== Banda blocco 30 giorni (evidenziata) ===== */
.cache-note.locked {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--amber-bg, #fdf3e0);
  border: 1px solid rgba(192,123,26,0.25);
  border-radius: var(--radius);
  padding: 11px 14px; margin: 0 0 1rem;
  text-align: left;
}
.cache-note.locked .cache-lock {
  flex-shrink: 0; color: var(--amber, #c07b1a); margin-top: 1px;
}
.cache-note.locked .cache-txt {
  font-size: 12.5px; line-height: 1.55; color: #7A5A1A;
}
.cache-note.locked .cache-txt strong { color: #5e4513; font-weight: 600; }

/* ===== Modale blocco 30 giorni ===== */
.lock-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,25,23,0.55);
  align-items: center; justify-content: center;
  padding: 1.5rem; animation: lockFade 0.2s ease;
}
@keyframes lockFade { from { opacity: 0; } to { opacity: 1; } }
.lock-modal-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem; max-width: 380px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg);
  animation: lockPop 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes lockPop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lock-modal-ico {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--amber-bg, #fdf3e0);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber, #c07b1a);
}
.lock-modal-title {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  margin-bottom: 0.6rem; color: var(--dark);
}
.lock-modal-text {
  font-size: 13.5px; color: var(--mid); line-height: 1.6; margin-bottom: 1.25rem;
}
.lock-modal-dates {
  display: flex; gap: 10px; margin-bottom: 1.25rem;
}
.lock-modal-dates > div {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 8px;
}
.lock-modal-dates span {
  display: block; font-size: 10px; letter-spacing: 0.5px;
  color: var(--light); margin-bottom: 3px; text-transform: uppercase;
}
.lock-modal-dates strong {
  font-size: 13px; font-weight: 500; color: var(--dark);
}
.lock-modal-note {
  font-size: 12px; color: var(--light); margin-bottom: 1.25rem; font-style: italic;
}
.lock-modal-btn {
  width: 100%; height: 46px; border: none; border-radius: var(--radius);
  background: var(--terra); color: white; font-family: var(--sans);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.lock-modal-btn:hover { background: var(--terra-dark); transform: translateY(-1px); }

/* ===== Pagina legale (informativa privacy) ===== */
.legal{max-width:760px;margin:120px auto 80px;padding:0 24px;color:#2b2622;font-family:'DM Sans',sans-serif;line-height:1.7;font-size:16px;}
.legal h1{font-family:'Playfair Display',serif;font-size:34px;line-height:1.2;margin:0 0 12px;color:#1a1714;}
.legal h2{font-family:'Playfair Display',serif;font-size:22px;margin:36px 0 10px;color:#1a1714;}
.legal .legal-intro{font-size:17px;color:#5b524a;margin-bottom:8px;}
.legal p{margin:0 0 14px;}
.legal ul{margin:0 0 14px;padding-left:22px;}
.legal li{margin-bottom:8px;}
.legal a{color:#C55A3A;text-decoration:underline;}
.legal strong{color:#1a1714;}
.legal .legal-updated{margin-top:36px;font-size:14px;color:#8a8078;}
.legal .legal-back{margin-top:8px;font-size:15px;}

/* ===== Barra selettore settori ===== */
.sector-bar{border-bottom:1px solid #ece4d8;background:#fbf7f0;}
.sector-bar-inner{max-width:1100px;margin:0 auto;padding:9px 24px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-family:'DM Sans',sans-serif;}
.sector-bar-label{font-size:12px;color:#8a8078;text-transform:uppercase;letter-spacing:.05em;margin-right:2px;}
.sector-pill{font-size:14px;color:#5b524a;text-decoration:none;padding:5px 13px;border-radius:999px;border:1px solid transparent;transition:background .15s,border-color .15s,color .15s;}
.sector-pill:hover{background:#fff;border-color:#e4d9c8;}
.sector-pill.active{background:#C55A3A;color:#fff;}

/* ===== Homepage (chooser settori) ===== */
.home-hero{text-align:center;max-width:1000px;margin:0 auto;padding:90px 24px 40px;}
.home-hero .hero-sub{max-width:720px;margin-left:auto;margin-right:auto;}
.sector-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;max-width:900px;margin:44px auto 0;}
.sector-choice{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-decoration:none;background:#fff;border:1px solid #ece4d8;border-radius:16px;padding:22px 20px;transition:transform .15s,border-color .15s,box-shadow .15s;}
.sector-choice:hover{transform:translateY(-3px);border-color:#C55A3A;box-shadow:0 10px 30px rgba(122,90,26,.10);}
.sector-choice-name{font-family:'Playfair Display',serif;font-size:21px;color:#1a1714;line-height:1.15;}
.sector-choice-sub{font-family:'DM Sans',sans-serif;font-size:13px;color:#8a8078;}
.sector-choice-go{margin-top:8px;font-family:'DM Sans',sans-serif;font-size:14px;font-weight:500;color:#C55A3A;}
.home-explain{max-width:1000px;margin:0 auto;padding:60px 24px 30px;text-align:center;}
.home-explain h2{font-family:'Playfair Display',serif;font-size:30px;color:#1a1714;margin:8px 0 36px;}
.explain-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;text-align:left;}
.explain-card{background:#fff;border:1px solid #ece4d8;border-radius:16px;padding:24px;}
.explain-num{font-family:'Playfair Display',serif;font-size:16px;color:#C55A3A;margin-bottom:6px;}
.explain-card h3{font-family:'Playfair Display',serif;font-size:19px;color:#1a1714;margin:0 0 8px;}
.explain-card p{font-family:'DM Sans',sans-serif;font-size:15px;line-height:1.6;color:#5b524a;margin:0;}
.explain-foot{font-family:'Playfair Display',serif;font-style:italic;font-size:18px;color:#7A5A1A;max-width:640px;margin:40px auto 0;line-height:1.4;}

/* ===== Hamburger + offcanvas (mobile) ===== */
.nav-burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:42px;height:42px;background:none;border:0;cursor:pointer;padding:9px;}
.nav-burger span{display:block;height:2px;width:100%;background:#1a1714;border-radius:2px;}
.offcanvas-backdrop,.offcanvas{display:none;}
@media (max-width:768px){
  .nav-right{display:none;}
  .sector-bar{display:none;}
  .nav-burger{display:flex;}
  .offcanvas-backdrop{display:block;position:fixed;inset:0;background:rgba(20,20,18,.45);opacity:0;pointer-events:none;transition:opacity .25s;z-index:90;}
  .offcanvas{display:flex;flex-direction:column;gap:16px;position:fixed;top:0;right:0;height:100%;width:min(82vw,320px);background:#fbf7f0;box-shadow:-12px 0 40px rgba(0,0,0,.12);padding:70px 26px 30px;transform:translateX(100%);transition:transform .25s;z-index:100;overflow-y:auto;}
  body.nav-open .offcanvas{transform:translateX(0);}
  body.nav-open .offcanvas-backdrop{opacity:1;pointer-events:auto;}
  body.nav-open{overflow:hidden;}
  .offcanvas-close{position:absolute;top:14px;right:18px;background:none;border:0;font-size:30px;line-height:1;color:#1a1714;cursor:pointer;}
  .offcanvas-nav{display:flex;flex-direction:column;}
  .offcanvas-nav a{font-family:'DM Sans',sans-serif;font-size:17px;color:#1a1714;text-decoration:none;padding:10px 0;border-bottom:1px solid #ece4d8;}
  .offcanvas-nav a.nav-cta{color:#C55A3A;font-weight:600;}
  .offcanvas-sectors{display:flex;flex-direction:column;}
  .offcanvas-sectors-label{font-family:'DM Sans',sans-serif;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#8a8078;margin:6px 0 2px;}
  .offcanvas-sectors a{font-family:'DM Sans',sans-serif;font-size:16px;color:#5b524a;text-decoration:none;padding:8px 0;}
}

/* settori homepage: una riga desktop, una per riga mobile */
.sector-grid{grid-template-columns:repeat(5,1fr);max-width:1040px;}
@media (max-width:768px){ .sector-grid{grid-template-columns:1fr;} }

/* 6 settori: una riga desktop, 1 per riga mobile */
.sector-grid{grid-template-columns:repeat(6,1fr);max-width:1160px;}
@media (max-width:768px){ .sector-grid{grid-template-columns:1fr;} }

/* griglia settori homepage: responsive 6 / 3 / 1 */
.sector-grid{grid-template-columns:repeat(6,1fr);max-width:1160px;}
@media (max-width:1100px){ .sector-grid{grid-template-columns:repeat(3,1fr);max-width:640px;} }
@media (max-width:767px){ .sector-grid{grid-template-columns:1fr;max-width:360px;} }

/* === Andrea: header mobile + sector-nav centrato === */
@media (max-width:768px){
  .nav-right{display:flex;margin-left:auto;}   /* PRONTOEASY resta nell'header */
  .nav-burger{margin-left:10px;}
}
.sector-bar-inner{justify-content:center;}

/* Andrea: hero homepage 3 per riga (desktop) -> 2 -> 1 */
.sector-grid{grid-template-columns:repeat(3,1fr);max-width:1000px;}
@media (max-width:900px){ .sector-grid{grid-template-columns:repeat(2,1fr);max-width:600px;} }
@media (max-width:600px){ .sector-grid{grid-template-columns:1fr;max-width:360px;} }
