/* ═══════════════════════════════════════════════════
   COREX S.p.A. — sustainability.css
   Colore tema: --teal #148c64
═══════════════════════════════════════════════════ */

:root { --teal: #148c64; --teal-dark: #0d6849; --teal-lt: rgba(20,140,100,.08); }

/* ━━━━ HERO ━━━━ */
.sust-hero { background-image: url('../img/corex6.jpg'); }

/* ━━━━ TESTI COMUNI ━━━━ */
.sust-section-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--black);
  line-height: 1.15; letter-spacing: -.025em;
  margin-top: .6rem; margin-bottom: 0;
}
.sust-section-title em { font-style: normal; font-weight: 300; color: var(--teal); }

.sust-body {
  font-size: clamp(.9rem, 1.4vw, 1.02rem);
  color: var(--gray-dark); line-height: 1.8; margin-bottom: 1.1rem;
}
.sust-body strong { color: var(--black); font-weight: 600; }

/* ━━━━ INTRO ━━━━ */
.sust-intro-section { padding: 7rem 0; background: var(--white); }
.sust-intro-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 5rem; align-items: center;
}

.sust-img-wrap { position: relative; display: flex; justify-content: center; }
.sust-img-main {
  width: clamp(220px, 26vw, 360px); aspect-ratio: 4/5;
  object-fit: cover; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15); display: block;
}
.sust-leaf-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--teal); color: var(--white);
  border-radius: 50%; width: 110px; height: 110px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .1rem; text-align: center;
  box-shadow: 0 8px 28px rgba(20,140,100,.4);
  border: 4px solid var(--white);
  animation: plateFloat 5s ease-in-out infinite;
}
.sust-leaf-badge strong { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.sust-leaf-badge span   { font-size: .6rem; font-weight: 500; line-height: 1.3; opacity: .9; }

@media (max-width: 900px) {
  .sust-intro-section { padding: 5rem 0; }
  .sust-intro-inner { grid-template-columns: 1fr; gap: 3rem; }
  .sust-intro-text   { order: 1; }
  .sust-intro-visual { order: 0; display: flex; justify-content: center; }
  .sust-img-main { width: clamp(180px, 55vw, 300px); }
}
@media (max-width: 480px) {
  .sust-intro-section { padding: 3.5rem 0; }
  .sust-intro-inner   { padding: 0 1.2rem; }
  .sust-leaf-badge    { right: -.5rem; bottom: -1rem; width: 90px; height: 90px; }
  .sust-leaf-badge strong { font-size: 1.05rem; }
}

/* ━━━━ PILLARS ━━━━ */
.sust-pillars-section { padding: 7rem 0; background: var(--off-white); }
.sust-pillars-inner   { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.sust-pillars-header  { text-align: center; margin-bottom: 4rem; }

.sust-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.sust-pillar {
  background: var(--white); border-radius: 16px;
  padding: 2rem 1.8rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
  overflow: hidden; position: relative;
}
.sust-pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.11);
}
.sust-pillar::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.sust-pillar:hover::after { transform: scaleX(1); }

.sust-pillar-icon {
  width: 56px; height: 56px;
  background: var(--teal-lt); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.sust-pillar-icon svg { width: 30px; height: 30px; }

.sust-pillar-title {
  font-size: 1rem; font-weight: 700; color: var(--black);
  margin-bottom: .6rem; letter-spacing: -.01em;
}
.sust-pillar-body { font-size: .86rem; color: var(--gray-mid); line-height: 1.7; }
.sust-pillar-body strong { color: var(--black); font-weight: 600; }

@media (max-width: 900px) {
  .sust-pillars-section { padding: 5rem 0; }
  .sust-pillars-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sust-pillars-section { padding: 3.5rem 0; }
  .sust-pillars-inner   { padding: 0 1.2rem; }
  .sust-pillars-header  { margin-bottom: 2.5rem; }
  .sust-pillars-grid    { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ━━━━ FOREST / CERT BANNER ━━━━ */
.sust-forest-section {
  position: relative; padding: 6rem 0;
  background-image: url('../img/corex2.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed; overflow: hidden;
}
.sust-forest-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 60, 40, .88); z-index: 0;
}
.sust-forest-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
}

.sust-cert-row {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 0;
}
.sust-cert-item {
  flex: 1; max-width: 300px;
  text-align: center; padding: 0 2.5rem;
}
.sust-cert-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  transition: background .3s, border-color .3s;
}
.sust-cert-item:hover .sust-cert-icon {
  background: rgba(20,140,100,.3);
  border-color: var(--teal);
}
.sust-cert-item h4 {
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: .6rem;
}
.sust-cert-item p {
  font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.7;
}
.sust-cert-divider {
  width: 1px; min-height: 120px; align-self: center;
  background: rgba(255,255,255,.12); flex-shrink: 0;
  margin: 0 1rem;
}

@media (max-width: 900px) { .sust-forest-section { background-attachment: scroll; } }
@media (max-width: 768px) {
  .sust-forest-section { padding: 4rem 0; }
  .sust-cert-row       { flex-direction: column; align-items: center; gap: 2.5rem; }
  .sust-cert-item      { max-width: 100%; padding: 0 1rem; }
  .sust-cert-divider   { width: 80px; min-height: 1px; }
}
@media (max-width: 480px) { .sust-forest-inner { padding: 0 1.2rem; } }

/* ━━━━ PASSION ━━━━ */
.sust-passion-section {
  position: relative; padding: 7rem 0;
  background-image: url('../img/corex4.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed; overflow: hidden;
}
.sust-passion-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.82); z-index: 0;
}
.sust-passion-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 2fr 3fr;
  gap: 5rem; align-items: center;
}
.sust-passion-visual { display: flex; justify-content: center; }
.sust-passion-links {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2.2rem;
}
.sust-passion-links .products-cta-link { font-size: .76rem; }
/* Override underline color */
.sust-passion-links .products-cta-link::after { background: var(--teal); }
.sust-passion-links .products-cta-link:hover  { color: var(--teal); }
.sust-passion-links .products-cta-link .cta-arrow { color: var(--teal); }

@media (max-width: 900px) {
  .sust-passion-section { padding: 5rem 0; background-attachment: scroll; }
  .sust-passion-inner   { grid-template-columns: 1fr; gap: 3rem; }
  .sust-passion-visual  { order: 0; }
  .sust-passion-text    { order: 1; }
}
@media (max-width: 480px) {
  .sust-passion-section { padding: 3.5rem 0; }
  .sust-passion-inner   { padding: 0 1.2rem; gap: 2rem; }
}