/* =========================================================
   FORMA LAB - VETRINA EXPRESS
   PAGINA MADRE
   ========================================================= */


/* =========================
   VARIABILI
   ========================= */

:root {
  --bg: #f7f1e9;
  --surface: #fffaf5;
  --surface-light: #ffffff;

  --text: #111111;
  --muted: #5f5f5f;

  --accent: #f15a24;
  --accent-dark: #d94816;

  --dark: #111114;
  --dark-soft: #1b1b20;

  --border: #ded6cd;

  --radius: 18px;
  --radius-small: 12px;

  --shadow: 0 14px 35px rgba(17, 17, 17, 0.08);

  --container: 1280px;
}

.back-formalab {
  position: fixed;
  left: 18px;
  bottom: 18px;

  z-index: 999;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;

  color: #ffffff;
  background: #121214;

  border: 1px solid #e4572e;
  border-radius: 999px;

  text-decoration: none;

  box-shadow: 0 6px 18px rgba(0,0,0,.18);

  transition:
    transform .2s ease,
    background .2s ease;
}

.back-formalab:hover {
  transform: translateY(-2px);
  background: #e4572e;
  color: #121214;
}

/* =========================
   RESET
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family: "Open Sans", Arial, sans-serif;

  background: var(--bg);
  color: var(--text);

  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}


/* =========================
   TIPOGRAFIA
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6,
.main-nav,
.btn,
.eyebrow,
.package-name,
.package-price,
.demo-group-heading {
  font-family: "Montserrat", Arial, sans-serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 24px;
  font-weight: 700;
}

p {
  font-size: 16px;
}

.eyebrow {
  margin-bottom: 14px;

  color: var(--accent);

  font-size: 14px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.14em;
}


/* =========================
   STRUTTURA
   ========================= */

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-alt {
  background: #f0e9e0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 56px;
}

.section-heading > p:last-child {
  max-width: 680px;
  color: var(--muted);
}


/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 250, 245, 0.96);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 104px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 118px;
  max-height: 78px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;

  gap: 34px;

  margin-left: auto;
}

.main-nav a {
  position: relative;

  font-size: 0.95rem;
  font-weight: 600;

  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 2px;

  background: var(--accent);

  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 0;

  background: transparent;
  border: 0;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 26px;
  height: 2px;

  margin: 5px auto;

  background: var(--text);

  transition: 0.2s ease;
}


/* =========================
   BOTTONI
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 13px 24px;

  border: 1.5px solid var(--accent);
  border-radius: 10px;

  background: var(--accent);
  color: #ffffff;

  font-size: 0.92rem;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);

  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--dark);
}

.btn-light:hover {
  background: #f4f4f4;
  border-color: #f4f4f4;
}

.btn-header {
  white-space: nowrap;
}


/* =========================
   HERO
   ========================= */

.hero {
  padding: 120px 0 110px;
}

.hero-grid {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 80px;

  align-items: center;
}

.hero-content h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: 48px;
}

.hero-content h1 span {
  display: block;
  color: var(--accent);
}

.hero-text {
  max-width: 650px;

  margin-bottom: 34px;

  color: var(--muted);

  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;
}

.hero-visual {
  position: relative;

  min-height: 460px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: "";

  position: absolute;

  width: 330px;
  height: 330px;

  border-radius: 50%;

  background: var(--accent);

  opacity: 0.08;

  transform: translate(70px, -40px);
}

.hero-card {
  position: relative;
  z-index: 1;

  max-width: 470px;

  padding: 46px;

  border-radius: var(--radius);

  background: var(--dark);
  color: #ffffff;

  box-shadow: var(--shadow);
}

.hero-card-label {
  display: inline-block;

  margin-bottom: 18px;

  color: var(--accent);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card strong {
  display: block;

  margin-bottom: 18px;

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 24px;
}

.hero-card p {
  margin-bottom: 0;

  color: #d6d6d6;
}


/* =========================
   PACCHETTI
   ========================= */

.package-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 28px;

  align-items: stretch;
}

.package-card {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: 38px;

  background: var(--surface-light);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.package-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow);
}

.package-featured {
  border: 2px solid var(--accent);
}

.package-badge {
  position: absolute;

  top: -15px;
  right: 26px;

  padding: 7px 14px;

  border-radius: 999px;

  background: var(--accent);
  color: #ffffff;

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.08em;
}

.package-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  gap: 18px;

  margin-bottom: 26px;
}

.package-name {
  color: var(--accent);

  font-size: 0.9rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.package-price {
  font-size: 24px;
  font-weight: 800;
}

.package-card h3 {
  margin-bottom: 18px;
}

.package-card > p {
  margin-bottom: 26px;

  color: var(--muted);
}

.package-card ul {
  margin: 0 0 32px;
  padding-left: 20px;

  flex-grow: 1;
}

.package-card li {
  margin-bottom: 10px;
}

.package-card .btn {
  width: 100%;
}


/* =========================
   DEMO
   ========================= */

.demo-group {
  margin-top: 80px;
}

.demo-group:first-of-type {
  margin-top: 0;
}

.demo-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 26px;

  padding-bottom: 18px;

  border-bottom: 1px solid var(--border);
}

.demo-group-heading span {
  color: var(--accent);

  font-weight: 800;
  letter-spacing: 0.12em;
}

.demo-group-heading strong {
  font-size: 24px;
}

.demo-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 28px;
}

.demo-card {
  overflow: hidden;

  background: var(--surface-light);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.demo-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow);
}

.demo-preview {
  width: 100%;
  aspect-ratio: 2 / 1;

  padding: 12px 12px 0;

  overflow: hidden;

  background: #ffffff;
}

.demo-preview img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  display: block;

  border-radius: 10px 10px 0 0;
}


.demo-preview-01 {
  background:
    linear-gradient(
      135deg,
      #1f2937 0%,
      #1f2937 58%,
      #c2410c 58%,
      #c2410c 100%
    );

  color: #ffffff;
}

.demo-preview-02 {
  background:
    linear-gradient(
      135deg,
      #f4efe8 0%,
      #f4efe8 67%,
      #9b6f45 67%,
      #9b6f45 100%
    );

  color: #24313a;
}

.demo-preview-03 {
  background:
    linear-gradient(
      135deg,
      #111827 0%,
      #111827 55%,
      #2563eb 55%,
      #2563eb 100%
    );

  color: #ffffff;
}

.demo-content {
  padding: 30px 28px;
}

.demo-content h3 {
  margin-bottom: 10px;
}

.demo-content p {
  min-height: 52px;

  margin-bottom: 22px;

  color: var(--muted);
}

.demo-link {
  display: inline-flex;
  align-items: center;

  color: var(--accent);

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 0.9rem;
  font-weight: 700;
}

.demo-link::after {
  content: "→";

  margin-left: 8px;

  transition: transform 0.2s ease;
}

.demo-link:hover::after {
  transform: translateX(4px);
}

.demo-group-heading .old-price {
  color: #111;
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
  margin-right: 8px;
  font-weight: 600;
  opacity: 0.75;
}


/* =========================
   CONFRONTO
   ========================= */

.comparison {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface-light);
}

.comparison-row {
  display: grid;

  grid-template-columns: 2fr repeat(3, 1fr);

  gap: 20px;

  align-items: center;

  padding: 20px 28px;

  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row > *:not(:first-child) {
  text-align: center;
}

.comparison-head {
  background: var(--dark);
  color: #ffffff;

  font-family: "Montserrat", Arial, sans-serif;
}

.comparison-head strong:nth-child(3) {
  color: var(--accent);
}

.comparison-price {
  background: #f3ece4;

  font-family: "Montserrat", Arial, sans-serif;
}

.comparison-price strong {
  font-size: 1.18rem;
}


/* =========================
   CTA
   ========================= */

.cta-section {
  padding: 90px 0;

  background: var(--dark);
  color: #ffffff;
}

.cta-inner {
  display: grid;

  grid-template-columns: 1fr auto;

  gap: 60px;

  align-items: center;
}

.cta-inner h2 {
  max-width: 820px;

  margin-bottom: 18px;
}

.cta-inner p:not(.eyebrow) {
  max-width: 650px;

  margin-bottom: 0;

  color: #d7d7d7;
}


/* =========================
   FOOTER FORMA LAB
   ========================= */

.site-footer {
  padding: 46px 0 38px;
  background: #111114;
  color: #ffffff;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-bottom: 18px;
}

.footer-links a {
  color: #ffffff;

  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;

  text-decoration: underline;
  text-underline-offset: 3px;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links span {
  color: #ffffff;
  font-size: 16px;
}

.footer-copy {
  margin: 0 0 20px;

  color: #ffffff;

  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px) scale(1.05);
  opacity: 0.85;
}

.footer-social img {
  width: 42px;
  height: 42px;

  object-fit: contain;

  display: block;
}

 /*PACKAGE PRICE*/

.package-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;

  text-align: center;
}

.launch-offer {
  color: var(--accent);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.old-price {
  color: #111;

  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;

  font-weight: 600;
  opacity: 0.75;
}


.package-price {
  font-size: 24px;
  font-weight: 800;
}

/* =========================
   PREZZI CARD PRINCIPALI
   ========================= */

.package-card .old-price {
  position: relative;

  color: #111;

  font-size: 16px;
  font-weight: 600;

  text-decoration: none;

  opacity: 0.75;
}

.package-card .old-price::after {
  content: "";

  position: absolute;

  left: -2px;
  right: -2px;
  top: 50%;

  height: 2px;

  background: var(--accent);

  transform: rotate(-7deg);
}

/* =========================
   PREZZI SEZIONI DEMO
   ========================= */

.demo-group-heading .old-price {
  position: static;

  color: #111;

  font-size: 16px;
  font-weight: 600;

  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;

  opacity: 0.75;

  margin-right: 8px;
}

.demo-group-heading .old-price::after {
  display: none;
}

.promo-launch {
  color: var(--accent);
  font-weight: 700;
}




/* =========================
   RESPONSIVE - TABLET
   ========================= */

@media (max-width: 980px) {

  .section {
    padding: 85px 0;
  }

  .header-inner {
    min-height: 88px;
  }

  .main-nav {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    display: none;
    flex-direction: column;

    gap: 0;

    padding: 14px 24px 24px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);
  }

  .main-nav a::after {
    display: none;
  }

  .btn-header {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 90px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-card {
    max-width: 100%;
  }

  .package-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .package-featured {
    order: -1;
  }

  .comparison {
    overflow-x: auto;
  }

  .comparison-row {
    min-width: 760px;
  }

  .cta-inner {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .cta-inner .btn {
    justify-self: start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================
   RESPONSIVE - MOBILE
   ========================= */

@media (max-width: 640px) {

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .header-inner {
    gap: 14px;
  }

  .brand-logo {
    width: 88px;
  }

  .btn-header {
    display: none;
  }

  .hero {
    padding: 70px 0 65px;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card {
    padding: 32px 26px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .package-card {
    padding: 30px 26px;
  }

  .package-top {
    align-items: flex-start;
    flex-direction: column;

    gap: 4px;
  }

  .package-price {
    font-size: 1.7rem;
  }

  .demo-group {
    margin-top: 60px;
  }

  .demo-preview {
    height: 190px;
  }

  .demo-content {
    padding: 24px;
  }

  .cta-section {
    padding: 70px 0;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .footer-copy {
    line-height: 1.6;
  }
}