/* ==============================
   Lavori Edili Carluccio - Bozza
   ============================== */

:root {
  --bg: #f6f3ed;
  --surface: #ffffff;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #c96f1a;
  --brand-dark: #9a4f0f;
  --accent: #243447;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(246, 243, 237, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  letter-spacing: -0.05em;
}

.logo-text {
  line-height: 1.05;
  font-size: 0.92rem;
}

.logo-text strong {
  color: var(--brand);
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 600;
  color: #2f3643;
}
.logo{
  width: 150px;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--dark);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  margin: 5px auto;
  transition: 0.2s;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.45)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80") center/cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(201, 111, 26, 0.34);
  filter: blur(20px);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.94;
  margin: 0;
  letter-spacing: -0.075em;
}

.hero-text {
  max-width: 650px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 34px rgba(201, 111, 26, 0.34);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-light {
  background: #fff;
  color: var(--dark);
}

.hero-stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 690px;
}

.hero-stats div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: #fff;
  font-size: 1.25rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.hero-card {
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(201, 111, 26, 0.12);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.82rem;
}

.hero-card h2 {
  margin: 18px 0 10px;
  font-size: 2rem;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-card p {
  color: var(--muted);
}

.hero-card ul {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.hero-card li {
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line);
  position: relative;
  font-weight: 600;
}

.hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}

/* Sections */

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2,
.split-section h2,
.cta-band h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-heading p:not(.eyebrow),
.split-section p,
.contact-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: #f3e1cf;
  font-size: 1.5rem;
}

.service-card h3 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.service-card p {
  color: var(--muted);
  margin: 0;
}

/* Work */

.work-section {
  padding: 110px 0;
  background: var(--accent);
  color: #fff;
}

.light p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.work-image {
  height: 260px;
  background-size: cover;
  background-position: center;
}

.image-1 {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80");
}

.image-2 {
  background-image: url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=900&q=80");
}

.image-3 {
  background-image: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=900&q=80");
}

.work-content {
  padding: 24px;
}

.work-content h3 {
  margin: 0 0 8px;
}

.work-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* Split */

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 60px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feature span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  font-weight: 900;
}

.feature h3 {
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
}

/* CTA */

.cta-band {
  padding: 76px 0;
  background: var(--brand);
  color: #fff;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.cta-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  margin: 30px 0;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.contact-info p {
  margin: 8px 0;
}

.whatsapp-btn {
  display: inline-flex;
  padding: 15px 22px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 900;
}

.contact-form {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  background: #fafafa;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 111, 26, 0.12);
}

.form-message {
  min-height: 24px;
  font-weight: 700;
  color: var(--brand-dark);
}

/* Footer */

.site-footer {
  padding: 34px 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid a {
  color: #fff;
  font-weight: 800;
}

/* Animations */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 620px;
  }

  .cards-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px;
  }

  .hero {
    padding-top: 128px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .hero-stats,
  .cards-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section,
  .work-section {
    padding: 78px 0;
  }

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


/* Quote wizard */

.quote-section {
  background:
    radial-gradient(circle at top right, rgba(201, 111, 26, 0.12), transparent 35%),
    var(--bg);
}

.quote-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.quote-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.quote-progress span {
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--muted);
  font-weight: 900;
}

.quote-progress span.active {
  background: var(--brand);
  color: #fff;
}

.quote-step {
  display: none;
}

.quote-step.active {
  display: block;
  animation: stepFade 0.25s ease;
}

@keyframes stepFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-step h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.quote-step p {
  margin: 0 0 24px;
  color: var(--muted);
}

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

.quote-option {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: #fafafa;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.quote-option span {
  font-size: 2rem;
}

.quote-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(201, 111, 26, 0.1);
  box-shadow: 0 14px 30px rgba(201, 111, 26, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  background: #fafafa;
  outline: none;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 111, 26, 0.12);
}

.photo-note,
.quote-summary {
  padding: 20px;
  border-radius: 20px;
  background: #f8f1e9;
  color: #58310d;
  border: 1px solid rgba(201, 111, 26, 0.18);
}

.quote-summary {
  white-space: pre-line;
  font-weight: 600;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.btn-secondary.dark {
  color: var(--dark);
  background: #f3f4f6;
  border: 1px solid var(--line);
}

.btn-whatsapp {
  display: none;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.26);
}

.contact-card {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.contact-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card li {
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--line);
  position: relative;
  font-weight: 650;
}

.contact-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}

@media (max-width: 820px) {
  .option-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quote-box {
    padding: 22px;
  }

  .quote-actions {
    flex-direction: column;
  }

  .quote-actions .btn {
    width: 100%;
  }
}


/* Portfolio ampliato */

.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.portfolio-filter {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.portfolio-grid .work-card {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-grid .work-card.hidden {
  display: none;
}

.placeholder-image {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(201, 111, 26, 0.25), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 12px,
      rgba(255, 255, 255, 0.02) 12px,
      rgba(255, 255, 255, 0.02) 24px
    );
}

.placeholder-image span,
.before-after-placeholder span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-weight: 900;
  font-size: 0.86rem;
}

.before-after-placeholder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.before-after-placeholder div {
  display: grid;
  place-items: center;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(201, 111, 26, 0.18), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 12px,
      rgba(255, 255, 255, 0.02) 12px,
      rgba(255, 255, 255, 0.02) 24px
    );
}

.work-tag {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(201, 111, 26, 0.22);
  color: #ffd8af;
  font-weight: 900;
  font-size: 0.78rem;
}

.portfolio-note {
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.portfolio-note h3 {
  margin: 0 0 8px;
  color: #fff;
}

.portfolio-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-note strong {
  color: #fff;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-buttons .btn,
.contact-buttons .whatsapp-btn {
  min-height: 52px;
  align-items: center;
}
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  background: #25d366;
  color: #111;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

/* Portfolio immagini reali */
.work-image {
  position: relative;
  overflow: hidden;
}

.work-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
  opacity: 0.9;
}

.image-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-weight: 900;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

/* Prima e Dopo */
.before-after-section {
  background:
    radial-gradient(circle at top right, rgba(201, 111, 26, 0.12), transparent 35%),
    var(--bg);
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.single-before-after {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.ba-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ba-comparison {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: #111;
}

.ba-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: grid;
  align-items: end;
  justify-items: start;
  padding: 16px;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.ba-image span {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(5, 6, 5, 0.88);
  color: #fff;
  font-weight: 900;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ba-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  z-index: 4;
}

.ba-divider::after {
  content: "↔";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.ba-content {
  padding: 24px;
}

.ba-content h3 {
  margin: 0 0 8px;
}

.ba-content p {
  color: var(--muted);
}

@media (max-width: 960px) {
  .before-after-grid,
  .single-before-after {
    grid-template-columns: 1fr;
  }

  .ba-comparison {
    height: 390px;
  }
}

@media (max-width: 620px) {
  .ba-comparison {
    height: 310px;
  }
}
.logo img {
  width: 180px;
  max-height: 58px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .logo img {
    width: 145px;
  }
}/* Fix scroll orizzontale */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero,
.section,
.work-section,
.quote-section,
.contact-section,
.before-after-section,
.cta-band,
.site-header,
.site-footer {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 28px);
  }

  .nav-links {
    max-width: calc(100vw - 28px);
  }

  .logo {
    width: 135px;
  }
}/* Prima/Dopo più zoomato su mobile */
@media (max-width: 620px) {
  .ba-image {
    background-size: 135% auto;
    background-repeat: no-repeat;
    background-position: center;
  }

  .ba-comparison {
    height: 330px;
  }
}
/* BLOCCO ORIZZONTALE + MENU MOBILE FUNZIONANTE */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

/* Non tagliare il menu hamburger */
.site-header,
.navbar {
  overflow: visible !important;
}

/* Sicurezza larghezza elementi */
main,
footer,
section,
.container {
  max-width: 100%;
}

/* Elementi che possono creare scroll */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Menu mobile */
@media (max-width: 720px) {
  .site-header {
    z-index: 9999;
  }

  .navbar {
    position: relative;
    z-index: 10000;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 10002;
    flex-shrink: 0;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 14px;
    right: 14px;
    width: auto;
    max-width: calc(100vw - 28px);
    z-index: 10001;

    display: none;
    flex-direction: column;
    align-items: flex-start;

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px;
  }
}