/* =============================================
   WEBVORIA — Componenti Landing
   (i globali — container, buttons, header, footer,
    sezioni — sono in style.css)
   ============================================= */

/* === HERO === */
.wv-hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  min-height: 500px;
  display: flex;
  align-items: stretch;
}
.wv-hero__overlay {
  width: 100%;
  padding: 120px 0;
  background: var(--wv-hero-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wv-hero__title {
  color: #fff;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.15;
}
.wv-hero__sub {
  color: #f3f4f6;
  font-size: clamp(16px, 2.4vw, 22px);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.65;
}
.wv-hero__sub strong { color: #fff; }

/* === CARDS === */
.wv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.wv-card {
  background: var(--wv-surface-2);
  border: 1px solid var(--wv-line);
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
}
.wv-card--service {
  background: #fff;
  border: none;
  border-top: 4px solid var(--wv-accent);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.wv-card__icon { font-size: 32px; margin-bottom: 16px; }
.wv-card__icon--red { color: #dc2626; }
.wv-card__icon--orange { color: #ea580c; }
.wv-card__icon--dark { color: #991b1b; }
.wv-card__icon--blue { color: var(--wv-accent); }
.wv-card__title { font-size: 20px; font-weight: 700; color: var(--wv-ink-800); margin: 0 0 12px; line-height: 1.3; }
.wv-card__text { font-size: 15px; color: var(--wv-ink-600); line-height: 1.65; margin: 0; }

/* === MID CTA === */
.wv-cta__title { font-size: clamp(22px, 3.5vw, 32px); color: #0369a1; font-weight: 700; margin: 0 0 16px; }
.wv-cta__steps { font-size: 18px; color: var(--wv-ink-900); margin: 0 0 28px; line-height: 1.65; }

/* === GUIDE CTA BOX === */
.wv-section--guide-cta { background: #eef4ff; padding: 28px 0; }
.wv-guide-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-left: 4px solid var(--wv-primary);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.wv-guide-cta i { font-size: 22px; color: var(--wv-primary); flex-shrink: 0; }
.wv-guide-cta p { margin: 0; font-size: 15px; color: var(--wv-ink-800); }
.wv-guide-cta a { color: var(--wv-primary); font-weight: 600; }

/* === FORM SECTION === */
.wv-form__heading { color: #fff; font-size: clamp(24px, 4vw, 38px); font-weight: 700; margin: 0 0 16px; line-height: 1.2; }
.wv-form__sub { color: #cbd5e1; font-size: 18px; max-width: 700px; margin: 0 auto 40px; line-height: 1.65; }
.wv-form__wrapper {
  background: #fff;
  border-radius: var(--wv-radius-lg);
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--wv-shadow-lg);
}

/* === FAQ === */
.faq-section { padding: 80px 0; background: var(--wv-surface-2); }
.faq-section .wv-section__title { color: var(--wv-ink-900); margin-bottom: 48px; }
.wv-faq { max-width: 800px; margin: 0 auto; }
.wv-faq__item {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
  overflow: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.wv-faq__item:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); transform: translateY(-2px); }
.wv-faq__item[open] { border-color: #bae6fd; box-shadow: 0 10px 25px -5px rgba(3,105,161,.15); transform: translateY(0); }
.wv-faq__question {
  padding: 24px 80px 24px 30px;
  font-size: 18px;
  font-weight: 600;
  color: var(--wv-ink-800);
  cursor: pointer;
  position: relative;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  transition: color .2s ease;
}
.wv-faq__question:hover { color: #0369a1; }
.wv-faq__question::-webkit-details-marker { display: none; }
.wv-faq__question::after {
  content: '\f067';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--wv-primary);
  background: #eff6ff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}
.wv-faq__item[open] .wv-faq__question { color: #0369a1; padding-bottom: 16px; }
.wv-faq__item[open] .wv-faq__question::after { content: '\f068'; background: var(--wv-primary); color: #fff; transform: translateY(-50%) rotate(90deg); }
.wv-faq__answer { padding: 0 30px 24px; font-size: 16px; line-height: 1.7; color: var(--wv-ink-600); animation: wv-faq-fade .4s ease-out forwards; }
@keyframes wv-faq-fade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* === BREADCRUMB === */
.wv-breadcrumb { background: #fff; padding: 12px 0; border-bottom: 1px solid var(--wv-line); }
.wv-breadcrumb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--wv-ink-500); }
.wv-breadcrumb__list li { display: flex; align-items: center; }
.wv-breadcrumb__list li + li::before { content: '›'; margin: 0 8px; color: #94a3b8; font-size: 16px; }
.wv-breadcrumb__list a { color: #0369a1; text-decoration: none; }
.wv-breadcrumb__list a:hover { text-decoration: underline; }
.wv-breadcrumb__list li:last-child span { color: var(--wv-ink-800); font-weight: 500; }

/* === RELATED === */
.wv-section--related { background: var(--wv-surface-2); padding: 40px 0; border-top: 1px solid var(--wv-line); }
.wv-related__primary { display: flex; flex-direction: column; gap: 12px; margin: 0 auto 32px; max-width: 800px; }
.wv-related__pillar-link, .wv-related__sibling-link {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: #fff;
  border: 1px solid var(--wv-line); border-radius: 8px;
  text-decoration: none !important; color: var(--wv-ink-800) !important;
  font-size: 15px; transition: all .2s ease;
}
.wv-related__pillar-link:hover, .wv-related__sibling-link:hover { background: #f1f5f9; border-color: #0369a1; box-shadow: 0 2px 8px rgba(3,105,161,.1); }
.wv-related__pillar-link i, .wv-related__sibling-link i { color: #0369a1; font-size: 14px; flex-shrink: 0; }
.wv-related__pillar-link strong, .wv-related__sibling-link strong { color: #0369a1; }
.wv-related__title { font-size: 18px; font-weight: 600; color: var(--wv-ink-600); margin: 0 0 20px; text-align: center; }
.wv-related__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.wv-related__link {
  background: #fff; border: 1px solid var(--wv-line-strong);
  padding: 10px 18px; border-radius: 6px;
  color: #0369a1 !important; font-size: 14px;
  text-decoration: none !important; transition: all .2s ease;
}
.wv-related__link:hover { background: #f1f5f9; border-color: #94a3b8; color: #0284c7 !important; }

/* === LOCAL === */
.wv-section--local { background: #f0f9ff; border-top: 3px solid #0ea5e9; }
.wv-local-content { max-width: 800px; margin: 0 auto; }
.wv-local-content p { font-size: 17px; line-height: 1.8; color: var(--wv-ink-700); margin: 0; }

/* === SOCIAL PROOF === */
.wv-section--proof { background: #fefce8; border-top: 3px solid #eab308; }
.wv-proof-content { max-width: 800px; margin: 0 auto; }
.wv-proof-content p { font-size: 16px; line-height: 1.8; color: var(--wv-ink-700); margin-bottom: 16px; }
.wv-proof-content p:last-child { margin-bottom: 0; }
.wv-proof-content strong { color: var(--wv-ink-800); }

/* === RESPONSIVE (landing) === */
@media (max-width: 960px) {
  .wv-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .wv-hero__overlay { padding: 90px 0; }
}
@media (max-width: 640px) {
  .wv-cards { grid-template-columns: 1fr; gap: 16px; }
  .wv-hero { min-height: auto; }
  .wv-hero__overlay { padding: 60px 0; }
  .wv-form__wrapper { padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .wv-card { padding: 24px 20px; }
  .wv-guide-cta { flex-direction: column; text-align: center; gap: 10px; }
  .wv-related__pillar-link, .wv-related__sibling-link { font-size: 14px; padding: 12px 16px; }
  .wv-breadcrumb__list { font-size: 12px; }
}
@media (max-width: 400px) {
  .wv-hero__overlay { padding: 40px 0; }
}

/* =============================================
   HOMEPAGE
   ============================================= */
.wv-home-hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(59,130,246,.25), transparent 60%),
    linear-gradient(135deg, #0b1626 0%, #13284a 55%, #0e2038 100%);
  color: #fff;
  padding: 96px 0;
}
.wv-home-hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.wv-home-hero__eyebrow {
  display: inline-block;
  background: rgba(59,130,246,.18);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,.35);
  font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .5px;
}
.wv-home-hero__title { color: #fff; font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; line-height: 1.1; margin: 0 0 20px; }
.wv-home-hero__sub { color: #cbd5e1; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.6; margin: 0 auto 32px; max-width: 700px; }
.wv-home-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; justify-content: center; }
.wv-btn--ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.4); padding: 18px 36px; }
.wv-btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff !important; text-decoration: none; transform: translateY(-1px); }
.wv-home-hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.wv-home-hero__points li { color: #e2e8f0; font-size: 15px; }
.wv-home-hero__points i { color: #4ade80; margin-right: 8px; }

.wv-home-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.wv-home-service {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-radius-lg);
  padding: 28px 26px;
  text-decoration: none !important;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.wv-home-service:hover { box-shadow: var(--wv-shadow-lg); transform: translateY(-3px); border-color: #bfdbfe; }
.wv-home-service__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: #eff6ff; color: var(--wv-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.wv-home-service__title { font-size: 19px; font-weight: 700; color: var(--wv-ink-800); margin-bottom: 8px; }
.wv-home-service__text { font-size: 14.5px; color: var(--wv-ink-600); line-height: 1.6; margin-bottom: 16px; }
.wv-home-service__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--wv-primary); }

/* Casi studio */
.wv-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.wv-case {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--wv-line);
  border-top: 4px solid var(--wv-primary);
  border-radius: 12px;
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.wv-case__head { margin-bottom: 18px; }
.wv-case__client { display: block; font-size: 18px; font-weight: 800; color: var(--wv-ink-900); }
.wv-case__tag { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--wv-primary); background: #eff6ff; padding: 3px 10px; border-radius: 20px; }
.wv-case__metric { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--wv-surface-3); }
.wv-case__num { font-size: 38px; font-weight: 800; color: var(--wv-primary); line-height: 1; }
.wv-case__label { font-size: 14px; color: var(--wv-ink-500); font-weight: 600; }
.wv-case__text { font-size: 14.5px; color: var(--wv-ink-600); line-height: 1.65; margin: 0; }

/* Chi siamo */
.wv-about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.wv-about__title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; color: var(--wv-ink-900); margin: 0 0 18px; }
.wv-about__text p { font-size: 16.5px; color: var(--wv-ink-600); line-height: 1.8; margin: 0 0 16px; }
.wv-about__text .wv-btn { margin-top: 8px; }
.wv-about__stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.wv-about__stats li {
  background: var(--wv-surface-2);
  border: 1px solid var(--wv-line);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}
.wv-about__num { display: block; font-size: 30px; font-weight: 800; color: var(--wv-primary); line-height: 1.1; }
.wv-about__lbl { display: block; font-size: 14px; color: var(--wv-ink-600); margin-top: 4px; }

@media (max-width: 860px) {
  .wv-home-services { grid-template-columns: 1fr 1fr; }
  .wv-cases { grid-template-columns: 1fr; }
  .wv-about { grid-template-columns: 1fr; gap: 28px; }
  .wv-about__stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .wv-home-hero { padding: 56px 0; }
  .wv-home-services { grid-template-columns: 1fr; }
  .wv-home-hero__cta { flex-direction: column; align-items: center; }
  .wv-home-hero__cta .wv-btn { width: 100%; max-width: 360px; }
  .wv-home-hero__points { gap: 10px 18px; }
  .wv-about__stats { grid-template-columns: 1fr; gap: 12px; }
  .wv-about__stats li { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 16px 20px; }
  .wv-about__num { font-size: 26px; }
}
