﻿:root {
  --black: #070707;
  --navy: #062237;
  --gold: #b68a48;
  --ink: #161616;
  --muted: #686868;
  --line: #dedede;
  --paper: #ffffff;
  --soft: #f6f5f2;
  --red: #b5121b;
  --red-dark: #8f0e15;
  --soi-green: #173f35;
  --soi-green-soft: #e6eee8;
  --soi-cream: #f8f2e8;
  --soi-sand: #ebe1d2;
  --soi-stone: #777267;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 63, 53, 0.08);
  box-shadow: 0 10px 32px rgba(23, 63, 53, 0.05);
  backdrop-filter: blur(18px);
}

.logo-slot {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--navy);
  text-transform: uppercase;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.soi-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  color: var(--navy);
}

.soi-letter {
  display: inline-block;
  line-height: 0.86;
}

.soi-compass-o {
  width: 0.96em;
  height: 0.96em;
  flex: 0 0 0.96em;
  transform: translateY(0.025em);
  overflow: visible;
}

.soi-compass-ring {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 3;
}

.soi-compass-needle-red {
  fill: var(--red);
}

.soi-compass-needle-dark {
  fill: currentColor;
}

.soi-compass-pin {
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: 3;
}

.logo-text {
  display: inline-block;
  max-width: 150px;
  color: #050505;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.18;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  color: var(--paper);
  background: var(--soi-green);
  border: 1px solid var(--soi-green);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 760;
}

.header-cta:hover {
  background: #0b304d;
  border-color: #0b304d;
}

.home-hero,
.home-how-section,
.conversation-section,
.site-footer {
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
}

.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
  color: var(--soi-green);
}

.home-hero-inner {
  display: grid;
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  padding-block: clamp(34px, 5vw, 66px);
}

.home-hero-copy {
  display: grid;
  gap: 18px;
  max-width: 680px;
}

.home-eyebrow,
.section-label {
  margin: 0;
  color: var(--soi-stone);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero-subtitle {
  max-width: 620px;
  margin: 0;
  color: #050505;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 620;
  line-height: 1.32;
}

.home-hero-text {
  max-width: 610px;
  margin: 0;
  color: #5f615a;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  color: var(--paper);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 3px;
  font-weight: 760;
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: #0b304d;
  border-color: #0b304d;
  transform: translateY(-1px);
}

.button:disabled,
textarea:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.home-primary-cta,
.home-final-button {
  justify-self: start;
  gap: 18px;
  min-height: 70px;
  padding-inline: 42px;
  background: var(--soi-green);
  border-color: var(--soi-green);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 780;
}

.home-primary-cta:hover,
.home-final-button:hover {
  background: #24594c;
  border-color: #24594c;
}

.home-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.home-trust-list li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soi-green);
  font-size: 15px;
  font-weight: 780;
}

.home-trust-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.home-hero-media {
  display: block;
  min-height: clamp(300px, 34vw, 520px);
  margin: 0;
  overflow: hidden;
  background: var(--soi-sand);
  border-radius: 18px;
  box-shadow: 0 28px 86px rgba(23, 63, 53, 0.13);
}

.home-hero-media img,
.home-path-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-media img {
  min-height: clamp(300px, 34vw, 520px);
  max-height: 560px;
  object-position: 58% 50%;
}

.home-how-section,
.home-paths-section,
.role-section {
  padding-block: clamp(48px, 7vw, 76px);
}

.home-section-head {
  max-width: 740px;
  margin: 0 auto clamp(28px, 4vw, 42px);
  text-align: center;
}

.home-section-head h2 {
  margin: 0;
  color: var(--soi-green);
  font-size: clamp(15px, 3vw, 17px);
  font-weight: 880;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-copy {
  max-width: 660px;
  margin: 12px auto 0;
  color: #666258;
  font-size: 17px;
  line-height: 1.5;
}

.home-how-grid {
  display: grid;
  gap: clamp(22px, 4vw, 54px);
}

.home-how-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: 260px;
  padding: 20px clamp(18px, 3vw, 34px);
  text-align: center;
}

.home-how-icon {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: var(--soi-green);
  background: #edf0e5;
  border-radius: 50%;
}

.home-how-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-how-card h3,
.home-path-copy strong,
.role-copy h2,
.home-final-inner h2 {
  margin: 0;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-how-card h3,
.home-path-copy strong {
  font-size: clamp(27px, 2.5vw, 34px);
}

.home-how-card p,
.home-path-copy small,
.role-copy p,
.role-note li,
.home-final-inner p {
  margin: 0;
  color: #666258;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
}

.home-paths-section {
  margin-inline: max(14px, calc((100vw - var(--max)) / 2));
  padding: clamp(30px, 4vw, 42px) clamp(18px, 3vw, 24px) clamp(34px, 4vw, 48px);
  background: #f7f6f2;
  border-radius: 14px;
}

.home-path-grid {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
}

.home-path-card {
  display: grid;
  overflow: hidden;
  min-height: 430px;
  background: #fff;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-path-card:hover,
.home-path-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 24px 80px rgba(23, 63, 53, 0.13);
}

.home-path-image {
  position: relative;
  display: block;
  min-height: 200px;
  overflow: hidden;
  background: var(--soi-sand);
}

.home-path-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--paper);
  background: rgba(7, 7, 7, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-path-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 42px 22px 24px;
}

.home-path-copy em {
  color: var(--red);
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.role-section {
  background: #fff;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
}

.role-inner {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.role-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.role-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.role-note {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 34px);
  color: var(--paper);
  background: var(--black);
}

.role-note span {
  color: var(--red);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-note ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 18px;
}

.role-note li {
  color: var(--paper);
}

.home-final-cta {
  padding: clamp(32px, 5vw, 58px) max(20px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, #f7f6f2 0%, #ffffff 100%);
}

.home-final-inner {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: clamp(22px, 3.4vw, 30px);
  color: var(--paper);
  background: var(--soi-green);
  border-radius: 14px;
}

.home-final-inner h2,
.home-final-inner p {
  color: var(--paper);
}

.home-final-inner h2 {
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 610;
  line-height: 1.16;
}

.home-final-inner p {
  font-size: clamp(15.5px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.55;
}

.home-final-icon {
  display: none;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.conversation-section {
  padding-block: clamp(44px, 6vw, 82px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
}

.conversation-shell {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.conversation-intro {
  display: grid;
  gap: 8px;
}

.conversation-intro h2 {
  margin: 0;
  color: var(--soi-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
}

.conversation-intro p:not(.section-label) {
  max-width: 680px;
  margin: 0;
  color: #5f615a;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
}

.conversation {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  max-height: 62vh;
  padding: 20px;
  overflow-y: auto;
  background: #fbfbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.conversation-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 28px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed rgba(23, 63, 53, 0.22);
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
  font-weight: 680;
}

.conversation:has(.message) .conversation-empty,
.conversation:has(.status) .conversation-empty,
.conversation:has(.error) .conversation-empty {
  display: none;
}

.message {
  width: fit-content;
  max-width: min(100%, 720px);
  margin: 0;
  padding: 12px 14px;
  border-radius: 4px;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.45;
}

.message.user {
  justify-self: end;
  color: var(--paper);
  background: var(--red);
}

.message.assistant {
  justify-self: start;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}

.status,
.error {
  margin: 0;
  font-size: 14px;
}

.status {
  color: var(--muted);
}

.waiting-status {
  width: fit-content;
  max-width: min(100%, 520px);
  padding: 13px 16px;
  color: var(--soi-green);
  background: rgba(230, 238, 232, 0.92);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 8px;
  font-weight: 780;
  box-shadow: 0 12px 32px rgba(23, 63, 53, 0.08);
}

.error {
  color: var(--red-dark);
  font-weight: 700;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

#message-form[hidden] {
  display: none;
}

textarea {
  width: 100%;
  min-height: 96px;
  max-height: 220px;
  resize: vertical;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1.42;
}

textarea:focus {
  border-color: rgba(20, 92, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(20, 92, 46, 0.08);
  outline: none;
}

.site-footer {
  padding-block: 28px;
  color: var(--paper);
  background: var(--black);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-inner strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.footer-inner div {
  display: grid;
  gap: 4px;
}

.footer-inner span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 740;
  text-transform: uppercase;
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}


.request-summary,
.final-message {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--paper);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(23, 63, 53, 0.08);
}

.request-summary h3,
.final-message {
  color: var(--soi-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.14;
}

.request-summary h3,
.request-summary p,
.summary-group h4,
.summary-group ul,
.summary-group dl {
  margin: 0;
}

.request-summary > p {
  color: #666258;
  font-size: 16px;
}

.summary-group {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.summary-group h4 {
  color: var(--black);
  font-size: 13px;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-group ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: #4f514c;
}

.summary-group dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
}

.summary-group dt {
  color: var(--muted);
  font-weight: 760;
}

.summary-group dd {
  margin: 0;
  color: var(--ink);
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 6px;
}

.text-action {
  min-height: 44px;
  padding: 0 12px;
  color: var(--soi-green);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 780;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.final-message {
  margin-top: 16px;
  color: var(--paper);
  background: var(--soi-green);
  border-color: var(--soi-green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(18px, 2vw, 22px);
}

/* Sportello visual focus */
.conversation-section {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 232, 0.72) 48%, #ffffff 100%);
}

.conversation-section::before {
  content: "";
  position: absolute;
  inset: 28px max(14px, calc((100vw - var(--max)) / 2)) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 63, 53, 0.22), transparent);
}

.sportello-shell {
  max-width: 1040px;
  gap: clamp(22px, 4vw, 34px);
}

.sportello-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}

.sportello-kicker-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.sportello-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--soi-green);
  background: var(--soi-green-soft);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sportello-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf8 0%, #fbfbfa 100%);
  border: 1px solid rgba(23, 63, 53, 0.14);
  border-radius: 18px;
  box-shadow: 0 34px 110px rgba(23, 63, 53, 0.16);
}

.conversation {
  gap: 18px;
  min-height: clamp(380px, 48vw, 560px);
  max-height: min(680px, 66vh);
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 242, 232, 0.42)),
    #fbfbfa;
  border: 0;
  border-radius: 0;
}

.conversation-empty {
  min-height: 240px;
  padding: clamp(24px, 5vw, 42px);
  color: #5f615a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(23, 63, 53, 0.28);
  border-radius: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
}

.message {
  max-width: min(100%, 760px);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.58;
}

.message.user {
  max-width: min(100%, 680px);
  background: var(--soi-green);
  box-shadow: 0 14px 36px rgba(23, 63, 53, 0.16);
}

.message.assistant {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 63, 53, 0.14);
  box-shadow: 0 14px 40px rgba(23, 63, 53, 0.08);
}

.status,
.error {
  padding: 10px 2px;
  font-size: 15px;
}

.composer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
  padding: clamp(18px, 3vw, 26px);
  background: var(--paper);
  border-width: 1px 0 0;
  border-color: rgba(23, 63, 53, 0.12);
  border-radius: 0;
}

.composer-label {
  grid-column: 1 / -1;
  color: var(--black);
  font-size: 13px;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.composer textarea {
  min-height: 132px;
  padding: 17px 18px;
  border-color: rgba(23, 63, 53, 0.2);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(23, 63, 53, 0.04);
  font-size: 17px;
}

.composer textarea::placeholder {
  color: #777267;
}

.composer-help {
  grid-column: 1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.composer .button {
  min-height: 58px;
  padding-inline: 30px;
  background: var(--soi-green);
  border-color: var(--soi-green);
  border-radius: 9px;
  font-size: 17px;
}

.request-summary {
  margin-top: 18px;
  border-color: rgba(182, 138, 72, 0.38);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(23, 63, 53, 0.13);
}

.request-summary h3::before {
  content: "Conferma finale";
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-actions .button {
  background: var(--soi-green);
  border-color: var(--soi-green);
  border-radius: 8px;
}

.summary-actions .text-action {
  padding-inline: 10px;
}

.prepare-summary-actions {
  margin-top: 14px;
}

.prepare-summary-button {
  min-height: 52px;
  padding-inline: 26px;
  background: var(--soi-green);
  border-color: var(--soi-green);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 63, 53, 0.16);
}

.final-message .button {
  justify-self: start;
  color: var(--soi-green);
  background: var(--paper);
  border-color: var(--paper);
  border-radius: 8px;
}

.final-message {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, var(--soi-green), #24594c);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(23, 63, 53, 0.18);
}

.home-primary-cta,
.home-final-button,
.header-cta {
  box-shadow: 0 12px 34px rgba(23, 63, 53, 0.14);
}
@media (min-width: 760px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.78fr);
  }

  .home-how-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-how-card:not(:last-child)::after {
    content: "->";
    position: absolute;
    top: 62px;
    right: -34px;
    color: var(--soi-green);
    font-size: 32px;
    font-weight: 400;
  }

  .home-path-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-inner {
    grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  }

  .home-final-inner {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    padding: 28px 52px;
  }

  .footer-inner {
    grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.72fr);
    align-items: center;
  }

  .home-final-icon {
    display: block;
  }
}

@media (min-width: 1040px) {
  .home-path-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .logo-slot {
    gap: 10px;
  }

  .logo-mark {
    font-size: 38px;
  }

  .logo-text {
    max-width: 132px;
    font-size: 11px;
  }

  .header-cta {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .home-primary-cta,
  .home-final-button {
    width: 100%;
    min-height: 60px;
    padding-inline: 22px;
    font-size: 19px;
  }

  .home-trust-list {
    gap: 12px;
  }

  .home-trust-list li {
    width: 100%;
  }

  .home-how-section,
  .home-paths-section,
  .role-section {
    padding-block: 38px;
  }

  .home-how-card {
    min-height: auto;
    padding-block: 14px;
  }

  .home-path-card {
    min-height: auto;
  }

  .home-path-copy {
    padding-top: 24px;
  }

  .conversation-section {
    padding-block: 34px 44px;
  }

  .conversation {
    min-height: 300px;
    max-height: none;
  }

  .conversation-empty {
    min-height: 130px;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .composer .button {
    width: 100%;
  }

  .conversation-section {
    padding-inline: 10px;
    padding-block: 28px 38px;
  }

  .conversation-section::before {
    inset-inline: 16px;
  }

  .sportello-intro {
    text-align: left;
    justify-items: start;
    padding-inline: 8px;
  }

  .sportello-kicker-row {
    justify-content: flex-start;
  }

  .sportello-panel {
    border-radius: 14px;
  }

  .conversation {
    min-height: 360px;
    max-height: none;
    padding: 16px;
  }

  .conversation-empty {
    min-height: 150px;
    font-size: 22px;
    text-align: left;
  }

  .message {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  .composer {
    padding: 16px;
  }

  .composer textarea {
    min-height: 130px;
  }
  .summary-actions {
    display: grid;
  }

  .summary-actions .button,
  .summary-actions .text-action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .summary-group dl {
    grid-template-columns: 1fr;
  }
}




/* Sportello as primary product */
.sportello-hero {
  position: relative;
  min-height: calc(100svh - 91px);
  padding: clamp(18px, 3vw, 34px) max(14px, calc((100vw - var(--max)) / 2)) clamp(38px, 6vw, 72px);
  overflow: hidden;
  color: var(--soi-green);
  background:
    radial-gradient(circle at 12% 12%, rgba(182, 138, 72, 0.16), transparent 30%),
    linear-gradient(180deg, #fffaf3 0%, #f8f2e8 46%, #ffffff 100%);
}

.sportello-hero::after {
  content: "";
  position: absolute;
  inset: auto max(20px, calc((100vw - var(--max)) / 2)) 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 63, 53, 0.2), transparent);
}

.sportello-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  min-height: calc(100svh - 158px);
}

.sportello-hero-copy {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  max-width: 700px;
}

.sportello-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.sportello-hero-lead,
.sportello-hero-text {
  max-width: 660px;
  margin: 0;
  color: #4f514c;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.52;
}

.sportello-hero-lead {
  color: #111;
  font-weight: 640;
}

.sportello-hero .home-trust-list {
  margin-top: clamp(4px, 1vw, 12px);
}

.sportello-hero .sportello-shell {
  width: 100%;
  max-width: none;
  gap: 14px;
}

.sportello-hero .sportello-intro {
  max-width: none;
  margin: 0;
  text-align: left;
  justify-items: start;
}

.sportello-hero .sportello-intro p:not(.section-label) {
  max-width: 760px;
  font-size: clamp(15px, 1.35vw, 17px);
}

.sportello-hero .sportello-panel {
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 30px 90px rgba(23, 63, 53, 0.18);
  backdrop-filter: blur(10px);
}

.sportello-hero .conversation {
  min-height: clamp(300px, 38vh, 430px);
  max-height: 48vh;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 242, 232, 0.5)),
    #fbfbfa;
}

.sportello-hero .conversation-empty {
  min-height: clamp(170px, 24vh, 250px);
  color: #4f514c;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(23, 63, 53, 0.24);
}

.sportello-hero .composer {
  padding: clamp(16px, 2.4vw, 24px);
}

.sportello-hero .composer textarea {
  min-height: clamp(118px, 16vh, 150px);
  font-size: clamp(16px, 1.6vw, 18px);
}

.sportello-hero .composer .button {
  min-width: 178px;
  min-height: 60px;
}

.home-how-section {
  background: #ffffff;
}

.home-how-section .home-section-head::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--gold);
}

.home-paths-section {
  box-shadow: inset 0 0 0 1px rgba(23, 63, 53, 0.05);
}

.home-path-card {
  cursor: default;
}

.home-path-card em {
  display: none;
}

.home-path-card:hover,
.home-path-card:focus-visible {
  transform: none;
  box-shadow: 0 18px 50px rgba(23, 63, 53, 0.08);
}

.role-section {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
}

.home-final-cta {
  padding-top: clamp(26px, 4vw, 46px);
}

@media (min-width: 960px) {
  .sportello-hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  }
}

@media (max-width: 959px) {
  .sportello-hero {
    min-height: auto;
  }

  .sportello-hero-inner {
    min-height: auto;
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .sportello-hero {
    min-height: calc(100svh - 67px);
    padding: 14px 10px 30px;
  }

  .sportello-hero-inner {
    gap: 16px;
    min-height: auto;
  }

  .sportello-hero-copy {
    gap: 10px;
    padding-inline: 6px;
  }

  .sportello-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1;
  }

  .sportello-hero-lead,
  .sportello-hero-text {
    font-size: 16px;
    line-height: 1.42;
  }

  .sportello-hero .home-trust-list {
    display: none;
  }

  .sportello-hero .sportello-intro {
    padding-inline: 4px;
  }

  .sportello-hero .sportello-intro p:not(.section-label) {
    font-size: 14px;
  }

  .sportello-hero .sportello-panel {
    width: 100%;
    border-radius: 16px;
  }

  .sportello-hero .conversation {
    min-height: 230px;
    max-height: none;
    padding: 14px;
  }

  .sportello-hero .conversation-empty {
    min-height: 118px;
    padding: 18px;
    font-size: 20px;
  }

  .sportello-hero .composer {
    padding: 14px;
  }

  .sportello-hero .composer textarea {
    min-height: 116px;
  }

  .sportello-hero .composer .button {
    width: 100%;
    min-height: 56px;
  }
}

/* Editorial hero refinement */
.site-header {
  padding: 14px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 250, 243, 0.9);
  border-bottom-color: rgba(23, 63, 53, 0.06);
  box-shadow: none;
}

.logo-mark {
  font-size: clamp(36px, 4vw, 48px);
}

.logo-text {
  max-width: 142px;
  font-size: 12px;
  line-height: 1.15;
}

.header-cta {
  min-height: 42px;
  padding-inline: 18px;
  color: var(--soi-green);
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(23, 63, 53, 0.2);
  border-radius: 999px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
}

.header-cta:hover {
  color: var(--paper);
  background: var(--soi-green);
  border-color: var(--soi-green);
}

.sportello-hero {
  min-height: calc(100svh - 73px);
  padding-block: clamp(18px, 3vw, 30px) clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.98) 0%, rgba(248, 242, 232, 0.74) 48%, rgba(255, 255, 255, 0.98) 100%);
}

.sportello-hero::after {
  opacity: 0.52;
}

.sportello-hero-inner {
  gap: clamp(24px, 4vw, 56px);
  min-height: calc(100svh - 128px);
}

.sportello-hero-copy {
  gap: 13px;
  max-width: 520px;
  align-self: center;
}

.sportello-hero h1 {
  max-width: 480px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
}

.sportello-hero-lead,
.sportello-hero-text {
  max-width: 480px;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.48;
}

.sportello-hero-text {
  color: #656159;
}

.sportello-hero .home-eyebrow {
  max-width: 390px;
  color: #82776a;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sportello-hero .sportello-shell {
  align-self: center;
  gap: 8px;
}

.sportello-hero .sportello-intro {
  min-height: 0;
  padding-inline: 2px;
}

.sportello-hero .sportello-badge {
  min-height: auto;
  padding: 0;
  color: #82776a;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sportello-hero .sportello-panel {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.sportello-hero .conversation {
  gap: 12px;
  min-height: 0;
  max-height: 42vh;
  padding: 0 0 14px;
  overflow-y: auto;
  background: transparent;
}

.sportello-hero .conversation-empty {
  display: block;
  min-height: 0;
  padding: 0 2px 6px;
  color: #766f65;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
}

.sportello-hero .message {
  max-width: min(100%, 760px);
  padding: 15px 18px;
  border-radius: 7px;
  font-size: 16px;
  line-height: 1.56;
}

.sportello-hero .message.user {
  max-width: min(100%, 660px);
  background: var(--soi-green);
  box-shadow: 0 10px 26px rgba(23, 63, 53, 0.1);
}

.sportello-hero .message.assistant {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(23, 63, 53, 0.1);
  box-shadow: none;
}

.sportello-hero .composer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 0;
  background: transparent;
  border: 0;
}

.sportello-hero .composer-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sportello-hero .composer textarea {
  min-height: clamp(150px, 22vh, 220px);
  padding: clamp(20px, 2.4vw, 28px);
  color: #161616;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 63, 53, 0.13);
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(23, 63, 53, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.38;
}

.sportello-hero .composer textarea:focus {
  border-color: rgba(23, 63, 53, 0.34);
  box-shadow: 0 20px 58px rgba(23, 63, 53, 0.12);
}

.sportello-hero .composer-help {
  max-width: 540px;
  margin: 0 0 0 2px;
  color: #766f65;
  font-size: 13px;
}

.sportello-hero .composer .button {
  align-self: stretch;
  min-width: 164px;
  min-height: 64px;
  padding-inline: 24px;
  border-radius: 14px;
  box-shadow: 0 15px 34px rgba(23, 63, 53, 0.14);
  font-size: 16px;
}

@media (min-width: 960px) {
  .sportello-hero-inner {
    grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.18fr);
  }
}

@media (max-width: 959px) {
  .sportello-hero-copy {
    max-width: 720px;
  }

  .sportello-hero h1,
  .sportello-hero-lead,
  .sportello-hero-text {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .logo-mark {
    font-size: 34px;
  }

  .logo-text {
    max-width: 122px;
    font-size: 10px;
  }

  .header-cta {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .sportello-hero {
    min-height: calc(100svh - 57px);
    padding: 14px 12px 24px;
  }

  .sportello-hero-inner {
    gap: 14px;
  }

  .sportello-hero-copy {
    gap: 8px;
    padding-inline: 0;
  }

  .sportello-hero .home-eyebrow {
    font-size: 10px;
    line-height: 1.3;
  }

  .sportello-hero h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.04;
  }

  .sportello-hero-lead,
  .sportello-hero-text {
    font-size: 15px;
    line-height: 1.38;
  }

  .sportello-hero .sportello-badge {
    font-size: 10px;
  }

  .sportello-hero .conversation {
    max-height: none;
    padding-bottom: 10px;
  }

  .sportello-hero .conversation-empty {
    padding-bottom: 4px;
    font-size: 13px;
  }

  .sportello-hero .composer {
    grid-template-columns: 1fr;
  }

  .sportello-hero .composer textarea {
    min-height: 138px;
    padding: 18px;
    border-radius: 14px;
    font-size: 20px;
  }

  .sportello-hero .composer-help {
    font-size: 12px;
  }

  .sportello-hero .composer .button {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
  }
}

/* SOI2-quality visual recovery for hero */
.site-header {
  background: rgba(248, 242, 232, 0.92);
  border-bottom: 1px solid rgba(23, 63, 53, 0.08);
}

.sportello-hero {
  min-height: calc(100svh - 73px);
  padding-block: clamp(18px, 3vw, 30px) clamp(28px, 4vw, 46px);
  color: var(--soi-green);
  background:
    linear-gradient(115deg, rgba(23, 63, 53, 0.16) 0%, rgba(248, 242, 232, 0.78) 34%, rgba(255, 250, 243, 0.98) 100%),
    var(--soi-cream);
}

.sportello-hero::after {
  display: none;
}

.sportello-hero-inner {
  min-height: calc(100svh - 130px);
  gap: clamp(26px, 4vw, 58px);
}

.sportello-hero-copy {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: clamp(480px, 68vh, 640px);
  max-width: none;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  color: var(--paper);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(23, 63, 53, 0.2);
}

.sportello-hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.06) 0%, rgba(7, 7, 7, 0.42) 48%, rgba(7, 7, 7, 0.72) 100%),
    linear-gradient(90deg, rgba(23, 63, 53, 0.52), rgba(23, 63, 53, 0.04));
}

.sportello-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  background: var(--soi-sand);
}

.sportello-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.sportello-hero .home-eyebrow {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.78);
}

.sportello-hero h1 {
  max-width: 430px;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.sportello-hero-lead,
.sportello-hero-text {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.86);
}

.sportello-hero-lead {
  color: rgba(255, 255, 255, 0.94);
}

.sportello-hero .sportello-shell {
  align-self: center;
  gap: 10px;
  padding: clamp(20px, 3.4vw, 34px);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(248, 242, 232, 0.88));
  border: 1px solid rgba(182, 138, 72, 0.2);
  border-radius: 24px;
  box-shadow: 0 28px 78px rgba(23, 63, 53, 0.14);
}

.sportello-hero .sportello-badge {
  color: rgba(23, 63, 53, 0.68);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.sportello-hero .sportello-panel {
  display: grid;
  gap: 12px;
  background: transparent;
}

.sportello-hero .conversation {
  max-height: 34vh;
  padding: 0;
  background: transparent;
}

.sportello-hero .conversation-empty {
  padding: 0 2px 2px;
  color: #6b6258;
  font-size: 13px;
  font-weight: 560;
}

.sportello-hero .composer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sportello-hero .composer textarea {
  min-height: clamp(230px, 36vh, 360px);
  padding: clamp(24px, 3vw, 34px) clamp(72px, 6vw, 94px) clamp(60px, 5vw, 74px) clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 16px 44px rgba(23, 63, 53, 0.08);
}

.sportello-hero .composer textarea::placeholder {
  color: rgba(22, 22, 22, 0.46);
}

.sportello-hero .composer-help {
  margin: 0 4px;
  color: #6b6258;
}

.sportello-hero .composer .send-icon-button {
  position: absolute;
  right: clamp(14px, 2vw, 22px);
  bottom: clamp(42px, 4vw, 54px);
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  color: var(--paper);
  background: var(--soi-green);
  border-color: var(--soi-green);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(23, 63, 53, 0.2);
  font-size: 0;
}

.sportello-hero .composer .send-icon-button::before {
  content: "→";
  font-size: 25px;
  line-height: 1;
  transform: translateX(1px);
}

.sportello-hero .composer .send-icon-button:hover {
  background: #24594c;
  border-color: #24594c;
}

@media (min-width: 960px) {
  .sportello-hero-inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  }
}

@media (max-width: 959px) {
  .sportello-hero-copy {
    min-height: 320px;
  }

  .sportello-hero .sportello-shell {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .sportello-hero {
    min-height: auto;
    padding: 12px 12px 26px;
    background: linear-gradient(180deg, var(--soi-sand) 0%, var(--soi-cream) 48%, #fffaf3 100%);
  }

  .sportello-hero-copy {
    min-height: 190px;
    padding: 20px;
    border-radius: 18px;
  }

  .sportello-hero h1 {
    max-width: 330px;
  }

  .sportello-hero-lead,
  .sportello-hero-text {
    max-width: 340px;
  }

  .sportello-hero .sportello-shell {
    padding: 14px;
    border-radius: 18px;
  }

  .sportello-hero .conversation {
    max-height: none;
  }

  .sportello-hero .conversation-empty {
    font-size: 12px;
  }

  .sportello-hero .composer textarea {
    min-height: 176px;
    padding: 20px 68px 58px 18px;
    border-radius: 18px;
    font-size: 19px;
  }

  .sportello-hero .composer .send-icon-button {
    right: 14px;
    bottom: 40px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

/* Approved hero photo integration */
.sportello-hero {
  background:
    linear-gradient(115deg, rgba(23, 63, 53, 0.22) 0%, rgba(235, 225, 210, 0.84) 36%, rgba(255, 250, 243, 0.98) 100%),
    var(--soi-cream);
}

.sportello-hero-copy {
  min-height: clamp(540px, 72vh, 720px);
  padding: clamp(28px, 4.6vw, 54px);
  border-radius: 28px;
  box-shadow: 0 36px 110px rgba(7, 7, 7, 0.24);
}

.sportello-hero-copy::before {
  background:
    linear-gradient(180deg, rgba(5, 18, 28, 0.22) 0%, rgba(5, 18, 28, 0.52) 48%, rgba(5, 18, 28, 0.8) 100%),
    linear-gradient(90deg, rgba(5, 18, 28, 0.62) 0%, rgba(5, 18, 28, 0.18) 58%, rgba(5, 18, 28, 0.08) 100%);
}

.sportello-hero-media img {
  object-position: 45% 50%;
  filter: saturate(0.98) contrast(1.04) brightness(0.96);
}

.sportello-hero .home-eyebrow {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 860;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.sportello-hero h1 {
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.58);
}

.sportello-hero-lead,
.sportello-hero-text {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.58);
}

.sportello-hero-lead {
  font-weight: 700;
}

.sportello-hero .sportello-shell {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 242, 232, 0.92));
  border-color: rgba(23, 63, 53, 0.12);
  box-shadow: 0 30px 88px rgba(23, 63, 53, 0.17);
}

.sportello-hero .sportello-badge {
  color: rgba(23, 63, 53, 0.82);
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0.1em;
}

.sportello-hero .conversation-empty {
  color: #514b43;
  font-size: 15px;
  font-weight: 650;
}

.sportello-hero .composer-help {
  color: #514b43;
  font-size: 15px;
  line-height: 1.45;
}

.sportello-hero .composer textarea {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(23, 63, 53, 0.15);
}

@media (min-width: 960px) {
  .sportello-hero-inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  }
}

@media (max-width: 959px) {
  .sportello-hero-copy {
    min-height: 360px;
  }

  .sportello-hero-media img {
    object-position: 44% 48%;
  }
}

@media (max-width: 640px) {
  .sportello-hero-copy {
    min-height: 230px;
    padding: 22px;
    border-radius: 20px;
  }

  .sportello-hero-copy::before {
    background:
      linear-gradient(180deg, rgba(5, 18, 28, 0.18) 0%, rgba(5, 18, 28, 0.58) 54%, rgba(5, 18, 28, 0.82) 100%),
      linear-gradient(90deg, rgba(5, 18, 28, 0.56), rgba(5, 18, 28, 0.18));
  }

  .sportello-hero-media img {
    object-position: 40% 50%;
  }

  .sportello-hero .home-eyebrow {
    font-size: 10px;
  }

  .sportello-hero .sportello-badge {
    font-size: 11px;
  }

  .sportello-hero .conversation-empty,
  .sportello-hero .composer-help {
    font-size: 13px;
  }
}

/* Final full-background hero */
.site-header {
  background: rgba(248, 242, 232, 0.9);
  backdrop-filter: blur(18px);
}

.sportello-hero {
  position: relative;
  min-height: calc(100svh - 73px);
  padding: clamp(22px, 3.2vw, 40px) max(16px, calc((100vw - var(--max)) / 2)) clamp(34px, 5vw, 62px);
  overflow: hidden;
  background: var(--soi-green);
}

.sportello-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 18, 28, 0.74) 0%, rgba(5, 18, 28, 0.52) 32%, rgba(5, 18, 28, 0.18) 58%, rgba(5, 18, 28, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 18, 28, 0.06) 0%, rgba(5, 18, 28, 0.1) 54%, rgba(5, 18, 28, 0.26) 100%);
}

.sportello-hero::after {
  display: none;
}

.sportello-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  background: var(--soi-green);
}

.sportello-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 50%;
  filter: saturate(1.04) contrast(1.02) brightness(1.08);
}

.sportello-hero-inner {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 152px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.sportello-hero-copy {
  min-height: 0;
  max-width: none;
  padding: 0;
  overflow: visible;
  color: var(--paper);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  isolation: auto;
}

.sportello-hero-copy::before {
  display: none;
}

.sportello-hero .home-eyebrow {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 860;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.sportello-hero h1 {
  max-width: 500px;
  color: #fffaf3;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 0.98;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.62);
}

.sportello-hero-lead,
.sportello-hero-text {
  max-width: 510px;
  color: rgba(255, 250, 243, 0.94);
  font-size: clamp(18px, 1.75vw, 22px);
  line-height: 1.48;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.64);
}

.sportello-hero-lead {
  font-weight: 720;
}

.sportello-hero .sportello-shell {
  align-self: center;
  gap: 12px;
  width: 100%;
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 242, 232, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 26px;
  box-shadow: 0 34px 95px rgba(5, 18, 28, 0.26);
  backdrop-filter: blur(10px);
}

.sportello-hero .sportello-badge {
  color: rgba(23, 63, 53, 0.82);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0.1em;
}

.sportello-hero .sportello-panel {
  gap: 14px;
  background: transparent;
}

.sportello-hero .conversation {
  max-height: 36vh;
  padding: 0;
  background: transparent;
}

.sportello-hero .conversation-empty {
  padding: 0 2px 3px;
  color: #403b34;
  font-size: 16px;
  font-weight: 680;
}

.sportello-hero .composer textarea {
  min-height: clamp(250px, 38vh, 390px);
  padding: clamp(26px, 3vw, 36px) clamp(78px, 6vw, 98px) clamp(66px, 5vw, 82px) clamp(26px, 3vw, 36px);
  color: #111;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 45px rgba(23, 63, 53, 0.1);
  font-size: clamp(22px, 2.1vw, 28px);
}

.sportello-hero .composer textarea::placeholder {
  color: rgba(22, 22, 22, 0.48);
}

.sportello-hero .composer-help {
  margin: 0 4px;
  color: #403b34;
  font-size: 16px;
  line-height: 1.45;
}

.sportello-hero .composer .send-icon-button {
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(46px, 4vw, 60px);
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
}

@media (min-width: 960px) {
  .sportello-hero-inner {
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1fr);
  }
}

@media (max-width: 959px) {
  .sportello-hero {
    min-height: auto;
  }

  .sportello-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 18, 28, 0.68) 0%, rgba(5, 18, 28, 0.46) 38%, rgba(5, 18, 28, 0.24) 100%);
  }

  .sportello-hero-inner {
    min-height: auto;
  }

  .sportello-hero-copy {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .sportello-hero {
    padding: 18px 12px 28px;
  }

  .sportello-hero-media img {
    object-position: 42% 50%;
  }

  .sportello-hero-inner {
    gap: 18px;
  }

  .sportello-hero h1 {
    max-width: 340px;
    font-size: clamp(36px, 10vw, 48px);
  }

  .sportello-hero-lead,
  .sportello-hero-text {
    max-width: 350px;
    font-size: 16px;
    line-height: 1.42;
  }

  .sportello-hero .sportello-shell {
    width: 100%;
    padding: 14px;
    border-radius: 20px;
  }

  .sportello-hero .sportello-badge {
    font-size: 12px;
  }

  .sportello-hero .conversation-empty {
    font-size: 14px;
  }

  .sportello-hero .composer textarea {
    min-height: 190px;
    padding: 20px 68px 60px 18px;
    border-radius: 18px;
    font-size: 20px;
  }

  .sportello-hero .composer-help {
    font-size: 13px;
  }

  .sportello-hero .composer .send-icon-button {
    right: 14px;
    bottom: 42px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

/* Hero sunset-light adjustment */
.sportello-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 18, 28, 0.6) 0%, rgba(5, 18, 28, 0.38) 30%, rgba(5, 18, 28, 0.1) 58%, rgba(255, 250, 243, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 204, 143, 0.1) 0%, rgba(255, 178, 102, 0.12) 42%, rgba(5, 18, 28, 0.18) 100%);
}

.sportello-hero-media img {
  filter: saturate(1.12) contrast(0.96) brightness(1.24) sepia(0.08);
}

@media (max-width: 959px) {
  .sportello-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 18, 28, 0.56) 0%, rgba(5, 18, 28, 0.34) 42%, rgba(5, 18, 28, 0.18) 100%),
      linear-gradient(180deg, rgba(255, 204, 143, 0.12), rgba(255, 250, 243, 0.04));
  }
}

/* Hero brighter sunset adjustment */
.sportello-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 18, 28, 0.46) 0%, rgba(5, 18, 28, 0.28) 30%, rgba(5, 18, 28, 0.06) 58%, rgba(255, 250, 243, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 214, 160, 0.2) 0%, rgba(255, 187, 116, 0.2) 44%, rgba(255, 250, 243, 0.06) 100%);
}

.sportello-hero-media img {
  filter: saturate(1.16) contrast(0.9) brightness(1.46) sepia(0.14);
}

.sportello-hero .home-eyebrow,
.sportello-hero h1,
.sportello-hero-lead,
.sportello-hero-text {
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.72), 0 1px 4px rgba(0, 0, 0, 0.42);
}

@media (max-width: 959px) {
  .sportello-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 18, 28, 0.48) 0%, rgba(5, 18, 28, 0.28) 42%, rgba(5, 18, 28, 0.12) 100%),
      linear-gradient(180deg, rgba(255, 214, 160, 0.2), rgba(255, 250, 243, 0.08));
  }
}

/* Hero brightest sunset adjustment */
.sportello-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 18, 28, 0.38) 0%, rgba(5, 18, 28, 0.22) 30%, rgba(5, 18, 28, 0.04) 58%, rgba(255, 250, 243, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 222, 176, 0.3) 0%, rgba(255, 193, 126, 0.28) 44%, rgba(255, 250, 243, 0.1) 100%);
}

.sportello-hero-media img {
  filter: saturate(1.18) contrast(0.86) brightness(1.62) sepia(0.18);
}

/* Sportello clarity copy hierarchy */
.sportello-hero .sportello-intro {
  gap: 8px;
  padding-inline: 2px;
}

.sportello-panel-title {
  margin: 0;
  color: var(--soi-green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 860;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sportello-panel-promise {
  max-width: 690px;
  margin: 0;
  color: #302d28;
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 680;
  line-height: 1.38;
}

.sportello-hero .conversation {
  min-height: 0;
  max-height: 34vh;
}

.sportello-hero .composer textarea::placeholder {
  color: rgba(22, 22, 22, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.sportello-hero .composer-help {
  color: #4b453d;
  font-size: 15px;
  font-weight: 620;
}

@media (max-width: 640px) {
  .sportello-panel-title {
    font-size: 20px;
    line-height: 1.12;
  }

  .sportello-panel-promise {
    font-size: 15px;
    line-height: 1.34;
  }

  .sportello-hero .composer textarea {
    min-height: 180px;
  }

  .sportello-hero .composer-help {
    font-size: 13px;
  }
}

/* Below-hero SOI 3 refinement */
.below-hero-section {
  padding-block: clamp(34px, 5vw, 58px);
}

.compact-section-head {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.compact-section-head h2 {
  color: var(--soi-green);
}

.compact-how-grid {
  gap: clamp(14px, 2.5vw, 26px);
}

.compact-how-card {
  min-height: auto;
  gap: 10px;
  padding: 14px clamp(12px, 2vw, 22px);
}

.compact-how-card h3 {
  font-size: clamp(23px, 2.1vw, 29px);
}

.compact-how-card p {
  max-width: 300px;
  font-size: clamp(15px, 1.25vw, 17px);
}

.compact-how-icon {
  width: 72px;
  height: 72px;
  background: var(--soi-green-soft);
}

.compact-how-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.7;
}

.home-examples-section {
  margin-inline: max(14px, calc((100vw - var(--max)) / 2));
  padding: clamp(28px, 4vw, 42px) clamp(18px, 3vw, 28px);
  background: #fffaf3;
  border: 1px solid rgba(23, 63, 53, 0.08);
  border-radius: 18px;
}

.home-example-grid {
  display: grid;
  gap: 12px;
}

.home-example-card {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 18px 22px;
  color: var(--soi-green);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 12px;
}

.home-example-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.32;
}

.refined-role-inner {
  display: block;
  padding: clamp(24px, 4vw, 44px) 0;
  border-top: 1px solid rgba(23, 63, 53, 0.12);
  border-bottom: 1px solid rgba(23, 63, 53, 0.12);
}

.refined-role-copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.refined-role-copy h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(32px, 4vw, 50px);
}

.refined-role-copy p {
  max-width: 780px;
  margin-inline: auto;
}

.andrea-section {
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
}

.andrea-inner {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(248, 242, 232, 0.76);
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 22px;
}

.andrea-photo {
  margin: 0;
  overflow: hidden;
  background: var(--soi-sand);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(23, 63, 53, 0.12);
}

.andrea-photo img {
  display: block;
  width: 100%;
  height: clamp(360px, 44vw, 560px);
  object-fit: cover;
  object-position: 50% 28%;
}

.andrea-copy {
  display: grid;
  gap: 16px;
}

.andrea-copy h2 {
  margin: 0;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 650;
  line-height: 1.06;
}

.andrea-copy p:not(.section-label) {
  margin: 0;
  color: #5f615a;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.refined-final-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--soi-green);
}

@media (min-width: 760px) {
  .compact-how-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .compact-how-card:not(:last-child)::after {
    content: none;
  }

  .home-example-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .andrea-inner {
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  }
}

@media (max-width: 640px) {
  .below-hero-section {
    padding-block: 28px;
  }

  .home-examples-section {
    margin-inline: 12px;
    padding: 24px 14px;
    border-radius: 16px;
  }

  .home-example-card {
    min-height: 64px;
    padding: 15px 18px;
  }

  .home-example-card span {
    font-size: 18px;
    line-height: 1.36;
  }

  .refined-role-copy {
    text-align: left;
  }

  .andrea-inner {
    padding: 16px;
    border-radius: 18px;
  }

  .andrea-photo img {
    height: 360px;
  }

  .refined-final-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 18px;
  }

  .refined-final-inner h2 {
    font-size: 25px;
    line-height: 1.18;
  }
}

/* Andrea identity photo reduction */
.andrea-inner {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  padding: clamp(20px, 3vw, 30px);
}

.andrea-photo {
  width: 140px;
  max-width: 140px;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(23, 63, 53, 0.12);
}

.andrea-photo img {
  width: 140px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.andrea-copy {
  gap: 12px;
}

.andrea-copy h2 {
  font-size: clamp(28px, 3.2vw, 44px);
}

.andrea-copy p:not(.section-label) {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.5;
}

@media (min-width: 760px) {
  .andrea-inner {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .andrea-inner {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
  }

  .andrea-photo,
  .andrea-photo img {
    width: 112px;
    max-width: 112px;
  }

  .andrea-copy h2 {
    font-size: 24px;
  }

  .andrea-copy p:not(.section-label) {
    font-size: 14px;
    line-height: 1.42;
  }
}

/* Mobile home refinement - SOI 3 */
@media (max-width: 640px) {
  .home-how-section.below-hero-section {
    padding-block: 22px;
  }

  .compact-section-head {
    margin-bottom: 14px;
  }

  .compact-how-grid {
    gap: 10px;
  }

  .compact-how-card {
    gap: 6px;
    padding: 8px 12px;
  }

  .compact-how-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 2px;
  }

  .compact-how-icon svg {
    width: 28px;
    height: 28px;
  }

  .compact-how-card h3 {
    font-size: 22px;
    line-height: 1.08;
  }

  .compact-how-card p {
    max-width: 280px;
    font-size: 14px;
    line-height: 1.38;
  }

  .andrea-inner {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    padding: 16px;
  }

  .andrea-photo {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 96px;
    max-width: 96px;
    align-self: start;
  }

  .andrea-photo img {
    width: 96px;
    max-width: 96px;
    height: auto;
  }

  .andrea-copy {
    display: contents;
  }

  .andrea-copy .section-label {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
  }

  .andrea-copy h2 {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 23px;
    line-height: 1.08;
  }

  .andrea-copy p:not(.section-label) {
    grid-column: 1 / -1;
    font-size: 15px;
    line-height: 1.48;
  }

  .andrea-copy p:not(.section-label):first-of-type {
    margin-top: 4px;
  }
}

.condominium-followup {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--paper);
  border: 1px solid rgba(182, 138, 72, 0.38);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(23, 63, 53, 0.12);
}

.condominium-followup h3,
.condominium-followup p {
  margin: 0;
}

.condominium-followup h3 {
  color: var(--soi-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.14;
}

.condominium-followup > p {
  max-width: 760px;
  color: #5b554c;
  font-size: 16px;
  line-height: 1.6;
}

.condominium-form {
  display: grid;
  gap: 14px;
}

.condominium-form label {
  display: grid;
  gap: 7px;
  color: var(--soi-green);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.03em;
}

.condominium-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #221f1a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 8px;
  font: inherit;
}

.condominium-form input:focus {
  outline: 2px solid rgba(182, 138, 72, 0.35);
  outline-offset: 2px;
  border-color: rgba(23, 63, 53, 0.34);
}

.condominium-message {
  min-height: 20px;
  color: #6b6258;
  font-size: 14px;
  line-height: 1.45;
}

.condominium-actions {
  padding-top: 0;
}

@media (max-width: 640px) {
  .condominium-followup {
    gap: 13px;
    margin-top: 14px;
    padding: 18px;
  }

  .condominium-followup h3 {
    font-size: 22px;
  }

  .condominium-followup > p {
    font-size: 15px;
    line-height: 1.5;
  }

  .condominium-form input {
    min-height: 46px;
  }
}

.sportello-hero .composer-help {
  max-width: 680px;
  margin: 4px 4px 0;
  color: #342f28;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.5;
}

.sportello-hero .composer-help strong {
  color: var(--soi-green);
  font-weight: 820;
}

@media (max-width: 640px) {
  .sportello-hero .composer-help {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.45;
  }
}

.sportello-hero .composer-field {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 16px 44px rgba(23, 63, 53, 0.08);
}

.sportello-hero .composer-field textarea {
  min-height: clamp(180px, 30vh, 290px);
  padding: clamp(24px, 3vw, 34px) clamp(72px, 6vw, 94px) 18px clamp(24px, 3vw, 34px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sportello-hero .composer-field .composer-help {
  max-width: none;
  margin: 0;
  padding: 16px clamp(74px, 6vw, 96px) 18px clamp(24px, 3vw, 34px);
  color: #342f28;
  background: rgba(248, 242, 232, 0.62);
  border-top: 1px solid rgba(23, 63, 53, 0.12);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.5;
}

.sportello-hero .composer-field .composer-help strong {
  color: var(--soi-green);
  font-weight: 820;
}

.sportello-hero .composer-field .send-icon-button {
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(18px, 2vw, 24px);
}

@media (max-width: 640px) {
  .sportello-hero .composer-field {
    border-radius: 18px;
  }

  .sportello-hero .composer-field textarea {
    min-height: 132px;
    padding: 18px 66px 12px 18px;
  }

  .sportello-hero .composer-field .composer-help {
    padding: 13px 66px 14px 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .sportello-hero .composer-field .send-icon-button {
    right: 13px;
    bottom: 15px;
  }
}

.sportello-hero .composer .composer-field {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 16px 44px rgba(23, 63, 53, 0.08);
}

.sportello-hero .composer .composer-field:focus-within {
  border-color: rgba(20, 92, 46, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(20, 92, 46, 0.08), 0 18px 48px rgba(23, 63, 53, 0.1);
}

.sportello-hero .composer .composer-field textarea,
.sportello-hero .composer .composer-field textarea:focus {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.sportello-hero .composer .composer-field .composer-help {
  margin: 0;
  padding: 16px clamp(74px, 6vw, 96px) 18px clamp(24px, 3vw, 34px);
  background: rgba(248, 242, 232, 0.62);
  border-top: 1px solid rgba(23, 63, 53, 0.12);
}

.sportello-hero .composer .composer-field .dictation-button {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--soi-green);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.12);
  cursor: pointer;
}

.sportello-hero .composer .composer-field .dictation-button span {
  display: none;
}

.sportello-hero .composer .composer-field .dictation-button::before {
  content: "";
  width: 25px;
  height: 25px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zM19 11a1 1 0 1 0-2 0 5 5 0 0 1-10 0 1 1 0 1 0-2 0 7 7 0 0 0 6 6.92V20H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-3v-2.08A7 7 0 0 0 19 11z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zM19 11a1 1 0 1 0-2 0 5 5 0 0 1-10 0 1 1 0 1 0-2 0 7 7 0 0 0 6 6.92V20H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-3v-2.08A7 7 0 0 0 19 11z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sportello-hero .composer .composer-field .dictation-button:hover,
.sportello-hero .composer .composer-field .dictation-button:focus-visible {
  background: rgba(248, 242, 232, 0.94);
  border-color: rgba(23, 63, 53, 0.36);
  outline: none;
}

.sportello-hero .composer .composer-field .dictation-button.is-dictating {
  color: var(--paper);
  background: var(--soi-green);
  border-color: var(--soi-green);
}

.sportello-contact-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: rgba(31, 43, 39, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

.contact-request-button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--soi-green);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.contact-request-button:hover,
.contact-request-button:focus-visible {
  border-color: rgba(23, 63, 53, 0.34);
  background: rgba(248, 242, 232, 0.92);
  outline: none;
}

.contact-request-button:disabled {
  opacity: 0.48;
  cursor: default;
}

@media (max-width: 640px) {
  .sportello-hero .composer .composer-field {
    border-radius: 18px;
  }

  .sportello-hero .composer .composer-field textarea {
    min-height: 126px;
    padding: 18px 66px 12px 18px;
  }

  .sportello-hero .composer .composer-field .composer-help {
    padding: 12px 66px 14px 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .sportello-hero .composer .composer-field .dictation-button {
    top: 13px;
    right: 13px;
  }

  .sportello-contact-cta {
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
    font-size: 13px;
  }

  .contact-request-button {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
  }
}

.sportello-focus-close {
  display: none;
}

body.sportello-focus {
  overflow: hidden;
}

body.sportello-focus::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(7, 13, 11, 0.54);
  backdrop-filter: blur(10px);
}

body.sportello-focus .sportello-hero-inner {
  z-index: auto;
}

body.sportello-focus .sportello-hero .sportello-shell {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1180px, 92vw);
  height: min(860px, 92dvh);
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: clamp(14px, 2vw, 24px);
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 242, 232, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(7, 13, 11, 0.34);
}

body.sportello-focus .sportello-focus-close {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--soi-green);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 63, 53, 0.16);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

body.sportello-focus .sportello-focus-close:hover,
body.sportello-focus .sportello-focus-close:focus-visible {
  background: rgba(248, 242, 232, 0.94);
  border-color: rgba(23, 63, 53, 0.34);
  outline: none;
}

body.sportello-focus .sportello-hero .sportello-intro {
  gap: 4px;
}

body.sportello-focus .sportello-hero .sportello-panel-title {
  font-size: clamp(18px, 2vw, 24px);
}

body.sportello-focus .sportello-hero .sportello-panel-promise {
  max-width: 760px;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.38;
}

body.sportello-focus .sportello-hero .sportello-panel {
  display: grid;
  grid-template-rows: minmax(65%, 1fr) auto auto;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

body.sportello-focus .sportello-hero .sportello-panel:has(.request-summary) {
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  overscroll-behavior: contain;
}

body.sportello-focus .sportello-hero .sportello-panel:has(.request-summary) .conversation,
body.sportello-focus .sportello-hero .sportello-panel:has(.request-summary) #message-form {
  display: none;
}

body.sportello-focus .sportello-hero .sportello-panel:has(.request-summary) .request-summary {
  min-height: 0;
  margin-top: 0;
  overflow-y: auto;
}

body.sportello-focus .sportello-hero .conversation {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: clamp(14px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 63, 53, 0.1);
  border-radius: 16px;
}

body.sportello-focus .sportello-hero .message.assistant {
  max-width: 84%;
}

body.sportello-focus .sportello-hero .composer {
  padding-top: 10px;
}

body.sportello-focus .sportello-hero .composer .composer-field textarea {
  min-height: clamp(76px, 12vh, 108px);
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 16px;
}

body.sportello-focus .sportello-hero .composer .composer-field .composer-help {
  display: none;
}

body.sportello-focus .sportello-contact-cta {
  margin-top: 6px;
}

@media (max-width: 640px) {
  body.sportello-focus .sportello-hero .sportello-shell {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    padding: 12px;
    border-radius: 18px;
  }

  body.sportello-focus .sportello-focus-close {
    min-height: 36px;
    padding-inline: 12px;
  }

  body.sportello-focus .sportello-hero .sportello-intro {
    gap: 2px;
  }

  body.sportello-focus .sportello-hero .sportello-panel-title {
    font-size: 18px;
  }

  body.sportello-focus .sportello-hero .sportello-panel-promise {
    font-size: 13px;
    line-height: 1.3;
  }

  body.sportello-focus .sportello-hero .conversation {
    padding: 12px;
  }

  body.sportello-focus .sportello-hero .message.assistant {
    max-width: 94%;
  }

  body.sportello-focus .sportello-hero .composer {
    padding-top: 8px;
  }

  body.sportello-focus .sportello-hero .composer .composer-field textarea {
    min-height: 76px;
    padding: 13px 62px 13px 16px;
    font-size: 16px;
  }

  body.sportello-focus .sportello-hero .composer .composer-field .composer-help {
    display: none;
  }

  body.sportello-focus .sportello-contact-cta {
    gap: 6px;
    margin-top: 8px;
  }
}

.public-area-section {
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background: #ffffff;
}

.public-area-section-soft {
  background: #fffaf3;
}

.public-area-inner {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  max-width: var(--max);
  margin: 0 auto;
}

.public-area-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.public-area-head h2,
.public-split-area h2 {
  margin: 0;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 650;
  line-height: 1.08;
}

.public-split-area {
  align-items: center;
  padding-block: clamp(10px, 2vw, 18px);
}

.public-split-area > div {
  display: grid;
  gap: 10px;
}

.public-split-area p,
.public-info-card p,
.partner-card p {
  margin: 0;
  color: #5f615a;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
}

.public-contact-block {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.public-contact-block p {
  margin: 0;
  color: #5f615a;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
}

.public-contact-block a {
  color: var(--soi-green);
  font-weight: 760;
  text-underline-offset: 4px;
}

.public-contact-email {
  width: fit-content;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.22;
}

.privacy-area-inner {
  max-width: min(940px, var(--max));
}

.legal-page-main {
  background: #ffffff;
}

.legal-page-section {
  min-height: calc(100svh - 222px);
  padding-block: clamp(52px, 7vw, 92px);
}

.legal-page-section .public-area-head h1 {
  margin: 0;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 650;
  line-height: 1.06;
}

.legal-page-intro {
  max-width: 660px;
  margin: 0;
  color: #5f615a;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
}

.legal-back-link {
  width: fit-content;
  color: var(--soi-green);
  font-size: 14px;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.privacy-content {
  display: grid;
  gap: 14px;
}

.privacy-content section,
.legal-content section {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 2.6vw, 24px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 42px rgba(23, 63, 53, 0.06);
}

.privacy-content h3,
.legal-content h2 {
  margin: 0;
  color: var(--soi-green);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 680;
  line-height: 1.24;
}

.privacy-content p,
.privacy-content li,
.legal-content p,
.legal-content address {
  color: #5f615a;
  font-size: clamp(15px, 1.12vw, 16.5px);
  line-height: 1.62;
}

.privacy-content p,
.privacy-content ul,
.legal-content p,
.legal-content address {
  margin: 0;
}

.legal-content {
  display: grid;
  gap: 14px;
  max-width: min(780px, 100%);
}

.legal-content address {
  font-style: normal;
}

.privacy-content ul {
  padding-left: 20px;
}

.privacy-content a,
.legal-content a {
  color: var(--soi-green);
  font-weight: 760;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.public-card-grid {
  display: grid;
  gap: 16px;
}

.public-info-card,
.partner-card {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 52px rgba(23, 63, 53, 0.08);
}

.public-info-card h3,
.partner-card h3 {
  margin: 0;
  color: var(--soi-green);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 820;
  line-height: 1.18;
}

.public-info-card {
  gap: 10px;
}

.public-info-card h3 {
  font-size: clamp(19px, 1.65vw, 23px);
  font-weight: 680;
  line-height: 1.22;
}

.public-info-card p {
  font-size: clamp(15.5px, 1.18vw, 17px);
  font-weight: 400;
  line-height: 1.68;
}

.public-status-label {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  color: var(--soi-green);
  background: var(--soi-green-soft);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 820;
}

.administrators-area-section {
  background: #fffaf3;
}

.administrators-area-inner {
  gap: clamp(22px, 4vw, 38px);
}

.administrators-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 48vw, 610px);
  overflow: hidden;
  padding: clamp(30px, 6vw, 72px);
  border-radius: 18px;
  background-image:
    linear-gradient(90deg, rgba(7, 13, 11, 0.7) 0%, rgba(7, 13, 11, 0.48) 40%, rgba(7, 13, 11, 0.14) 72%, rgba(7, 13, 11, 0.04) 100%),
    url("/assets/images/amministratori-hero.jpg");
  background-position: center 58%;
  background-size: cover;
  box-shadow: 0 26px 70px rgba(23, 63, 53, 0.16);
}

.administrators-hero .administrators-area-head {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.administrators-hero .section-label {
  color: rgba(255, 255, 255, 0.82);
}

.administrators-hero .public-area-head h2 {
  color: #ffffff;
  max-width: 720px;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 620;
  line-height: 1.06;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.administrators-area-head p:last-child {
  margin: 0;
  color: #5f615a;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.68;
}

.administrators-hero .administrators-area-head p:last-child {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.administrators-feature-grid,
.administrators-examples {
  display: grid;
  gap: 14px;
}

.administrators-feature,
.administrators-examples article,
.administrators-demo-callout,
.administrators-contact-callout {
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(23, 63, 53, 0.08);
}

.administrators-feature {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
}

.administrators-feature span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 840;
  letter-spacing: 0.08em;
}

.administrators-feature h3,
.administrators-demo-callout h3,
.administrators-contact-callout h3 {
  margin: 0;
  color: var(--soi-green);
  font-size: clamp(19px, 1.65vw, 23px);
  font-weight: 680;
  line-height: 1.22;
}

.administrators-feature p,
.administrators-examples p,
.administrators-demo-callout p {
  margin: 0;
  color: #5f615a;
  font-size: clamp(15.5px, 1.18vw, 17px);
  font-weight: 400;
  line-height: 1.68;
}

.administrators-examples article {
  padding: clamp(18px, 2.5vw, 24px);
}

.administrators-examples p {
  color: #342f28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.32;
}

.administrators-actions {
  display: grid;
  gap: 14px;
}

.administrators-demo-callout,
.administrators-contact-callout {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
}

.administrators-demo-callout > div {
  display: grid;
  gap: 8px;
}

.administrators-contact-callout {
  background: var(--soi-green);
}

.administrators-contact-callout h3 {
  color: var(--paper);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 620;
  line-height: 1.2;
}

.administrators-contact-callout .button {
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  background: var(--paper);
  border-color: var(--paper);
  color: var(--soi-green);
  font-size: 15px;
  font-weight: 760;
}

.administrator-contact-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.administrator-contact-form[hidden] {
  display: none;
}

.administrator-contact-form p,
.administrator-contact-privacy {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
}

.administrator-contact-form label,
.administrator-contact-fields {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 720;
}

.administrator-contact-form input,
.administrator-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #2d302b;
  font: inherit;
  font-size: 15px;
}

.administrator-contact-form input {
  min-height: 42px;
  padding: 0 12px;
}

.administrator-contact-form textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

.administrator-contact-privacy a {
  color: var(--paper);
  font-weight: 760;
}

.administrator-contact-status {
  min-height: 21px;
  color: rgba(255, 255, 255, 0.92);
}

.administrator-contact-status.is-error {
  color: #ffe0d6;
}

.network-contact-callout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 14px;
  background: var(--soi-green);
  box-shadow: 0 18px 52px rgba(23, 63, 53, 0.08);
  color: var(--paper);
}

.network-contact-callout h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 620;
  line-height: 1.2;
}

.network-contact-callout > p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15.5px, 1.18vw, 17px);
  line-height: 1.62;
}

.network-contact-callout .button {
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  background: var(--paper);
  border-color: var(--paper);
  color: var(--soi-green);
  font-size: 15px;
  font-weight: 760;
}

.network-contact-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.network-contact-form[hidden] {
  display: none;
}

.network-contact-form p,
.network-contact-privacy {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
}

.network-contact-form label,
.network-contact-fields {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 720;
}

.network-contact-form input,
.network-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #2d302b;
  font: inherit;
  font-size: 15px;
}

.network-contact-form input {
  min-height: 42px;
  padding: 0 12px;
}

.network-contact-form textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

.network-contact-privacy a {
  color: var(--paper);
  font-weight: 760;
}

.network-contact-status {
  min-height: 21px;
  color: rgba(255, 255, 255, 0.92);
}

.network-contact-status.is-error {
  color: #ffe0d6;
}

.partner-card {
  align-items: center;
}

.partner-logo-slot {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 12px;
}

.partner-logo-slot img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.partner-subtitle {
  color: var(--soi-green);
  font-weight: 760;
}

.reserved-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 0 16px;
  color: var(--soi-green);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 8px;
  font-weight: 780;
}

.administrators-demo-button:disabled {
  opacity: 0.76;
  cursor: default;
}

.administrators-demo-button:not(:disabled) {
  color: #24180a;
  background: #d8aa5e;
  border-color: #c79547;
  box-shadow: 0 14px 34px rgba(182, 138, 72, 0.2);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.administrators-demo-button:not(:disabled):hover {
  background: #e3b96f;
  border-color: #b98537;
  box-shadow: 0 18px 42px rgba(182, 138, 72, 0.28);
  transform: translateY(-1px);
}

.administrators-demo-button:not(:disabled):focus-visible {
  outline: 3px solid rgba(182, 138, 72, 0.38);
  outline-offset: 3px;
}

.soi-demo-open {
  overflow: hidden;
}

.soi-demo-modal[hidden] {
  display: none;
}

.soi-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
}

.soi-demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 11, 0.58);
  backdrop-filter: blur(10px);
}

.soi-demo-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  width: min(1100px, 100%);
  max-height: min(780px, calc(100dvh - 28px));
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, #fffdf8 0%, #fbfbfa 100%);
  border: 1px solid rgba(23, 63, 53, 0.16);
  border-radius: 18px;
  box-shadow: 0 34px 110px rgba(7, 13, 11, 0.32);
}

.soi-demo-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.soi-demo-header h2,
.soi-demo-header p {
  margin: 0;
}

.soi-demo-header h2 {
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 620;
  line-height: 1.08;
}

.soi-demo-header p:not(.section-label) {
  max-width: 640px;
  margin-top: 7px;
  color: #5f615a;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
}

.soi-demo-close {
  min-height: 40px;
  padding: 0 14px;
  color: var(--soi-green);
  background: rgba(230, 238, 232, 0.88);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 999px;
  font-weight: 760;
  cursor: pointer;
}

.soi-demo-progress {
  display: grid;
  gap: 7px;
}

.soi-demo-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #5f615a;
  font-size: 13px;
  font-weight: 720;
}

.soi-demo-progress-track {
  height: 6px;
  overflow: hidden;
  background: rgba(23, 63, 53, 0.1);
  border-radius: 999px;
}

.soi-demo-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #d8aa5e);
  border-radius: inherit;
  transition: width 500ms ease;
}

.soi-demo-stage {
  display: grid;
  min-height: 0;
}

.soi-demo-stage.has-result {
  gap: 16px;
}

.soi-demo-chat {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(14px, 2.5vw, 20px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 242, 232, 0.42)),
    #fbfbfa;
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 14px;
}

.soi-demo-message {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: min(100%, 690px);
  padding: 14px 16px;
  border-radius: 10px;
  opacity: 1;
}

.soi-demo-message span {
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.soi-demo-message p {
  margin: 0;
  font-size: clamp(15px, 1.24vw, 17px);
  line-height: 1.58;
  white-space: pre-wrap;
}

.soi-demo-message-user {
  justify-self: end;
  color: var(--paper);
  background: var(--soi-green);
  box-shadow: 0 12px 32px rgba(23, 63, 53, 0.14);
}

.soi-demo-message-user span {
  color: rgba(255, 255, 255, 0.72);
}

.soi-demo-message-assistant {
  justify-self: start;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 63, 53, 0.14);
  box-shadow: 0 12px 34px rgba(23, 63, 53, 0.08);
  animation: demoMessageIn 260ms ease both;
}

.soi-demo-message-assistant span {
  color: var(--soi-green);
}

.soi-demo-thinking {
  justify-self: start;
  width: fit-content;
  max-width: min(100%, 420px);
  padding: 11px 14px;
  color: var(--soi-green);
  background: rgba(230, 238, 232, 0.92);
  border: 1px solid rgba(23, 63, 53, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
}

.soi-demo-final {
  display: grid;
  align-self: start;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  color: var(--paper);
  background: var(--soi-green);
  border-radius: 14px;
}

.soi-demo-final[hidden] {
  display: none;
}

.soi-demo-final h3,
.soi-demo-final p {
  margin: 0;
}

.soi-demo-final h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 610;
  line-height: 1.14;
}

.soi-demo-summary-grid {
  display: grid;
  gap: 10px;
}

.soi-demo-summary-grid div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.soi-demo-summary-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.soi-demo-summary-grid p {
  font-size: 15px;
  line-height: 1.46;
}

.soi-demo-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.soi-demo-final-actions > p {
  flex-basis: 100%;
  font-size: 16px;
  font-weight: 620;
}

.soi-demo-final-actions .button {
  min-height: 44px;
  background: var(--paper);
  border-color: var(--paper);
  color: var(--soi-green);
}

.soi-demo-final-actions .text-action {
  color: var(--paper);
}

@keyframes demoMessageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 760px) {
  .public-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .public-split-area {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .partner-card {
    grid-template-columns: minmax(180px, 0.26fr) minmax(0, 1fr);
  }

  .administrators-feature-grid,
  .administrators-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .administrators-examples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .administrators-demo-callout,
  .administrators-contact-callout {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .soi-demo-stage.has-result {
    grid-template-columns: minmax(0, 0.58fr) minmax(330px, 0.42fr);
  }

  .soi-demo-stage.has-result .soi-demo-chat {
    max-height: min(540px, calc(100dvh - 230px));
  }
}

@media (max-width: 640px) {
  .public-area-section {
    padding-inline: 12px;
  }

  .administrators-hero {
    min-height: 390px;
    padding: 24px 18px;
    border-radius: 14px;
    background-image:
      linear-gradient(180deg, rgba(7, 13, 11, 0.42) 0%, rgba(7, 13, 11, 0.5) 100%),
      url("/assets/images/amministratori-hero.jpg");
    background-position: center 60%;
  }

  .administrators-hero .public-area-head h2 {
    font-size: clamp(27px, 6.8vw, 32px);
    line-height: 1.16;
  }

  .administrators-hero .administrators-area-head p:last-child {
    font-size: 15px;
    line-height: 1.62;
  }

  .public-info-card,
  .partner-card {
    padding: 18px;
    border-radius: 12px;
  }

  .public-status-label,
  .reserved-link {
    width: 100%;
    justify-content: center;
  }

  .administrators-feature,
  .administrators-examples article,
  .administrators-demo-callout,
  .administrators-contact-callout {
    padding: 18px;
    border-radius: 12px;
  }

  .administrators-feature h3,
  .administrators-demo-callout h3 {
    font-size: 19px;
    line-height: 1.25;
  }

  .administrators-feature p,
  .administrators-demo-callout p {
    font-size: 15px;
    line-height: 1.56;
  }

  .administrators-examples p {
    font-size: 18px;
    line-height: 1.36;
  }

  .administrators-contact-callout h3 {
    font-size: 21px;
    line-height: 1.24;
  }

  .administrators-contact-callout .button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .network-contact-callout {
    padding: 18px;
    border-radius: 12px;
  }

  .network-contact-callout .button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .administrator-contact-form {
    max-width: none;
  }

  .administrator-contact-form input,
  .network-contact-form input {
    min-height: 44px;
  }

  .network-contact-form {
    max-width: none;
  }

  .soi-demo-modal {
    align-items: stretch;
    padding: 10px;
  }

  .soi-demo-panel {
    grid-template-rows: auto auto minmax(0, 1fr);
    max-height: calc(100dvh - 20px);
    padding: 14px;
    border-radius: 16px;
  }

  .soi-demo-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .soi-demo-header h2 {
    font-size: 25px;
    line-height: 1.12;
  }

  .soi-demo-header p:not(.section-label) {
    font-size: 14px;
    line-height: 1.45;
  }

  .soi-demo-close {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .soi-demo-chat {
    gap: 10px;
    max-height: 48dvh;
    padding: 12px;
  }

  .soi-demo-message {
    max-width: min(100%, 330px);
    padding: 12px 13px;
  }

  .soi-demo-message p {
    font-size: 14.5px;
    line-height: 1.5;
  }

  .soi-demo-final {
    gap: 12px;
    padding: 14px;
  }

  .soi-demo-stage.has-result {
    overflow-y: auto;
    padding-right: 2px;
  }

  .soi-demo-stage.has-result .soi-demo-chat {
    max-height: 42dvh;
  }

  .soi-demo-final h3 {
    font-size: 22px;
  }

  .soi-demo-summary-grid p {
    font-size: 14px;
  }

  .soi-demo-final-actions {
    display: grid;
  }

  .soi-demo-final-actions .button,
  .soi-demo-final-actions .text-action {
    width: 100%;
    justify-content: center;
  }

  #area-riservata.below-hero-section {
    padding-block: 20px;
  }

  #area-riservata .public-split-area {
    gap: 14px;
    padding-block: 0;
  }

  #area-riservata .public-split-area > div {
    gap: 6px;
  }

  .home-final-cta {
    padding: 20px 12px 24px;
  }

  .home-final-inner {
    gap: 10px;
    padding: 18px;
  }

  .site-footer {
    padding-block: 20px;
  }

  .footer-inner {
    gap: 12px;
  }

  .footer-inner p {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }

  .footer-links a {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 12.5px;
    line-height: 1.3;
  }
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.primary-nav {
  justify-self: center;
}

.primary-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  color: var(--soi-green);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

.primary-nav-list a:hover,
.primary-nav-list a:focus-visible {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.62);
  outline: 2px solid rgba(23, 63, 53, 0.18);
  outline-offset: 2px;
}

.primary-nav-reserved {
  opacity: 0.76;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--soi-green);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 63, 53, 0.2);
  border-radius: 999px;
  font-weight: 780;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(23, 63, 53, 0.28);
  outline-offset: 2px;
}

.nav-toggle-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    order: 4;
    width: 100%;
  }

  .js .primary-nav {
    display: none;
  }

  .js .primary-nav.is-open {
    display: block;
  }

  .primary-nav-list {
    display: grid;
    gap: 4px;
    justify-content: stretch;
    padding: 10px;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(23, 63, 53, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(23, 63, 53, 0.12);
  }

  .primary-nav-list a {
    min-height: 44px;
    padding-inline: 12px;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .nav-toggle {
    padding-inline: 12px;
    font-size: 13px;
  }
}

@media (min-width: 641px) {
  .site-header {
    padding-block: 22px;
  }

  .logo-slot {
    gap: 16px;
  }

  .logo-mark {
    font-size: clamp(48px, 4.8vw, 66px);
  }

  .logo-text {
    max-width: 170px;
    font-size: 14px;
    line-height: 1.2;
  }

  .primary-nav-list a {
    min-height: 42px;
    font-size: 15.5px;
  }

  .header-cta {
    min-height: 56px;
    padding-inline: 28px;
  }
}
