/* ==========================================================================
   Colux "Nuova" — direzione "Spazio chiaro" (scelta il 12 ott 2026)
   Livello sopra tokens/atelier: carattere Geist, fondo chiaro, pulsanti neri,
   card bianche con ombre morbide, testata in vetro che galleggia.
   ========================================================================== */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/atelier/Geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/atelier/Geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../../fonts/atelier/GeistMono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../../fonts/atelier/GeistMono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --c-pietra:      #F5F3EF;
  --c-carta:       #FFFEFC;
  --c-inchiostro:  #1B1A17;
  --c-grafite:     #3E3A33;
  --c-polvere:     #6B655B;
  --c-filo:        rgba(27, 26, 23, 0.09);
  --c-filo-forte:  rgba(27, 26, 23, 0.16);
  --c-ai:          #7A5A12;           /* solo per gli strumenti AI */
  --c-ai-velo:     rgba(122, 90, 18, 0.10);
  --c-ottone-ai:   #C9A24A;           /* pieno dei pulsanti che avviano l'AI (testo inchiostro, contrasto 7:1) */
  --c-ottone-ai-scuro: #B8913C;
  --c-vetro:       rgba(255, 254, 252, 0.74);
  --c-vetro-bordo: rgba(255, 255, 255, 0.9);

  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-text:    "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-accent:  "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, Menlo, monospace;
  --display-stretch: 100%;
  --t-hero: clamp(3rem, 7.2vw, 6.25rem);

  --radius-ctrl:  12px;
  --radius-panel: 20px;
  --shadow-1: 0 1px 2px rgba(40, 30, 15, 0.05);
  --shadow-2: 0 2px 6px rgba(40, 30, 15, 0.04), 0 12px 32px rgba(40, 30, 15, 0.07);
  --shadow-3: 0 8px 20px rgba(40, 30, 15, 0.08), 0 30px 70px rgba(40, 30, 15, 0.14);
}
.a-shell {
  --accent: var(--c-inchiostro); --accent-hover: #000; --accent-veil: rgba(27, 26, 23, 0.06);
  --on-accent: #FFFFFF; --focus: var(--c-ai);
  background: var(--c-pietra);
  -webkit-font-smoothing: antialiased;
}

/* titoli: Geist stretto e deciso */
.a-display, .a-h1, .a-h2, .a-h3, .a-card__title, .a-tool__name, .a-brand__name, .a-sala-title { font-stretch: normal; letter-spacing: -0.035em; }
.a-display { font-weight: 600; line-height: 0.95; letter-spacing: -0.045em; }
.a-h1 { font-weight: 600; }
.a-accent { font-style: normal; font-weight: inherit; }

/* pulsanti: neri e pieni, oppure in vetro */
.a-btn { border-radius: var(--radius-ctrl); font-weight: 600; }
.a-btn--primary { box-shadow: 0 10px 24px rgba(27, 26, 23, 0.18); }
@media (hover: hover) and (pointer: fine) { .a-btn--primary:hover { background: #000; } }

/* card bianche, bordo sottile, ombra morbida */
.a-card, .a-empty, .a-dialog, .a-gen__how { background: var(--c-carta); }
.a-card { box-shadow: var(--shadow-2); border: 1px solid var(--c-filo); }

/* == Testata in vetro: tre gruppi che galleggiano sopra i contenuti ========= */
.a-header { background: transparent; border-bottom: 0; pointer-events: none; }
.a-header__in { max-width: none; padding-inline: var(--space-md); height: 56px; gap: var(--space-sm); }
.a-header__in > * { pointer-events: auto; }
.a-header__logo { height: 44px; padding: 0 12px; border-radius: 14px; background: var(--c-vetro); border: 1px solid var(--c-vetro-bordo); box-shadow: var(--shadow-2); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.a-header__logo img { height: 32px; }
.a-header__places { gap: 2px; padding: 4px; border-radius: 14px; background: var(--c-vetro); border: 1px solid var(--c-vetro-bordo); box-shadow: var(--shadow-2); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.a-place { height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 500; color: var(--c-grafite); transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease; }
.a-place::after { display: none; }
.a-place.is-current { background: var(--c-inchiostro); color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .a-place:not(.is-current):hover { background: rgba(27, 26, 23, 0.06); } }
.a-header__tools { gap: var(--space-xs); }
.a-search { position: relative; }
.a-search__input { width: 340px; height: 44px; padding: 0 56px 0 40px; border-radius: 14px; border: 1px solid var(--c-vetro-bordo); background: var(--c-vetro) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B655B' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 14px center; box-shadow: var(--shadow-2); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.a-search::after { content: "⌘K"; position: absolute; right: 10px; top: 50%; translate: 0 -50%; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--c-filo-forte); font: 500 12px/1 var(--font-mono); color: var(--c-grafite); pointer-events: none; }
.a-search__input:focus { border-color: var(--c-inchiostro); box-shadow: 0 0 0 3px rgba(27, 26, 23, 0.08), var(--shadow-2); }
.a-locale { padding: 4px; border-radius: 14px; background: var(--c-vetro); border: 1px solid var(--c-vetro-bordo); box-shadow: var(--shadow-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.a-locale a { border-radius: 10px; padding: 8px 10px; }
.a-locale a.is-current { background: var(--c-inchiostro); color: #FFFFFF; box-shadow: none; }
.a-avatar { width: 44px; height: 44px; box-shadow: var(--shadow-2); }
.a-header__burger { height: 44px; border-radius: 14px; background: var(--c-vetro); border-color: var(--c-vetro-bordo); box-shadow: var(--shadow-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
@media (max-width: 1100px) { .a-search__input { width: 220px; } }

/* == Home: la scena del progetto in corso a tutto schermo =================== */
.a-home-hero { position: relative; margin-top: -56px; height: min(78vh, 720px); min-height: 520px; overflow: hidden; }
.a-home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.a-home-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(245,243,239,0.6) 0%, rgba(245,243,239,0) 20%, rgba(245,243,239,0) 46%, rgba(245,243,239,0.88) 80%, var(--c-pietra) 100%); }
.a-home-hero__in { position: absolute; z-index: 1; left: 0; right: 0; bottom: var(--space-2xl); max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: var(--space-md); }
.a-home-hero__in .a-display { max-width: 15ch; margin: 0; }
.a-home-hero__in .a-lead { margin: 0; color: var(--c-grafite); max-width: 52ch; }
.a-status { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 13px; border-radius: 999px; background: var(--c-vetro); border: 1px solid var(--c-vetro-bordo); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-1); font-size: var(--t-sm); color: var(--c-grafite); }
.a-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3F9B5A; box-shadow: 0 0 0 4px rgba(63,155,90,0.16); }
.a-btn--glass { background: var(--c-vetro); border-color: var(--c-vetro-bordo); color: var(--c-inchiostro); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.a-btn--lg { min-height: 54px; padding: 0 24px; font-size: var(--t-base); }

/* la fila di riquadri sotto la scena */
.a-bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: var(--space-md); margin-top: var(--space-md); }
.a-bento > * { min-height: 220px; border-radius: var(--radius-panel); background: var(--c-carta); border: 1px solid var(--c-filo); box-shadow: var(--shadow-2); padding: 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; color: inherit; text-decoration: none; }
.a-bento__label { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--c-polvere); }
.a-bento__label--ai { color: var(--c-ai); font-weight: 600; }
.a-bento__big { font-size: var(--t-xl); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.a-bento__media { padding: 0; position: relative; }
.a-bento__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease-out); }
.a-bento__media span { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(255,254,252,0.88); font-size: var(--t-sm); }
@media (hover: hover) and (pointer: fine) { a.a-bento__media:hover img { transform: scale(1.03); } }
.a-bento__objs { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a-bento__objs img { width: 100%; height: 100%; max-height: 140px; object-fit: contain; border-radius: 12px; background: var(--c-pietra); }
.a-bento__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin-top: auto; }
.a-bento__stats b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.a-bento__stats span { font-size: var(--t-sm); color: var(--c-polvere); }
.a-bento__cta { margin-top: auto; }
.a-btn--ai { background: var(--c-ottone-ai); border-color: transparent; color: var(--c-inchiostro); box-shadow: 0 8px 22px rgba(160,120,40,.28); }
@media (hover: hover) and (pointer: fine) { .a-btn--ai:hover:not(:disabled) { background: var(--c-ottone-ai-scuro); } }
.a-btn--ai:disabled { opacity: 1; background: rgba(201,162,74,.38); box-shadow: none; cursor: not-allowed; }
@media (max-width: 1000px) { .a-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .a-home-hero { height: 78vh; min-height: 480px; }
  .a-bento { grid-template-columns: minmax(0, 1fr); }
  .a-bento > * { min-height: 180px; }
}
/* arrivo: la scena si scopre, il testo sale */
.is-arriving .a-home-hero__img { animation: a-hero-in 1400ms var(--ease-out) both; }
@keyframes a-hero-in { from { transform: scale(1.06); filter: blur(6px); } to { transform: none; filter: none; } }
.is-arriving .a-bento > * { animation: a-emerge 700ms var(--ease-out) backwards; animation-delay: calc(500ms + var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .is-arriving .a-home-hero__img, .is-arriving .a-bento > * { animation: none; } }
.a-login__logo { height: 72px; width: auto; display: block; }

/* == Pagina progetto: la copertina a tutto schermo, come la home ============ */
.a-proj-hero__media { position: absolute; inset: 0; margin: 0; background: linear-gradient(160deg, #EDE8DF, #F5F3EF 60%); }
.a-proj-hero__media.is-plan .a-home-hero__img { object-fit: contain; padding: 90px 12% 34%; box-sizing: border-box; }
.a-home-hero__img.is-plan { object-fit: contain; padding: 90px 12% 34%; box-sizing: border-box; background: var(--c-pietra); }
.a-proj-hero .a-proj__cover-btn { position: absolute; z-index: 2; right: var(--gutter); top: 84px; bottom: auto; width: auto; height: 44px; min-height: 44px; padding: 0 16px; gap: 8px; }
.a-proj-hero .a-crumbs { width: fit-content; padding: 8px 14px; border-radius: 999px; background: var(--c-vetro); border: 1px solid var(--c-vetro-bordo); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.a-proj-hero .a-proj__title { font-size: var(--t-hero); }
.a-facts--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); margin: 0 0 var(--space-xl); }
.a-facts--cards > div { padding: 18px 20px; border-radius: var(--radius-panel); background: var(--c-carta); border: 1px solid var(--c-filo); box-shadow: var(--shadow-2); display: grid; gap: 6px; }
.a-facts--cards dt { font-size: var(--t-sm); color: var(--c-polvere); text-transform: none; letter-spacing: 0; font-weight: 500; }
.a-facts--cards dd { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; }
.is-arriving.a-facts--cards > div { animation: a-emerge 600ms var(--ease-out) backwards; animation-delay: calc(400ms + var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .is-arriving.a-facts--cards > div { animation: none; } }
@media (max-width: 640px) { .a-proj-hero .a-proj__cover-btn span { display: none; } }

/* == Elenco progetti: il piu' recente e' una scena con il titolo sopra ====== */
@media (min-width: 900px) {
  .a-gallery--lead > .a-pcard:first-child { position: relative; grid-template-rows: 1fr; }
  .a-gallery--lead > .a-pcard:first-child .a-card__media { position: absolute; inset: 0; height: 100%; border-radius: var(--radius-panel); }
  .a-gallery--lead > .a-pcard:first-child .a-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,0) 45%, rgba(20,18,15,0.72) 100%); }
  .a-gallery--lead > .a-pcard:first-child .a-card__body { position: relative; z-index: 2; align-self: end; padding: 28px; color: #FFFFFF; }
  .a-gallery--lead > .a-pcard:first-child .a-pcard__title { font-size: clamp(2rem, 3.4vw, 3rem); color: #FFFFFF; letter-spacing: -0.04em; }
  .a-gallery--lead > .a-pcard:first-child .a-meta { color: rgba(255,255,255,0.86); }
  .a-gallery--lead > .a-pcard:first-child .a-tag { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.3); }
  .a-gallery--lead > .a-pcard:first-child .a-confirm { background: rgba(255,254,252,0.95); color: var(--c-inchiostro); }
}
.a-pcard .a-card__media img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .a-pcard:hover .a-card__media img { transform: scale(1.04); } }
.a-pg-head .a-h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.045em; }

/* == Galleria render e Prestige: chiare come il resto ======================= */
.a-rg { background: var(--c-pietra); color: var(--c-inchiostro); }
.a-rg .a-card__media, .a-rg .a-pcard__blank { background: color-mix(in oklch, var(--c-inchiostro) 6%, var(--c-carta)); color: var(--c-polvere); }
.a-rg .a-seg__item[aria-current] { background: var(--c-inchiostro); color: #fff; }
.a-rg__open { background: var(--c-carta); box-shadow: var(--shadow-2); }
.a-pw__card { background: var(--c-carta); }
/* scheda oggetto: la scena chiara */
.a-asset .av-viewer-panel { background: #F5F3EF; }
.a-asset #av-load-hud { background: var(--c-vetro); border: 1px solid var(--c-vetro-bordo); backdrop-filter: blur(14px); }
.a-asset #av-load-label { color: var(--c-grafite); }
.a-asset #av-load-bar-bg { background: var(--c-filo); }
.a-asset #av-load-bar-fill { background: var(--c-inchiostro); }
.a-shell .rs-model-badge-pill { display: none; }
.a-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-filo-forte); background: var(--c-carta); color: var(--c-grafite); font: 600 var(--t-md)/1 var(--font-text); text-decoration: none; }
.a-chip .a-num { color: var(--c-polvere); font-weight: 500; }
.a-chip.is-on { background: var(--c-inchiostro); border-color: var(--c-inchiostro); color: #fff; }
.a-chip.is-on .a-num { color: rgba(255,255,255,0.7); }

/* ── Accesso: render a tutto schermo che sfuma nella pietra, modulo bianco ── */
.a-login--scene { position: relative; isolation: isolate; max-width: none; margin: 0; padding: var(--space-2xl) clamp(16px, 5vw, 72px); min-height: calc(100dvh - 56px); grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); }
.a-login__media { position: absolute; inset: 0 auto 0 0; width: 72%; margin: 0; z-index: -1; overflow: hidden; }
.a-login__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.a-login__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,243,239,.82) 0%, rgba(245,243,239,.35) 38%, rgba(245,243,239,.55) 70%, var(--c-pietra) 100%), linear-gradient(0deg, var(--c-pietra) 0%, rgba(245,243,239,0) 30%); }
.a-login--scene .a-login__intro { max-width: 620px; }
.a-login--scene .a-login__form { background: #fff; border: 1px solid var(--c-filo); border-radius: var(--radius-panel); box-shadow: 0 24px 60px rgba(40,30,15,.12); }
.a-login--scene .a-btn--primary { background: var(--c-inchiostro); border-color: var(--c-inchiostro); color: #fff; }
@media (max-width: 900px) {
  .a-login--scene { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-xl); }
  .a-login__media { width: 100%; height: 340px; inset: 0 0 auto 0; }
  .a-login__media::after { background: linear-gradient(180deg, rgba(245,243,239,.55) 0%, rgba(245,243,239,.2) 40%, var(--c-pietra) 100%); }
}

/* ── Testata: fondo pietra che compare appena si scorre, così i contenuti non passano tra le pillole ── */
.a-header::before { content: ""; position: absolute; inset: 0 0 -18px 0; background: linear-gradient(180deg, var(--c-pietra) 62%, rgba(245,243,239,0)); opacity: 0; transition: opacity .2s ease; pointer-events: none; z-index: -1; }
.a-header.is-scrolled::before { opacity: 1; }
.a-header { isolation: isolate; }

/* ── Restyle AI (vista condivisa con la Classica): stessa lingua delle altre pagine ── */
.a-shell .rs-topbar { position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; padding: var(--space-xl) var(--gutter) 0; max-width: var(--content); margin: 0 auto; gap: var(--space-md); }
.a-shell .rs-topbar-back { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--c-filo); background: #fff; color: var(--c-grafite); box-shadow: var(--shadow-1, 0 1px 2px rgba(40,30,15,.06)); }
.a-shell .rs-topbar-back:hover { color: var(--c-inchiostro); border-color: var(--c-filo-forte); }
.a-shell .rs-topbar-title { font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.a-shell .rs-body { max-width: var(--content); padding-inline: var(--gutter); }
.a-shell .rs-upload-card { background: #fff; border: 1px solid var(--c-filo); border-radius: var(--radius-panel); box-shadow: 0 10px 30px rgba(40,30,15,.06); padding: clamp(24px, 4vw, 48px); }
.a-shell :is(.rs-upload-title) { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.a-shell :is(.rs-upload-sub, .rs-section-sub) { font-family: var(--font-text); font-style: normal; color: var(--c-polvere); }
.a-shell .rs-section-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.a-shell .rs-model-row { max-width: 820px; }
.a-shell .rs-model-opt { background: #fff; border: 1px solid var(--c-filo-forte); border-radius: var(--radius-ctrl); }
.a-shell .rs-model-opt:hover { border-color: var(--c-inchiostro); }
.a-shell .rs-model-opt.selected { background: #fff; border-color: var(--c-inchiostro); box-shadow: 0 0 0 1px var(--c-inchiostro); }
.a-shell .rs-model-opt.selected .rs-model-dot { background: var(--c-inchiostro); border-color: var(--c-inchiostro); }
.a-shell .rs-drop { max-width: 820px; border: 1.5px dashed var(--c-filo-forte); background: var(--c-pietra); border-radius: var(--radius-panel); }
.a-shell :is(.rs-drop:hover, .rs-drop.drag-over) { border-color: var(--c-inchiostro); background: #fff; }
.a-shell .rs-drop-icon { background: #fff; border: 1px solid var(--c-filo); color: var(--c-inchiostro); }
.a-shell :is(.rs-btn, .rs-gen-btn, .rs-compare-btn.primary) { background: var(--c-inchiostro); color: #fff; border-radius: var(--radius-ctrl); }
/* il nome del modello AI è gergo: nella Nuova non si mostra sulle miniature */
.a-shell .rs-gallery-badge { display: none; }
.a-shell .rs-step.active { background: #fff; color: var(--c-inchiostro); box-shadow: 0 0 0 1px var(--c-filo-forte); }
@media (max-width: 640px) { .a-shell .rs-model-row { flex-direction: column; } }

/* ── Catalogo: ricerca larga in testa, poi tipo e filtri; su telefono i filtri secondari stanno dietro "Filtri" ── */
.a-filters--cat { display: grid; gap: var(--space-sm); margin: 0 0 var(--space-xl); }
.a-filters--cat .a-filters__row { display: flex; gap: var(--space-sm); }
.a-filters--cat .a-filters__search { flex: 1; width: auto; max-width: none; margin: 0; height: 48px; border-radius: 14px; background: #fff; padding-left: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B655B' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>"); background-repeat: no-repeat; background-position: 16px center; }
.a-filters--cat .a-filters__toggle { display: none; height: 48px; border-radius: 14px; gap: 8px; }
.a-filters__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-inchiostro); color: #fff; font-size: 12px; }
.a-filters--cat > .a-seg { justify-self: start; }
.a-filters--cat { grid-template-columns: auto 1fr; }
.a-filters--cat .a-filters__row { grid-column: 1 / -1; }
.a-filters__more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.a-filters--cat .a-select { height: 40px; border-radius: 999px; background-color: #fff; border: 1px solid var(--c-filo-forte); padding-left: 16px; font-weight: 500; min-width: 0; }
.a-filters--cat .a-filters__clear { grid-column: 1 / -1; justify-self: start; color: var(--c-inchiostro); }
@media (max-width: 760px) {
  .a-filters--cat { grid-template-columns: minmax(0, 1fr); }
  .a-filters--cat .a-filters__toggle { display: inline-flex; }
  .a-filters--cat > .a-seg { justify-self: stretch; overflow-x: auto; }
  .a-filters--cat.has-js .a-filters__more { display: none; }
  .a-filters--cat.has-js.is-open .a-filters__more { display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--space-md); background: #fff; border: 1px solid var(--c-filo); border-radius: var(--radius-panel); box-shadow: 0 10px 30px rgba(40,30,15,.08); }
  .a-filters--cat .a-filters__more .a-select { width: 100%; height: 44px; }
  .a-filters--cat .a-filters__more .a-chip { justify-self: start; }
}

/* ── Progetto: velo più alto, così il titolo non si mescola con scritte o marchi presenti nella foto ── */
.a-proj-hero::after { background: linear-gradient(180deg, rgba(245,243,239,.6) 0%, rgba(245,243,239,0) 12%, rgba(245,243,239,.5) 26%, rgba(245,243,239,.93) 40%, var(--c-pietra) 70%); }
.a-proj__desc.is-dup { font-size: var(--t-md); color: var(--c-polvere); }
/* testata: i pulsanti primari (es. "Registrati" da ospite) sono neri come nel resto della Nuova */
.a-header { --accent: var(--c-inchiostro); --accent-hover: #2E2C27; --on-accent: #fff; }

/* ── Restyle, secondo passaggio: niente corsivo classico da nessuna parte, galleria aperta come Render ── */
.a-shell :is(.rs-upload-sub, .rs-selection-sub, .rs-result-style, .rs-section-sub, .rs-cta-sub, .rs-gallery-sub, .rs-gallery-style, .rs-gallery-empty),
.a-shell .rs-body [style*="Playfair"] { font-family: var(--font-text) !important; font-style: normal !important; }
.a-shell :is(.rs-gallery-style, .rs-result-style) { color: var(--c-grafite); font-weight: 500; }
.a-shell .rs-gallery-section { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.a-shell .rs-gallery-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 600; letter-spacing: -0.03em; }
.a-shell .rs-gallery-card { background: #fff; border: 1px solid var(--c-filo); border-radius: var(--radius-panel); box-shadow: 0 10px 30px rgba(40,30,15,.06); }
.a-shell .rs-gallery-card:hover { border-color: var(--c-filo-forte); box-shadow: 0 16px 40px rgba(40,30,15,.10); }
.a-shell .rs-gallery-info { background: #fff; padding: 14px 16px; }
.a-shell .rs-cta-card { background: var(--c-inchiostro); border-radius: var(--radius-panel); }
.a-shell .rs-btn:disabled { opacity: 1; background: rgba(27,26,23,.28); color: #fff; }
.a-shell .rs-topbar-back { font-size: 0; width: 40px; justify-content: center; padding: 0; }
.a-shell .rs-topbar-back i, .a-shell .rs-topbar-back::before { font-size: 16px; }
/* la copertina sfuma davvero: l'immagine stessa diventa trasparente in basso, così non resta nessuna riga */
.a-home-hero__img { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 97%); mask-image: linear-gradient(180deg, #000 50%, transparent 97%); }
.a-proj-hero__media { background: transparent; }


/* ── Dettagli ── */
/* menu "…" delle schede: icona in vetro, non un carattere di testo */
.a-card .a-btn--icon[aria-haspopup="menu"] { background: rgba(255,255,255,.82) !important; border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 10px rgba(40,30,15,.10); color: var(--c-inchiostro); }
/* anteprima mancante: segnaposto con icona invece di un riquadro vuoto o nero */
.a-card__media:not(:has(img)), .a-shell .rs-gallery-thumb:not(:has(img)) { background: linear-gradient(160deg, #EFEBE3, #F7F5F1) !important; }
.a-card__media:not(:has(img))::after { content: ""; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; opacity: .35; background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1A17' stroke-width='1.4'><path d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/><path d='M12 12l8-4.5M12 12v9M12 12L4 7.5'/></svg>"); }
.a-card__media:has(.a-pcard__blank):not(:has(img))::after { content: none; }
/* Luce non copre le schede in fondo alla pagina */
@media (max-width: 640px) { .a-shell main { padding-bottom: 96px; } }
/* accesso: il logo grande accanto al titolo basta, quello piccolo in testata si toglie */
.a-shell:has(.a-login--scene) .a-header__logo { visibility: hidden; }
/* catalogo su telefono: due colonne e "Nuovo asset" compatto */
@media (max-width: 640px) {
  .a-cat.a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .a-cat .a-card__body { padding: 10px 12px 12px; }
  .a-cat .a-card__title { font-size: var(--t-sm); }
  .a-cat .a-meta { font-size: 12px; }
  }
.a-shell .rs-gallery-thumb { background: #EFEBE3; }
.a-edit.is-empty { font-style: normal; }
.a-proj-hero .a-home-hero__img { object-position: center 80%; }

/* Restyle: il pulsante disattivato dice cosa manca */
.a-shell .rs-need-photo { margin: 10px 0 0; font-size: var(--t-sm); color: var(--c-polvere); text-align: center; }
.a-shell #rs-submit-btn:not(:disabled) + .rs-need-photo { display: none; }
/* Catalogo: ogni miniatura nello stesso riquadro pietra, oggetto contenuto con margine */
.a-cat .a-card__media.is-object { background: var(--c-pietra); }
.a-cat .a-card__media.is-object img { object-fit: contain; padding: 8%; box-sizing: border-box; border-radius: 14px; }
/* Home: quattro oggetti in griglia 2×2, numeri ancorati in basso */
.a-bento__objs { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.a-bento__objs img { max-height: none; min-height: 0; padding: 6px; box-sizing: border-box; }
.a-bento > div:has(.a-bento__stats) { justify-content: space-between; }

/* ── Ottone sulle azioni AI (scelta 2B): un solo accento, solo dove si avvia l'AI ── */
.a-bento > div:has(.a-bento__label--ai) { background: linear-gradient(160deg, #FBF6EA, #F3EAD3); border-color: rgba(138,106,30,.28); }
.a-place--ai::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--c-ottone-ai); vertical-align: middle; }
.a-place--ai.is-current::before { background: #E2C47E; }
@media (max-width: 640px) { .a-pg-head__tools .a-btn--ai { width: 100%; justify-content: center; } .a-pg-head--hero .a-pg-head__tools .a-btn--ai { width: auto; } }
/* Restyle: "Analizza stanza" e "Genera" avviano l'AI */
.a-shell :is(.rs-btn, .rs-gen-btn):not(:disabled):not([href]) { background: var(--c-ottone-ai); color: var(--c-inchiostro); }
.a-shell .rs-btn:disabled { background: rgba(201,162,74,.38); color: var(--c-inchiostro); }

/* ── Pagine indice (scelta 1B): ogni sezione apre con la cosa che la rappresenta ── */
.a-pg-hero { position: relative; margin-top: -56px; height: min(58vh, 540px); min-height: 380px; overflow: hidden; }
.a-pg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; -webkit-mask-image: linear-gradient(180deg, #000 48%, transparent 98%); mask-image: linear-gradient(180deg, #000 48%, transparent 98%); }
.a-pg-hero--scene::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; background: linear-gradient(180deg, rgba(245,243,239,.55), rgba(245,243,239,0)); pointer-events: none; }
.a-pg-hero--stage { background: radial-gradient(ellipse 55% 70% at 72% 52%, #FFFFFF 0%, #EFEBE3 72%, var(--c-pietra) 100%); }
.a-pg-hero--stage .a-pg-hero__img { inset: 76px 12% auto auto; width: auto; height: 58%; max-width: 44%; object-fit: contain; mix-blend-mode: multiply; -webkit-mask-image: none; mask-image: none; }
.a-pg-hero--stage::before { content: ""; position: absolute; right: calc(12% + 2%); top: calc(76px + 58% - 10px); width: 34%; max-width: 360px; height: 28px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40,30,15,.16), transparent); }
.a-pg-hero--stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, rgba(245,243,239,0), var(--c-pietra)); pointer-events: none; }
.a-pg-hero__cap { position: absolute; z-index: 2; right: var(--gutter); top: 44%; display: inline-flex; align-items: center; gap: 12px; max-width: min(420px, calc(100% - 2 * var(--gutter))); padding: 9px 16px; border-radius: 12px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(40,30,15,.12); color: var(--c-inchiostro); font-size: var(--t-sm); font-weight: 500; text-decoration: none; }
.a-pg-hero__cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-pg-hero__cap.is-play { padding: 8px 18px 8px 8px; border-radius: 999px; font-size: var(--t-md); font-weight: 600; }
.a-pg-hero__cap.is-play b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-inchiostro); color: #fff; font-size: 14px; }
.a-pg-hero--stage .a-pg-hero__cap { top: auto; bottom: 22%; }
@media (hover: hover) and (pointer: fine) { a.a-pg-hero__cap { transition: transform 160ms var(--ease-out), box-shadow 160ms ease; } a.a-pg-hero__cap:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(40,30,15,.16); } }
a.a-pg-hero__cap:active { transform: scale(.98); }
.a-pg-head--hero { position: relative; z-index: 2; margin-top: -150px; }
.a-pg-head--hero ~ .a-filters, .a-pg-head--hero ~ * { position: relative; z-index: 2; }
.is-arriving .a-pg-hero__img, .a-pg-hero__img { animation: a-hero-in 1200ms var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .a-pg-hero__img { animation: none; } }
@media (max-width: 760px) {
  .a-pg-hero { height: 340px; min-height: 0; }
  .a-pg-hero__cap { top: auto; bottom: 150px; right: var(--gutter); }
  .a-pg-hero--stage .a-pg-hero__img { inset: 70px 50% auto auto; transform: translateX(50%); height: 44%; max-width: 70%; }
  .a-pg-hero--stage::before { display: none; }
  .a-pg-hero--stage .a-pg-hero__cap { bottom: 120px; }
  .a-pg-head--hero { margin-top: -110px; }
}
.a-pg-hero--stage .a-pg-hero__img { animation: none; }

/* ── Documenti del progetto (vista condivisa con la Classica): colori e caratteri della Nuova ── */
.a-shell .docs-wrap {
  --gold: var(--c-inchiostro); --gold-light: var(--c-inchiostro); --gold-soft: rgba(27,26,23,.06); --gold-pale: var(--c-filo);
  --bg: var(--c-pietra); --card: #fff; --text-primary: var(--c-inchiostro); --text-secondary: var(--c-grafite); --text-muted: var(--c-polvere);
  --border: var(--c-filo); --shadow: 0 10px 30px rgba(40,30,15,.06); --radius-card: var(--radius-panel);
  background: var(--c-pietra); font-family: var(--font-text);
}
.a-shell .docs-container { max-width: var(--content); padding-inline: var(--gutter); }
.a-shell .docs-wrap :is(h1, h2, h3, .dsec-title, .docs-hero-title, .prop-form-title, .prop-card-title) { font-family: var(--font-display); letter-spacing: -0.02em; }
.a-shell .docs-wrap .dsec-title { font-weight: 600; }
.a-shell .docs-wrap :is(.ai-concept-text, .ai-summary-text, .ai-recap-text) { font-family: var(--font-text) !important; font-style: normal !important; }
.a-shell .docs-wrap [style*="Playfair"] { font-family: var(--font-text) !important; font-style: normal !important; }
.a-shell .docs-wrap .ai-concept-box::before { color: rgba(27,26,23,.10); }
/* briciole come nelle altre pagine */
.a-shell .docs-breadcrumb { padding-top: var(--space-xl); font-size: var(--t-sm); letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--c-polvere); }
.a-shell .docs-breadcrumb a { color: var(--c-grafite); }
.a-shell .docs-breadcrumb .crumb-current { color: var(--c-inchiostro); font-weight: 600; }
/* copertina: niente sfumatura oro, solo un velo scuro neutro per il testo */
.a-shell .docs-hero { height: 280px; border-radius: var(--radius-panel); box-shadow: 0 16px 40px rgba(40,30,15,.12); }
.a-shell .docs-hero-gradient { background: linear-gradient(135deg, #2A2823, #4A453D 60%, #6B655B); }
.a-shell .docs-hero-overlay { background: linear-gradient(to top, rgba(20,18,15,.72) 0%, rgba(20,18,15,.18) 60%, transparent 100%); }
.a-shell .docs-hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.035em; }
.a-shell .docs-hero-icon { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
/* schede in alto: pillola nera come la navigazione */
.a-shell .docs-tabs { gap: 4px; border-bottom: 0; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 14px; background: #fff; border: 1px solid var(--c-filo); }
.a-shell .docs-tab { padding: 10px 16px; border-radius: 10px; color: var(--c-grafite); }
.a-shell .docs-tab.active { background: var(--c-inchiostro); color: #fff; }
.a-shell .docs-tab.active::after { display: none; }
.a-shell .docs-tab.active .docs-tab-count, .a-shell .subtab.active .subtab-count { background: rgba(255,255,255,.2); color: #fff; }
.a-shell .subtab.active { color: var(--c-inchiostro); }
/* schede e campi */
.a-shell .dsec { border: 1px solid var(--c-filo); box-shadow: 0 10px 30px rgba(40,30,15,.06); }
.a-shell .dsec-overline { color: var(--c-polvere); letter-spacing: .06em; }
.a-shell .docs-wrap :is(.client-input, .client-textarea, .prop-input, .prop-select, .prop-textarea, .url-add-input, .ai-website-input) { background: #fff; border: 1px solid var(--c-filo-forte); border-radius: var(--radius-ctrl); color: var(--c-inchiostro); }
.a-shell .docs-wrap :is(.client-input, .client-textarea, .prop-input, .prop-select, .prop-textarea, .url-add-input, .ai-website-input):focus { border-color: var(--c-inchiostro); box-shadow: 0 0 0 3px rgba(27,26,23,.08); outline: none; }
/* pulsanti: neri; l'ottone resta solo sull'analisi AI */
.a-shell .docs-wrap :is(.btn-save-client, .btn-cmp-add, .btn-url-add, .btn-new-prop, .btn-prop-save) { background: var(--c-inchiostro) !important; color: #fff !important; box-shadow: none !important; border: 0 !important; }
.a-shell .docs-wrap .btn-ai-analyze, .a-shell .docs-wrap .btn-analyze-doc { background: var(--c-ottone-ai) !important; color: var(--c-inchiostro) !important; border: 0 !important; box-shadow: 0 6px 18px rgba(160,120,40,.22) !important; }
.a-shell .docs-wrap :is(.gallery-add, .fp-add, .cmp-drop, .doc-upload-zone) { border-color: var(--c-filo-forte); background: var(--c-pietra); }
.a-shell .docs-wrap :is(.gallery-add, .fp-add, .cmp-drop, .doc-upload-zone):hover { border-color: var(--c-inchiostro); background: #fff; }
.a-shell .docs-wrap :is(.chip-kw, .chip-cat, .chip-material) { background: #fff; border: 1px solid var(--c-filo); color: var(--c-grafite); }
.a-shell .docs-wrap :is(.ai-summary-box, .ai-concept-box) { background: #fff; border: 1px solid var(--c-filo); }
.a-shell .docs-wrap :is(.spinner, .ai-sec-spinner) { border-color: rgba(27,26,23,.15); border-top-color: var(--c-inchiostro); }
.a-shell .docs-wrap .fp-dxf-btn { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; }

/* ── Documenti, secondo passaggio: copertina a tutta larghezza che sfuma nella pagina, come il progetto ── */
.a-shell .docs-wrap { overflow-x: clip; }
.a-shell .docs-breadcrumb { display: none; }
.a-shell .docs-hero { width: 100vw; margin: -56px calc(50% - 50vw) var(--space-lg); height: min(56vh, 480px); min-height: 360px; border-radius: 0; box-shadow: none; background: #ECE7DE; }
.a-shell .docs-hero-bg { -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 98%); mask-image: linear-gradient(180deg, #000 45%, transparent 98%); }
.a-shell .docs-hero-gradient { background: radial-gradient(ellipse 70% 90% at 70% 20%, #FFFFFF 0%, #EDE8DF 55%, var(--c-pietra) 100%); }
.a-shell .docs-hero-overlay { background: linear-gradient(180deg, rgba(245,243,239,.55) 0%, rgba(245,243,239,0) 18%, rgba(245,243,239,.2) 40%, rgba(245,243,239,.9) 78%, var(--c-pietra) 100%); }
.a-shell .docs-hero-content { left: 0; right: 0; bottom: var(--space-lg); max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); align-items: flex-end; }
.a-shell .docs-hero-icon { display: none; }
.a-shell .docs-hero-info { display: grid; gap: 10px; justify-items: start; }
.a-shell .docs-hero-back { order: -1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--c-vetro, rgba(255,255,255,.72)); border: 1px solid var(--c-vetro-bordo, rgba(255,255,255,.9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--c-inchiostro) !important; font: 500 var(--t-sm)/1 var(--font-text); text-decoration: none; text-transform: none; letter-spacing: 0; }
.a-shell .docs-hero-title { margin: 0; color: var(--c-inchiostro) !important; font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1; font-weight: 600; letter-spacing: -0.045em; text-shadow: none; }
.a-shell .docs-hero-sub { margin: 0; color: var(--c-grafite) !important; font: 500 var(--t-md)/1.4 var(--font-text); text-transform: none; letter-spacing: 0; }
.a-shell .docs-hero-edit { inset: auto; top: 84px; right: max(var(--gutter), calc(50vw - var(--content) / 2 + var(--gutter))); bottom: auto; left: auto; opacity: 1; background: none; }
.a-shell .docs-hero-edit-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--c-vetro, rgba(255,255,255,.72)); border: 1px solid var(--c-vetro-bordo, rgba(255,255,255,.9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--c-inchiostro); box-shadow: 0 6px 20px rgba(40,30,15,.10); font: 600 var(--t-sm)/1 var(--font-text); }
.a-shell .docs-tabs { position: relative; z-index: 2; margin-bottom: var(--space-xl); }
@media (max-width: 760px) {
  .a-shell .docs-hero { height: 340px; min-height: 0; }
  .a-shell .docs-hero-edit { top: 72px; right: var(--gutter); }
  .a-shell .docs-hero-edit-btn { font-size: 0; gap: 0; width: 44px; padding: 0; justify-content: center; }
  .a-shell .docs-hero-edit-btn i { font-size: 16px; }
}
.a-shell .docs-hero:hover .docs-hero-edit { background: none; } .a-shell .docs-hero-content { padding-block: 0; }
/* la pagina Documenti occupa tutta la larghezza (il contenitore del layout ha già un margine) */
.a-shell .docs-wrap { overflow-x: visible; margin-inline: calc(50% - 50vw); width: 100vw; }
.a-shell main:has(.docs-wrap) { overflow-x: clip; }
.a-shell .docs-tabs { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .a-shell .docs-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .a-shell .docs-tabs::-webkit-scrollbar { display: none; }
  .a-shell .docs-tab { flex: none; padding: 10px 14px; }
}
/* Documenti: copertina identica a quella della pagina progetto (stessa altezza, velo, posizione del titolo, pulsante) */
.a-shell .docs-hero { height: min(78vh, 720px); min-height: 520px; margin-bottom: var(--space-md); }
.a-shell .docs-hero-bg { object-position: center 80%; -webkit-mask-image: none; mask-image: none; }
.a-shell .docs-hero-overlay { background: linear-gradient(180deg, rgba(245,243,239,.6) 0%, rgba(245,243,239,0) 12%, rgba(245,243,239,.5) 26%, rgba(245,243,239,.93) 40%, var(--c-pietra) 70%); }
.a-shell .docs-hero-content { bottom: var(--space-2xl); }
.a-shell .docs-hero-info { gap: var(--space-md); }
.a-shell .docs-hero-title { font-size: var(--t-hero); line-height: .95; }
.a-shell .docs-hero-edit { right: var(--gutter); }
@media (max-width: 640px) { .a-shell .docs-hero { height: 78vh; min-height: 480px; } }
.a-shell .docs-hero { border: 0; outline: 0; background: linear-gradient(160deg, #EDE8DF, #F5F3EF 60%); }
.a-shell main:has(.docs-wrap) { padding-top: 0; }

/* ── Nuovo progetto ── */
.a-new { display: grid; gap: var(--space-xl); padding-bottom: 120px; }
.a-new [hidden] { display: none !important; }
.a-new__head .a-lead { max-width: 60ch; margin: 0; color: var(--c-grafite); }
.a-new__ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-sm); }
.a-new__way { display: grid; gap: 6px; justify-items: start; padding: 22px; text-align: left; border-radius: var(--radius-panel); border: 1px solid var(--c-filo); background: #fff; box-shadow: 0 10px 30px rgba(40,30,15,.05); color: var(--c-inchiostro); cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s var(--ease-out); }
.a-new__way:hover { border-color: var(--c-filo-forte); }
.a-new__way:active { transform: scale(.99); }
.a-new__way b { font: 600 18px/1.2 var(--font-display); letter-spacing: -0.01em; }
.a-new__way > span:last-child { color: var(--c-polvere); font-size: var(--t-sm); line-height: 1.45; }
.a-new__way-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--c-pietra); color: var(--c-inchiostro); }
.a-new__way.is-ai .a-new__way-ic { background: rgba(201,162,74,.16); color: #7A5A12; }
.a-new__way[aria-checked="true"] { border-color: var(--c-inchiostro); box-shadow: 0 0 0 1px var(--c-inchiostro), 0 14px 34px rgba(40,30,15,.10); }
.a-new__way.is-ai[aria-checked="true"] { border-color: #B8913C; box-shadow: 0 0 0 1px #B8913C, 0 14px 34px rgba(160,120,40,.16); }
.a-new__err { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FBEDEA; color: #8A2C1E; font-weight: 500; }
.a-new__form { display: grid; gap: var(--space-lg); }
.a-new__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.a-new__card { display: grid; gap: var(--space-md); padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius-panel); border: 1px solid var(--c-filo); background: #fff; box-shadow: 0 10px 30px rgba(40,30,15,.05); min-width: 0; }
.a-new__card .a-h3 { margin: 0; }
.a-new__card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.a-new__name { height: 54px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.a-new .a-input { background: #fff; border-color: var(--c-filo-forte); }
.a-new textarea.a-input { min-height: 104px; resize: vertical; }
.a-new__seg { display: flex; width: 100%; }
.a-new__seg .a-seg__item { flex: 1; position: relative; justify-content: center; cursor: pointer; }
.a-new__seg input { position: absolute; opacity: 0; pointer-events: none; }
.a-new__seg .a-seg__item:has(input:checked) { background: var(--c-inchiostro); color: #fff; }
.a-new__seg .a-seg__item:has(input:focus-visible) { outline: 2px solid var(--c-ai, #7A5A12); outline-offset: 2px; }
.a-new__tabs .a-seg__item[aria-selected="true"] { background: var(--c-inchiostro); color: #fff; }
.a-new__search { height: 42px; }
.a-new__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 340px; overflow-y: auto; padding: 2px; }
.a-new__tiles.is-small { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: 300px; }
.a-new__tile { position: relative; display: grid; gap: 6px; padding: 6px; border-radius: 14px; border: 1px solid var(--c-filo); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.a-new__tile input { position: absolute; opacity: 0; pointer-events: none; }
.a-new__tile:hover { border-color: var(--c-filo-forte); }
.a-new__tile:has(input:checked) { border-color: var(--c-inchiostro); box-shadow: 0 0 0 1px var(--c-inchiostro); }
.a-new__tile:has(input:checked)::after { content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-inchiostro) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><path d='M5 12l5 5 9-10'/></svg>") center / 12px no-repeat; }
.a-new__tile:has(input:focus-visible) { outline: 2px solid var(--c-ai, #7A5A12); outline-offset: 2px; }
.a-new__tile-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--c-pietra); color: var(--c-polvere); font-size: 20px; }
.a-new__tile-img img { width: 100%; height: 100%; object-fit: cover; }
.a-new__tile-img.is-obj img { object-fit: contain; padding: 8%; box-sizing: border-box; mix-blend-mode: multiply; }
.a-new__tile-name { font-size: 12px; font-weight: 500; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.a-new__drop { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 34px 18px; border-radius: var(--radius-panel); border: 1.5px dashed var(--c-filo-forte); background: var(--c-pietra); color: var(--c-grafite); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.a-new__drop:hover, .a-new__drop.is-over { border-color: var(--c-inchiostro); background: #fff; }
.a-new__drop.has-file { border-style: solid; border-color: var(--c-inchiostro); background: #fff; }
.a-new__drop b { color: var(--c-inchiostro); font-weight: 600; overflow-wrap: anywhere; }
.a-new__drop span { font-size: 12px; color: var(--c-polvere); }
.a-new__drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.a-new__drop.is-plan { min-height: 260px; align-content: center; }
.a-new__plan-preview { max-width: 100%; max-height: 220px; border-radius: 12px; object-fit: contain; background: #fff; }
.a-new__more summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
.a-new__more summary::-webkit-details-marker { display: none; }
.a-new__more summary b { font: 600 18px/1.2 var(--font-display); }
.a-new__more summary small { color: var(--c-polvere); font-size: var(--t-sm); }
.a-new__more summary::after { content: "+"; position: absolute; right: 24px; top: 20px; font: 400 24px/1 var(--font-text); color: var(--c-polvere); }
.a-new__more[open] summary::after { content: "–"; }
.a-new__more { position: relative; }
.a-new__count { font-style: normal; font-size: var(--t-sm); color: var(--c-grafite); margin-left: 6px; }
.a-new__people { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow-y: auto; }
.a-new__person { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--c-filo); cursor: pointer; font-size: var(--t-sm); }
.a-new__person input { position: absolute; opacity: 0; pointer-events: none; }
.a-new__person .a-avatar { width: 28px; height: 28px; font-size: 11px; }
.a-new__person:has(input:checked) { background: var(--c-inchiostro); border-color: var(--c-inchiostro); color: #fff; }
.a-new__person:has(input:checked) .a-avatar { background: #fff; color: var(--c-inchiostro); }
.a-new__switch { display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--c-grafite); font-size: var(--t-sm); }
.a-new__switch input { position: absolute; opacity: 0; }
.a-new__switch-ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--c-filo-forte); transition: background .16s ease; }
.a-new__switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .16s var(--ease-out); }
.a-new__switch input:checked + .a-new__switch-ui { background: var(--c-inchiostro); }
.a-new__switch input:checked + .a-new__switch-ui::after { transform: translateX(18px); }
.a-new__switch input:focus-visible + .a-new__switch-ui { outline: 2px solid var(--c-ai, #7A5A12); outline-offset: 2px; }
.a-new__bar { position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(40,30,15,.12); }
.a-new__working { display: grid; gap: 4px; justify-items: center; padding: 20px; text-align: center; color: var(--c-grafite); }
.a-new__spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(201,162,74,.25); border-top-color: #B8913C; animation: a-new-spin .8s linear infinite; }
@keyframes a-new-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .a-new__spin { animation-duration: 2.4s; } .a-new__way, .a-new__switch-ui::after { transition: none; } }
@media (max-width: 760px) {
  .a-new__ways, .a-new__grid { grid-template-columns: minmax(0, 1fr); }
  .a-new__bar { bottom: 8px; }
  .a-new__bar .a-btn--lg { flex: 1; justify-content: center; }
}
/* spazi e arredi senza copertina: icona al posto del riquadro vuoto */
.a-new__tile-img:empty::before { content: ""; width: 34%; height: 34%; opacity: .35; background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1A17' stroke-width='1.4'><path d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/><path d='M12 12l8-4.5M12 12v9M12 12L4 7.5'/></svg>"); }
.a-new__tile.is-none .a-new__tile-img::before { content: none; }
/* la barra in fondo lascia libero l'angolo di Luce */
.a-new__bar { justify-content: flex-start; flex-direction: row-reverse; width: fit-content; max-width: calc(100% - 200px); }
@media (max-width: 760px) { .a-new__bar { width: auto; max-width: calc(100% - 64px); } }

/* ══ Pagine non ancora ridisegnate, dentro la Nuova: stessi colori e componenti ══
   (body.a-shell senza .a-body = vista della Classica servita nella cornice nuova) */
body.a-shell:not(.a-body) {
  --gold: var(--c-inchiostro); --gold-light: var(--c-inchiostro); --gold-gradient: var(--c-inchiostro);
  --gold-pale: var(--c-filo-forte); --gold-soft: rgba(27,26,23,.06); --gold-subtle: rgba(27,26,23,.06);
  --bg: var(--c-pietra); --surface: #fff; --elevated: #fff; --card: #fff; --surface-elevated: #fff; --surface-recessed: var(--c-pietra);
  --border: var(--c-filo); --text-primary: var(--c-inchiostro); --text-secondary: var(--c-grafite); --text-muted: var(--c-polvere); --text-on-gold: #fff;
  --shadow: 0 10px 30px rgba(40,30,15,.06); --shadow-ambient: 0 10px 30px rgba(40,30,15,.06); --shadow-elevated: 0 16px 40px rgba(40,30,15,.10); --shadow-hover: 0 16px 40px rgba(40,30,15,.10);
  --radius: var(--radius-panel); --radius-card: var(--radius-panel);
}
/* azioni normali: nere */
body.a-shell:not(.a-body) :is(.btn-gold, .btn-gold-sm, .btn-assoc, .btn-dc-add, .btn-dc-continue, .btn-dc-save, .dc-btn-modal-save, .dc-btn-next, .np-btn-primary, .pe-btn-add, .pe-btn-save, .re-btn-gold, .prv-settingsbtn) {
  background: var(--c-inchiostro) !important; color: #fff !important; border-color: transparent !important; box-shadow: none !important; }
body.a-shell:not(.a-body) .pe-btn-3d { background: var(--c-inchiostro) !important; color: #fff !important; box-shadow: none !important; }
/* azioni AI: ottone, testo scuro */
body.a-shell:not(.a-body) :is(.av-ai-btn, .fp-btn, .fp-cta-btn, .prg-btn-primary, .prs-btn) {
  background: var(--c-ottone-ai) !important; color: var(--c-inchiostro) !important; border-color: transparent !important; box-shadow: 0 6px 18px rgba(160,120,40,.22) !important; }
/* selezioni, passi e interruttori: inchiostro */
body.a-shell:not(.a-body) :is(.dc-type-card.dc-type-selected, .prg-modebtn.active, .prv-seg button.active, .acc-seg input:checked + span) { background: var(--c-inchiostro) !important; color: #fff !important; border-color: var(--c-inchiostro) !important; box-shadow: none !important; }
body.a-shell:not(.a-body) :is(.dc-type-card.dc-type-selected *, .prg-modebtn.active *) { color: #fff !important; }
body.a-shell:not(.a-body) :is(.dc-step.active, .dc-step.done .dc-step-circle, .dc-obj-check, .pe-check, .dc-toggle-track input:checked + .dc-toggle-thumb, .av-mesh-toggle.form-check-input:checked, .dc-space-card.selected::after) { background: var(--c-inchiostro) !important; border-color: var(--c-inchiostro) !important; }
body.a-shell:not(.a-body) :is(.dc-step.active:not(:last-child)::after, .dc-step.done:not(:last-child)::after) { background: var(--c-inchiostro) !important; }
body.a-shell:not(.a-body) :is(#av-load-bar-fill, .np-progress-bar, .prs-bar-fill, .vl-bar-fill) { background: var(--c-inchiostro) !important; }
body.a-shell:not(.a-body) :is(input[type="range"].dc-range, input[type="range"].pe-range)::-webkit-slider-thumb { background: var(--c-inchiostro) !important; }
/* icone e badge decorativi: pietra e inchiostro */
body.a-shell:not(.a-body) :is(.pe-section-icon, .np-card-icon, .vl-icon, .prv-enter-icon, .npv-logo-mark) { background: var(--c-pietra) !important; color: var(--c-inchiostro) !important; box-shadow: none !important; }
body.a-shell:not(.a-body) :is(.dc-member-avatar, .pe-avatar-owner) { background: var(--c-inchiostro) !important; color: #fff !important; }
body.a-shell:not(.a-body) :is(.dc-role-badge.owner, .pe-member-role.owner-role, .np-badge, .re-count-badge) { background: rgba(27,26,23,.08) !important; color: var(--c-inchiostro) !important; }
body.a-shell:not(.a-body) .brand-hero-gradient { background: linear-gradient(135deg, #2A2823, #4A453D 60%, #6B655B) !important; }
body.a-shell:not(.a-body) .prs-orb { background: radial-gradient(circle, rgba(201,162,74,.5), rgba(201,162,74,0) 70%) !important; }
/* campi: bianchi con filo, come nel resto della Nuova */
body.a-shell:not(.a-body) main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=submit]):not([type=button]), textarea, select):not(.a-input):not(.a-select) {
  background-color: #fff; border: 1px solid var(--c-filo-forte); border-radius: var(--radius-ctrl); color: var(--c-inchiostro); }
body.a-shell:not(.a-body) main :is(input, textarea, select):focus { border-color: var(--c-inchiostro); box-shadow: 0 0 0 3px rgba(27,26,23,.08); outline: none; }
/* corsivi classici: diritti, nel carattere della Nuova */
body.a-shell:not(.a-body) main [style*="Playfair"], body.a-shell:not(.a-body) main :is(em.serif, .serif, [class*="-sub"]) { font-style: normal; }
/* oro scritto direttamente negli attributi style (es. menu admin): inchiostro */
body.a-shell:not(.a-body) [style*="gradient"][style*="#735c00"], body.a-shell:not(.a-body) [style*="gradient"][style*="#d4af37"] { background: var(--c-inchiostro) !important; color: #fff !important; }
body.a-shell:not(.a-body) [style*="color:#735c00"], body.a-shell:not(.a-body) [style*="color: #735c00"] { color: var(--c-inchiostro) !important; }
/* niente corsivi classici: testo diritto nel carattere della Nuova (le icone non contano) */
body.a-shell:not(.a-body) main :where(h1, h2, h3, h4, h5, p, span, div, small, label, a, li, td, th, blockquote) { font-style: normal !important; }
body.a-shell:not(.a-body) main :where(h1, h2, h3) { letter-spacing: -0.02em; }

/* Login: occhiolino per vedere la password */
.a-pass { position: relative; }
.a-pass .a-input { padding-right: 52px; width: 100%; }
.a-pass__eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-2, #5A5446); display: grid; place-items: center; cursor: pointer; }
.a-pass__eye:hover { background: rgba(31,28,23,.06); color: var(--fg, #1F1C17); }
.a-pass__eye .eye-off { display: none; }
.a-pass__eye[aria-pressed="true"] .eye-on { display: none; }
.a-pass__eye[aria-pressed="true"] .eye-off { display: block; }

/* Nuovo progetto: la barra dei comandi e' una barra piena in fondo, non un riquadro che galleggia sui campi */
.a-new__bar { width: 100%; max-width: none; flex-direction: row; justify-content: flex-end; border-radius: 18px; background: color-mix(in srgb, var(--c-pietra, #F5F3EF) 92%, white); border: 1px solid rgba(31,28,23,.10); }
@media (max-width: 760px) { .a-new__bar { width: 100%; max-width: none; } }

/* ══ Nuovo progetto "Crea in un minuto" (.a-cn) ══ */
.a-cn { padding-bottom: 110px; }
.a-cn__steps { list-style: none; display: flex; gap: 6px; margin: 0 0 var(--space-lg); padding: 0; flex-wrap: wrap; }
.a-cn__steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: var(--t-sm); color: var(--c-polvere); border: 1px solid var(--c-filo); background: var(--c-carta); }
.a-cn__steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--c-pietra); color: var(--c-grafite); }
.a-cn__steps li.is-on { color: var(--c-inchiostro); border-color: var(--c-inchiostro); }
.a-cn__steps li.is-on i { background: var(--c-inchiostro); color: #fff; }
.a-cn__steps li.is-done { color: var(--c-grafite); }
.a-cn__steps li.is-done i { background: #C9A24A; color: #fff; }
.a-cn__err { margin: 0 0 var(--space-md); padding: 12px 16px; border-radius: var(--radius-ctrl); background: #FBEDEA; color: #8A2E1F; border: 1px solid #F0CFC8; }
.a-cn__step[hidden] { display: none !important; }
.a-cn__name { max-width: 560px; margin: var(--space-lg) 0 var(--space-xl); display: grid; gap: 6px; }
.a-cn__name .a-input { font-size: 20px; padding: 14px 16px; }
.a-cn__ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.a-cn__way { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: stretch; text-align: left; padding: 0; border-radius: var(--radius-panel); border: 1px solid var(--c-filo); background: var(--c-carta); color: var(--c-inchiostro); cursor: pointer; overflow: hidden; font: inherit; transition: border-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out); }
.a-cn__way:hover { border-color: var(--c-filo-forte); box-shadow: var(--shadow-2); }
.a-cn__way:active { transform: scale(.985); }
.a-cn__way:focus-visible { outline: 2px solid var(--c-inchiostro); outline-offset: 2px; }
.a-cn__vis { display: grid; place-items: center; min-height: 140px; background: var(--c-pietra); color: var(--c-grafite); }
.a-cn__vis.is-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 2px; place-items: stretch; }
.a-cn__vis.is-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-cn__txt { display: grid; align-content: center; gap: 6px; padding: 18px 20px; }
.a-cn__txt b { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.a-cn__txt span { color: var(--c-grafite); font-size: var(--t-sm); line-height: 1.45; }
.a-cn__badge { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: rgba(201,162,74,.16); color: #735C00; border: 1px solid rgba(201,162,74,.35); }
.a-cn__badge.is-inline { position: static; vertical-align: middle; margin-left: 8px; font-size: 12px; }
.a-cn__back { border: 0; background: none; padding: 0; margin: 0 0 var(--space-md); color: var(--c-grafite); font: inherit; font-size: var(--t-sm); cursor: pointer; }
.a-cn__back:hover { color: var(--c-inchiostro); }
.a-cn__tools { display: flex; align-items: center; gap: 14px; margin: var(--space-lg) 0 var(--space-md); }
.a-cn__tools .a-input { max-width: 360px; }
.a-cn__tools small { color: var(--c-polvere); }
.a-cn__gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.a-cn__sp { position: relative; display: grid; gap: 8px; padding: 0 0 12px; text-align: left; border: 1px solid var(--c-filo); border-radius: var(--radius-panel); background: var(--c-carta); color: var(--c-inchiostro); font: inherit; cursor: pointer; overflow: hidden; transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.a-cn__sp[hidden] { display: none; }
.a-cn__sp:hover { box-shadow: var(--shadow-2); }
.a-cn__sp:active { transform: scale(.98); }
.a-cn__sp img, .a-cn__noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--c-pietra); }
.a-cn__noimg { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--c-polvere); }
.a-cn__sp b { padding: 0 14px; font-weight: 500; font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-cn__check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-inchiostro); color: #fff; font-size: 14px; opacity: 0; transform: scale(.9); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.a-cn__sp.is-sel { border-color: var(--c-inchiostro); box-shadow: 0 0 0 1px var(--c-inchiostro); }
.a-cn__sp.is-sel .a-cn__check { opacity: 1; transform: scale(1); }
.a-cn__drop { display: grid; justify-items: center; gap: 6px; max-width: 640px; margin-top: var(--space-lg); padding: 44px 20px; border: 1.5px dashed var(--c-filo-forte); border-radius: var(--radius-panel); background: var(--c-carta); cursor: pointer; text-align: center; color: var(--c-grafite); }
.a-cn__drop:hover { border-color: var(--c-inchiostro); }
.a-cn__drop b { color: var(--c-inchiostro); font-weight: 500; }
.a-cn__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.a-cn__drop img { max-width: 100%; max-height: 260px; border-radius: 10px; }
.a-cn__toggle { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--space-lg); max-width: 560px; padding: 16px; border: 1px solid var(--c-filo); border-radius: var(--radius-panel); background: var(--c-carta); cursor: pointer; }
.a-cn__toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-inchiostro); }
.a-cn__toggle span { display: grid; gap: 4px; }
.a-cn__toggle small { color: var(--c-grafite); }
.a-cn__working { display: flex; gap: 10px; align-items: center; margin-top: var(--space-md); color: var(--c-grafite); }
.a-cn__working[hidden] { display: none; }
.a-cn__spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(201,162,74,.25); border-top-color: #B8913C; animation: a-new-spin .7s linear infinite; }
.a-cn__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px var(--gutter, 24px) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--c-pietra, #F5F1E8) 94%, white); border-top: 1px solid rgba(31,28,23,.10); }
.a-cn__bar > div { max-width: var(--content, 1200px); margin: 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-right: 150px; }
.a-cn__sum { margin-right: auto; color: var(--c-grafite); font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.a-cn__sum b { color: var(--c-inchiostro); }
@media (max-width: 760px) {
  .a-cn__ways { grid-template-columns: minmax(0, 1fr); }
  .a-cn__way { grid-template-columns: 110px minmax(0, 1fr); }
  .a-cn__vis { min-height: 110px; }
  .a-cn__vis svg { width: 70px; height: auto; }
  .a-cn__gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .a-cn__bar > div { padding-right: 64px; flex-wrap: wrap; }
  .a-cn__sum { flex-basis: 100%; }
  .a-cn__bar .a-btn--quiet { display: none; }
  .a-cn__bar .a-btn--lg { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .a-cn__way, .a-cn__sp, .a-cn__check { transition: none; } }
