/* =========================
FILE: /css/style.css
========================= */

:root {
  --bg: #f7f5f0;
  --bg-soft: #eef4ef;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.9);

  --text: #223128;
  --muted: #66756b;
  --line: #dbe7de;

  --green: #6f8f7a;
  --green-dark: #4f6b59;
  --green-deep: #3e5547;
  --green-soft: #e8f1eb;

  --gold: #d8b36a;
  --gold-soft: #f0dfb7;
  --peach: #f7d9c7;

  --white: #ffffff;
  --shadow: 0 18px 44px rgba(34, 49, 40, 0.08);
  --shadow-lg: 0 28px 60px rgba(34, 49, 40, 0.14);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.alt {
  background: linear-gradient(180deg, #f7fbf8 0%, #edf5ef 100%);
}

.center-button {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(79, 107, 89, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(62, 85, 71, 0.96);
  box-shadow: 0 14px 32px rgba(34, 49, 40, 0.18);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--gold));
  box-shadow: var(--shadow);
}

.logo-text {
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu > a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  transition: 0.2s ease;
}

.nav-menu > a:hover,
.nav-menu > a.active {
  color: var(--white);
}

.nav-menu > a:hover::after,
.nav-menu > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), #f4dfb0);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-color: transparent;
  color: var(--white);
}

/* NAV DROPDOWN / SUBMENU */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  all: unset;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s ease;
  line-height: 1;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--white);
}

.nav-dropdown.active .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), #f4dfb0);
  border-radius: 999px;
}

.nav-dropdown-label {
  display: inline-block;
}

.dropdown-arrow {
  font-size: 0.82rem;
  transition: transform 0.25s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 260px;
  background: rgba(67, 88, 75, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(34, 49, 40, 0.18);
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 120;
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.93rem;
  font-weight: 500;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a.submenu-current {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-submenu a::after {
  display: none !important;
}

.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hero */
.hero-brianza,
.inner-hero,
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(111, 143, 122, 0.14), transparent 22%),
    radial-gradient(circle at 90% 12%, rgba(216, 179, 106, 0.12), transparent 20%),
    linear-gradient(180deg, #5a7662 0%, #43584b 100%);
}

.hero-brianza {
  padding: 70px 0 88px;
}

.inner-hero {
  padding: 110px 0 70px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 260px;
  height: 260px;
  top: 8%;
  left: -80px;
  background: radial-gradient(circle, rgba(111, 143, 122, 0.28) 0%, rgba(111, 143, 122, 0) 70%);
}

.hero-orb-2 {
  width: 340px;
  height: 340px;
  right: -120px;
  top: 18%;
  background: radial-gradient(circle, rgba(216, 179, 106, 0.22) 0%, rgba(216, 179, 106, 0) 70%);
  animation-delay: -2s;
}

.hero-orb-3 {
  width: 220px;
  height: 220px;
  bottom: -40px;
  left: 40%;
  background: radial-gradient(circle, rgba(79, 107, 89, 0.2) 0%, rgba(79, 107, 89, 0) 70%);
  animation-delay: -4s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.04);
  }
}

.hero-brianza-grid,
.intro-grid,
.achievements-grid,
.footer-grid,
.booking-layout {
  display: grid;
  gap: 28px;
}

.hero-brianza-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.inner-hero-wrap {
  max-width: 860px;
}

.hero-brianza-copy,
.inner-hero-wrap {
  color: var(--white);
}

.hero-brianza-copy h1,
.inner-hero h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.5vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.inner-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.3rem);
}

.hero-brianza-copy p,
.inner-hero p {
  margin: 0 0 24px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
}

.inner-hero p {
  max-width: 760px;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.light {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.eyebrow-light-local {
  background: linear-gradient(135deg, rgba(111, 143, 122, 0.16), rgba(216, 179, 106, 0.2));
  color: var(--green-dark);
}

.hero-actions,
.hero-social-proof,
.cta-wrap,
.cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--green), var(--gold));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(111, 143, 122, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-light {
  background: var(--white);
  color: var(--green-deep);
}

.magnetic-btn:hover {
  box-shadow: 0 18px 35px rgba(111, 143, 122, 0.2);
}

.hero-social-proof {
  margin-top: 28px;
}

.proof-badge,
.reason-card,
.service-card-brianza,
.counter-card,
.hero-side-card,
.plan-step,
.booking-info,
.booking-form {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.proof-badge:hover,
.reason-card:hover,
.service-card-brianza:hover,
.counter-card:hover,
.hero-side-card:hover,
.plan-step:hover,
.booking-info:hover,
.booking-form:hover {
  transform: translateY(-6px);
}

.proof-badge {
  min-width: 130px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-badge strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.proof-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.hero-brianza-visual {
  position: relative;
  min-height: 620px;
}

.hero-main-image {
  position: absolute;
  inset: 0 90px 0 0;
  border-radius: 0 220px 220px 0 / 0 160px 160px 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #ddd;
  transition: transform 0.25s ease;
}

.hero-main-image::before,
.hero-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.hero-main-image::before {
  border: 18px solid rgba(255, 255, 255, 0.28);
  transform: translate(12px, -6px);
}

.hero-main-image::after {
  border: 32px solid rgba(216, 179, 106, 0.22);
  transform: translate(34px, 8px);
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-card {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-46%);
  width: 310px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.glass-card {
  backdrop-filter: blur(12px);
}

.card-label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--green-deep);
}

.mini-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
}

.mini-step span,
.plan-step span {
  min-width: 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(111, 143, 122, 0.16), rgba(216, 179, 106, 0.2));
  color: var(--green-dark);
  font-weight: 800;
}

.mini-step p {
  margin: 8px 0 0;
  color: var(--text);
}

.floating-icon {
  position: absolute;
  z-index: 4;
  color: rgba(216, 179, 106, 0.95);
  font-size: 1.2rem;
  animation: floatIcon 5s ease-in-out infinite;
}

.floating-icon-1 {
  top: 16%;
  right: 24%;
}

.floating-icon-2 {
  bottom: 18%;
  left: 8%;
  animation-delay: -2s;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0) rotate(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) rotate(8deg);
    opacity: 1;
  }
}

/* Content blocks */
.intro-highlight,
.services-showcase,
.smile-results,
.achievements-section {
  background: var(--bg-soft);
}

.intro-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.intro-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 520px;
}

.intro-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.image-hover {
  overflow: hidden;
}

.image-hover img {
  transition: transform 0.8s ease;
}

.image-hover:hover img {
  transform: scale(1.08);
}

.intro-copy h2,
.section-head h2,
.achievement-intro h2,
.cta-wrap h2,
.booking-info h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.08;
  color: var(--green-deep);
}

.intro-copy p,
.section-head p,
.achievement-intro p,
.reason-card p,
.service-card-content p,
.plan-step p,
.counter-card span,
.site-footer p,
.site-footer a,
.footer-bottom span,
.booking-info p {
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 1.1rem;
}

.section-head {
  margin-bottom: 36px;
}

.section-head.center {
  text-align: center;
}

.section-head.center .eyebrow {
  background: linear-gradient(135deg, rgba(111, 143, 122, 0.16), rgba(216, 179, 106, 0.18));
  color: var(--green-dark);
}

.section-head.center h2,
.section-head.center p {
  max-width: 760px;
  margin-inline: auto;
}

.service-cards-brianza,
.reasons-grid,
.results-grid,
.plan-grid,
.achievement-counters {
  display: grid;
  gap: 22px;
}

.service-cards-brianza {
  grid-template-columns: repeat(4, 1fr);
}

.service-card-brianza,
.reason-card,
.plan-step,
.counter-card,
.booking-info,
.booking-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.service-card-brianza {
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card-image {
  height: 220px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-content {
  padding: 22px;
}

.service-card-content h3,
.reason-card h3,
.plan-step h3 {
  margin: 0 0 10px;
  color: var(--green-deep);
}

.reasons-grid {
  grid-template-columns: repeat(3, 1fr);
}

.reason-card {
  padding: 28px;
  transform-style: preserve-3d;
}

.reason-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(111, 143, 122, 0.14), rgba(216, 179, 106, 0.18));
  color: var(--green-dark);
  font-weight: 900;
  font-size: 1.25rem;
}

.results-grid {
  grid-template-columns: repeat(4, 1fr);
}

.result-image {
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.result-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.result-image:hover img {
  transform: scale(1.08);
}

.plan-grid {
  grid-template-columns: repeat(4, 1fr);
}

.plan-step {
  padding: 28px;
  transform-style: preserve-3d;
}

.plan-step span {
  margin-bottom: 16px;
}

.achievements-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.achievement-counters {
  grid-template-columns: repeat(2, 1fr);
}

.counter-card {
  padding: 30px;
  text-align: center;
  transform-style: preserve-3d;
}

.counter-card strong {
  display: block;
  font-size: 2rem;
  color: var(--green-deep);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* Booking and contact forms */
.booking-layout {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.booking-info,
.booking-form {
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 700;
  color: var(--green-deep);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  appearance: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fcfffc;
  color: var(--text);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a39b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(111, 143, 122, 0.65);
  box-shadow: 0 0 0 4px rgba(111, 143, 122, 0.12);
  background: #ffffff;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 18px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--green);
}

.form-check label {
  color: var(--muted);
}

.form-message {
  margin-top: 14px;
  font-weight: 700;
  color: var(--green-dark);
}

.full {
  width: 100%;
}

/* Reviews widget */
.reviews-widget-section {
  background: var(--bg-soft);
}

.reviews-widget-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* CTA and footer */
.cta-band {
  background: linear-gradient(135deg, #4f6b59 0%, #6f8f7a 100%);
  color: var(--white);
}

.cta-wrap {
  justify-content: space-between;
}

.cta-wrap h2 {
  color: var(--white);
  max-width: 680px;
}

.site-footer {
  background: #43584b;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.7fr 0.7fr;
  padding: 54px 0 26px;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer p,
.footer-bottom span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  width: min(100%, 920px);
  margin-inline: auto;
  background: #43584b;
  color: var(--white);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.cookie-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  transform: translateX(50px);
}

.fade-right {
  transform: translateX(-50px);
}

.fade-up {
  transform: translateY(40px);
}

.reveal.is-visible.fade-left,
.reveal.is-visible.fade-right,
.reveal.is-visible.fade-up {
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

/* Tilt */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 30px 70px rgba(34, 49, 40, 0.14);
  border-color: rgba(111, 143, 122, 0.35);
}

/* BEFORE / AFTER SECTION */
.before-after-section {
  background: #f3f3f1;
  padding: 88px 0;
}

.before-after-head {
  margin-bottom: 34px;
}

.before-after-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.before-after-top h2 {
  margin: 0 0 14px;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.1vw, 3.3rem);
  line-height: 1.08;
  color: #202033;
}

.before-after-top p {
  margin: 0;
  color: #6f6f6f;
  font-size: 1rem;
  font-weight: 600;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.before-after-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.before-after-slider {
  --position: 50%;
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #d9d9d9;
}

.before-after-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.before-after-slider .before-image {
  z-index: 1;
}

.before-after-slider .after-image {
  z-index: 2;
  clip-path: inset(0 0 0 var(--position));
}

.before-after-slider .slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%);
  z-index: 3;
}

.before-after-slider .slider-handle {
  position: absolute;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #5d5d5d;
  font-size: 0.72rem;
  font-weight: 800;
  z-index: 4;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.before-after-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.before-after-card .before-after-slider:hover .slider-handle {
  transform: translate(-50%, -50%) scale(1.04);
}

.before-after-card .before-after-slider:hover .slider-line {
  background: #ffffff;
}

.before-after-card .before-after-slider,
.before-after-card .slider-handle,
.before-after-card .slider-line {
  transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 1200px) {
  .before-after-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .hero-brianza-grid,
  .intro-grid,
  .achievements-grid,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .service-cards-brianza,
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-brianza-visual {
    min-height: 580px;
  }

  .hero-main-image {
    inset: 0 120px 0 0;
  }
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    font-size: 1.7rem;
    border-radius: 18px;
    margin-left: auto;
  }

  .lang-switch {
    order: 3;
    margin-left: auto;
  }

  .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px;
    margin-top: 10px;
    background: rgba(67, 88, 75, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > a,
  .nav-dropdown {
    width: 100%;
  }

  .nav-menu > a {
    display: block;
    width: 100%;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .nav-menu > a:hover::after,
  .nav-menu > a.active::after {
    left: 0;
    bottom: -6px;
    width: 72px;
  }

  .nav-dropdown {
    display: block;
  }

  .nav-dropdown-toggle {
    all: unset;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
  }

  .nav-dropdown.active .nav-dropdown-toggle::after,
  .nav-dropdown.open .nav-dropdown-toggle::after {
    display: none;
  }

  .dropdown-arrow {
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .nav-submenu {
    position: static;
    min-width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    gap: 6px;
  }

  .nav-dropdown.open .nav-submenu {
    display: grid;
  }

  .nav-submenu a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
  }

  .reasons-grid,
  .plan-grid,
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid,
  .achievement-counters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .before-after-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .before-after-slider {
    height: 420px;
  }
}

@media (max-width: 760px) {
  .section,
  .hero-brianza,
  .inner-hero {
    padding: 68px 0;
  }

  .hero-brianza-copy h1,
  .inner-hero h1 {
    font-size: 2.6rem;
  }

  .hero-brianza-visual {
    min-height: auto;
  }

  .hero-main-image {
    position: relative;
    inset: auto;
    min-height: 360px;
    border-radius: 26px;
  }

  .hero-main-image::before,
  .hero-main-image::after,
  .floating-icon,
  .hero-orb {
    display: none;
  }

  .hero-main-image img {
    min-height: 360px;
  }

  .hero-side-card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    margin-top: 18px;
  }

  .service-cards-brianza,
  .reasons-grid,
  .results-grid,
  .plan-grid,
  .footer-grid,
  .achievement-counters,
  .form-row {
    grid-template-columns: 1fr;
  }

  .cookie-content,
  .cta-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .tilt-card,
  .magnetic-btn,
  .image-hover img,
  .result-image img,
  .hero-orb,
  .floating-icon,
  .btn,
  .hero-main-image {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}