/* =====================================================================
   ZampaGentile · Website v2 — sections (FCC, Metodo, Percorsi, FAQ, Contatti, Footer)
   ===================================================================== */

/* —— Section: Certificazione FCC —— */
.fcc { background: var(--zg-blue-900); color: #fff; }
.fcc .eyebrow { color: var(--zg-orange-400); }
.fcc .eyebrow::before { background: currentColor; }
.fcc h2 { color: #fff; max-width: 22ch; }
.fcc .lead { color: var(--zg-blue-100); max-width: 720px; margin-bottom: 60px; }
.fcc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.fcc-pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px 30px;
  border-radius: 22px;
}
.fcc-pillar .glyph {
  font-family: var(--font-display);
  font-weight: 800; font-size: 38px;
  color: var(--zg-orange-400);
  display: inline-block; margin-bottom: 24px;
  line-height: 1;
}
.fcc-pillar h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; line-height: 1.25;
  margin: 0 0 14px; color: #fff;
}
.fcc-pillar p {
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  color: var(--zg-blue-100); margin: 0;
}
.fcc-pillar p strong { color: #fff; font-weight: 700; }
.fcc-pillar a.link { color: var(--zg-orange-400); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.fcc-bottom {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
  padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.1);
}
.fcc-bottom .verify {
  font-family: var(--font-display); font-weight: 500;
  font-size: 24px; line-height: 1.4; color: rgba(255,255,255,0.92);
}
.fcc-bottom .verify a { color: var(--zg-orange-400); text-decoration: underline; }
.fcc-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex; gap: 18px; align-items: center;
  cursor: pointer; transition: all .2s;
}
.fcc-badge:hover { background: rgba(255,255,255,0.1); }
.fcc-badge--clickable:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 3px; }
.fcc-badge img { width: 84px; height: 84px; flex: none; }
.fcc-badge .text { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--zg-blue-100); }
.fcc-badge .text strong { color: #fff; font-weight: 700; font-size: 14px; }

/* —— Section: Metodo —— */
.method { background: var(--zg-cream); }
.method h2 { max-width: 14ch; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 72px; }
.method-step .num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  color: var(--zg-orange-500);
  letter-spacing: 0.06em;
  display: block; margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(13,27,42,0.15);
}
.method-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.2; letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--zg-blue-900);
}
.method-step h3 em { font-style: italic; font-family: var(--font-body); font-weight: 300; color: var(--zg-orange-500); }
.method-step p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--zg-stone-500); margin: 0;
}

/* ── Method images: prevent white band (using about-photo approach) ── */
.method-step figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3/2;
  background-color: var(--zg-sand);
}
.method-step figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.method-step img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: bottom;
}

/* —— Photo strip —— */
.photo-strip {
  background: var(--zg-cream);
  padding-bottom: 0;
}
.photo-strip-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px;
  height: 480px;
}
.photo-strip figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; height: 480px; background: var(--zg-sand) no-repeat center 20%; background-size: auto 110%; }
.photo-strip figure:hover { transform: scale(1.02); transition: transform .6s ease; }
.photo-strip .credit {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--font-ui); font-size: 11px; color: rgba(255,255,255,0.95);
  background: rgba(13,27,42,0.55); padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.photo-strip .credit a { color: rgba(255,255,255,0.95); text-decoration: underline; }

/* —— Big quote —— */
.bigquote {
  background: var(--zg-cream);
  padding: 140px 0;
  text-align: center;
}
.bigquote blockquote {
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25; letter-spacing: -0.015em;
  margin: 0 auto 24px;
  max-width: 22ch;
  color: var(--zg-blue-900);
  position: relative;
}
.bigquote blockquote::before {
  content: '“';
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 900;
  font-size: 120px;
  line-height: 0.5;
  color: var(--zg-orange-500);
  margin-bottom: 36px;
}
.bigquote .attrib {
  font-family: var(--font-ui); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--zg-orange-500);
}

/* —— Percorsi —— */
.paths { background: #fff; }
.paths h2 em { display: block; }
.paths-list { display: flex; flex-direction: column; gap: 14px; margin-top: 64px; }
.path {
  display: grid;
  grid-template-columns: 360px 1fr auto;
  gap: 56px;
  padding: 32px 0;
  border-top: 1px solid rgba(13,27,42,0.12);
  align-items: center;
  transition: transform .25s ease;
}
.path:last-child { border-bottom: 1px solid rgba(13,27,42,0.12); }
.path:hover { transform: translateX(4px); }
.path-photo {
  position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  background: var(--zg-sand) no-repeat center 20%;
  background-size: auto 110%;
}

.path:hover .path-photo { transform: scale(1.02); transition: transform .5s ease; }
.path-photo .credit {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-ui); font-size: 10px;
  background: rgba(13,27,42,0.6); color: #fff;
  padding: 3px 8px; border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
}
.path-photo .credit a { color: #fff; }
.path-text .tag {
  font-family: var(--font-ui); font-weight: 600;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--zg-orange-500); margin: 0 0 10px;
}
.path-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--zg-blue-900);
}
.path-text p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--zg-stone-500); margin: 0; max-width: 60ch;
}
.path-cta {
  align-self: center;
}

/* —— Testimonianze —— */
.testimonials { background: var(--zg-blue-900); color: #fff; }
.testimonials .eyebrow { color: var(--zg-orange-400); }
.testimonials .eyebrow::before { background: currentColor; }
.testimonials h2 { color: #fff; max-width: 18ch; margin-bottom: 60px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 32px 28px;
}
.testi-stars { color: var(--zg-orange-400); font-size: 14px; letter-spacing: 4px; margin-bottom: 18px; }
.testi-card p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: rgba(255,255,255,0.92); margin: 0 0 24px;
}
.testi-attrib { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.testi-attrib .avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--zg-orange-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.testi-attrib .who {
  font-family: var(--font-ui);
}
.testi-attrib .name { font-weight: 700; font-size: 14px; color: #fff; }
.testi-attrib .dog { font-size: 12px; color: var(--zg-blue-100); margin-top: 2px; }

/* —— FAQ —— */
.faq { background: var(--zg-cream); }
.faq h2 { max-width: 18ch; }
.faq-list { margin-top: 48px; max-width: 880px; }
.faq-item {
  border-top: 1px solid rgba(13,27,42,0.15);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid rgba(13,27,42,0.15); }
.faq-item .q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--zg-blue-900);
}
.faq-item .q .chev {
  flex: none; width: 32px; height: 32px; border-radius: 999px;
  background: rgba(13,27,42,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--zg-orange-500); transition: transform .25s ease, background .15s ease;
  font-size: 14px;
}
.faq-item:hover .q .chev { background: var(--zg-orange-100); }
.faq-item.open .q .chev { transform: rotate(180deg); background: var(--zg-orange-500); color: #fff; }
.faq-item .a {
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--zg-stone-500);
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, margin .25s ease;
}
.faq-item.open .a { max-height: 400px; margin-top: 16px; }

/* —— Copertura —— */
.coverage { background: var(--zg-cream); padding-top: 0; }
.coverage-inner {
  background: var(--zg-blue-900);
  color: #fff;
  border-radius: 28px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.coverage h2 { color: #fff; margin: 0 0 18px; font-size: clamp(28px, 2.6vw, 38px); }
.coverage p { font-family: var(--font-body); font-size: 16px; color: var(--zg-blue-100); margin: 0 0 24px; line-height: 1.6; max-width: 50ch; }
.coverage .eyebrow { color: var(--zg-orange-400); }
.coverage .eyebrow::before { background: currentColor; }
.coverage-cities { display: flex; flex-wrap: wrap; gap: 10px; }
.coverage-city {
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.coverage-city.primary { background: var(--zg-orange-500); border-color: var(--zg-orange-500); }
.coverage-map { aspect-ratio: 1.1; position: relative; }
.coverage-map svg { width: 100%; height: 100%; }

/* —— Contatti —— */
.contact { background: var(--zg-cream); padding-bottom: 80px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
.contact h2 { max-width: 18ch; }
.contact-form {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form .field { margin-bottom: 22px; }
.contact-form label {
  display: block;
  font-family: var(--font-ui); font-weight: 600;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--zg-stone-500); margin-bottom: 8px;
}
.contact-form label .req { color: var(--zg-orange-500); margin-left: 3px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-body); font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(13,27,42,0.15);
  background: #fff; color: var(--zg-blue-900);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--zg-orange-500);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .checkbox {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--font-body); font-size: 13px; color: var(--zg-stone-500);
  line-height: 1.5;
}
.contact-form .checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--zg-orange-500); }
.contact-form .checkbox a { color: var(--zg-orange-500); text-decoration: underline; }
.contact-form .submit-row { display: flex; gap: 16px; align-items: center; margin-top: 30px; }
/* —— Altcha widget styling —— */
.contact-form .field--altcha { margin-bottom: 22px; }
.contact-form altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: 10px;
  --altcha-color-border: var(--zg-stone-200);
  --altcha-color-border-focus: var(--zg-orange-500);
  --altcha-color-base: #fff;
  --altcha-color-text: var(--zg-blue-900);
  --altcha-color-text-secondary: var(--zg-stone-400);
  --altcha-color-checked: var(--zg-orange-500);
  --altcha-color-error-text: #c0392b;
  width: 100%;
}
.contact-form .success {
  background: rgba(47,125,91,0.12);
  border: 1px solid rgba(47,125,91,0.3);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body); font-size: 14px;
  color: #1e5a40;
  margin-top: 20px;
}
.form-feedback {
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body); font-size: 14px;
  margin-top: 20px;
}
.form-feedback--ok {
  background: rgba(47,125,91,0.12);
  border: 1px solid rgba(47,125,91,0.3);
  color: #1e5a40;
}
.form-feedback--err {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  color: #7a1a0f;
}
.form-feedback--err a { color: inherit; text-decoration: underline; }

.contact-aside { padding-top: 16px; }
.contact-aside h3 {
  font-family: var(--font-ui); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--zg-orange-500); margin: 0 0 18px;
}
.contact-aside .channel {
  padding: 22px 0;
  border-bottom: 1px solid rgba(13,27,42,0.1);
}
.contact-aside .channel:last-of-type { border-bottom: 0; }
.contact-aside .channel .lbl { font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zg-stone-500); margin: 0 0 6px; }
.contact-aside .channel a, .contact-aside .channel .val {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--zg-blue-900); text-decoration: none;
  letter-spacing: -0.01em;
}
.contact-aside .channel a:hover { color: var(--zg-orange-500); }

.contact-aside .closing-quote {
  margin-top: 36px;
  padding: 24px;
  background: var(--zg-blue-900); color: #fff;
  border-radius: 18px;
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: 16px; line-height: 1.5;
}
.contact-aside .closing-quote em { color: var(--zg-orange-400); }

/* —— Footer —— */
.footer { background: var(--zg-blue-900); color: var(--zg-blue-100); padding: 80px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img { height: 44px; width: auto; max-width: none; object-fit: contain; display: block; margin-bottom: 18px; }
.footer-brand p {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; color: #fff; margin: 0 0 8px; line-height: 1.4;
}
.footer-brand .tag { font-family: var(--font-body); font-size: 14px; color: var(--zg-blue-100); margin: 0; }
.footer-brand .photo-credit { font-family: var(--font-ui); font-size: 12px; color: var(--zg-blue-100); margin-top: 18px; }
.footer-brand .photo-credit a { color: var(--zg-orange-400); text-decoration: underline; }
.footer-col h4 {
  font-family: var(--font-ui); font-weight: 700;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; font-family: var(--font-body); font-size: 14px; }
.footer-col a { color: var(--zg-blue-100); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--zg-orange-400); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-ui); font-size: 12px; color: rgba(255,255,255,0.6);
}
.footer-bottom .legal { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom .legal strong { color: rgba(255,255,255,0.92); font-weight: 700; letter-spacing: 0.02em; }
.footer-bottom .legal-links a { color: rgba(255,255,255,0.7); margin-left: 16px; }
.footer-bottom a { color: rgba(255,255,255,0.7); margin-left: 16px; }
.footer-bottom a:hover { color: var(--zg-orange-400); }

/* —— Certification badge (in footer) —— */
.footer-col-cert .cert-badge {
  display: flex; gap: 14px; align-items: center;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.footer-col-cert .cert-badge img { width: 64px; height: 64px; flex: none; }
.footer-col-cert .cert-caption { font-family: var(--font-ui); }
.footer-col-cert .cert-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; color: #fff; letter-spacing: 0.01em;
}
.footer-col-cert .cert-norma {
  font-size: 11px; color: var(--zg-blue-100);
  margin-top: 3px; line-height: 1.4;
}

/* —— Reveal on scroll —— */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* =====================================================================
   RESPONSIVE — sections
   ===================================================================== */

/* —— Tablet (≤ 900px) —— */
@media (max-width: 900px) {
  /* FCC */
  .fcc-grid { grid-template-columns: 1fr; gap: 20px; }
  .fcc-bottom { grid-template-columns: 1fr; gap: 32px; }
  .fcc-bottom .verify { font-size: 20px; }

  /* Method */
  .method-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }

  /* Photo strip */
  .photo-strip-inner { grid-template-columns: 1fr 1fr; }
  .photo-strip-inner figure { height: 320px; }
  .photo-strip-inner figure img { height: 320px; }
  .photo-strip-inner figure:last-child { display: none; }

  /* Paths */
  .path { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .path-photo { max-width: 100%; aspect-ratio: 16/9; }
  .path-cta { align-self: flex-start; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Coverage */
  .coverage-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .coverage-map { display: none; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Bigquote */
  .bigquote { padding: 80px 0; }
  .bigquote blockquote { font-size: clamp(22px, 4vw, 34px); }
}

/* —— Mobile (≤ 640px) —— */
@media (max-width: 640px) {
  /* FCC */
  .fcc-pillar { padding: 28px 22px; }
  .fcc-badge { flex-direction: column; text-align: center; }
  .fcc-badge img { width: 64px; height: 64px; }

  /* Photo strip */
  .photo-strip-inner { grid-template-columns: 1fr; }
  .photo-strip-inner figure { height: 260px; }
  .photo-strip-inner figure img { height: 260px; }
  .photo-strip-inner figure:nth-child(n+2) { display: none; }

  /* Paths */
  .paths-list { margin-top: 40px; }
  .path { gap: 16px; }
  .path-text h3 { font-size: 22px; }

  /* Listino (in styles-listino.css) già coperto */

  /* Coverage */
  .coverage-inner { padding: 32px 22px; border-radius: 20px; }
  .coverage-cities { gap: 8px; }
  .coverage-city { font-size: 12px; padding: 7px 13px; }

  /* Contact form */
  .contact-form { padding: 28px 20px; }
  .contact-form .submit-row { flex-direction: column; align-items: stretch; }
  .contact-form .submit-row .btn { width: 100%; justify-content: center; }
  .contact-aside .channel a,
  .contact-aside .channel .val { font-size: 18px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 60px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .footer-bottom .legal-links a:first-child { margin-left: 0; }

  /* FAQ */
  .faq-item .q { font-size: 17px; }

  /* Bigquote */
  .bigquote { padding: 60px 0; }
  .bigquote blockquote::before { font-size: 80px; margin-bottom: 20px; }

  /* Cert modal */
  .cert-modal-head { padding: 24px 20px 16px; }
  .cert-modal-title { font-size: 18px; }
}
