/* ============================================================
   DISTILLATORI.COM — Visual Enhancements — Tema Chiaro
   ============================================================ */

/* ── Body sfondo grigio chiaro ── */
body {
  background-color: #f0f2f0;
  color: var(--color-text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Sezioni alternate ── */
.section--alt {
  background-color: #e8ece8;
}

/* ── Label sezione ── */
.section__label {
  color: var(--color-forest);
  background: none;
  padding: 0;
  border: none;
}

/* ── Card prodotto ── */
.card {
  background: #ffffff;
  border: 1px solid rgba(26,140,22,0.12);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(26,140,22,0.2);
}

/* ── Immagine prodotto: sfondo bianco ── */
.card__img-wrap {
  background: #ffffff;
}
.card__img {
  background: #ffffff;
  object-fit: contain;
}

/* ── Testo card ── */
.card__title { color: var(--color-text-primary); }
.card__desc  { color: var(--color-text-muted); }
.card__label { color: var(--color-forest); }

/* ── Stat numbers ── */
.stat-item__number {
  text-shadow: none;
  color: var(--color-forest);
}

/* ── Bottone primario verde vivace ── */
.btn--primary {
  background: var(--color-forest);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(26,140,22,0.3);
}
.btn--primary:hover {
  background: #156612;
  box-shadow: 0 4px 20px rgba(26,140,22,0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ── Bottone secondario ── */
.btn--secondary {
  border-color: var(--color-forest);
  color: var(--color-forest);
  background: transparent;
}
.btn--secondary:hover {
  background: rgba(26,140,22,0.08);
  border-color: #156612;
}

/* ── Trust bar ── */
.trust-bar {
  background: #ffffff;
  border: 1px solid rgba(26,140,22,0.12);
  border-radius: var(--radius-lg);
}
.trust-item__text { color: var(--color-text-primary); }

/* Sezione trust-bar: padding ridotto rispetto alle sezioni standard */
section[aria-label="Certificazioni e riconoscimenti"] {
  padding-block: var(--space-4);
}

/* ── Sezione stat ── */
.stat-item {
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(26,140,22,0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.stat-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: rgba(26,140,22,0.25);
}

/* ── FAQ ── */
.faq-item:hover {
  border-color: rgba(26,140,22,0.3);
}

/* .faq-btn è alias di .faq-question — compatibilità template settore e prodotto */
.faq-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  line-height: 1.4;
}
.faq-btn::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a8c16' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.28s ease;
}
.faq-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.faq-btn:hover {
  color: var(--color-forest);
  background: rgba(26,140,22,0.03);
}
.faq-btn[aria-expanded="true"] {
  color: var(--color-forest);
  background: rgba(26,140,22,0.04);
}
.faq-item:has(.faq-btn[aria-expanded="true"]) {
  border-color: rgba(26,140,22,0.35);
  box-shadow: 0 2px 12px rgba(26,140,22,0.07);
}

/* ── Form inputs ── */
.form-input,
.form-select,
.form-textarea {
  background-color: #ffffff;
  border-color: rgba(26,140,22,0.25);
  color: var(--color-text-primary);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #9aab98; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(26,140,22,0.1);
}

/* ── Specs table ── */
.specs-table tr:nth-child(even) { background: #f7f9f7; }
.specs-table th { color: var(--color-forest); }

/* ── Badge ── */
.badge--atex {
  background: rgba(26,140,22,0.1);
  border-color: rgba(26,140,22,0.4);
  color: var(--color-forest);
  font-weight: 700;
}
.badge--ce {
  background: rgba(26,140,22,0.06);
  border-color: rgba(26,140,22,0.25);
  color: var(--color-forest);
}

/* ── Hero: sfondo grigio chiaro con accento ── */
.hero {
  background: linear-gradient(135deg, #f0f2f0 0%, #e8ece8 100%);
}
.hero__title { color: var(--color-text-primary); }
.hero__subtitle { color: var(--color-text-muted); }

/* ── Immagine hero: sfondo bianco con blend-mode per foto su nero ── */
.hero__img-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(26,140,22,0.12);
  overflow: hidden;
}
.hero__img {
  object-fit: contain !important;
  background: #ffffff !important;
  padding: 16px;
  mix-blend-mode: multiply;
}

/* ── Link nel testo ── */
a:not(.btn):not(.nav-link):not([class*="footer"]):not(.site-logo):not(.card) {
  color: var(--color-forest);
}
a:not(.btn):not(.nav-link):not([class*="footer"]):not(.site-logo):not(.card):hover {
  color: #156612;
}

/* ── Divider ── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,140,22,0.2), transparent);
}

/* ── ROI Calculator ── */
.roi-calculator {
  background: #ffffff;
  border: 1px solid rgba(26,140,22,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 3px;
}

/* ── Selezione testo ── */
::selection {
  background: rgba(26,140,22,0.2);
  color: var(--color-text-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f2f0; }
::-webkit-scrollbar-thumb { background: rgba(26,140,22,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,140,22,0.5); }

/* ── Pill label — rimosso stile decorativo ── */
.pill-label {
  display: inline-block;
  color: var(--color-forest);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.pill-label::before { display: none; }

/* ── Sezione CTA finale ── */
.section--cta {
  background: linear-gradient(135deg, #d8ead8 0%, #e8ece8 100%);
}

/* ── Pilastro card (Perché Tattika) ── */
.pilastro-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: .625rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.pilastro-card:hover {
  border-color: rgba(26,140,22,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.pilastro-card__num {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(26,140,22,0.18);
  line-height: 1;
  letter-spacing: -.02em;
}
.pilastro-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0;
}
.pilastro-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

/* ── Settore link card ── */
.settore-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
  text-decoration: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.settore-link:hover {
  border-color: rgba(26,140,22,0.35);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.settore-link__nome {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  display: block;
}
.settore-link__solventi {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  flex: 1;
}
.settore-link__arrow {
  color: var(--color-forest);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.settore-link:hover .settore-link__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 1.25rem; }
}

/* ── Certificazioni: strip loghi ── */
.cert-logos-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-7) var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid rgba(26,140,22,0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: var(--space-12);
}

.cert-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.cert-logo-item img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(10%);
  transition: filter 0.2s, transform 0.2s;
}

.cert-logo-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.cert-logo-item span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

/* ── Certificazioni: card dettaglio ── */
.cert-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(26,140,22,0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.cert-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  border-color: rgba(26,140,22,0.30);
  transform: translateY(-2px);
}

.cert-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.cert-card__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-card__logo--bg {
  background: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.cert-card__badge {
  flex-shrink: 0;
  font-size: var(--text-sm);
  padding: .4em .9em;
}

.cert-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}

.cert-card__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  flex: 1;
}

.cert-card__norma {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  margin: 0;
}

@media (max-width: 640px) {
  .cert-logos-strip { gap: var(--space-5); }
  .cert-logo-item img { height: 44px; }
}

/* ── Feature cards (sezione vantaggi nelle pagine categoria) ── */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-glow);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-forest);
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.feature-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   SCHEDA TECNICA PRODOTTO
   ══════════════════════════════════════════════════════ */

/* ── Hero prodotto ── */
.prod-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.prod-hero__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  background: #fff;
}

.prod-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1rem;
}

.badge--made {
  background: rgba(26,140,22,0.1);
  border: 1px solid rgba(26,140,22,0.25);
  color: var(--color-forest);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: .25em .75em;
  border-radius: var(--radius-sm);
}

.prod-hero__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin-block: .75rem 1.5rem;
}

/* ── Key specs grid ── */
.prod-keyspecs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
  margin-bottom: 1.75rem;
}

.prod-keyspecs__item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .875rem 1rem;
}

.prod-keyspecs__item dt {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

.prod-keyspecs__item dd {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-forest);
  margin: 0;
  line-height: 1.2;
}

/* ── Descrizione hero ── */
.prod-hero__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ── Solventi compatibili ── */
.prod-solventi {
  margin-bottom: 1.75rem;
}

.prod-solventi__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-bottom: .625rem;
}

.prod-solventi__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

.prod-solventi__tag {
  font-size: var(--text-xs);
  background: rgba(26,140,22,0.06);
  border: 1px solid rgba(26,140,22,0.2);
  color: var(--color-forest);
  padding: .25em .75em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.prod-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

/* ── Tabella specs ── */
.specs-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table tr:hover {
  background: rgba(26,140,22,0.03);
}

.specs-table th,
.specs-table td {
  padding: .875rem 1.25rem;
  font-size: var(--text-sm);
  text-align: left;
  vertical-align: middle;
}

.specs-table th {
  width: 42%;
  font-weight: 600;
  color: var(--color-text-primary);
  background: rgba(26,140,22,0.03);
  border-right: 1px solid var(--color-border);
}

.specs-table td {
  color: var(--color-text-muted);
  font-weight: 400;
}

.specs-table tr:nth-child(even) th {
  background: rgba(26,140,22,0.05);
}

/* ── Vantaggi prodotto ── */
.prod-vantaggi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-10);
}

.prod-vantaggio {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--color-bg-card);
  transition: background 0.18s;
}

.prod-vantaggio:hover {
  background: #f7fbf7;
}

.prod-vantaggio__num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(26,140,22,0.15);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
  letter-spacing: -.03em;
}

.prod-vantaggio__body {
  min-width: 0;
}

.prod-vantaggio__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 .5rem;
  line-height: 1.3;
}

.prod-vantaggio__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── ROI prodotto ── */
.prod-roi {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.prod-roi__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.prod-roi__kpi {
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.prod-roi__kpi:last-child {
  border-right: none;
}

.prod-roi__kpi-value {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
  display: block;
  color: var(--color-text-primary);
}

.prod-roi__kpi--neg .prod-roi__kpi-value { color: #c0392b; }
.prod-roi__kpi--pos .prod-roi__kpi-value { color: var(--color-forest); }

.prod-roi__kpi-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.prod-roi__ammort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: rgba(26,140,22,0.05);
  border-bottom: 1px solid var(--color-border);
}

.prod-roi__ammort-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.prod-roi__ammort-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-forest);
}

.prod-roi__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: 1rem 1.5rem;
  margin: 0;
  line-height: 1.5;
}

/* ── Responsive prodotto ── */
@media (max-width: 860px) {
  .prod-hero__grid {
    grid-template-columns: 1fr;
  }
  .prod-hero__img-wrap {
    max-width: 480px;
    margin-inline: auto;
  }
  .prod-roi__kpis {
    grid-template-columns: 1fr 1fr;
  }
  .prod-roi__kpi:nth-child(2) {
    border-right: none;
  }
  .prod-roi__kpi:nth-child(3) {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 600px) {
  .prod-keyspecs {
    grid-template-columns: 1fr 1fr;
  }
  .prod-vantaggi {
    grid-template-columns: 1fr;
  }
  .prod-roi__kpis {
    grid-template-columns: 1fr 1fr;
  }
  .specs-table th,
  .specs-table td {
    padding: .75rem 1rem;
  }
  .specs-table th {
    width: 48%;
  }
}

/* ── Sezione Valori (chi-siamo.php) ── */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.valore-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  background: var(--color-bg-card);
  transition: background 0.18s;
}
.valore-card:hover {
  background: #f7fbf7;
}

.valore-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,140,22,.08);
  border-radius: var(--radius-md);
  color: var(--color-forest);
}
.valore-card__icon svg {
  width: 20px;
  height: 20px;
}

.valore-card__body {
  min-width: 0;
}
.valore-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 .5rem;
  line-height: 1.3;
}
.valore-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .valori-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .valori-grid {
    grid-template-columns: 1fr;
  }
  .valore-card {
    padding: 1.5rem 1.25rem;
  }
}
