/* ============================================================
   servizi.css
   ============================================================ */

/* PAGE HEADER */
.page-header {
  padding: 52px var(--padding-x) 44px;
  border-bottom: 1.5px solid var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
}

.page-header__title {
  font-family: var(--font-hero);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--black);
}

.page-header__sub {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 380px;
}

/* SELETTORE INTERATTIVO */
.selettore {
  padding: 64px var(--padding-x);
  border-bottom: 1.5px solid var(--black);
}

.selettore__header {
  margin-bottom: 32px;
}

.selettore__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 10px;
}

.selettore__sub {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 540px;
}

.selettore__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1.5px solid var(--black);
}

/* Sinistra — bottoni */
.selettore__left {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selettore__instruction {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 4px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}

.toggle-btn:hover { border-color: var(--black); }

.toggle-btn.active {
  border-color: var(--black);
  background: var(--black);
}

.toggle-btn.active .toggle-btn__label { color: var(--white); }
.toggle-btn.active .toggle-btn__sub   { color: rgba(242,242,240,0.45); }
.toggle-btn.active .toggle-btn__check {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.toggle-btn.superman {
  border-color: var(--red);
  background: var(--red);
}

.toggle-btn.superman .toggle-btn__label { color: var(--white); }
.toggle-btn.superman .toggle-btn__sub   { color: rgba(242,242,240,0.6); }
.toggle-btn.superman .toggle-btn__check {
  background: var(--white);
  border-color: var(--white);
  color: var(--red);
}

.toggle-btn__check {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: transparent;
  transition: all var(--transition);
}

.toggle-btn__text { flex: 1; }

.toggle-btn__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
  display: block;
  line-height: 1.2;
}

.toggle-btn__sub {
  font-size: 0.72rem;
  color: var(--gray-light);
  display: block;
  margin-top: 2px;
}

.toggle-btn__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.35;
}

.toggle-btn.active .toggle-btn__icon,
.toggle-btn.superman .toggle-btn__icon { opacity: 1; }

.reset-btn {
  font-family: var(--font-cta);
  font-size: 0.75rem;
  color: var(--gray-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  transition: color var(--transition);
  margin-top: 4px;
}

.reset-btn:hover { color: var(--red); }

.count-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.count-dot {
  width: 7px;
  height: 7px;
  background: var(--border);
  transition: background var(--transition);
}

.count-dot.on   { background: var(--black); }
.count-dot.over { background: var(--red); }

.count-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-left: 4px;
}

.count-label.warn { color: var(--red); }

/* Destra — risultato */
.selettore__right {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  position: relative;
}

.result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  transition: opacity var(--transition);
  position: absolute;
  inset: 28px;
}

.result-empty.hidden { opacity: 0; pointer-events: none; }

.result-arrow {
  font-size: 1.8rem;
  color: var(--border);
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

.result-hint {
  font-size: 0.78rem;
  color: var(--gray-light);
  text-align: center;
  max-width: 160px;
  line-height: 1.6;
}

.result-box {
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
  display: none;
  flex-direction: column;
}

.result-box.visible {
  opacity: 1;
  transform: translateY(0);
  display: flex;
}

.result-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.result-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--black);
  color: var(--white);
}

.result-tag.missing {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid var(--border);
  text-decoration: line-through;
}

.result-headline {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 10px;
}

.result-headline .acc { color: var(--red); }

.result-body {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 18px;
}

.result-cta {
  font-family: var(--font-cta);
  font-size: 0.82rem;
  background: var(--black);
  color: var(--white);
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background var(--transition);
}

.result-cta:hover { background: var(--red); }
.result-cta.red   { background: var(--red); }
.result-cta.red:hover { background: var(--black); }

/* COMBO */
.combo-section {
  border-bottom: 1.5px solid var(--black);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-left: 1.5px solid var(--black);
  border-right: 1.5px solid var(--black);
}

.combo-item {
  background: var(--white);
  padding: 20px 18px;
  text-align: center;
}

.combo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 10px;
}

.combo-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--black);
  color: var(--white);
}

.combo-tag.off {
  background: var(--border);
  color: var(--gray-light);
}

.combo-tag.red {
  background: var(--red);
  color: var(--white);
}

.combo-result {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.combo-note {
  font-size: 0.72rem;
  color: var(--gray);
  line-height: 1.5;
  font-style: italic;
}

/* PACCHETTI */
.pacchetti-section {
  padding: 64px var(--padding-x);
  border-bottom: 1.5px solid var(--black);
}

.pacchetti-header {
  margin-bottom: 32px;
}

.pacchetti-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--black);
  margin-top: 8px;
}

.pacchetti {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--black);
  border: 1.5px solid var(--black);
}

.pacchetto {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pacchetto--featured { background: var(--red); }
.pacchetto--featured > .label { color: rgba(242,242,240,0.75); }

.pacchetto__name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--black);
}

.pacchetto--featured .pacchetto__name { color: var(--white); }

.pacchetto__sub {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
}

.pacchetto--featured .pacchetto__sub { color: rgba(242,242,240,0.7); }

.pacchetto__divider {
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.pacchetto--featured .pacchetto__divider { background: rgba(242,242,240,0.25); }

.pacchetto__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.pacchetto__list li {
  font-size: 0.8rem;
  color: var(--black);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.pacchetto__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 0.74rem;
}

.pacchetto--featured .pacchetto__list li         { color: var(--white); }
.pacchetto--featured .pacchetto__list li::before { color: rgba(242,242,240,0.8); }

.pacchetto__tempo {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.pacchetto--featured .pacchetto__tempo { color: rgba(242,242,240,0.55); }

.pacchetto__price {
  font-size: 0.85rem;
  color: var(--black);
  font-weight: 500;
}

.pacchetto__price strong {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  margin-top: 2px;
}

.pacchetto--featured .pacchetto__price { color: var(--white); }

.pacchetto .btn {
  margin-top: 4px;
  justify-content: center;
  width: 100%;
}

.pacchetto .btn--ghost {
  border-color: var(--black);
  color: var(--black);
}

.pacchetto .btn--ghost:hover {
  background: var(--black);
  color: var(--white);
}

.pacchetto--featured .btn--white {
  background: var(--white);
  color: var(--red);
  border: none;
}

.pacchetto--featured .btn--white:hover {
  background: var(--black);
  color: var(--white);
}

/* CUSTOM */
.custom-section {
  background: var(--black);
  padding: 52px var(--padding-x);
  border-bottom: 1.5px solid var(--black);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.custom-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.custom-title span { color: var(--red); }

.custom-sub {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.75;
  max-width: 480px;
}

.custom-cta {
  font-family: var(--font-cta);
  font-size: 0.9rem;
  background: var(--red);
  color: var(--white);
  padding: 14px 26px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition);
}

.custom-cta:hover { background: var(--white); color: var(--red); }

/* FAQ */
.faq-section {
  padding: 64px var(--padding-x);
  border-bottom: 1.5px solid var(--black);
}

.faq-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--black);
  margin-top: 8px;
  margin-bottom: 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1.5px solid var(--black);
}

.faq-item {
  background: var(--white);
  padding: 24px 26px;
}

.faq-q {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.faq-q::before {
  content: 'D. ';
  color: var(--red);
}

.faq-a {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.75;
}

/* CTA BOTTOM */
.bottom-cta {
  padding: 64px var(--padding-x);
  border-bottom: 1.5px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.bottom-cta__text {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}

.bottom-cta__text span { color: var(--red); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .page-header      { grid-template-columns: 1fr; gap: 16px; }
  .selettore__wrap  { grid-template-columns: 1fr; }
  .combo-section    { grid-template-columns: 1fr 1fr; }
  .pacchetti        { grid-template-columns: 1fr; }
  .custom-section   { grid-template-columns: 1fr; gap: 24px; }
  .faq-grid         { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-header      { padding: 40px var(--padding-x-mobile) 36px; }
  .selettore        { padding: 48px var(--padding-x-mobile); }
  .pacchetti-section{ padding: 48px var(--padding-x-mobile); }
  .custom-section   { padding: 40px var(--padding-x-mobile); }
  .faq-section      { padding: 48px var(--padding-x-mobile); }
  .bottom-cta {
    padding: 48px var(--padding-x-mobile);
    flex-direction: column;
    align-items: flex-start;
  }
  .combo-section { grid-template-columns: 1fr 1fr; }
}

/* ── SERVIZI EXTRA ── */
.servizi-extra {
  padding: 64px var(--padding-x);
  border-bottom: 1.5px solid var(--black);
}

.servizi-extra__header {
  margin-bottom: 40px;
  max-width: 560px;
}

.servizi-extra__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--black);
  margin-top: 8px;
  margin-bottom: 12px;
}

.servizi-extra__sub {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
}

.servizi-extra__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1.5px solid var(--black);
}

.servizi-extra__item {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition);
}

.servizi-extra__item:hover { background: #efefed; }

.servizi-extra__icon {
  font-size: 1rem;
  color: var(--red);
}

.servizi-extra__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.servizi-extra__desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .servizi-extra__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .servizi-extra { padding: 48px var(--padding-x-mobile); }
  .servizi-extra__grid { grid-template-columns: 1fr; }
}
