* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fcfbf9;
  color: #2c2c2c;
  line-height: 1.6;
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 70px;
  background: rgba(252, 251, 249, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.45);
}

.logo {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  font-weight: 700;
}

.logo span {
  color: #d67087;
  margin-left: 5px;
}

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  text-decoration: none;
  color: #2f2b28;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  transition: color .25s ease;
}

.menu a:hover,
.menu a.active {
  color: #d67087;
}

.nav-icons {
  display: flex;
  gap: 16px;
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(252,251,249,.90) 0%, rgba(252,251,249,.62) 34%, rgba(252,251,249,.12) 58%, rgba(0,0,0,.04) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.02) 50%, rgba(0,0,0,.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-left: 7vw;
  margin-top: 70px;
  padding: 38px;
  border-radius: 28px;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 70px rgba(70, 46, 30, .12);
}

.eyebrow {
  color: #c15f77;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: .95;
  color: #1f1d1b;
  margin-bottom: 24px;
}

.hero-content p:not(.eyebrow) {
  font-size: 1.08rem;
  max-width: 430px;
  margin-bottom: 26px;
  color: #3f3934;
}

.btn-rosa {
  display: inline-block;
  background: #d67087;
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(214, 112, 135, .28);
  transition: transform .25s ease, background .25s ease;
}

.btn-rosa:hover {
  background: #be5a71;
  transform: translateY(-3px);
}

.features-grid {
  position: relative;
  z-index: 5;
  margin: -60px auto 0;
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.92);
  border: 1px solid #eadfce;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(82, 50, 28, .14);
}

.feature-card {
  padding: 30px 24px;
  min-height: 230px;
  border-right: 1px solid #eadfce;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  background: #fffaf5;
  box-shadow: 0 18px 40px rgba(80, 50, 30, .12);
}

.icon-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: transform .3s ease;
}

.feature-card:hover .icon-circle {
  transform: scale(1.1) rotate(-4deg);
}

.purple { background: #e2daf0; color: #7b5da7; }
.pink { background: #f5dae1; color: #be5a71; }
.green { background: #dae8e0; color: #4e7a61; }
.yellow { background: #fcf0d0; color: #b19340; }
.blue { background: #dae3f0; color: #4e6a92; }

.feature-card h3 {
  font-size: .96rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: .92rem;
  color: #625a55;
  margin-bottom: 18px;
}

.link-scopri {
  font-size: .82rem;
  text-decoration: none;
  color: #be5a71;
  font-weight: 800;
}

.about-section {
  width: min(1180px, calc(100% - 40px));
  margin: 70px auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
}

.about-box {
  border-radius: 26px;
  padding: 42px;
  min-height: 330px;
}

.dark-card {
  background: #161b23;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dark-card::after {
  content: '♡ ☆ ✈';
  position: absolute;
  right: 30px;
  bottom: 20px;
  font-family: 'Caveat', cursive;
  font-size: 4rem;
  opacity: .12;
}

.small-title {
  display: inline-block;
  font-family: 'Caveat', cursive;
  color: #d67087;
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 18px;
}

.dark-card p {
  color: #d9d9d9;
  max-width: 670px;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.mini-stats span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .88rem;
}

.projects-card {
  background: #f7efe8;
  border: 1px solid #eadfce;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-item {
  min-height: 78px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(80,50,30,.08);
  font-weight: 800;
}

.project-item small {
  display: block;
  color: #756a63;
  font-weight: 500;
  margin-top: 4px;
}

.footer {
  text-align: center;
  padding: 42px 20px;
  color: #796d66;
  border-top: 1px solid #eadfce;
}

.footer p {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: #2c2c2c;
}

@media (max-width: 980px) {
  .navbar {
    padding: 16px 24px;
  }

  .menu {
    display: none;
  }

  .hero-content {
    margin-left: 24px;
    margin-right: 24px;
    padding: 28px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(252,251,249,.92), rgba(252,251,249,.58));
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
  }

  .feature-card {
    border-right: none;
    border-bottom: 1px solid #eadfce;
  }

  .about-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .navbar {
    padding: 14px 18px;
    background: rgba(252, 251, 249, 0.86);
  }

  .logo {
    font-size: 2rem;
  }

  .menu {
    display: none;
  }

  .nav-icons {
    display: none;
  }

  .hero {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
  }

  .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Modifica questo valore se vuoi spostare l'inquadratura:
       35% = più in alto, 45% = più in basso */
    object-position: center 40%;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0,0,0,.05) 0%,
        rgba(0,0,0,.08) 50%,
        rgba(0,0,0,.55) 100%
      );
  }

  .hero-content {
    position: relative;
    width: calc(100% - 28px);
    max-width: none;
    margin: 0 14px 22px;
    padding: 22px 20px;
    border-radius: 22px;
    background: rgba(255, 248, 241, 0.78);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 45px rgba(41, 24, 16, .24);
  }

  .eyebrow {
    font-size: .66rem;
    margin-bottom: 8px;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
    line-height: .92;
    margin-bottom: 14px;
  }

  .hero-content p:not(.eyebrow) {
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .btn-rosa {
    padding: 11px 20px;
    font-size: .9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
    width: calc(100% - 28px);
    border-radius: 18px;
  }

  .feature-card {
    min-height: auto;
    padding: 24px 22px;
    border-right: none;
    border-bottom: 1px solid #eadfce;
  }

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

  .about-section {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    margin: 46px auto;
  }

  .about-box {
    padding: 30px 24px;
  }

  .about-box h2 {
    font-size: 1.8rem;
  }

  .footer p {
    font-size: 1.6rem;
  }
}

/* ---------- IMMAGINE MOBILE DEDICATA OPZIONALE ---------- */
/* Se nell'HTML aggiungi anche:
   <img class="hero-bg hero-bg-desktop" src="tuo-laboratorio.webp" alt="...">
   <img class="hero-bg hero-bg-mobile" src="tuo-laboratorio-mobile.webp" alt="...">
   questo blocco mostra l'immagine verticale solo su smartphone. */

.hero-bg-mobile {
  display: none;
}

@media (min-width: 561px) {
  .hero-bg-desktop {
    display: block;
  }

  .hero-bg-mobile {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-bg-desktop {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
  }
}
