/* ===== Struttura ===== */
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section--dark { background: rgba(30, 32, 37, .78); backdrop-filter: blur(2px); }
.section--light { background: var(--cream); color: var(--dark); }
.section__head { max-width: 680px; margin-bottom: 3.2rem; }
.section__head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }
.section__head--dark p:not(.eyebrow) { color: var(--muted-dark); }

/* ===== Navbar ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
}
.nav.is-scrolled {
  background: rgba(30, 32, 37, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .3);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: .06em; }
.brand__text small { font-family: var(--font-head); font-size: .56rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  position: relative; font-family: var(--font-head); font-size: .82rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: .3rem 0;
}
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream);
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 5rem; position: relative; }
.hero__title { max-width: 900px; margin: .3rem 0 1.4rem; text-wrap: balance; }
.hero__lead { max-width: 560px; color: #d3d4d8; font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.3rem 0 2.6rem; }
.hero__usp { display: flex; flex-wrap: wrap; gap: .8rem 2rem; }
.hero__usp li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--muted); }
.hero__usp svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(242, 241, 237, .45); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--orange); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(16px); } }

/* ===== Chi siamo ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; border-radius: var(--radius); overflow: visible; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; width: 100%; max-height: 640px; object-fit: cover; object-position: center 60%; }
.about__text h2 { margin-bottom: 1.3rem; }
.about__text p + p { margin-top: 1rem; }
.about__text p:not(.eyebrow) { color: var(--muted-dark); }


/* ===== Griglie ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; position: relative; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 5rem; }

/* ===== CTA ===== */
.cta { background: var(--orange); color: var(--dark); padding: clamp(3.5rem, 8vw, 5.5rem) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(43, 46, 52, .06) 0 2px, transparent 2px 28px);
}
.cta__inner { position: relative; text-align: center; max-width: 720px; }
.cta__inner p { margin: 1rem 0 2rem; font-size: 1.15rem; color: rgba(43, 46, 52, .85); }

/* ===== Contatti ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__info > p:not(.eyebrow) { margin: 1.2rem 0 2rem; color: var(--muted); }
.contact__list { display: grid; gap: 1.2rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__list svg {
  flex: none; width: 48px; height: 48px; padding: 12px; border-radius: 50%;
  background: rgba(242, 107, 29, .14); stroke: var(--orange); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact__list small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__list a:hover { color: var(--orange); }

/* ===== Footer ===== */
.footer { background: var(--darker); border-top: 1px solid rgba(242, 241, 237, .08); padding: 2.6rem 0; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand strong { display: block; font-family: var(--font-head); font-weight: 800; letter-spacing: .06em; line-height: 1.1; }
.footer__brand span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.footer__links { display: flex; justify-content: center; gap: 1.8rem; font-size: .9rem; color: var(--muted); }
.footer__links a:hover { color: var(--orange); }
.footer__legal { font-size: .8rem; color: var(--muted); text-align: right; }
.footer__credit { margin-top: .25rem; }
.footer__credit a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; transition: color .25s; }
.footer__credit a:hover { color: var(--orange); }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps, .why { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__legal { text-align: center; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(30, 32, 37, .97); backdrop-filter: blur(14px); padding: 1rem 1.25rem 1.6rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .3s, visibility .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(242, 241, 237, .08); font-size: .95rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1.2rem; }
  .nav.menu-open { background: rgba(30, 32, 37, .97); }

  .about, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand__text small { display: none; }
  .cards, .gallery, .steps, .why { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__title { font-size: clamp(1.9rem, 9.2vw, 3rem); }
  .hero__lead { font-size: 1.05rem; }
  .scroll-hint { display: none; }
}

/* Schermi bassi (es. telefono in orizzontale) */
@media (max-height: 600px) {
  .hero { padding: calc(var(--nav-h) + 1rem) 0 2.5rem; }
  .hero__actions { margin: 1.4rem 0 1.6rem; }
  .scroll-hint { display: none; }
}
