/* ============================================
   TIResidenti — Design System
   Swiss Banking Aesthetic — identico TISubentro
   ============================================ */

/* 1. RESET & BASE
-------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* 2. TYPOGRAPHY
-------------------------------------------- */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1e293b;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1e293b;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #1e293b;
}

p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
}

.text-intro {
  font-size: 1.0625rem;
  color: #64748b;
  line-height: 1.7;
}

.text-muted {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* 3. LAYOUT & GRID
-------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.section-bg-light {
  background: #fafbfc;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: block;
}

/* 4. NAVIGAZIONE
-------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #1e293b;
}

.nav-cta {
  background: #1e293b;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border: 2px solid #1e293b;
  font-weight: 500 !important;
  font-size: 0.9375rem;
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  background: transparent !important;
  color: #1e293b !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #1e293b;
}

/* 5. HERO
-------------------------------------------- */
.hero {
  padding: 3.5rem 0 4rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #1e293b;
  color: #ffffff;
  padding: 0.875rem 1.75rem;
  border: 2px solid #1e293b;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: transparent;
  color: #1e293b;
}

.btn-secondary {
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: #1e293b;
}

.hero-verified {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.hero-verified-text {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.hero-verified-text strong {
  color: #475569;
  font-weight: 600;
}

/* Hero stats panel */
.hero-stats-panel {
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
}

.hero-stats-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2rem;
  display: block;
}

.hero-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.hero-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-stat-row:first-of-type {
  padding-top: 0;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.hero-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.hero-stat-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.125rem;
}

.hero-organic-badge {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hero-organic-badge svg {
  flex-shrink: 0;
  color: #475569;
}

.hero-organic-badge span {
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 500;
}

/* 6. NUMERI CONSOLIDATI
-------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #e2e8f0;
}

.stat-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
}

.stat-card:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.stat-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.375rem;
}

/* 7. CANALI
-------------------------------------------- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.channel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  transition: all 0.3s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.channel-icon {
  width: 40px;
  height: 40px;
  color: #475569;
}

.channel-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.channel-handle {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.channel-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.channel-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.channel-metric-label {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.channel-metric-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
}

.channel-audience {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
}

/* 8. LEGENDA METRICHE
-------------------------------------------- */
.metrics-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.metric-def {
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.metric-def-term {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.metric-def-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* 9. QUALITA EDITORIALE
-------------------------------------------- */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.editorial-item {
  padding: 1.75rem;
  border-left: 2px solid #e2e8f0;
  transition: border-color 0.2s ease;
}

.editorial-item:hover {
  border-left-color: #1e293b;
}

.editorial-item svg {
  color: #475569;
  margin-bottom: 1rem;
}

.editorial-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.editorial-item p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* 10. PACCHETTI
-------------------------------------------- */
.packages-intro {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.packages-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.packages-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.package-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.package-card.featured {
  border-color: #1e293b;
  position: relative;
}

.package-featured-label {
  position: absolute;
  top: -1px;
  left: 2rem;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
}

.package-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.package-period {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.package-divider {
  height: 1px;
  background: #e2e8f0;
  margin-bottom: 1.5rem;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  margin-bottom: 2rem;
}

.package-features li {
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.5;
}

.package-features li svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #475569;
}

.package-btn {
  display: block;
  text-align: center;
  padding: 0.875rem 1.75rem;
  background: #1e293b;
  color: #ffffff;
  border: 2px solid #1e293b;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.package-btn:hover {
  background: transparent;
  color: #1e293b;
}

.package-btn.outline {
  background: transparent;
  color: #1e293b;
}

.package-btn.outline:hover {
  background: #1e293b;
  color: #ffffff;
}

.packages-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* 11. FLUSSO ACQUISTO
-------------------------------------------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.flow-step {
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
}

.flow-step:first-child {
  padding-left: 0;
}

.flow-step:last-child {
  padding-right: 0;
}

.flow-step-number {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.flow-connector {
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 1px;
  background: #e2e8f0;
}

.flow-step:last-child .flow-connector {
  display: none;
}

.flow-step h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.flow-step p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* 12. MEDIAKIT DOWNLOAD
-------------------------------------------- */
.mediakit-box {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 3rem 0;
  background: #ffffff;
}

.mediakit-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.mediakit-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.mediakit-text p {
  font-size: 0.9375rem;
  color: #64748b;
}

/* 13. CONTATTI
-------------------------------------------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item svg {
  color: #475569;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-size: 0.9375rem;
  color: #1e293b;
  font-weight: 500;
}

.contact-item-value a:hover {
  text-decoration: underline;
}

.contacts-legal {
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  padding: 2rem;
}

.contacts-legal h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.contacts-legal p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contacts-legal p:last-child {
  margin-bottom: 0;
}

/* 14. FOOTER
-------------------------------------------- */
footer {
  background: #1e293b;
  color: #ffffff;
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-network {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-network a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-network a:hover {
  color: #ffffff;
}

/* 15. RESPONSIVE
-------------------------------------------- */
@media (max-width: 991px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2) {
    border-right: none;
  }

  .stat-card:nth-child(1),
  .stat-card:nth-child(2) {
    border-bottom: 1px solid #e2e8f0;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }

  .metrics-legend {
    grid-template-columns: 1fr;
  }

  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flow-step {
    padding: 0;
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .flow-step-number {
    margin: 0;
    flex-shrink: 0;
  }

  .flow-connector {
    display: none;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .mediakit-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }

  section { padding: 3.5rem 0; }

  .container { padding: 0 1.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 2rem;
  }

  .nav-cta {
    margin: 0.5rem 1.5rem;
    text-align: center;
  }

  nav { position: relative; }

  .nav-mobile-toggle {
    display: block;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
