/* ID Fabbricato — famiglia vettoriale, 08/11/2026.
   Oggetti planari, contorni sottili e fondi pastello coordinati. Nessuna UI simulata.
   Il chiamante attiva .is-art-active soltanto durante la visibilità della pagina.
   Le animazioni si fermano senza azzerarsi: nessun observer o listener in art.js. */
.idf-art {
  --art-paper: var(--surface, #fff);
  --art-line: var(--line, #e5e6e8);
  --art-ink: var(--accent-text, #0066cc);
  --art-soft: var(--accent-soft, #edf5ff);
  --art-muted: #bfc9da;
  --art-peach: #f7ecd4;
  --art-rose: #eee5ee;
  --art-lilac: #dedcf4;
  --art-shadow: rgba(68,63,89,.075);
  position: relative;
  display: block;
  flex: none;
  width: 174px;
  max-width: 100%;
  aspect-ratio: 10 / 7;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.idf-art__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.idf-art__stop--peach { stop-color: var(--art-peach); }
.idf-art__stop--rose { stop-color: var(--art-rose); }
.idf-art__stop--lilac { stop-color: var(--art-lilac); }
.idf-art__paper { fill: var(--art-paper); stroke: var(--art-line); stroke-width: 1.4; stroke-linejoin: round; }
.idf-art__tint { fill: var(--art-soft); }
.idf-art__outline { fill: none; stroke: var(--art-ink); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.idf-art__outline--soft { stroke: var(--art-muted); }
.idf-art__line { fill: none; stroke: var(--art-muted); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.idf-art__line--accent { stroke: var(--art-ink); }
.idf-art__dot { fill: var(--art-ink); }
.idf-art__entrance { animation: idf-art-enter 900ms ease-out both; animation-play-state: paused; }
.idf-art__layer { --art-lift: -6px; --art-phase: 0s; filter: drop-shadow(0 7px 10px var(--art-shadow)); animation: idf-art-float 7s ease-in-out infinite; animation-delay: var(--art-phase); animation-play-state: paused; }
.idf-art__layer--back { --art-lift: -6px; --art-phase: -2s; }
.idf-art__layer--front { --art-lift: -9px; --art-phase: -4s; }
.idf-art__row { animation: idf-art-line-enter 600ms ease both; animation-play-state: paused; }
.idf-art__row--1 { animation-delay: 300ms; }
.idf-art__row--2 { animation-delay: 600ms; }
.idf-art__row--3 { animation-delay: 900ms; }
.idf-art.is-art-active .idf-art__entrance,
.idf-art.is-art-active .idf-art__layer,
.idf-art.is-art-active .idf-art__row { animation-play-state: running; }
@keyframes idf-art-enter { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@keyframes idf-art-line-enter { from { opacity: 0; translate: 10px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes idf-art-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--art-lift); } }

:root[data-theme='dark'] .idf-art {
  --art-peach: #2b2929;
  --art-rose: #292630;
  --art-lilac: #292c40;
  --art-muted: #60738d;
  --art-shadow: rgba(0,0,0,.16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .idf-art {
    --art-peach: #2b2929;
    --art-rose: #292630;
    --art-lilac: #292c40;
    --art-muted: #60738d;
    --art-shadow: rgba(0,0,0,.16);
  }
}
:root[data-reduce-motion='on'] .idf-art__entrance,
:root[data-reduce-motion='on'] .idf-art__layer,
:root[data-reduce-motion='on'] .idf-art__row { animation: none; opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-reduce-motion='off']) .idf-art__entrance,
  :root:not([data-reduce-motion='off']) .idf-art__layer,
  :root:not([data-reduce-motion='off']) .idf-art__row { animation: none; opacity: 1; translate: none; }
}
@media (forced-colors: active) {
  .idf-art { --art-paper: Canvas; --art-line: GrayText; --art-ink: CanvasText; --art-soft: Canvas; --art-muted: GrayText; --art-shadow: transparent; }
  .idf-art__stop { stop-color: Canvas; }
}
