/* ═══════════════════════════════════════════════════
   chi-siamo.css  —  stili specifici pagina Chi Siamo
   Dipende da: style.css (variabili, btn, cert-logos, products-*)
═══════════════════════════════════════════════════ */

/* ── HEADER GENERICO SEZIONE ── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ── STORIA ── */
.storia-section {
  padding: 7rem 0;
  background: var(--white);
}
.storia-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.storia-visual { position: relative; }
.storia-img-main {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; border-radius: 4px;
  box-shadow: var(--shadow);
}
.storia-img-accent {
  position: absolute;
  bottom: -2.5rem; right: -2.5rem;
  width: 55%; aspect-ratio: 1/1;
  object-fit: cover; border-radius: 4px;
  border: 6px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
}
.storia-year-badge {
  position: absolute;
  top: 2rem; left: -1.5rem;
  background: var(--red); color: var(--white);
  padding: 1rem 1.4rem; border-radius: 4px;
  box-shadow: 0 6px 24px rgba(212,43,43,.4);
  text-align: center; line-height: 1.2; z-index: 1;
}
.storia-year-badge strong {
  display: block; font-size: 2rem;
  font-weight: 700; letter-spacing: -.03em;
}
.storia-year-badge span {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  opacity: .85;
}
.storia-text { display: flex; flex-direction: column; }
.storia-eyebrow {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: .8rem;
}
.storia-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700; color: var(--black);
  line-height: 1.12; letter-spacing: -.025em;
}
.storia-title em { font-style: normal; font-weight: 300; color: var(--red); }
.storia-divider {
  width: 48px; height: 2px;
  background: var(--red); border-radius: 2px;
  margin: 1.8rem 0;
}
.storia-body {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  color: var(--gray-dark); line-height: 1.85;
  margin-bottom: 1rem;
}
.storia-body strong { color: var(--black); font-weight: 600; }
.storia-body:last-of-type { margin-bottom: 0; }
.storia-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem;
}


/* ══════════════════════════════════════════════════════
   ── VALORI — griglia card testuali
══════════════════════════════════════════════════════ */
.valori-section {
  position: relative;
  padding: 7rem 0 6rem;
  background-image: url('../img/corex3.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed; background-repeat: no-repeat;
}
.valori-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  z-index: 0;
}
.valori-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}

/* Griglia 3 colonne */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Singola card */
.valore-card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(200,200,200,.45);
  border-radius: 8px;
  padding: 2rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04),
              0 2px 12px rgba(0,0,0,.08),
              inset 0 2px 8px rgba(0,0,0,.04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.valore-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.97);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04),
              0 12px 36px rgba(0,0,0,.13),
              inset 0 2px 8px rgba(0,0,0,.04);
}

/* Numero progressivo */
.valore-num {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--red);
  opacity: .7;
}

/* Titolo */
.valore-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0;
}

/* Separatore rosso */
.valore-card::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  opacity: .6;
  order: 3;
  margin-bottom: .2rem;
}

/* Descrizione */
.valore-desc {
  font-size: .88rem;
  color: var(--gray-dark);
  line-height: 1.75;
  margin: 0;
  order: 4;
}

/* Tablet: 2 colonne */
@media (max-width: 900px) {
  .valori-section { background-attachment: scroll; }
  .valori-grid    { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

/* Mobile: 1 colonna */
@media (max-width: 540px) {
  .valori-section { padding: 4rem 0 3.5rem; }
  .valori-grid    { grid-template-columns: 1fr; gap: 1rem; }
  .valore-card    { padding: 1.5rem 1.4rem; }
}


/* ══════════════════════════════════════════════════════
   ── NUMERI
══════════════════════════════════════════════════════ */
.numeri-section {
  position: relative; padding: 7rem 0;
  background-image: url('../img/corex4.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.numeri-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,26,26,.82);
}
.numeri-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
}
.numeri-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700; color: var(--white);
  letter-spacing: -.02em; line-height: 1.15;
}
.numeri-title em { font-style: normal; font-weight: 300; color: rgba(255,255,255,.5); }

.numeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3rem;
}
.numero-item {
  padding: 3rem 1.5rem;
  background: rgba(255,255,255,.04);
  text-align: center;
  transition: background .3s;
  min-width: 0;
  overflow: hidden;
}
.numero-item:hover { background: rgba(212,43,43,.18); }

.numero-val {
  font-size: clamp(1.6rem, 3vw, 3.4rem);
  font-weight: 700; color: var(--red);
  line-height: 1; letter-spacing: -.03em;
  display: block; margin-bottom: .7rem;
  white-space: normal; word-break: break-word;
}
.numero-label {
  font-size: clamp(.6rem, .9vw, .8rem);
  font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.55); line-height: 1.5;
}
.numero-label strong {
  display: block;
  font-size: clamp(.7rem, 1vw, .92rem);
  color: rgba(255,255,255,.9); margin-bottom: .2rem;
  text-transform: none; letter-spacing: 0;
}

@media (max-width: 900px) {
  .numeri-section { background-attachment: scroll; }
  .numeri-grid    { grid-template-columns: 1fr 1fr; }
  .numero-item    { padding: 2.5rem 1.5rem; }
}
@media (max-width: 600px) {
  .numeri-section { padding: 4rem 0; }
  .numeri-inner   { padding: 0 1rem; }
  .numeri-grid    { grid-template-columns: 1fr 1fr; border-radius: 6px; }
  .numero-item    { padding: 2rem 1rem; }
  .numero-val     { font-size: clamp(1.4rem, 8vw, 2rem); }
  .numero-label   { font-size: .6rem; }
  .numero-label strong { font-size: .72rem; }
}
@media (max-width: 374px) {
  .numeri-grid { grid-template-columns: 1fr; }
  .numero-item { padding: 1.6rem 1.5rem; }
}


/* ── TEAM ── */
.team-section { padding: 4rem 0; background: var(--white); }
.team-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.team-card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-lt);
  border-radius: 8px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.team-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gray-lt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; flex-shrink: 0;
  transition: background .3s var(--ease);
}
.team-card:hover .team-icon-wrap { background: rgba(212,43,43,.08); }
.team-icon-wrap svg { width: 36px; height: 36px; }
.team-name {
  font-size: 1rem; font-weight: 700;
  color: var(--black); letter-spacing: -.01em; margin-bottom: .3rem;
}
.team-role {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .8rem;
}
.team-bio {
  font-size: .84rem; color: var(--gray-mid);
  line-height: 1.7; max-width: 260px;
}


/* ── MARCHI ── */
.marchi-section {
  position: relative;
  padding: 6rem 0;
  background-image: url('../img/corex4.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed;
  border-top: none;
}
.marchi-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,26,26,.82);
  z-index: 0;
}
.marchi-inner {
  position: relative; z-index: 1;
}

/* Testi marchi su sfondo scuro */
.marchi-section .products-eyebrow { color: rgba(255,255,255,.55); }
.marchi-section .products-title   { color: var(--white); }
.marchi-section .products-title em { color: rgba(255,255,255,.45); font-weight: 300; }
.marchi-section .products-sub     { color: rgba(255,255,255,.6); }
.marchi-section .products-cta-link { color: rgba(255,255,255,.75); }
.marchi-section .products-cta-link:hover { color: var(--white); }
.marchi-section .cta-arrow        { color: var(--red); }

@media (max-width: 900px) {
  .marchi-section { background-attachment: scroll; }
}
.marchi-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.marchi-carousel {
  position: relative;
  width: 100vw; left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  overflow: hidden;
}
.marchi-carousel-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 1.2rem 2rem 1.6rem;
  justify-content: flex-start;
}
.marchi-carousel-track::-webkit-scrollbar { display: none; }

@media (min-width: 1200px) {
  .marchi-carousel-track {
    justify-content: center;
    padding: 1.2rem max(2rem, calc((100vw - 1060px) / 2)) 1.6rem;
    flex-wrap: nowrap;
  }
}
@media (max-width: 1199px) {
  .marchi-carousel-track {
    scroll-snap-type: x mandatory;
    cursor: grab;
    padding: 1.2rem 6vw 1.6rem;
  }
  .marchi-carousel-track:active { cursor: grabbing; }
  .marchio-item { scroll-snap-align: center; }
}

.marchio-item {
  flex: 0 0 160px; height: 100px;
  background: var(--white); border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow .3s var(--ease);
  text-decoration: none;
}
.marchio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(.3);
  transition: filter .35s var(--ease), transform .35s var(--ease), opacity .35s var(--ease);
}
.marchio-item:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
  opacity: .88;
}
.marchi-cta { text-align: center; margin-top: 2.5rem; }

@media (max-width: 600px) {
  .marchio-item { flex: 0 0 140px; height: 88px; }
}


/* ── RESPONSIVE GENERALI PAGINA ── */
@media (max-width: 900px) {
  .storia-inner      { grid-template-columns: 1fr; gap: 3rem; }
  .storia-visual     { order: -1; max-width: 500px; margin: 0 auto; }
  .storia-img-accent { right: -1rem; bottom: -1.5rem; }
  .storia-year-badge { left: -.5rem; }
  .storia-text       { text-align: center; }
  .storia-divider    { margin: 1.8rem auto; }
  .storia-actions    { justify-content: center; }
  .team-grid         { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .storia-section,
  .team-section,
  .marchi-section { padding: 3rem 0; }
  .team-grid      { grid-template-columns: 1fr; }
}