/* ══════════════════════════════════════════════════
   FITEXPRESS — CONTATTI  |  CF7 + Tab laterali
   ══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.fxc { font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }

/* ── HERO ── */
.fxc-hero {
  background: #000;
  padding: calc(108px + 3.5rem) 6vw 3.5rem;
  margin-top: -108px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.fxc-hero::before {
  content: ''; position: absolute;
  top: 40%; left: 50%; transform: translate(-50%,-50%);
  width: 80vw; height: 50vw;
  background: radial-gradient(circle, rgba(245,196,0,.12) 0%, transparent 60%);
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.fxc-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4; pointer-events: none; z-index: 0;
}
.fxc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .6rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,214,0,.7); border: 1px solid rgba(255,214,0,.15);
  border-radius: 50px; padding: .5rem 1.25rem; margin-bottom: 1.25rem;
  position: relative; z-index: 1;
  backdrop-filter: blur(8px); background: rgba(255,214,0,.04);
  animation: fxcUp .8s cubic-bezier(.16,1,.3,1) both;
}
.fxc-hero__eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: #FFD600; border-radius: 50%;
  animation: fxcPulse 2s infinite;
}
@keyframes fxcPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
@keyframes fxcUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.fxc-hero__h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 900;
  line-height: 1.08; color: #fff; letter-spacing: -.04em;
  margin-bottom: .4em; position: relative; z-index: 1;
  animation: fxcUp .9s .1s cubic-bezier(.16,1,.3,1) both;
}
.fxc-hero__h1 em { font-style: normal; color: #FFD600; display: block; line-height: 1.05; }
.fxc-hero__sub {
  font-size: 1rem; color: rgba(255,255,255,.45);
  max-width: 44ch; line-height: 1.75; letter-spacing: .01em;
  position: relative; z-index: 1;
  animation: fxcUp .9s .2s cubic-bezier(.16,1,.3,1) both;
}

/* ── LAYOUT PRINCIPALE ── */
.fxc-body {
  background: #F5F5F7;
  padding: 3.5rem 4vw 5rem;
  min-height: 70vh;
}
.fxc-layout {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── SIDEBAR TAB ── */
.fxc-sidebar {
  position: sticky;
  top: calc(72px + 1.5rem);
  background: #fff;
  border-radius: 18px;
  border: 1px solid #E5E5EA;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.fxc-sidebar__title {
  padding: 1rem 1.25rem .75rem;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #adb5bd; border-bottom: 1px solid #F0F0F0;
}
.fxc-tab-btn {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; padding: .9rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: .925rem; font-weight: 500; color: #6b7280;
  background: none; border: none; border-left: 3px solid transparent;
  cursor: pointer; text-align: left;
  transition: all .2s; -webkit-appearance: none;
}
.fxc-tab-btn + .fxc-tab-btn { border-top: 1px solid #F7F7F9; }
.fxc-tab-btn svg { flex-shrink: 0; transition: color .2s; }
.fxc-tab-btn:hover { color: #111; background: #FAFAFA; }
.fxc-tab-btn.active {
  color: #111; font-weight: 700;
  background: #FFFBEB;
  border-left-color: #FFD600;
}
.fxc-tab-btn.active svg { color: #FFD600; }

/* Info azienda sotto i tab */
.fxc-sidebar__info {
  padding: 1rem 1.25rem;
  border-top: 1px solid #F0F0F0;
}
.fxc-sidebar__info-row {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: #8E8E93;
  text-decoration: none; transition: color .2s;
  margin-bottom: .5rem;
}
.fxc-sidebar__info-row:last-child { margin-bottom: 0; }
.fxc-sidebar__info-row:hover { color: #111; }
.fxc-sidebar__info-row svg { color: #FFD600; flex-shrink: 0; }

/* ── PANEL ── */
.fxc-panel { display: none; }
.fxc-panel.active { display: block; }

/* Panel header */
.fxc-panel__head {
  margin-bottom: 1.75rem;
}
.fxc-panel__tag {
  font-size: .65rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #6b7280;
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .75rem;
}
.fxc-panel__tag::before { content:''; width:1.5rem; height:2px; background:#FFD600; border-radius:2px; }
.fxc-panel__h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900; letter-spacing: -.04em;
  line-height: 1.08; color: #111; margin-bottom: .75rem;
}
.fxc-panel__h2 em { font-style:normal; color: #FFD600; }
.fxc-panel__desc { font-size: .975rem; font-weight: 300; color: #8E8E93; line-height: 1.75; max-width: 54ch; }

/* ── FORM CARD ── */
.fxc-card {
  background: #fff; border: 1px solid #E5E5EA;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.05);
}
.fxc-card__section { padding: 1.35rem 1.75rem 1.5rem; border-bottom: 1px solid #F0F0F0; }
.fxc-card__section:last-of-type { border-bottom: none; }
.fxc-card__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #374151; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .75rem;
}
.fxc-card__label::after { content:''; flex:1; height:1px; background:#EBEBEB; }

/* Grid & Fields */
.fxc-grid { display: grid; gap: 1.2rem; }
.fxc-grid--2 { grid-template-columns: 1fr 1fr; }
.fxc-grid--3 { grid-template-columns: 2fr 1fr 1fr; }

/* ── CF7 FIELD OVERRIDES ── */
.fxc-card .wpcf7-form-control-wrap { display: block; }
/* Reset tutti i <p> generati da CF7 */
.fxc-card p,
.fxc-card .wpcf7 p,
.fxc-card form > p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1;
}

.fxc-field {
  display: flex;
  flex-direction: column;
  gap: .22rem;        /* label → input: vicinissimi */
}
.fxc-field > span.fxc-label,
.fxc-card .fxc-label {
  font-size: .8rem; font-weight: 500;
  color: #374151; text-transform: none; letter-spacing: 0;
  display: block; margin-bottom: 0;
}
.fxc-field > span.fxc-label .req,
.fxc-card .fxc-label .req { color: #FFD600; margin-left: .15rem; }
.fxc-label .req { color: #FFD600; margin-left: .1rem; }

/* Tutti gli input CF7 */
.fxc-card .wpcf7-text,
.fxc-card .wpcf7-email,
.fxc-card .wpcf7-tel,
.fxc-card .wpcf7-date,
.fxc-card .wpcf7-textarea,
.fxc-card .wpcf7-select,
.fxc-card input[type="text"],
.fxc-card input[type="email"],
.fxc-card input[type="tel"],
.fxc-card input[type="date"],
.fxc-card textarea,
.fxc-card select {
  width: 100%; padding: .78rem .95rem;
  font-family: 'Poppins', sans-serif;
  font-size: .925rem; font-weight: 400; color: #111;
  background: #F7F7F9; border: 1.5px solid #E8E8EE;
  border-radius: 10px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
  line-height: 1.5;
}
.fxc-card input::placeholder,
.fxc-card textarea::placeholder { color: #9ca3af; font-weight: 300; font-size: .925rem; }
.fxc-card input:focus,
.fxc-card textarea:focus,
.fxc-card select:focus {
  border-color: #FFD600; background: #fff;
  box-shadow: 0 0 0 3px rgba(255,214,0,.12);
}
.fxc-card textarea { min-height: 100px; resize: vertical; }
.fxc-card select {
  cursor: pointer; color: #374151;
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem;
}

/* CF7 radio & checkbox */
.fxc-card .wpcf7-radio,
.fxc-card .wpcf7-checkbox {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .15rem;
}
.fxc-card .wpcf7-radio .wpcf7-list-item,
.fxc-card .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.fxc-card .wpcf7-radio .wpcf7-list-item label,
.fxc-card .wpcf7-checkbox .wpcf7-list-item label {
  display: inline-flex; align-items: center;
  padding: .45rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem; font-weight: 500; color: #6b7280;
  border: 1.5px solid #E8E8EE; border-radius: 50px;
  background: #F7F7F9; cursor: pointer;
  transition: all .2s;
}
/* radio/checkbox: nascosto visivamente ma presente nel DOM (display:none blocca
   il click in combinazione con il plugin Conditional Fields) */
.fxc-card .wpcf7-radio .wpcf7-list-item input,
.fxc-card .wpcf7-checkbox .wpcf7-list-item input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
/* pill checked — gestito via JS (classe .fxc-radio-checked su .wpcf7-list-item) */
.fxc-card .wpcf7-radio .wpcf7-list-item.fxc-radio-checked label,
.fxc-card .wpcf7-checkbox .wpcf7-list-item.fxc-radio-checked label {
  background: #FFD600; color: #000; border-color: #FFD600; font-weight: 700;
}
/* fallback CSS puro per browser/strutture dove il label avvolge l'input */
.fxc-card .wpcf7-radio .wpcf7-list-item label:has(input:checked),
.fxc-card .wpcf7-checkbox .wpcf7-list-item label:has(input:checked) {
  background: #FFD600; color: #000; border-color: #FFD600; font-weight: 700;
}
.fxc-card .wpcf7-radio .wpcf7-list-item input:checked + span,
.fxc-card .wpcf7-checkbox .wpcf7-list-item input:checked + span {
  background: #FFD600; color: #000; border-color: #FFD600; font-weight: 700;
}
.fxc-card .wpcf7-radio .wpcf7-list-item label:hover,
.fxc-card .wpcf7-checkbox .wpcf7-list-item label:hover {
  border-color: #FFD600; color: #111;
}

/* CF7 file upload — stilizzato */
.fxc-upload-wrap {
  display: flex; flex-direction: column; gap: .45rem;
}
/* Nasconde l'input nativo e il suo wrapper */
.fxc-upload-wrap .wpcf7-form-control-wrap,
.fxc-upload-wrap .wpcf7-file {
  display: none !important;
}
/* Area visiva custom */
.fxc-file-area {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem;
  background: #F7F7F9; border: 1.5px dashed #E0E0E8;
  border-radius: 10px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.fxc-file-area:hover { border-color: #FFD600; background: #fff; }
.fxc-file-area svg { color: #FFD600; flex-shrink: 0; }
.fxc-file-area__text {
  font-size: .85rem; font-weight: 600; color: #111; line-height: 1.2;
}
.fxc-file-area__sub {
  font-size: .72rem; color: #adb5bd; margin-top: .1rem;
}
.fxc-file-area.has-file { border-color: #FFD600; background: #fffbeb; }
.fxc-file-area.has-file .fxc-file-area__sub { color: #92400e; font-weight: 500; }

/* CF7 acceptance (privacy) */
.fxc-privacy-wrap {
  padding: 1rem 1.75rem; background: #fffbeb;
  border-top: 1px solid #F0F0F0;
  display: flex; align-items: flex-start; gap: .65rem;
}
.fxc-card .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.fxc-card .wpcf7-acceptance .wpcf7-list-item label {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .8rem; color: #78350f; line-height: 1.55; cursor: pointer;
}
.fxc-card .wpcf7-acceptance input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: #FFD600; cursor: pointer;
}
.fxc-card .wpcf7-acceptance a { color: #111; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* CF7 submit */
.fxc-submit-wrap {
  padding: 1.1rem 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid #F0F0F0; background: #fafafa;
}
.fxc-submit-note {
  font-size: .8rem; color: #9ca3af;
  display: flex; align-items: center; gap: .4rem;
}
.fxc-submit-note svg { color: #16a34a; }
.fxc-card .wpcf7-submit {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  background: #111; color: #FFD600;
  font-family: 'Poppins', sans-serif;
  font-size: .925rem; font-weight: 700;
  border-radius: 50px; border: none; cursor: pointer;
  transition: background .2s, transform .2s; letter-spacing: .01em;
}
.fxc-card .wpcf7-submit:hover { background: #000; transform: translateY(-1px); }
.fxc-card .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* CF7 response messages */
.fxc-card .wpcf7-response-output {
  margin: 0 1.75rem 1rem; padding: .85rem 1.1rem;
  border-radius: 10px; font-size: .82rem; font-weight: 500;
  border: none !important;
}
.fxc-card .wpcf7-mail-sent-ok { background: #f0fdf4; color: #15803d; }
.fxc-card .wpcf7-validation-errors,
.fxc-card .wpcf7-mail-sent-ng { background: #fef2f2; color: #dc2626; }
.fxc-card .wpcf7-not-valid-tip {
  font-size: .72rem; color: #dc2626; margin-top: .2rem; display: block;
}

/* CF7 spinner */
.fxc-card .wpcf7-spinner { margin-left: .5rem; }

/* ── Choices.js override ── */
.fxc-card .choices {
  margin: 0;
}
.fxc-card .choices__inner {
  background: #F7F7F9; border: 1.5px solid #E8E8EE;
  border-radius: 10px; padding: .6rem .95rem;
  font-family: 'Poppins', sans-serif; font-size: .875rem;
  min-height: unset;
}
.fxc-card .choices.is-focused .choices__inner,
.fxc-card .choices.is-open .choices__inner {
  border-color: #FFD600;
  box-shadow: 0 0 0 3px rgba(255,214,0,.12);
  background: #fff;
}
.fxc-card .choices__list--dropdown {
  border: 1.5px solid #E8E8EE; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 9999;
}
.fxc-card .choices__input {
  font-family: 'Poppins', sans-serif; font-size: .9rem;
  background: transparent; padding: .2rem 0;
}
.fxc-card .choices__list--dropdown .choices__item--highlighted {
  background: #FFD600; color: #000;
}
.fxc-card .choices__placeholder { color: #c0c0c8; }

/* ── CTA tab button (Abbonati subito) ── */
.fxc-tab-btn--cta {
  color: #92400e;
  background: #fffbeb;
  border-left-color: #FFD600;
  font-weight: 700;
}
.fxc-tab-btn--cta svg { color: #FFD600; }
.fxc-tab-btn--cta:hover { background: #fff8d6; color: #78350f; }
.fxc-tab-btn--cta.active { background: #FFD600; color: #000; border-left-color: #e6b800; }
.fxc-tab-btn--cta.active svg { color: #000; }

/* ── CHOICE GRID (panel acquista) ── */
.fxc-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.fxc-choice-card {
  background: #fff;
  border: 1.5px solid #E5E5EA;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: .9rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .2s;
}
.fxc-choice-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.09); transform: translateY(-2px); }
.fxc-choice-card--primary {
  background: #111;
  border-color: #111;
  color: #fff;
}
.fxc-choice-card--primary:hover { box-shadow: 0 8px 32px rgba(0,0,0,.22); }
.fxc-choice-card__icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fxc-choice-card__icon--light { background: #F5F5F7; color: #111; }
.fxc-choice-card__icon--dark  { background: #FFD600; color: #000; }
.fxc-choice-card__icon--dark svg { stroke: #000; }
.fxc-choice-card__h3 {
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1;
  color: inherit;
}
.fxc-choice-card--primary .fxc-choice-card__h3 { color: #fff; }
.fxc-choice-card__p {
  font-size: .9rem; font-weight: 300; line-height: 1.65;
  color: #6b7280; flex: 1;
}
.fxc-choice-card--primary .fxc-choice-card__p { color: rgba(255,255,255,.55); }
.fxc-choice-card__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem; font-weight: 700;
  border-radius: 50px; cursor: pointer;
  text-decoration: none; transition: all .2s;
  align-self: flex-start;
}
.fxc-choice-card__btn--outline {
  background: transparent;
  border: 2px solid #E5E5EA;
  color: #111;
}
.fxc-choice-card__btn--outline:hover {
  border-color: #111; background: #111; color: #fff;
}
.fxc-choice-card__btn--primary {
  background: #FFD600; color: #000;
  border: 2px solid #FFD600;
  box-shadow: 0 4px 20px rgba(255,214,0,.3);
}
.fxc-choice-card__btn--primary:hover {
  background: #F0C800; border-color: #F0C800; transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,214,0,.4);
}

/* ── Franchising panel ── */
.fxc-fran-card {
  background: #fff; border-radius: 20px;
  border: 1px solid #E5E5EA;
  box-shadow: 0 4px 32px rgba(0,0,0,.05);
  padding: 3rem 2.5rem; text-align: center;
  max-width: 640px;
}
.fxc-fran-card__icon {
  width: 60px; height: 60px; background: #FFD600;
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1.5rem;
}
.fxc-fran-card__h2 {
  font-size: 1.5rem; font-weight: 900;
  letter-spacing: -.03em; color: #111; margin-bottom: .75rem;
}
.fxc-fran-card__p {
  font-size: .9rem; color: #8E8E93; line-height: 1.7;
  max-width: 38ch; margin: 0 auto 2rem;
}
.fxc-fran-card__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem; background: #FFD600; color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem; font-weight: 700; border-radius: 50px;
  text-decoration: none; transition: background .2s, transform .2s;
  box-shadow: 0 0 40px rgba(255,214,0,.3);
}
.fxc-fran-card__btn:hover { background: #F0C800; transform: translateY(-2px); }

/* Provincia — larghezza ridotta */
.fxc-card input[name="provincia"] {
  max-width: 80px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .fxc-layout { grid-template-columns: 220px 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .fxc-hero { padding: calc(72px + 2rem) 1.25rem 2.5rem; margin-top: -72px; align-items: flex-start; text-align: left; }
  .fxc-hero__h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .fxc-body { padding: 1.5rem 1rem 3rem; }
  .fxc-layout { grid-template-columns: 1fr; }
  .fxc-sidebar { position: static; display: flex; flex-wrap: wrap; border-radius: 12px; }
  .fxc-sidebar__title { width: 100%; }
  .fxc-tab-btn { flex: 1; min-width: 120px; border-left: none; border-bottom: 3px solid transparent; justify-content: center; padding: .75rem .5rem; font-size: .78rem; }
  .fxc-tab-btn + .fxc-tab-btn { border-top: none; }
  .fxc-tab-btn.active { border-left: none; border-bottom-color: #FFD600; }
  .fxc-tab-btn--cta.active { border-bottom-color: #e6b800; background: #FFD600; color: #000; }
  .fxc-sidebar__info { display: none; }
  .fxc-grid--2 { grid-template-columns: 1fr; }
  .fxc-grid--3 { grid-template-columns: 1fr; }
  .fxc-card__section { padding: 1.1rem; }
  .fxc-submit-wrap { flex-direction: column; align-items: stretch; }
  .fxc-card .wpcf7-submit { justify-content: center; width: 100%; }
  .fxc-fran-card { padding: 2rem 1.25rem; }
  .fxc-choice-grid { grid-template-columns: 1fr; }
  .fxc-choice-card { padding: 1.5rem 1.25rem; }
  .fxc-choice-card__btn { align-self: stretch; justify-content: center; }
}
