/* =============================================
   SYLVA — chi_siamo.css
   1. Hero fullscreen
   2. Fagus Lab
   3. Ecosistema carousel
   4. Form contatti
   ============================================= */

/* ── 1. HERO ──────────────────────────────────── */
.cs-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.cs-hero__img {
  position: absolute;
  inset: 0;
  background-image: url('/static/img/landing/chi_siamo/team_hero.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

/* Gradient overlay — leggero in alto, più scuro in basso a sinistra */
.cs-hero__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,20,12,0.88) 0%, rgba(10,20,12,0.3) 50%, transparent 100%),
    linear-gradient(to right, rgba(10,20,12,0.45) 0%, transparent 60%);
}

/* Testo ancorato in basso a sinistra */
.cs-hero__content {
  position: absolute;
  bottom: 8rem;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 2rem;
  max-width: 1120px;
  margin: 0 auto;
  animation: csHeroIn 1.1s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes csHeroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cs-hero__label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.875rem;
}

.cs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: 1rem;
}

.cs-hero__sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 420px;
}

/* Divider line */
.cs-hero__line {
  width: 40px;
  height: 1.5px;
  background: var(--sage-light);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

/* ── 2. FAGUS LAB ─────────────────────────────── */
.cs-about {
  padding: 7rem 0 7.5rem;
  background: var(--white);
}

.cs-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cs-about__logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
/* Left text */
.cs-about__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: 0.875rem;
}

.cs-about__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}
.cs-about__title em {
  font-style: italic;
  color: var(--sage-mid);
}

.cs-about__body {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.cs-about__body:last-of-type { margin-bottom: 1.5rem; }

/* Quote block */
.cs-about__quote {
  border-left: 3px solid var(--sage-light);
  padding: 0.875rem 1.25rem;
  background: var(--sage-ghost);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 2rem;
}
.cs-about__quote p {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sage-mid);
  line-height: 1.55;
  font-style: italic;
}

.cs-about__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage-mid);
  text-decoration: none;
  transition: gap 0.2s;
}
.cs-about__link:hover { gap: 0.625rem; }
.cs-about__link svg { width: 14px; height: 14px; }

/* Right photo */
.cs-about__photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cs-about__photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  background: white;
  padding: 10px 10px 42px 10px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.14),
    0 4px 16px rgba(0,0,0,0.08);
  transform: rotate(1.5deg);
  transition: transform 0.4s var(--ease);
}
.cs-about__photo:hover { transform: rotate(0deg) scale(1.02); }

/* ── 3. ECOSISTEMA ────────────────────────────── */
.cs-eco {
  padding: 6.5rem 0 7rem;
  background: white;
  overflow: hidden;
}

.cs-eco__header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 4rem;
}

.cs-eco__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}
.cs-eco__title em { font-style: italic; color: var(--sage-mid); }

.cs-eco__sub {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* Carousel container */
.cs-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Image fan */
.cs-carousel__fan {
  position: relative;
  height: 280px;
  perspective: 1200px;
  margin-bottom: 2.5rem;
}

.cs-carousel__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 260px;
  height: 260px;
  margin-left: -130px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.4, 2, 0.3, 1);
  will-change: transform, opacity;
}

.cs-carousel__card img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Placeholder quando non c'è immagine */
.cs-carousel__logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sage-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage-mid);
}

/* Content below */
.cs-carousel__content {
  text-align: center;
  min-height: 120px;
}

.cs-carousel__name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 0.375rem;
}

.cs-carousel__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: 0.875rem;
}

.cs-carousel__desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.25rem;
  min-height: 48px;
}

.cs-carousel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sage-mid);
  text-decoration: none;
  border: 1.5px solid var(--sage-border);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  background: var(--white);
  transition: background 0.15s, border-color 0.15s;
}
.cs-carousel__link:hover {
  background: var(--sage-ghost);
  border-color: rgba(47,81,50,0.3);
}
.cs-carousel__link svg { width: 12px; height: 12px; }

/* Arrow buttons */
.cs-carousel__arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2rem;
}

.cs-carousel__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.cs-carousel__arrow:hover {
  background: #1e3422;
  transform: scale(1.08);
}
.cs-carousel__arrow svg { width: 15px; height: 15px; }

/* Dots */
.cs-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-carousel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.cs-carousel__dot.is-active {
  background: var(--sage);
  transform: scale(1.4);
}

/* ── 4. FORM CONTATTI ─────────────────────────── */
.cs-contact {
  padding: 6.5rem 0 7rem;
  background: var(--sage);
}

.cs-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

/* Left info */
.cs-contact__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.875rem;
}

.cs-contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: white;
  margin-bottom: 1rem;
}
.cs-contact__title em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

.cs-contact__body {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cs-contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-contact__info-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}
.cs-contact__info-row svg {
  width: 14px; height: 14px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.cs-contact__info-row a {
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.cs-contact__info-row a:hover { color: white; }

/* Right form */
.cs-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.cs-form__group {
  margin-bottom: 1.25rem;
}

.cs-form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.cs-form__input,
.cs-form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 0.6875rem 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}
.cs-form__input::placeholder,
.cs-form__textarea::placeholder { color: var(--gray-400); }
.cs-form__input:focus,
.cs-form__textarea:focus {
  border-color: var(--sage-light);
  box-shadow: 0 0 0 3px rgba(47,81,50,0.08);
  background: var(--white);
}
.cs-form__textarea { min-height: 120px; }

/* Pill tags */
.cs-form__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-form__pill {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.cs-form__pill:hover {
  border-color: var(--sage-light);
  color: var(--sage-mid);
}
.cs-form__pill.is-selected {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

/* Row nome + email */
.cs-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

/* Submit */
.cs-form__submit {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  background: var(--sage);
  border: none;
  border-radius: var(--r-md);
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.cs-form__submit:hover {
  background: #1e3422;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(47,81,50,0.28);
}
.cs-form__submit svg { width: 14px; height: 14px; }

/* Success state */
.cs-form__success {
  text-align: center;
  padding: 3rem 1.5rem;
  display: none;
}
.cs-form__success.is-visible { display: block; }
.cs-form__success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sage-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--sage-mid);
}
.cs-form__success-icon svg { width: 24px; height: 24px; }
.cs-form__success h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.cs-form__success p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
}
/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .cs-about__grid  { grid-template-columns: 1fr; gap: 3rem; }
  .cs-contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .cs-about__photo { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .cs-hero__content { bottom: 2.5rem; padding: 0 1.25rem; }
  .cs-hero__title   { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .cs-form__row     { grid-template-columns: 1fr; }
  .cs-form          { padding: 1.5rem; }
  .cs-carousel__fan { height: 220px; }
  .cs-carousel__card { width: 200px; height: 200px; margin-left: -100px; }
}