/* FtvConnect 4.0 — Landing (blu / grigi, gradienti) */
:root {
  --blue-950: #0a1628;
  --blue-900: #0f2744;
  --blue-800: #1a3a5c;
  --blue-700: #2563a8;
  --blue-600: #3b82c4;
  --blue-500: #4a9fd4;
  --blue-400: #6eb8e8;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --white: #ffffff;
  --shadow: 0 25px 50px -12px rgba(15, 39, 68, 0.35);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--gray-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  hyphens: auto;
}

/* Background mesh */
.page-bg {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 80% at 0% -20%, rgba(74, 159, 212, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(37, 99, 168, 0.18), transparent 50%),
    linear-gradient(180deg, #e8eef5 0%, #f1f5f9 40%, #e2e8f0 100%);
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, min(92vw, 100% - 2rem));
  margin-inline: auto;
  padding-inline: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.92), rgba(15, 39, 68, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  box-shadow: 0 4px 14px rgba(74, 159, 212, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .nav-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .nav-link {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-actions .btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--white);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(37, 99, 168, 0.45);
}

.btn-primary:hover {
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 99, 168, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
}

.btn-outline-dark {
  background: transparent;
  color: var(--blue-800);
  border: 2px solid var(--blue-600);
}

.btn-outline-dark:hover {
  text-decoration: none;
  background: rgba(37, 99, 168, 0.08);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, var(--blue-950) 0%, var(--blue-900) 35%, var(--blue-800) 70%, #1e4970 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(110, 184, 232, 0.25), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(59, 130, 196, 0.2), transparent 45%);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--blue-400);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--white);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  line-height: 1.58;
  color: rgba(241, 245, 249, 0.9);
  max-width: min(38rem, 100%);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 520px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.75rem;
  }
}

.hero-stat strong {
  display: block;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
}

.hero-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(0.8rem, 2vw, 0.88rem);
  color: rgba(203, 213, 225, 0.88);
  line-height: 1.45;
  max-width: 22rem;
}

/* Hero panel */
.hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(10, 22, 40, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-text {
  font-size: clamp(0.85rem, 2.1vw, 0.95rem);
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.55;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--gray-100), var(--white));
}

.section-dark {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-950));
  color: rgba(226, 232, 240, 0.9);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: min(48rem, 100%);
  margin: 0 auto 2.75rem;
  padding-inline: 0.25rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-950);
}

.section-dark .section-head h2 {
  color: var(--white);
}

.section-head p {
  margin: 0;
  color: var(--gray-600);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  line-height: 1.62;
}

.section-dark .section-head p {
  color: rgba(203, 213, 225, 0.9);
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.65rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(74, 159, 212, 0.35);
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110, 184, 232, 0.35), rgba(37, 99, 168, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.02rem, 2.2vw, 1.12rem);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.3;
}

.card p {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 0.98rem);
  color: var(--gray-600);
  line-height: 1.65;
}

/* Two column block */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.split-visual {
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--blue-800), var(--blue-950));
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-visual h3 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1.25rem;
}

.split-list {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.75;
}

.split-list li {
  margin-bottom: 0.5rem;
}

.split-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--blue-950);
  line-height: 1.2;
}

.split-copy > p {
  margin: 0 0 1.25rem;
  color: var(--gray-600);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--blue-400);
  line-height: 1.1;
}

.stat-box span {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
}

/* Use cases */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 168, 0.12), rgba(110, 184, 232, 0.1));
  border: 1px solid rgba(37, 99, 168, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-800);
}

/* CTA bottom */
.cta-band {
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 50%, #152a45 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(110, 184, 232, 0.2), transparent 55%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 520px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.cta-band .btn-outline-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-band .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.site-footer {
  background: var(--blue-950);
  color: var(--gray-400);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.site-footer strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--blue-400);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.45rem;
  }
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Carousel */
.carousel-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 16px 48px rgba(15, 39, 68, 0.12);
  background: var(--white);
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-slide-inner.slideshow-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 0;
}

@media (min-width: 768px) {
  .carousel-slide-inner.slideshow-row {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    min-height: clamp(260px, 48vh, 460px);
  }
}

.carousel-slide-inner.slideshow-row .slide-photo {
  width: 100%;
  height: 100%;
  min-height: clamp(200px, 38vw, 320px);
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .carousel-slide-inner.slideshow-row .slide-photo {
    min-height: 100%;
    max-height: none;
  }
}

.slide-caption {
  padding: clamp(1.25rem, 4vw, 1.85rem);
  background: linear-gradient(180deg, var(--gray-100), var(--white));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.slide-caption h3 {
  margin: 0;
  font-size: clamp(1.12rem, 3.2vw, 1.42rem);
  font-weight: 800;
  color: var(--blue-950);
  line-height: 1.25;
}

.slide-caption p {
  margin: 0;
  color: var(--gray-600);
  font-size: clamp(0.9rem, 2.3vw, 1.03rem);
  line-height: 1.65;
  max-width: 42rem;
}

/* Blocchi testo lunghi responsive */
.prose-section {
  max-width: min(52rem, 100%);
  margin-inline: auto;
  padding-inline: 0.25rem;
}

.prose-section > p {
  font-size: clamp(0.94rem, 2.1vw, 1.05rem);
  line-height: 1.68;
  color: var(--gray-600);
  margin: 0 0 1.1rem;
}

.prose-two {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .prose-two {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.panel-soft {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3.5vw, 1.65rem);
  box-shadow: 0 4px 18px rgba(15, 39, 68, 0.05);
}

.panel-soft h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.3;
}

.panel-soft p,
.panel-soft li {
  font-size: clamp(0.9rem, 2vw, 0.98rem);
  line-height: 1.65;
  color: var(--gray-600);
}

.panel-soft ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.panel-soft li {
  margin-bottom: 0.4rem;
}

.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--blue-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.carousel-dot[aria-current="true"] {
  background: var(--blue-400);
  transform: scale(1.15);
}

/* Contatti — solo link email */
.contact-section {
  background: linear-gradient(180deg, var(--white), var(--gray-100));
}

.contact-mail-wrap {
  max-width: min(36rem, 100%);
  margin-inline: auto;
  text-align: center;
  padding-inline: 0.25rem;
}

.contact-mail-wrap h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue-950);
}

.contact-mail-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--gray-600);
}

.contact-mail-btn {
  display: inline-flex;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  padding: 0.85rem 1.5rem;
  word-break: break-all;
  text-decoration: none;
}

.contact-mail-btn:hover {
  text-decoration: none;
}
