/* ==========================================================================
   PILLAR PAGE HACCP - HOME STYLE ALIGNMENT
   Namespace: .adifer-haccp-pillar
   File: /wp-content/themes/flatsome-child/CSS/corsi-haccp-pillar.css
   ========================================================================== */

:root {
  --adifer-haccp-red: #d3202a;
  --adifer-haccp-red-hover: #b01a22;
  --adifer-haccp-green: #20864a;
  --adifer-haccp-green-hover: #176b39;
  --adifer-haccp-dark: #102033;
  --adifer-haccp-ink: #0f1f35;
  --adifer-haccp-muted: #52627a;
  --adifer-haccp-light: #f4f7fb;
  --adifer-haccp-border: #dfe6ef;
  --adifer-haccp-white: #ffffff;
  --adifer-haccp-shadow: 0 18px 42px rgba(15, 31, 53, 0.12);
  --adifer-haccp-shadow-soft: 0 10px 26px rgba(15, 31, 53, 0.08);
  --adifer-haccp-radius: 18px;
}

.adifer-haccp-pillar,
.adifer-haccp-pillar * {
  box-sizing: border-box;
}

.adifer-haccp-pillar {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--adifer-haccp-ink);
  font-family: inherit;
}

.adifer-haccp-pillar a {
  text-decoration: none !important;
}

.adifer-haccp-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 0.9rem;
}

.adifer-haccp-breadcrumb a {
  color: #6b7280 !important;
}

.adifer-haccp-breadcrumb a:hover {
  color: var(--adifer-haccp-red) !important;
}

.adifer-haccp-eyebrow,
.adifer-haccp-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.adifer-haccp-kicker {
  background: #ecfdf3;
  color: var(--adifer-haccp-green);
  border-color: rgba(32, 134, 74, 0.16);
}

.adifer-haccp-center {
  display: flex;
  justify-content: center;
}

/* HERO allineata alla home */

.adifer-haccp-hero {
  position: relative;
  min-height: 560px;
  padding: 110px 20px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(15, 27, 45, 0.76), rgba(15, 27, 45, 0.62)),
    url("https://www.assoadifer.com/wp-content/uploads/2026/06/cuoco-cucina-haccp-scaled.jpg") center center / cover no-repeat;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}

.adifer-haccp-hero-content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.adifer-haccp-hero h1 {
  max-width: 1120px;
  margin: 0 auto 22px !important;
  color: #ffffff !important;
  font-size: clamp(2.35rem, 4.9vw, 4rem) !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 18px rgba(0,0,0,0.58);
}

.adifer-haccp-hero-subtitle {
  max-width: 840px;
  margin: 0 auto 34px !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem) !important;
  line-height: 1.6 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.adifer-haccp-hero-actions,
.adifer-haccp-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.adifer-haccp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.adifer-haccp-btn:hover {
  transform: translateY(-2px);
}

.adifer-haccp-btn-primary {
  background: var(--adifer-haccp-red);
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(211, 32, 42, 0.30);
}

.adifer-haccp-btn-primary:hover {
  background: var(--adifer-haccp-red-hover);
  color: #ffffff !important;
}

.adifer-haccp-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(6px);
}

.adifer-haccp-btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  color: #ffffff !important;
}

.adifer-haccp-btn-secondary-dark {
  background: #ffffff;
  color: var(--adifer-haccp-ink) !important;
  border: 1px solid rgba(255,255,255,0.42);
}

.adifer-haccp-btn-secondary-dark:hover {
  color: var(--adifer-haccp-red) !important;
}

.adifer-haccp-trust {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.adifer-haccp-trust span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

/* Sezioni base */

.adifer-haccp-answer,
.adifer-haccp-alert,
.adifer-haccp-finder,
.adifer-haccp-catalog,
.adifer-haccp-routing,
.adifer-haccp-education,
.adifer-haccp-method,
.adifer-haccp-lead,
.adifer-haccp-faq,
.adifer-haccp-final {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.adifer-haccp-answer {
  margin-top: 70px;
  padding: 34px;
  border: 1px solid var(--adifer-haccp-border);
  border-radius: var(--adifer-haccp-radius);
  background: #ffffff;
  box-shadow: var(--adifer-haccp-shadow-soft);
  text-align: center;
}

.adifer-haccp-answer h2 {
  margin: 0 0 12px;
  color: var(--adifer-haccp-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 950;
  line-height: 1.12;
}

.adifer-haccp-answer p {
  max-width: 920px;
  margin: 0 auto;
  color: var(--adifer-haccp-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.adifer-haccp-alert {
  margin-top: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  border-radius: var(--adifer-haccp-radius);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  box-shadow: var(--adifer-haccp-shadow-soft);
}

.adifer-haccp-alert-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 950;
}

.adifer-haccp-alert h2 {
  margin: 0 0 8px;
  color: #7c2d12;
  font-size: 1.35rem;
  font-weight: 900;
}

.adifer-haccp-alert p {
  margin: 0;
  color: #7c2d12;
  line-height: 1.65;
}

.adifer-haccp-finder,
.adifer-haccp-catalog,
.adifer-haccp-routing,
.adifer-haccp-education,
.adifer-haccp-method,
.adifer-haccp-lead,
.adifer-haccp-faq,
.adifer-haccp-final {
  margin-top: 86px;
}

.adifer-haccp-section-title {
  max-width: 940px;
  margin: 0 auto 14px !important;
  color: var(--adifer-haccp-ink) !important;
  font-size: clamp(2rem, 3.6vw, 2.8rem) !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em;
  text-align: center;
}

.adifer-haccp-section-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--adifer-haccp-green);
}

.adifer-haccp-section-subtitle {
  max-width: 760px;
  margin: 0 auto 42px;
  color: var(--adifer-haccp-muted);
  font-size: 1.06rem;
  line-height: 1.7;
  text-align: center;
}

/* Finder */

.adifer-haccp-finder {
  width: 100%;
  max-width: none;
  padding: 86px 20px;
  background: #f4f7fb;
}

.adifer-haccp-finder-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--adifer-haccp-border);
  box-shadow: 0 22px 60px rgba(15,31,53,0.10);
  text-align: center;
}

.adifer-haccp-finder-copy h2 {
  margin: 0 0 10px;
  color: var(--adifer-haccp-ink);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: 1.14;
}

.adifer-haccp-finder-copy p {
  max-width: 740px;
  margin: 0 auto;
  color: var(--adifer-haccp-muted);
  line-height: 1.7;
}

.adifer-haccp-finder-form {
  width: min(640px, 100%);
  margin: 10px auto 0;
  display: grid;
  gap: 16px;
}

.adifer-haccp-field {
  text-align: left;
}

.adifer-haccp-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--adifer-haccp-ink);
  font-weight: 900;
}

.adifer-haccp-field select {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--adifer-haccp-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--adifer-haccp-ink);
  font-size: 1rem;
  font-weight: 650;
  box-shadow: none;
}

.adifer-haccp-field select:focus {
  outline: 3px solid rgba(32, 134, 74, 0.18);
  border-color: rgba(32, 134, 74, 0.45);
}

.adifer-haccp-finder-result {
  width: min(760px, 100%);
  margin: 8px auto 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--adifer-haccp-dark);
  color: #ffffff;
  text-align: left;
}

.adifer-haccp-finder-result[hidden] {
  display: none !important;
}

.adifer-haccp-finder-result h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.adifer-haccp-finder-result p {
  margin: 0 0 14px;
  color: #d1d5db;
  line-height: 1.6;
}

.adifer-haccp-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.adifer-haccp-result-meta span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 850;
}

.adifer-haccp-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adifer-haccp-result-link,
.adifer-haccp-result-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
}

.adifer-haccp-result-link {
  background: var(--adifer-haccp-red);
  color: #ffffff !important;
}

.adifer-haccp-result-support {
  background: rgba(255,255,255,0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.18);
}

/* Catalogo in stile card home */

.adifer-haccp-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.adifer-haccp-catalog-card {
  position: relative;
  min-height: 285px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(to top, rgba(15, 27, 45, 0.92) 10%, rgba(15, 27, 45, 0.40) 100%),
    url("https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=900&q=80") center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(15,31,53,0.14);
  transition: transform .28s ease, box-shadow .28s ease;
}

.adifer-haccp-catalog-card:nth-child(2),
.adifer-haccp-catalog-card:nth-child(5),
.adifer-haccp-catalog-card:nth-child(8) {
  background:
    linear-gradient(to top, rgba(15, 27, 45, 0.92) 10%, rgba(15, 27, 45, 0.40) 100%),
    url("https://images.unsplash.com/photo-1600891964599-f61ba0e24092?auto=format&fit=crop&w=900&q=80") center / cover no-repeat;
}

.adifer-haccp-catalog-card:nth-child(3),
.adifer-haccp-catalog-card:nth-child(6),
.adifer-haccp-catalog-card:nth-child(9) {
  background:
    linear-gradient(to top, rgba(15, 27, 45, 0.92) 10%, rgba(15, 27, 45, 0.40) 100%),
    url("https://images.unsplash.com/photo-1551218808-94e220e084d2?auto=format&fit=crop&w=900&q=80") center / cover no-repeat;
}

.adifer-haccp-catalog-card:nth-child(4),
.adifer-haccp-catalog-card:nth-child(7),
.adifer-haccp-catalog-card:nth-child(10) {
  background:
    linear-gradient(to top, rgba(15, 27, 45, 0.92) 10%, rgba(15, 27, 45, 0.40) 100%),
    url("https://images.unsplash.com/photo-1556911220-bff31c812dba?auto=format&fit=crop&w=900&q=80") center / cover no-repeat;
}

.adifer-haccp-catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(15,31,53,0.20);
}

.adifer-haccp-card-badge,
.adifer-haccp-step {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.adifer-haccp-catalog-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.34rem;
  font-weight: 950;
  line-height: 1.16;
  text-shadow: 0 3px 10px rgba(0,0,0,0.55);
}

.adifer-haccp-catalog-card p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.55;
  font-weight: 600;
}

/* Tabelle e card */

.adifer-haccp-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--adifer-haccp-border);
  box-shadow: var(--adifer-haccp-shadow-soft);
}

.adifer-haccp-routing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

.adifer-haccp-routing-table th,
.adifer-haccp-routing-table td {
  padding: 18px;
  border-bottom: 1px solid var(--adifer-haccp-border);
  text-align: left;
  vertical-align: top;
}

.adifer-haccp-routing-table th {
  background: #f9fafb;
  color: var(--adifer-haccp-ink);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.adifer-haccp-routing-table td {
  color: #374151;
  line-height: 1.6;
}

.adifer-haccp-routing-table tr:last-child td {
  border-bottom: 0;
}

.adifer-haccp-columns,
.adifer-haccp-steps {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.adifer-haccp-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.adifer-haccp-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.adifer-haccp-info-card,
.adifer-haccp-method-step {
  padding: 28px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--adifer-haccp-border);
  box-shadow: var(--adifer-haccp-shadow-soft);
}

.adifer-haccp-info-card .adifer-haccp-step {
  background: #ecfdf3;
  color: var(--adifer-haccp-green);
  border-color: rgba(32,134,74,0.16);
}

.adifer-haccp-info-card h3,
.adifer-haccp-method-step h3 {
  margin: 0 0 10px;
  color: var(--adifer-haccp-ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.adifer-haccp-info-card p,
.adifer-haccp-method-step p {
  margin: 0;
  color: var(--adifer-haccp-muted);
  line-height: 1.65;
}

.adifer-haccp-method-step span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--adifer-haccp-green);
  color: #ffffff;
  font-weight: 950;
}

/* CTA e FAQ */

.adifer-haccp-lead {
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: 16px;
  background: var(--adifer-haccp-dark);
  color: #ffffff;
}

.adifer-haccp-lead .adifer-haccp-kicker {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

.adifer-haccp-lead h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: 1.12;
}

.adifer-haccp-lead p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.7;
}

.adifer-haccp-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.adifer-haccp-faq-item {
  border: 1px solid var(--adifer-haccp-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--adifer-haccp-shadow-soft);
  overflow: hidden;
}

.adifer-haccp-faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--adifer-haccp-ink);
  font-weight: 950;
  list-style: none;
}

.adifer-haccp-faq-item summary::-webkit-details-marker {
  display: none;
}

.adifer-haccp-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--adifer-haccp-red);
  font-weight: 950;
}

.adifer-haccp-faq-item[open] summary::after {
  content: "-";
}

.adifer-haccp-faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--adifer-haccp-muted);
  line-height: 1.7;
}

.adifer-haccp-final {
  padding: 52px 24px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #20864a 0%, #176b39 100%);
  color: #ffffff;
  margin-bottom: 80px;
}

.adifer-haccp-final h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 950;
  line-height: 1.12;
}

.adifer-haccp-final p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
}

.adifer-haccp-sticky-cta {
  display: none;
}

.adifer-haccp-pillar a:focus-visible,
.adifer-haccp-pillar summary:focus-visible,
.adifer-haccp-pillar select:focus-visible {
  outline: 3px solid rgba(211,32,42,0.28);
  outline-offset: 3px;
}

/* Responsive */

@media (max-width: 1024px) {
  .adifer-haccp-catalog-grid,
  .adifer-haccp-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adifer-haccp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adifer-haccp-lead {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .adifer-haccp-hero {
    min-height: auto;
    padding: 82px 18px 72px;
  }

  .adifer-haccp-answer,
  .adifer-haccp-alert,
  .adifer-haccp-catalog,
  .adifer-haccp-routing,
  .adifer-haccp-education,
  .adifer-haccp-method,
  .adifer-haccp-lead,
  .adifer-haccp-faq,
  .adifer-haccp-final {
    width: min(100% - 28px, 1180px);
  }

  .adifer-haccp-alert {
    grid-template-columns: 1fr;
  }

  .adifer-haccp-catalog-grid,
  .adifer-haccp-columns,
  .adifer-haccp-steps {
    grid-template-columns: 1fr;
  }

  .adifer-haccp-section-title,
  .adifer-haccp-section-subtitle {
    text-align: left;
  }

  .adifer-haccp-section-title::after {
    margin-left: 0;
  }

  .adifer-haccp-center {
    justify-content: flex-start;
  }

  .adifer-haccp-btn {
    width: 100%;
  }

  .adifer-haccp-trust span {
    width: 100%;
  }

  .adifer-haccp-finder-panel {
    padding: 26px;
  }

  .adifer-haccp-sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 999;
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--adifer-haccp-red);
    color: #ffffff !important;
    font-weight: 950;
    box-shadow: 0 16px 38px rgba(211,32,42,0.28);
  }

  .adifer-haccp-final {
    margin-bottom: 90px;
  }
}