/* =========================================================
   arianti.it — officina digitale
   Tema: industriale scuro · acciaio, pelle, legno
   ========================================================= */

:root {
  --bg: #17171a;
  --bg-deep: #101012;
  --steel-hi: #6b6e74;
  --steel-mid: #3d4046;
  --steel-lo: #26282c;
  --ember: #d97b29;        /* arancio brace / metallo caldo */
  --ember-hot: #f0a04b;
  --leather: #3a2a20;
  --leather-deep: #2a1d15;
  --wood: #4e3320;
  --ink: #d8d5d0;
  --ink-dim: #8d8a84;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, #232327 0%, transparent 55%),
    radial-gradient(ellipse 140% 100% at 50% 115%, var(--bg-deep) 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ---- grana fotografica su tutto (SVG turbolenza) ---- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.scene {
  flex: 1;
  width: min(680px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(48px, 12vh, 130px);
}

/* =========================================================
   TARGA IN ACCIAIO
   ========================================================= */

.plate {
  position: relative;
  width: 100%;
  padding: clamp(36px, 6vw, 56px) clamp(24px, 6vw, 60px);
  text-align: center;
  border-radius: 6px;
  overflow: hidden;
  /* acciaio spazzolato: gradiente + righe sottili orizzontali */
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px,
      transparent 1px, transparent 3px
    ),
    linear-gradient(168deg,
      var(--steel-hi) 0%,
      var(--steel-mid) 28%,
      var(--steel-lo) 62%,
      #1d1f22 100%
    );
  border: 1px solid #55585e;
  border-bottom-color: #141518;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -2px 6px rgba(0,0,0,0.55),
    0 18px 45px rgba(0,0,0,0.65),
    0 4px 12px rgba(0,0,0,0.5);
  animation: plate-drop 0.9s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

@keyframes plate-drop {
  from { opacity: 0; transform: translateY(-26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* rivetti agli angoli */
.rivet {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #9a9da3 0%, #55585e 45%, #1c1d20 100%);
  box-shadow:
    inset 0 -1px 2px rgba(0,0,0,0.7),
    0 1px 2px rgba(0,0,0,0.8);
}
.rivet--tl { top: 12px; left: 12px; }
.rivet--tr { top: 12px; right: 12px; }
.rivet--bl { bottom: 12px; left: 12px; }
.rivet--br { bottom: 12px; right: 12px; }

/* logo inciso nel metallo */
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: 0.14em;
  line-height: 1;
  color: #202226;
  /* effetto inciso: ombra chiara sotto, scura sopra */
  text-shadow:
    0 1px 0 rgba(255,255,255,0.16),
    0 -1px 1px rgba(0,0,0,0.85);
  user-select: none;
}

.logo__tld {
  color: var(--ember);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 14px rgba(217,123,41,0.45),
    0 1px 0 rgba(0,0,0,0.6);
  animation: ember-breathe 4.5s ease-in-out infinite;
}

@keyframes ember-breathe {
  0%, 100% { text-shadow: 0 0 10px rgba(217,123,41,0.30), 0 1px 0 rgba(0,0,0,0.6); }
  50%      { text-shadow: 0 0 22px rgba(240,160,75,0.65), 0 1px 0 rgba(0,0,0,0.6); }
}

.tagline {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #93969c;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.08);
  user-select: none;
}

/* riflesso che spazza la targa */
.sheen {
  position: absolute;
  top: -20%;
  left: -75%;
  width: 45%;
  height: 140%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.055) 45%,
    rgba(255,255,255,0.11) 50%,
    rgba(255,255,255,0.055) 55%,
    transparent 100%
  );
  pointer-events: none;
  animation: sheen-sweep 7s ease-in-out infinite;
  animation-delay: 1.2s;
}

@keyframes sheen-sweep {
  0%       { left: -75%; }
  18%      { left: 130%; }
  100%     { left: 130%; }
}

/* =========================================================
   LISTELLO IN LEGNO
   ========================================================= */

.wood-bar {
  width: 78%;
  height: 16px;
  margin-top: 34px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(
      92deg,
      rgba(0,0,0,0.22) 0px, transparent 3px,
      transparent 14px, rgba(0,0,0,0.16) 18px,
      transparent 22px, transparent 41px
    ),
    repeating-linear-gradient(
      88deg,
      rgba(255,220,170,0.05) 0px, transparent 2px,
      transparent 9px
    ),
    linear-gradient(180deg, #5d3f26 0%, var(--wood) 40%, #3a2515 100%);
  border: 1px solid #2b1c10;
  box-shadow:
    inset 0 1px 0 rgba(255,210,160,0.12),
    0 8px 20px rgba(0,0,0,0.55);
  animation: fade-in 0.8s ease-out 0.35s both;
}

/* =========================================================
   PANNELLO IN PELLE — MENU PROVE
   ========================================================= */

.bench {
  width: 88%;
  margin-top: 34px;
  margin-bottom: 60px;
  padding: 26px clamp(18px, 5vw, 40px) 30px;
  border-radius: 10px;
  /* pelle: base bruna + macchie morbide + grana */
  background:
    radial-gradient(ellipse 80% 60% at 22% 18%, rgba(120,80,50,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 78% 82%, rgba(0,0,0,0.30) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)' opacity='0.16'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--leather) 0%, var(--leather-deep) 100%);
  border: 1px solid #4a3626;
  box-shadow:
    inset 0 1px 0 rgba(200,150,100,0.14),
    inset 0 0 40px rgba(0,0,0,0.45),
    0 16px 40px rgba(0,0,0,0.6);
  /* cucitura perimetrale */
  outline: 2px dashed rgba(210,160,110,0.28);
  outline-offset: -10px;
  animation: fade-in 0.8s ease-out 0.55s both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bench__title {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: #c9a97e;
  margin-bottom: 20px;
}

.bench__stitch {
  flex: 1;
  max-width: 90px;
  height: 0;
  border-top: 2px dashed rgba(210,160,110,0.35);
}

.bench__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* voce di menu = piastrina metallica avvitata sulla pelle */
.bench__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px,
      transparent 1px, transparent 3px),
    linear-gradient(170deg, #3c3f45 0%, #2a2c30 70%, #222428 100%);
  border: 1px solid #4b4e54;
  border-bottom-color: #17181b;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bench__list a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 35% 30%, #85888e, #3a3d42 60%, #191a1d);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.7);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.bench__list a:hover,
.bench__list a:focus-visible {
  transform: translateX(6px);
  border-color: var(--ember);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 4px 14px rgba(0,0,0,0.55),
    0 0 18px rgba(217,123,41,0.22);
  outline: none;
}

.bench__list a:hover::before,
.bench__list a:focus-visible::before {
  background: radial-gradient(circle at 35% 30%, var(--ember-hot), var(--ember) 55%, #7a3f10);
  box-shadow: 0 0 10px rgba(217,123,41,0.7);
}

.bench__list a .num {
  color: var(--ink-dim);
  font-size: 0.78rem;
}

/* stato vuoto: cartellino appeso */
.bench__empty {
  text-align: center;
  padding: 26px 10px 18px;
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

.bench__empty .tag {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 3px;
  background: linear-gradient(175deg, #d9cfbd 0%, #c4b89f 100%);
  color: #3a2f22;
  border: 1px solid #8d8064;
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
  font-weight: 500;
  transform: rotate(-1.5deg);
  transform-origin: 50% 0;
  animation: tag-swing 5s ease-in-out infinite;
  position: relative;
}

.bench__empty .tag::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9a9da3, #45484d 60%, #191a1d);
  box-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

@keyframes tag-swing {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(1.8deg); }
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 18px 0 26px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #5b5954;
  text-align: center;
}

.footer__mark {
  display: inline-block;
  color: var(--ember);
  font-weight: 500;
  opacity: 0.8;
}

/* =========================================================
   ACCESSIBILITÀ / MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .sheen, .logo__tld, .bench__empty .tag { animation: none; }
  .plate, .wood-bar, .bench { animation-duration: 0.01s; }
}
