/* =========================
   RESET
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family: "Open Sans", Arial, sans-serif;

  color: #121214;
  background: #fcf6f1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}


/* =========================
   VARIABLES
   ========================= */

:root {
  --bg: #fcf6f1;
  --text: #121214;
  --accent: #e4572e;
  --white: #f5f5f7;

  --container: 1180px;
}


/* =========================
   CONTAINER
   ========================= */

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}


/* =========================
   HEADER
   ========================= */

.site-header {
  position: relative;
  z-index: 100;

  width: 100%;

  background: var(--bg);

  border-bottom: 1px solid rgba(18, 18, 20, 0.08);
}

.header-inner {
  min-height: 104px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: block;
  width: 95px;
}

.site-logo img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;

  gap: 34px;
}

.main-nav a {
  position: relative;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;

  color: var(--text);

  text-decoration: none;

  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -8px;

  height: 2px;

  background: var(--accent);
}


/* =========================
   DESKTOP MENU BUTTON
   ========================= */

.more-menu {
  position: relative;
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 8px;
  padding: 2px 8px;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  color: #ffffff;
  background: #f26522;

  border-radius: 999px;

  vertical-align: middle;
  white-space: nowrap;
}

.menu-featured {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.menu-badge-angled {
  position: absolute;

  top: -5px;
  right: -30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 2px 7px;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  color: #ffffff;
  background: #f26522;

  border-radius: 6px;

  white-space: nowrap;

  transform: rotate(35deg);
  transform-origin: center;

  pointer-events: none;
}

.more-menu-button {
  border: 0;
  background: transparent;

  color: var(--text);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;

  cursor: pointer;

  padding: 4px 6px;
}

.more-menu-button:hover {
  color: var(--accent);
}

.more-menu-dropdown {
  position: absolute;

  top: calc(100% + 12px);
  right: 0;

  min-width: 230px;

  display: none;
  flex-direction: column;

  background: var(--bg);

  border: 1px solid rgba(18, 18, 20, 0.08);
  border-radius: 10px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

  padding: 8px 0;

  z-index: 200;
}

.more-menu.open .more-menu-dropdown {
  display: flex;
}

.more-menu-dropdown a {
  padding: 12px 16px;

  font-size: 14px;
  white-space: nowrap;
}

.more-menu-dropdown a:hover {
  background: rgba(228, 87, 46, 0.08);
}


/* =========================
   MOBILE MENU BUTTON
   ========================= */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 8px;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 100%;
  height: 2px;

  margin: 6px 0;

  background: var(--text);

  transition: 0.2s ease;
}


/* =========================
   HERO
   ========================= */

.hero {
  position: relative;

  min-height: 610px;

  display: flex;
  align-items: center;

  background:
    url("images/hero-home.jpg")
    center center / cover
    no-repeat;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(18, 18, 20, 0.48);
}

.hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  color: var(--white);
}

.hero h1 {
  max-width: 900px;

  margin: 0;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
}

.hero h1 strong {
  display: block;
  font-size: 48px;
  font-weight: 700;

}

.hero h1 span {
  display: block;
  font-size: 40px;
  margin-top: 10px;
}

.hero p {
  max-width: 760px;

  margin: 30px auto 0;

  font-size: 22px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 16px;

  margin-top: 34px;
}


/* =========================
   BUTTONS
   ========================= */

.btn {
  min-width: 190px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 24px;

  border: 2px solid var(--accent);
  border-radius: 8px;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
}

.btn-primary:hover {
  background: #f1663f;
}

.btn-outline {
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--text);
}

/* =========================
   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;
}

/* =========================
   FORMA LAB INTRO
   ========================= */

.forma-intro {
  position: relative;

  padding: 70px 0 65px;

  background:
    url("images/forma-creativita.jpg")
    center center / cover
    no-repeat;

  color: var(--white);
}

.forma-intro-overlay {
  position: absolute;
  inset: 0;

  background: rgba(18, 18, 20, 0.58);
}

.forma-intro-content {
  position: relative;
  z-index: 2;
}


/* SERVIZI SUPERIORI */

.forma-services {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 100px;

  max-width: 900px;

  margin: 0 auto 45px;
}

.forma-service {
  text-align: center;
}

.forma-service h3 {
  margin: 0 0 22px;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.forma-service p {
  max-width: 260px;

  margin: 0 auto;

  font-size: 18px;
  line-height: 1.4;
}


/* RIQUADRO CENTRALE */

.forma-message {
  max-width: 780px;

  margin: 0 auto 45px;
  padding: 34px 40px;

  text-align: center;

  background: rgba(245, 245, 247, 0.20);

  border-radius: 8px;
}

.forma-message h2 {
  margin: 0 0 20px;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.forma-message p {
  margin: 0;

  font-size: 17px;
  line-height: 1.55;

  text-align: justify;
}


/* CTA */

.forma-cta {
  max-width: 850px;

  margin: 0 auto;

  text-align: center;
}

.forma-cta-title {
  margin: 0 0 8px;

  font-size: 19px;
  line-height: 1.25;
}

.forma-cta > p:not(.forma-cta-title) {
  margin: 0 0 28px;

  font-size: 17px;
  line-height: 1.5;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

  .header-inner {
    min-height: 90px;
  }

  .forma-services {
  grid-template-columns: 1fr;
  gap: 36px;

  margin-bottom: 38px;
}

.forma-message {
  padding: 30px 28px;
}

.forma-message p {
  text-align: center;
}

    .featured-product-grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .featured-product-content {
    text-align: center;
  }

  .featured-product-actions {
    justify-content: center;
  }


  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;

    top: 90px;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 12px 24px 22px;

    background: var(--bg);

    border-top: 1px solid rgba(18, 18, 20, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
  }

  .main-nav a.active::after {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero p {
    font-size: 18px;
  }
}




/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

  .container {
    width: min(100% - 32px, var(--container));
  }

  .forma-intro {
  padding: 55px 0;
}

.forma-service h3 {
  font-size: 24px;
}

.forma-service p {
  font-size: 16px;
}

.forma-message {
  padding: 26px 20px;
}

.forma-message h2 {
  font-size: 24px;
}

.forma-message p,
.forma-cta > p:not(.forma-cta-title) {
  font-size: 16px;
}

  .menu-badge-angled {
  top: -8px;
  right: -18px;

  padding: 2px 7px;

  font-size: 9px;

  transform: rotate(22deg);
}

  .site-logo {
    width: 90px;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;

    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

}

@media (max-width: 900px) {

  .main-nav .menu-featured {
    position: relative;

    width: fit-content;
    align-self: flex-start;

    display: inline-flex;
    align-items: center;
  }

  .main-nav .menu-badge-angled {
    position: absolute;

    top: 9px;
    right: -22px;

    padding: 2px 7px;

    font-size: 9px;

    transform: rotate(35deg);
  }

}

/* =========================
   FEATURED PRODUCT
   ========================= */

.featured-product {
  padding: 90px 0;
  background: var(--bg);
}

.featured-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;

  gap: 70px;
}

.featured-product-image img {
  width: 100%;
  max-width: 560px;

  margin: 0 auto;

  border-radius: 14px;
}

.section-eyebrow {
  display: block;

  margin-bottom: 14px;

  color: var(--accent);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-product-content h2 {
  margin: 0 0 26px;

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 38px;
  line-height: 1.2;
}

.featured-product-content p {
  margin: 0 0 18px;

  font-size: 17px;
  line-height: 1.7;

  color: #4f4f52;
}

.featured-product-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 30px;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
}

.btn-outline-dark:hover {
  background: var(--accent);
  color: var(--text);
}