/* Collaborazioni ParanoBIO — stile ripreso da paranobio.com */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  color: #212121;
  background: #FAF3EF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ---------- Striscia e header ---------- */
.pbh-strip {
  background: #F27B35;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  padding: 9px 16px;
}
.pbh-strip span + span::before { content: '·'; margin: 0 12px; opacity: .7; }
.pbh { background: #FAF3EF; border-bottom: 1px solid #EADFD8; }
.pbh__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pbh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #4A2E26; }
.pbh-brand img { width: 56px; height: 56px; display: block; }
.pbh-brand strong { display: block; font-size: 18px; font-weight: 700; line-height: 1.1; }
.pbh-brand small { display: block; font-size: 13px; font-weight: 600; color: #6A9A2F; }
.pbh-nav { display: flex; align-items: center; gap: 24px; }
.pbh-link { color: #212121; font-weight: 600; text-decoration: none; }
.pbh-link:hover, .pbh-link:focus-visible { color: #F27B35; }
.pbh-cta {
  background: #F27B35;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 25px;
  padding: 12px 24px;
  transition: background .2s;
}
.pbh-cta:hover, .pbh-cta:focus-visible { background: #D9621F; }

/* ---------- Piè di pagina ---------- */
.pbf { background: #4A2E26; color: #F5E9E1; }
.pbf__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pbf-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1.3; }
.pbf-brand img { width: 44px; height: 44px; background: #FAF3EF; border-radius: 50%; padding: 3px; }
.pbf-brand small { font-weight: 500; opacity: .8; }
.pbf-links { display: flex; gap: 22px; flex-wrap: wrap; }
.pbf-links a { color: #F5E9E1; font-weight: 600; text-decoration: none; }
.pbf-links a:hover, .pbf-links a:focus-visible { color: #F7A06C; }

@media (max-width: 640px) {
  .pbh-strip span:nth-child(n+2) { display: none; }
  .pbh__inner { min-height: 68px; }
  .pbh-brand img { width: 46px; height: 46px; }
  .pbh-link { display: none; }
  .pbh-cta { padding: 10px 18px; }
}

/* ---------- Pagina del modulo ---------- */

.pbc {
  --pbc-orange: #F27B35;
  --pbc-orange-dark: #D9621F;
  --pbc-orange-soft: #FDE9DC;
  --pbc-cream: #FAF3EF;
  --pbc-paper: #FFFFFF;
  --pbc-ink: #212121;
  --pbc-ink-soft: #5E534C;
  --pbc-line: #EADFD8;
  --pbc-green: #6A9A2F;
  --pbc-green-dark: #2F4A12;
  --pbc-green-soft: #F3F8EC;
  --pbc-error: #C2361B;
  --pbc-radius: 18px;
  --pbc-pill: 25px;

  font-family: 'Quicksand', sans-serif;
  color: var(--pbc-ink);
  font-size: 16px;
  line-height: 1.55;
  background: var(--pbc-cream);
    padding-bottom: 72px;
}
.pbc *, .pbc *::before, .pbc *::after { box-sizing: border-box; }
.pbc a { color: var(--pbc-orange-dark); }

/* ---------- Bottoni ---------- */
.pbc .pbc-btn {
  display: inline-block;
  background: var(--pbc-orange);
  color: #fff;
  font: 700 16px/1 'Quicksand', sans-serif;
  padding: 15px 30px;
  border: 0;
  border-radius: var(--pbc-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.pbc .pbc-btn:hover, .pbc .pbc-btn:focus-visible { background: var(--pbc-orange-dark); color: #fff; text-decoration: none; }
.pbc .pbc-btn:active { transform: translateY(1px); }
.pbc .pbc-btn--lg { padding: 18px 40px; font-size: 17px; }
.pbc .pbc-btn--ghost { background: transparent; color: var(--pbc-orange-dark); box-shadow: inset 0 0 0 2px var(--pbc-orange); }
.pbc .pbc-btn--ghost:hover { background: var(--pbc-orange); color: #fff; }
.pbc .pbc-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.pbc-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 72px 24px;
  background:
    linear-gradient(90deg, rgba(20,12,6,.82) 0%, rgba(20,12,6,.55) 45%, rgba(20,12,6,.1) 100%),
    url('/img/hero.jpg') center / cover no-repeat;
  color: #fff;
}
.pbc-hero__inner { width: 100%; max-width: 1100px; margin: 0 auto; }
.pbc-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--pbc-green);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--pbc-pill);
  margin-bottom: 18px;
}
.pbc .pbc-hero__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 620px;
  color: #fff;
}
.pbc-hero__title span { color: var(--pbc-orange); }
.pbc-hero__lead { font-size: 18px; font-weight: 500; max-width: 520px; margin: 0 0 30px; color: rgba(255,255,255,.9); }

/* ---------- Vantaggi ---------- */
.pbc-perks {
  max-width: 1000px;
  margin: -44px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
.pbc-perk {
  background: var(--pbc-paper);
  border-radius: var(--pbc-radius);
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(90,50,20,.08);
}
.pbc-perk strong { display: block; color: var(--pbc-orange); font-size: 18px; margin-bottom: 4px; }
.pbc-perk span { color: var(--pbc-ink-soft); font-size: 15px; }

/* ---------- Form ---------- */
.pbc-form { max-width: 860px; margin: 48px auto 0; padding: 0 16px; }
.pbc .pbc-card {
  background: var(--pbc-paper);
  border: 0;
  border-radius: var(--pbc-radius);
  padding: 30px 32px 32px;
  margin: 0 0 20px;
  min-width: 0;
  box-shadow: 0 2px 0 var(--pbc-line);
}
.pbc .pbc-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  float: left;            /* fa stare la legend dentro il padding del fieldset */
  width: 100%;
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--pbc-ink);
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.pbc .pbc-card__head + * { clear: both; }
.pbc-step {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pbc-orange-soft);
  color: var(--pbc-orange-dark);
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pbc-hint { margin: -6px 0 16px; color: var(--pbc-ink-soft); font-size: 15px; }
.pbc-opt { font-weight: 500; color: var(--pbc-ink-soft); }
.pbc-subhead { clear: both; font-weight: 700; margin: 26px 0 12px; }

.pbc-grid { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.pbc-field { display: flex; flex-direction: column; gap: 6px; }
.pbc-field--wide { grid-column: 1 / -1; }
.pbc-card > .pbc-field { margin-top: 20px; }

.pbc .pbc-field label { font-weight: 600; font-size: 15px; margin: 0; }
.pbc .pbc-field input,
.pbc .pbc-field select,
.pbc .pbc-field textarea {
  width: 100%;
  font: 500 16px/1.4 'Quicksand', sans-serif;
  color: var(--pbc-ink);
  background: var(--pbc-cream);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  height: auto;
  box-shadow: none;
  transition: border-color .15s, background .15s;
}
.pbc .pbc-field textarea { resize: vertical; min-height: 110px; }
.pbc .pbc-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235E534C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.pbc .pbc-field input::placeholder, .pbc .pbc-field textarea::placeholder { color: #A69990; }
.pbc .pbc-field input:focus,
.pbc .pbc-field select:focus,
.pbc .pbc-field textarea:focus { outline: 0; background: #fff; border-color: var(--pbc-orange); }
.pbc .pbc-invalid input, .pbc .pbc-invalid select { border-color: var(--pbc-error); background: #fff; }

.pbc-error { clear: both; color: var(--pbc-error); font-weight: 600; font-size: 14px; margin: 12px 0 0; }

/* ---------- Prodotti ---------- */
.pbc-products {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pbc .pbc-product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pbc-cream);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow .15s, transform .15s;
}
.pbc .pbc-product:hover { transform: translateY(-2px); }
.pbc-product input { position: absolute; opacity: 0; pointer-events: none; }
.pbc-product__img { display: block; aspect-ratio: 4 / 3; background: #EFE4DC; }
.pbc-product__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbc-product__name { font-weight: 700; padding: 10px 12px 12px; line-height: 1.25; }
.pbc-product::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 2px var(--pbc-line);
}
.pbc .pbc-product:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--pbc-orange); background: var(--pbc-orange-soft); }
.pbc-product:has(input:checked)::after {
  background: var(--pbc-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  box-shadow: none;
}
.pbc-product:has(input:focus-visible) { outline: 3px solid var(--pbc-orange); outline-offset: 2px; }

/* ---------- Chip contenuti ---------- */
.pbc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pbc .pbc-chip { margin: 0; cursor: pointer; font-weight: 600; }
.pbc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pbc-chip span {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--pbc-pill);
  background: var(--pbc-cream);
  font-size: 15px;
  transition: background .15s, color .15s;
}
.pbc-chip input:checked + span { background: var(--pbc-green); color: #fff; }
.pbc-chip input:focus-visible + span { outline: 3px solid var(--pbc-green); outline-offset: 2px; }

/* ---------- Consensi ---------- */
.pbc .pbc-check {
  clear: both;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  margin: 0 0 14px;
  cursor: pointer;
}
.pbc .pbc-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--pbc-orange); }

.pbc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pbc-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.pbc-status { margin: 0; font-weight: 600; color: var(--pbc-ink-soft); }
.pbc-status.is-error { color: var(--pbc-error); }

/* ---------- Nota prima della conferma ---------- */
.pbc-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--pbc-green-soft);
  border-left: 4px solid var(--pbc-green);
  border-radius: var(--pbc-radius);
  padding: 22px 26px;
  margin: 0 0 20px;
}
.pbc-note__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--pbc-green);
  display: flex; align-items: center; justify-content: center;
}
.pbc .pbc-note h3 { font-size: 18px; font-weight: 700; color: var(--pbc-green-dark); margin: 6px 0 8px; }
.pbc-note p { margin: 0 0 8px; color: var(--pbc-ink); font-size: 15px; }
.pbc-note p:last-child { margin-bottom: 0; }

/* ---------- Grazie ---------- */
.pbc-thanks {
  max-width: 640px;
  margin: 48px auto 0;
  padding: 48px 32px;
  background: var(--pbc-paper);
  border-radius: var(--pbc-radius);
  text-align: center;
  outline: 0;
}
.pbc-thanks__icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--pbc-green-soft);
  color: var(--pbc-green);
  display: flex; align-items: center; justify-content: center;
}
.pbc .pbc-thanks h2 { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 28px; margin: 0 0 10px; color: var(--pbc-ink); }
.pbc-thanks p { color: var(--pbc-ink-soft); margin: 0 auto 26px; max-width: 460px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pbc-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .pbc-hero { min-height: 420px; padding: 56px 16px 80px; background-position: 70% center; }
  .pbc-hero__lead { font-size: 16px; }
  .pbc-perks { grid-template-columns: 1fr; gap: 10px; }
  .pbc-perk { padding: 16px 18px; }
  .pbc-grid { grid-template-columns: 1fr; }
  .pbc .pbc-card { padding: 22px 18px 24px; }
  .pbc .pbc-card__head { font-size: 20px; }
  .pbc-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pbc .pbc-btn--lg { width: 100%; text-align: center; }
}

/* ---------- Pagina non trovata ---------- */

.pbe {
  --pbe-orange: #F27B35;
  --pbe-orange-dark: #D9621F;
  --pbe-ink: #212121;
  --pbe-ink-soft: #5E534C;
  --pbe-green: #6A9A2F;

    min-height: calc(100vh - 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
  background:
    linear-gradient(rgba(250,243,239,.88), rgba(250,243,239,.94)),
    url('/img/sfondo-404.jpg') center / cover no-repeat;
  color: var(--pbe-ink);
}
.pbe, .pbe * { box-sizing: border-box; }

.pbe-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px 40px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(90,50,20,.12);
}
.pbe-logo { display: block; width: 88px; height: 88px; margin: 0 auto 18px; }
.pbe-code {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--pbe-green);
  color: #fff;
  padding: 6px 14px;
  border-radius: 25px;
  margin-bottom: 16px;
}
.pbe .pbe-title {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--pbe-ink);
}
.pbe-title span { color: var(--pbe-orange); }
.pbe .pbe-text { font-size: 17px; font-weight: 500; line-height: 1.55; color: var(--pbe-ink-soft); margin: 0 0 28px; }

.pbe-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pbe .pbe-btn {
  display: inline-block;
  background: var(--pbe-orange);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 25px;
  text-decoration: none;
  transition: background .2s;
}
.pbe .pbe-btn:hover, .pbe .pbe-btn:focus-visible { background: var(--pbe-orange-dark); color: #fff; text-decoration: none; }
.pbe .pbe-btn--ghost { background: transparent; color: var(--pbe-orange-dark); box-shadow: inset 0 0 0 2px var(--pbe-orange); }
.pbe .pbe-btn--ghost:hover, .pbe .pbe-btn--ghost:focus-visible { background: var(--pbe-orange); color: #fff; }

@media (max-width: 640px) {
  .pbe { padding: 32px 16px; align-items: flex-start; }
  .pbe-card { padding: 32px 22px 28px; }
  .pbe .pbe-text { font-size: 16px; }
  .pbe .pbe-btn { width: 100%; text-align: center; }
}
