/* ============================================================
   WIZARD ITALIA – antifauna.css
   Stili specifici per la pagina Soluzioni Antifauna
   ============================================================ */

/* ── PROBLEMA ───────────────────────────────────────────── */
.af-problema-section {
  padding: var(--section-v) 0;
  background: var(--white);
}
.af-problema-section .container { padding: 0 var(--gutter); }

.af-problema-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.af-problema-items {
  display: flex;
  flex-direction: column;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}
.af-pi {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(0.875rem, 1.5vw, 1.25rem) 0;
  border-bottom: 1px solid var(--grey-l);
  font-size: clamp(0.8125rem, 0.75rem + 0.1vw, 0.875rem);
  color: var(--text-2);
  line-height: 1.75;
}
.af-pi:last-child { border-bottom: none; }
.af-pi strong { color: var(--black-l); font-weight: 600; }
.af-pi-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--green-d);
  margin-top: 0.55rem;
}

.af-problema-panel {
  background: var(--off-white);
  border: 1px solid var(--grey);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: sticky;
  top: calc(var(--navbar-h) + 1.5rem);
}
.af-panel-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1.0625rem);
  color: var(--black-l);
  margin-bottom: 1.25rem;
}
.af-stat-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: clamp(0.75rem, 1.25vw, 1rem) 0;
  border-bottom: 1px solid var(--grey-l);
}
.af-stat-row:last-of-type { border-bottom: none; }
.af-stat-label {
  font-size: 0.6875rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.af-stat-val {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.85rem + 0.25vw, 1.125rem);
  color: var(--green-d);
}
.af-panel-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-l);
}
.af-panel-note p {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.7;
}

/* ── SPECIE ─────────────────────────────────────────────── */
.af-specie-section {
  padding: var(--section-v) 0;
  background: var(--off-white);
}
.af-specie-section .container { padding: 0 var(--gutter); }

.af-specie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--grey);
}
.af-specie-card {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 1.75rem);
  border-right: 1px solid var(--grey);
  background: var(--white);
  transition: background .3s ease-out;
}
.af-specie-card:last-child { border-right: none; }
.af-specie-card:hover { background: var(--off-white); }
.af-specie-card--note { background: var(--off-white); }
.af-specie-card--note:hover { background: var(--grey-l); }

.af-specie-icon {
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  margin-bottom: clamp(0.875rem, 1.5vw, 1.25rem);
  transition: transform .3s ease-out .05s;
}
.af-specie-card:hover .af-specie-icon { transform: scale(1.1); }

/* Fix hero image crop on antifauna page */
.hero-img-wrapper img {
  height: auto;
  object-fit: unset;
}

.af-specie-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.25vw, 1.25rem);
  color: var(--black-l);
  margin-bottom: 0.5rem;
}
.af-specie-status {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}
.af-status-ok {
  color: var(--green-deep);
  border: 1px solid var(--green-l);
}
.af-status-note {
  color: #8b4040;
  border: 1px solid #e8b4b4;
}
.af-specie-desc {
  font-size: clamp(0.8125rem, 0.75rem + 0.1vw, 0.875rem);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.af-specie-features {
  list-style: none;
}
.af-specie-features li {
  font-size: clamp(0.75rem, 0.7rem + 0.1vw, 0.8125rem);
  color: var(--text-3);
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-bottom: 1px solid var(--grey-l);
  position: relative;
  line-height: 1.5;
}
.af-specie-features li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: var(--green-d);
  font-weight: 700;
}
.af-specie-features li:last-child { border-bottom: none; }

/* ── WIZARDWILD ─────────────────────────────────────────── */
.af-ww-section {
  padding: var(--section-v) 0;
  background: var(--off-white);
}
.af-ww-section .container { padding: 0 var(--gutter); }

.af-ww-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.af-ww-img-wrapper {
  position: sticky;
  top: calc(var(--navbar-h) + 1.5rem);
  background: var(--white);
  border: 1px solid var(--grey);
  overflow: hidden;
}
.af-ww-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s ease-out;
}
.af-ww-img-wrapper:hover img { transform: scale(1.02); }
.af-ww-img-note {
  padding: clamp(0.75rem, 1.25vw, 1rem) clamp(1rem, 1.5vw, 1.25rem);
  font-size: 0.6875rem;
  color: var(--text-3);
  border-top: 1px solid var(--grey-l);
  background: var(--off-white);
}

.af-ww-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.af-ww-feat {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--grey);
}
.af-ww-feat:first-child { padding-top: 0; }
.af-ww-feat-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 2vw, 2.75rem);
  color: var(--green-xl);
  line-height: 1;
  flex-shrink: 0;
  width: clamp(2.5rem, 3vw, 3.5rem);
  transition: color .3s ease-out;
}
.af-ww-feat:hover .af-ww-feat-num { color: var(--green-d); }
.af-ww-feat-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(0.9375rem, 0.85rem + 0.2vw, 1.125rem);
  color: var(--black-l);
  margin-bottom: 0.5rem;
}
.af-ww-feat-desc {
  font-size: clamp(0.8125rem, 0.75rem + 0.1vw, 0.875rem);
  color: var(--text-3);
  line-height: 1.75;
}
.af-ww-desc-box {
  background: var(--white);
  border: 1px solid var(--grey);
  border-left: 3px solid var(--green-d);
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.75rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(0.8125rem, 0.75rem + 0.1vw, 0.875rem);
  color: var(--text-2);
  line-height: 1.75;
}

/* ── SOLUZIONE ──────────────────────────────────────────── */
.af-soluzione-section {
  padding: var(--section-v) 0;
  background: var(--white);
}
.af-soluzione-section .container { padding: 0 var(--gutter); }

/* ── NORMATIVA ──────────────────────────────────────────── */
.af-norma-section {
  padding: var(--section-v) 0;
  background: var(--black-soft);
}
.af-norma-section .container { padding: 0 var(--gutter); }

.af-norma-section .label { color: var(--green-l); }
.af-norma-title { color: var(--white) !important; }
.af-norma-sub { color: rgba(255,255,255,.45) !important; }

.af-norma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.07);
}
.af-norma-card {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
  border-right: 1px solid rgba(255,255,255,.07);
  transition: background .3s ease-out;
}
.af-norma-card:last-child { border-right: none; }
.af-norma-card:hover { background: rgba(255,255,255,.03); }

.af-norma-code {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 3rem);
  color: rgba(255,255,255,.12);
  line-height: 1;
  margin-bottom: 0.875rem;
}
.af-norma-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(0.9375rem, 0.85rem + 0.2vw, 1.125rem);
  color: var(--white);
  margin-bottom: 0.875rem;
}
.af-norma-desc {
  font-size: clamp(0.8125rem, 0.75rem + 0.1vw, 0.875rem);
  color: rgba(255,255,255,.4);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.af-norma-desc em { color: rgba(255,255,255,.65); font-style: italic; }

.af-norma-implication {
  background: rgba(255,255,255,.04);
  border-left: 2px solid rgba(175,183,175,.25);
  padding: 0.875rem 1rem;
  font-size: clamp(0.75rem, 0.7rem + 0.1vw, 0.8125rem);
  color: rgba(255,255,255,.35);
  line-height: 1.75;
}
.af-norma-impl-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-l);
  margin-bottom: 0.4rem;
}

.af-norma-note {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(0.875rem, 1.5vw, 1.25rem) clamp(1rem, 1.5vw, 1.5rem);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 0.75rem;
  color: rgba(255,255,255,.3);
  line-height: 1.7;
}
.af-norma-note strong { color: var(--green-l); }

/* ── TEASER HOME (usato in index.html) ──────────────────── */
.af-teaser {
  background: var(--green-deep);
  padding: clamp(3.5rem, 6vw, 6rem) var(--gutter);
  position: relative;
  overflow: hidden;
}
.af-teaser-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.af-teaser-label {
  font-family: var(--font-sans);
  font-size: clamp(0.625rem, 0.6rem + 0.15vw, 0.75rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  display: inline-block;
  position: relative;
  padding-left: 1.2ch;
}
.af-teaser-label::before {
  content: '/';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,.45);
  font-weight: 700;
}
.af-teaser-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: clamp(0.875rem, 1.5vw, 1.25rem);
  letter-spacing: -0.01em;
}
.af-teaser-title em {
  font-style: italic;
  color: rgba(255,255,255,.6);
}
.af-teaser-desc {
  font-size: clamp(0.875rem, 0.8rem + 0.15vw, 1rem);
  color: rgba(255,255,255,.55);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 480px;
}
.af-teaser-species {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,.1);
}
.af-teaser-sp {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.875rem, 1.5vw, 1.25rem) clamp(1rem, 1.5vw, 1.5rem);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s ease-out;
}
.af-teaser-sp:last-child { border-bottom: none; }
.af-teaser-sp:hover { background: rgba(255,255,255,.05); }
.af-teaser-sp-icon { font-size: 1.375rem; flex-shrink: 0; }
.af-teaser-sp-body {}
.af-teaser-sp-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(0.875rem, 0.8rem + 0.15vw, 1rem);
  color: var(--white);
  margin-bottom: 0.125rem;
}
.af-teaser-sp-note {
  font-size: 0.6875rem;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
}
.af-teaser-badge {
  margin-left: auto;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-l);
  border: 1px solid rgba(175,183,175,.3);
  padding: 0.25rem 0.625rem;
  flex-shrink: 0;
}

/* Decorazione geometrica sfondo */
.af-teaser::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.af-teaser::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 5%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .af-specie-grid { grid-template-columns: repeat(3, 1fr); }
  .af-specie-card:nth-child(3) { border-right: none; }
  .af-specie-card:nth-child(4),
  .af-specie-card:nth-child(5) { border-top: 1px solid var(--grey); }
  .af-specie-card:nth-child(5) { border-right: none; }
}

@media (max-width: 860px) {
  .af-problema-grid { grid-template-columns: 1fr; }
  .af-problema-panel { position: static; }

  .af-specie-grid { grid-template-columns: repeat(2, 1fr); }
  .af-specie-card { border-right: 1px solid var(--grey); }
  .af-specie-card:nth-child(even) { border-right: none; }
  .af-specie-card:nth-child(n+3) { border-top: 1px solid var(--grey); }

  .af-norma-grid { grid-template-columns: 1fr; }
  .af-norma-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .af-norma-card:last-child { border-bottom: none; }

  .af-teaser-grid { grid-template-columns: 1fr; }

  .af-ww-grid { grid-template-columns: 1fr; }
  .af-ww-img-wrapper { position: static; }
}

@media (max-width: 600px) {
  .af-specie-grid { grid-template-columns: 1fr; }
  .af-specie-card {
    border-right: none !important;
    border-bottom: 1px solid var(--grey);
    border-top: none !important;
  }
  .af-specie-card:first-child { border-top: none; }
  .af-specie-card:last-child { border-bottom: none; }
}
