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

:root {
  --primary-80: #004e75;
  --primary-70: #006699;
  --primary-60: #008fd6;
  --btn-primary: #0077ad;
  --neutral-5: #f2f6f8;
  --neutral-3: #f5f8fa;
  --white: #fff;
  --black: #000;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== UTILITIES ===== */
.section-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.section-title {
  font-family: "Cairo", sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 72px;
}

.section-title.center {
  text-align: center;
}

/* ===== GRADIENT BAR ===== */
.gradient-bar {
  display: flex;
  align-items: center;
  width: 100%;
}

.gradient-bar span {
  height: 2px;
  flex: 1 0 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  padding: 12px 16px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--btn-primary);
  color: var(--white);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #006494;
}

.btn-primary.btn-sm {
  padding: 8px 16px;
  min-height: 40px;
}

.btn-white {
  display: inline-flex;
  padding: 12px 16px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--white);
  color: var(--primary-80);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-white:hover {
  opacity: 0.9;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

.header-nav {
  display: flex;
  align-items: center;
  max-width: 1520px;
  margin: 0 auto;
  padding: 12px 40px;
  height: 80px;
}

.header-logo {
  margin-right: auto;
}

.header-logo img {
  height: 35px;
  width: 191px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.header-links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: color 0.2s;
}

.header-links a:hover {
  color: var(--primary-60);
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 31px;
}

.lang-selector,
.footer-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-divider {
  display: block;
  width: 1px;
  height: 24px;
  background: var(--black);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--primary-60);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  background: var(--neutral-5);
  padding: 80px 0 60px;
  overflow: visible;
}

.hero-content {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 760px;
  flex-shrink: 0;
}

.hero-title {
  font-family: "Cairo", sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 44px;
  color: var(--primary-70);
}

.hero-subtitle {
  font-size: 25px;
  font-weight: 400;
  line-height: 32px;
  max-width: 575px;
}

.hero-visual {
  position: relative;
  flex-shrink: 0;
  width: 789px;
  height: 474px;
  margin-top: 40px;
  margin-bottom: -165px;
}

.hero-bg-card {
  position: absolute;
  width: 539px;
  height: 325px;
  border-radius: 24px;
  background: var(--primary-80);
  transform: rotate(14.8deg);
  top: -40px;
  right: -80px;
  background-size: cover;
}

.hero-mockup {
  position: relative;
  width: 789px;
  height: 474px;
  object-fit: cover;
  border-radius: 8px;
  z-index: 1;
}

/* ===== IL VALORE PER L'AZIENDA ===== */
.valore {
  padding: 100px 0 100px;
}

.valore-container {
  display: flex;
  align-items: center;
  gap: 156px;
}

.valore-image {
  flex-shrink: 0;
}

.valore-image img {
  width: 573px;
  height: 363px;
  object-fit: cover;
  border-radius: 8px;
}

.valore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.valore-text .section-title {
  margin-bottom: 0;
}

.valore-subtitle {
  font-family: "Cairo", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin-bottom: 24px;
}

.valore-desc {
  font-family: "Cairo", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

/* ===== PERCHE SCEGLIERLO ===== */
.vantaggi {
  padding: 100px 0;
  background: var(--neutral-3);
}

.vantaggi-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.vantaggi-subtitle {
  font-family: "Cairo", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  margin-top: 4px;
}

.vantaggi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.vantaggio-card {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.25);
  min-height: 358px;
}

.vantaggio-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.vantaggio-icon {
  width: 41px;
  height: 36px;
  object-fit: contain;
}

.vantaggio-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.vantaggio-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* ===== A CHI SI RIVOLGE ===== */
.target {
  padding: 100px 0;
}

.target-layout {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.target-left {
  flex-shrink: 0;
  width: 280px;
}

.target-right {
  display: flex;
  gap: 24px;
  flex: 1;
}

.target-card {
  display: flex;
  flex: 1;
  padding: 32px 52px;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  border-radius: 24px;
  border: 1px solid var(--primary-60);
  background: var(--white);
}

.target-card-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  min-height: 120px;
}

.target-card-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* ===== SEI IL LEGALE RAPPRESENTANTE ===== */
.legale-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.legale-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2108px;
  max-width: calc(100% + 200px);
  height: 486px;
  border-radius: 24px;
  background: var(--primary-80);
  z-index: 0;
}

.legale-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.legale-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.legale-title {
  font-family: "Cairo", sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 60px;
  color: var(--white);
}

.legale-subtitle {
  font-family: "Cairo", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--white);
  max-width: 770px;
}

.legale-desc {
  font-family: "Cairo", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--white);
  max-width: 1108px;
}

/* ===== COME FUNZIONA ===== */
.come-funziona {
  padding: 100px 0;
}

.come-funziona-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 58px;
}

.come-funziona-subtitle {
  font-family: "Cairo", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  max-width: 740px;
}

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.step-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  min-height: 380px;
  padding: 58px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 24px;
  border: 1px solid var(--primary-60);
  background: var(--white);
}

.step-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.step-number-badge {
  width: 63px;
  height: 60px;
  border-radius: 12px;
  background: var(--neutral-5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  font-family: "Cairo", sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 72px;
  color: var(--primary-80);
}

.step-title {
  font-family: "Roboto", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.step-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
}

.faq-layout {
  display: flex;
  align-items: flex-start;
  gap: 81px;
}

.faq-left {
  flex: 1;
  min-width: 0;
}

.faq-left .section-title {
  color: #141b1f;
  white-space: pre-line;
}

.faq-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 874px;
  flex-shrink: 0;
}

.faq-item {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 24px;
  background: var(--neutral-5);
  cursor: pointer;
  transition: background 0.2s;
}

.faq-item-header {
  display: flex;
  align-items: center;
  gap: 68px;
}

.faq-question {
  flex: 1;
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.faq-toggle {
  display: flex;
  width: 55px;
  height: 55px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--white);
}

.faq-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.faq-arrow--down {
  border-top: 14px solid #324148;
  border-bottom: none;
}

.faq-arrow--up {
  border-bottom: 14px solid #324148;
  border-top: none;
}

.faq-answer {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  max-width: 533px;
}

/* ===== BOTTOM CTA BANNER ===== */
.cta-banner {
  padding: 60px 0 0;
  position: relative;
  z-index: 2;
}

.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1006px;
  margin: 0 auto;
  padding: 48px 80px;
  border-radius: 24px;
  background: var(--primary-80);
  text-align: center;
  position: relative;
  margin-bottom: -116px;
}

.cta-text {
  font-family: "Cairo", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--white);
  max-width: 603px;
}

/* ===== FOOTER ===== */
.footer-gradient {
  margin-bottom: 0;
}

.footer-bg {
  background: var(--neutral-5);
  padding: 150px 0 40px;
}

.footer-row-1 {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.footer-logo img {
  height: 35px;
  width: 191px;
}

.footer-legal-top {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.footer-row-2 {
  display: flex;
  align-items: flex-start;
  padding-left: 280px;
}

.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col p {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.footer-link {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .vantaggi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .target-layout {
    flex-direction: column;
    gap: 32px;
  }

  .target-right {
    width: 100%;
  }

  .faq-layout {
    flex-direction: column;
    gap: 32px;
  }

  .faq-left {
    width: 100%;
  }

  .faq-right {
    width: 100%;
  }

  .come-funziona-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .step-card {
    height: auto;
  }
}

@media (max-width: 1024px) {
  .section-title {
    font-size: 42px;
    line-height: 52px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .hero-mockup {
    width: 100%;
    height: auto;
  }

  .hero-bg-card {
    width: 300px;
    height: 200px;
    right: -40px;
    top: -20px;
  }

  .target-right {
    flex-direction: column;
  }

  .valore-container {
    flex-direction: column;
    gap: 40px;
  }

  .valore-image img {
    width: 100%;
    max-width: 573px;
    height: auto;
  }

  .footer-row-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-row-2 {
    flex-direction: column;
    gap: 16px;
    padding-left: 0;
  }

  .legale-title {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 20px;
  }

  .header-nav {
    padding: 12px 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .header-links {
    display: none;
  }

  .section-title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 26px;
  }

  .steps-grid {
    flex-direction: column;
  }

  .step-card {
    padding: 32px;
    height: auto;
  }

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

  .vantaggio-card {
    min-height: auto;
  }

  .vantaggio-title {
    font-size: 24px;
    line-height: 32px;
  }

  .legale-title {
    font-size: 28px;
    line-height: 36px;
  }

  .legale-desc,
  .legale-subtitle {
    font-size: 18px;
    line-height: 26px;
  }

  .come-funziona,
  .vantaggi,
  .target,
  .valore,
  .legale-section,
  .faq {
    padding: 60px 0;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .step-number {
    font-size: 40px;
  }

  .step-title {
    font-size: 24px;
    line-height: 32px;
  }

  .target-card {
    padding: 24px;
  }

  .target-card-title {
    font-size: 24px;
    line-height: 32px;
  }

  .faq-item-header {
    gap: 16px;
  }

  .faq-question {
    font-size: 18px;
    line-height: 26px;
  }

  .faq-toggle {
    width: 44px;
    height: 44px;
  }
}

