/* ════════════════════════════════════════
   OFFICINA TESSILE LS — main.css
   ════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --ink:        #0C0C0C;
  --ink-2:      #111110;
  --ink-3:      #161513;
  --ivory:      #F2EDE4;
  --ivory-dim:  #D8D2C8;
  --mid:        #706C67;
  --rule:       rgba(242,237,228,0.1);
  --rule-warm:  rgba(242,237,228,0.06);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', 'Raleway', sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --nav-h:    78px;
  --gutter:   clamp(1.5rem, 5vw, 5rem);
  --max-w:    1380px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(242,237,228,0.25); }

/* ─── PROGRESS BAR ─── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--ivory);
  z-index: 300;
  transition: width 0.08s linear;
  opacity: 0.5;
}

/* ─── UTILS ─── */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.38);
  margin-bottom: 1.4rem;
}
.section-eyebrow::before {
  content: '';
  display: block; flex-shrink: 0;
  width: 28px; height: 1px;
  background: rgba(242,237,228,0.3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.section-title em {
  font-style: italic;
  color: var(--ivory-dim);
}

.section-lead {
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(209, 151, 56, 0.4);
  max-width: 560px;
  margin-top: 1.2rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(.22,1,.36,1),
              transform 0.9s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid;
  transition: all 0.35s ease;
  white-space: nowrap;
}
.btn::after { content: '→'; transition: transform 0.3s; }
.btn:hover::after { transform: translateX(4px); }

.btn-dark {
  color: var(--ivory);
  border-color: rgba(242,237,228,0.25);
  background: transparent;
}
.btn-dark:hover {
  border-color: var(--ivory);
  background: rgba(242,237,228,0.05);
  transform: translateY(-2px);
}

.btn-light {
  color: var(--ink);
  border-color: var(--ivory);
  background: var(--ivory);
}
.btn-light:hover {
  background: transparent;
  color: var(--ivory);
  transform: translateY(-2px);
}

/* Thin divider */
.h-rule {
  height: 1px;
  background: var(--rule);
}

/* ════════════════════════════════════════
   §1 — HERO
   ════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

/* Woven texture background */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--ink);
}

.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0, transparent 38px,
      rgba(242,237,228,0.022) 38px, rgba(242,237,228,0.022) 39px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0, transparent 38px,
      rgba(242,237,228,0.015) 38px, rgba(242,237,228,0.015) 39px
    );
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 65% 35%,
    rgba(242,237,228,0.04) 0%, transparent 70%
  );
}

/* Central logo hero */
.hero-center {
  position: absolute;
  inset: 0; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding-top: var(--nav-h);
}

.hero-logotype {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  opacity: 0;
  animation: heroFade 1.2s cubic-bezier(.22,1,.36,1) 0.3s forwards;
}


.hero-logo-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-logo-wordmark-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--ivory);
  line-height: 1;
  text-align: center;
}

.hero-tagline {
  text-align: center;
  opacity: 0;
  animation: heroFade 1s ease 0.4s forwards;
}

.hero-tagline p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.8rem);
  font-weight: 300;
  color: rgba(242,237,228,0.5);
  letter-spacing: 0.04em;
}

.hero-pill {
  font-family: var(--font-mono);
  font-size: 0.90rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.25);
  border: 1px solid rgba(242,237,228,0.12);
  padding: 7px 18px;
  margin-top: 0.8rem;
  display: inline-block;
}

/* Bottom ticker */
.hero-ticker {
  position: relative; z-index: 3;
  border-top: 1px solid var(--rule);
  background: rgba(12,12,12,0.6);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: tickerMove 28s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.90rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.28);
  padding: 0 2.8rem;
}

.ticker-track span.sep { color: rgba(242,237,228,0.12); }

.hero-scroll-cue {
  position: absolute;
  bottom: 5rem; right: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFade 1s ease 1.2s forwards;
}

.hero-scroll-cue span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.22);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(242,237,228,0.25), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ════════════════════════════════════════
   §2 — CHI SIAMO
   ════════════════════════════════════════ */
#chi-siamo {
  padding: 9rem 0;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
}

.chi-siamo-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}



.chi-siamo-text {
  margin-top: 2.5rem;
}

.chi-siamo-text p {
  font-size: 1.05rem;
  line-height: 2.05;
  color: rgba(242,237,228,0.65);
  margin-bottom: 1.6rem;
}

.chi-siamo-text p strong {
  color: var(--ivory);
  font-weight: 500;
}

.chi-siamo-pillars {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
}

/*

.pillar {
  padding: 2rem 1.8rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s;
}

.pillar:hover { background: rgba(242,237,228,0.025); }

.pillar-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(242,237,228,0.12);
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar-title {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.pillar-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mid);
}
*/

/* Large quote / statement */
.chi-siamo-statement {
  margin-top: 0;
  padding-top: 0;
}

.statement-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.35;
  color: var(--ivory);
  margin-bottom: 3rem;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(242,237,228,0.2);
}

.chi-siamo-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 3rem;
}

.num-item {
  background: var(--ink-2);
  padding: 2rem 1.5rem;
  transition: background 0.3s;
}

.num-item:hover { background: rgba(242,237,228,0.03); }

.num-val {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.num-label {
  font-family: var(--font-mono);
  font-size: 0.90rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ════════════════════════════════════════
   §3 — PROCESSO
   ════════════════════════════════════════ */
#processo {
  padding: 9rem 0;
  background: var(--ink-3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.processo-header {
  margin-bottom: 5rem;
}

.processo-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.processo-spine {
  position: absolute;
  top: 26px;
  left: calc(26px + 1rem);
  right: calc(26px + 1rem);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(242,237,228,0.12),
    rgba(242,237,228,0.12)
  );
}

.step {
  padding: 0 1.8rem 0 0;
  position: relative;
}

.step-dot {
  width: 52px; height: 52px;
  border: 1px solid rgba(242,237,228,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
  background: var(--ink-3);
  position: relative; z-index: 1;
  transition: border-color 0.4s, background 0.4s;
}

.step:hover .step-dot {
  border-color: rgba(242,237,228,0.6);
  background: rgba(242,237,228,0.04);
}

.step-dot-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(242,237,228,0.45);
  transition: color 0.3s;
}

.step:hover .step-dot-num { color: var(--ivory); }

.step-title {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.step-body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--mid);
}

/* ════════════════════════════════════════
   §4 — ARTICOLI & SPECIALIZZAZIONI
   ════════════════════════════════════════ */
#articoli {
  padding: 9rem 0;
  background: var(--ink-2);
}

.articoli-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filter-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  background: transparent;
  border: 1px solid rgba(242,237,228,0.12);
  padding: 6px 14px;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(242,237,228,0.5);
  color: var(--ivory);
}

.articoli-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  
  border: 1px solid var(--rule);
}

.articolo-card {
  background: var(--ink-2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.4s;
  cursor: default;
}

.articolo-card:hover { background: #161513; }

.articolo-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(242,237,228,0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.articolo-card:hover::after { transform: scaleX(1); }

.articolo-swatch {
  height: 130px;
  width: 100%;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Fabric swatches — geometric pattern simulations */
.sw-lana {
  background:
    repeating-linear-gradient(45deg, #1f1c17 0px, #1f1c17 4px, #181510 4px, #181510 8px),
    repeating-linear-gradient(-45deg, #1f1c17 0px, #1f1c17 4px, #181510 4px, #181510 8px);
  background-blend-mode: overlay;
}
.sw-cotone {
  background:
    repeating-linear-gradient(0deg, #191920 0, #191920 5px, #121218 5px, #121218 6px),
    repeating-linear-gradient(90deg, #191920 0, #191920 5px, #121218 5px, #121218 6px);
}
.sw-seta {
  background: linear-gradient(160deg, #1e1814 0%, #2a2218 30%, #1a1610 60%, #222018 100%);
}
.sw-misto {
  background:
    repeating-linear-gradient(30deg, #171720 0px, #171720 3px, #10101a 3px, #10101a 6px),
    repeating-linear-gradient(-30deg, #171720 0px, #171720 3px, #10101a 3px, #10101a 6px);
}
.sw-tecnico {
  background: repeating-linear-gradient(
    60deg, #0d1a1a 0px, #0d1a1a 6px, #0a1212 6px, #0a1212 12px
  );
}
.sw-interni {
  background:
    repeating-linear-gradient(90deg, #1c1610 0, #1c1610 10px, #181208 10px, #181208 20px),
    repeating-linear-gradient(0deg, #1c1610 0, #1c1610 10px, #181208 10px, #181208 20px);
  background-blend-mode: multiply;
}

.swatch-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--ink-2) 100%);
  pointer-events: none;
}

/*
.swatch-tag {
  position: absolute;
  bottom: 10px; left: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
}

.articolo-cat {
  font-family: var(--font-mono);
  font-size: 0.90rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.28);
  margin-bottom: 0.5rem;
}
*/

.articolo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.articolo-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 1.4rem;
}


.articolo-specs {
  display: flex; gap: 0.7rem; flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.35);
  border: 1px solid rgba(242,237,228,0.1);
  padding: 3px 8px;
}

.articolo-link {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(209, 151, 56, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  transition: color 0.3s;
}

.articolo-link::after { content: '→'; transition: transform 0.3s; }
.articolo-card:hover .articolo-link { color: var(--ivory); }
.articolo-card:hover .articolo-link::after { transform: translateX(4px); }

.articoli-cta {
  margin-top: 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.articoli-cta p {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.25);
}

/* ════════════════════════════════════════
   §5 — RICERCA & SVILUPPO
   ════════════════════════════════════════ */
#ricerca {
  padding: 9rem 0;
  background: var(--ink-3);
  border-top: 1px solid var(--rule);
}

.ricerca-header {
  margin-bottom: 5rem;
}

.ricerca-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.ricerca-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.ricerca-sidebar-intro {
  font-size: 0.98rem;
  line-height: 2;
  color: rgba(242,237,228,0.55);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

/*
.ricerca-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
*/
.rtag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.3);
  border: 1px solid rgba(242,237,228,0.1);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.rtag:hover, .rtag.active {
  color: var(--ivory);
  border-color: rgba(242,237,228,0.4);
}

/* Articles list */
.ricerca-articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.r-article {
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  transition: background 0.3s;
  cursor: default;
}

.r-article:first-child { border-top: 1px solid var(--rule); }

.r-article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.r-article-tag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.3);
  border: 1px solid rgba(242,237,228,0.1);
  padding: 3px 10px;
}

.r-article-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.18);
}

.r-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.3;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.r-article:hover .r-article-title { color: var(--ivory-dim); }

.r-article-excerpt {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--mid);
  max-width: 500px;
}

.r-article-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(242,237,228,0.06);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.3rem;
  transition: color 0.3s;
}

.r-article:hover .r-article-num { color: rgba(233, 228, 219, 0.205); }

/* ════════════════════════════════════════
   §6 — CONTATTO
   ════════════════════════════════════════ */
#contatto {
  padding: 9rem 0;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
}

.contatto-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}



.contatto-left h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.4;
  color: var(--ivory);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.contatto-left p {
  font-size: 0.97rem;
  line-height: 2;
  color: var(--mid);
  margin-bottom: 1.2rem;
}

.contatto-info {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


.contatto-info-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.25);
  margin-bottom: 0.3rem;
}

.contatto-info-val {
  font-size: 0.96rem;
  color: rgba(242,237,228,0.65);
  line-height: 1.5;
}

.contatto-note {
  margin-top: 3rem;
  padding: 1.2rem 1.5rem;
  border-left: 2px solid rgba(242,237,228,0.15);
}

.contatto-note p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  line-height: 1.9;
  color: rgba(242,237,228,0.3);
  margin: 0;
}

/* Form */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.3);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(242,237,228,0.035);
  border: 1px solid rgba(242,237,228,0.1);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 300;
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(242,237,228,0.2); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(242,237,228,0.4);
  background: rgba(242,237,228,0.055);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(242,237,228,0.3)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option { background: #1a1916; color: var(--ivory); }

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.7;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  accent-color: var(--ivory);
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.90rem;
  line-height: 1.7;
  color: rgba(242,237,228,0.35);
}

.form-check-label a {
  color: rgba(242,237,228,0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-footer-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(209, 151, 56, 0.4);
}

/* ════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════ */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1100px) {
  .articoli-grid { grid-template-columns: 1fr 1fr; }
  .processo-steps { grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
  .processo-spine { display: none; }
}

@media (max-width: 900px) {
  .chi-siamo-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ricerca-layout { grid-template-columns: 1fr; }
  .ricerca-sidebar { position: relative; top: 0; }
  .contatto-inner { grid-template-columns: 1fr; }
  .chi-siamo-numbers { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 700px) {
  .articoli-grid { grid-template-columns: 1fr; }
  .processo-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .chi-siamo-pillars { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }
  .chi-siamo-numbers { grid-template-columns: 1fr; }
  .r-article { grid-template-columns: 1fr; gap: 0; }
  .r-article-num { display: none; }
}
