/* =========================================================
   Polline: cobra.css
   "Allevamento di cobra": i chip da toccare, il riquadro del risultato e le card dei cobra.
   Il resto (intestazione, chiusura navy, modulo email) arriva dagli stili inline e da laboratorio.css.
   ========================================================= */

.cb { color: #1A2B4A; }
.cb [hidden] { display: none !important; }
.cb-eyebrow { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,43,74,0.78); }

/* chip da toccare */
.cb-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.cb-chip {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 18px; text-align: left;
  border: 2px solid transparent; border-radius: 22px; background: #FFFFFF; color: #1A2B4A; cursor: pointer;
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.3;
  box-shadow: 0 5px 0 #E8D6C2;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.15s ease, box-shadow 0.15s ease;
}
.cb-chip:hover { transform: translateY(-3px); }
.cb-chip[aria-pressed="true"] { background: #FFF3B8; border-color: #1A2B4A; box-shadow: 0 5px 0 #1A2B4A; }
.cb-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(26,43,74,0.45); background: transparent; transition: background-color 0.15s ease, border-color 0.15s ease; }
.cb-chip[aria-pressed="true"] .cb-dot { background: #1A2B4A; border-color: #1A2B4A; }
.cb-chip-t { min-width: 0; }

/* barra a tutta larghezza con il + che apre la seconda sezione */
.cb-expand {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 12px 14px 12px 24px;
  border: 2px dashed #1A2B4A; border-radius: 22px; background: transparent; color: #1A2B4A; cursor: pointer;
  font: inherit; font-size: 1.1rem; font-weight: 800; text-align: left;
  transition: background-color 0.15s ease, border-style 0.15s ease;
}
.cb-expand:hover { background: #FFFFFF; border-style: solid; }
.cb-plus { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #1A2B4A; color: #FCDE3D; font-size: 1.7rem; line-height: 1; font-weight: 800; transition: transform 0.25s ease; }
.cb-expand:hover .cb-plus { transform: rotate(90deg); }

/* bottone bianco "E quello che premi..." e "Mostra gli altri" */
.cb-more {
  align-self: flex-start; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 999px; background: #FFFFFF; color: #1A2B4A;
  font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; box-shadow: 0 5px 0 #E8D6C2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cb-more:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #E8D6C2; }
.cb-more:active { transform: translateY(4px); box-shadow: 0 1px 0 #E8D6C2; }
.cb-go:disabled { opacity: 0.45; cursor: not-allowed; }
.cb-ghost { background: transparent; cursor: pointer; border: 0; font-size: 1rem; }
.cb-close-b { padding: 16px 28px; border-radius: 999px; background: #FFF6EC; color: #1A2B4A; font-weight: 800; font-size: 1.05rem; }

/* risultato */
.cb-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; border-radius: 32px; background: #C9E4BC; overflow: hidden; }
.cb-count { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: clamp(24px, 4vw, 44px) clamp(28px, 5vw, 64px); background: #FFFFFF; margin: 10px 0 10px 10px; border-radius: 24px; }
.cb-count-l { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; color: rgba(26,43,74,0.82); }
.cb-count-n { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(4.4rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cb-count-u { font-size: 0.34em; letter-spacing: -0.02em; }
.cb-headline { display: flex; align-items: center; margin: 0; padding: clamp(22px, 4vw, 44px) clamp(24px, 4vw, 56px); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
@media (max-width: 640px) {
  .cb-summary { grid-template-columns: minmax(0, 1fr); }
  .cb-count { margin: 10px 10px 0; }
}
.cb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.cb-card { position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: #FFFFFF; box-shadow: 0 5px 0 rgba(26,43,74,0.12); }
.cb-card-top { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 28px) clamp(22px, 3vw, 28px) clamp(30px, 3.4vw, 36px); }
.cb-pill { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #FFFFFF; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.cb-card-t { margin: 4px 0 4px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.04; letter-spacing: -0.03em; }
.cb-label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,43,74,0.72); }
.cb-card-p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: #1A2B4A; text-wrap: pretty; }
/* la freccia sta a cavallo tra le due metà */
.cb-arrow { position: absolute; left: clamp(22px, 3vw, 28px); bottom: 0; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #1A2B4A; color: #FCDE3D; font-size: 1.2rem; font-weight: 800; box-shadow: 0 0 0 4px #FFFFFF; transform: translateY(50%); }
.cb-card-bot { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 30px clamp(22px, 3vw, 28px) clamp(20px, 2.6vw, 24px); }
.cb-label-ok { color: #2F7D5B; }
.cb-check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #2F7D5B; color: #FFFFFF; font-size: 0.7rem; letter-spacing: 0; }
.cb-instead-t { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: #1A2B4A; text-wrap: balance; }
.cb-card-c { margin: auto 0 0; padding-top: 14px; font-size: 0.9rem; line-height: 1.5; color: rgba(26,43,74,0.78); }
.cb-card-c strong { color: #1A2B4A; }
.cb-card-c .lab-ulink { display: block; width: fit-content; margin-top: 6px; font-size: 0.9rem; }

/* il cobra dell'intestazione dondola piano */
@keyframes cb-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.cb-hero { transform-origin: 50% 90%; animation: cb-sway 4.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .cb *, .cb *::before, .cb *::after { animation: none !important; transition: none !important; }
}
