/* ============================================================
   M.A. Giardini — Website Design System
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */

:root {
  --color-white: #ffffff;
  --color-black: #000000;

  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Botanical / organic palette */
  --cream-50:  #fdfaf2;
  --cream-100: #f8f2e3;
  --cream-200: #f0e8d2;
  --linen:     #f5efe1;

  --sage-50:   #f4f7f1;
  --sage-100:  #e7eedf;
  --sage-200:  #d2dec9;
  --sage-300:  #b5c5aa;
  --sage-400:  #8fa886;
  --sage-500:  #6f8a67;
  --sage-600:  #586f51;
  --sage-700:  #455840;

  --moss-700:  #3d5535;
  --moss-800:  #2c3f26;
  --moss-900:  #1f2c1b;

  --earth-100: #efe5d0;
  --earth-300: #d4bf95;
  --earth-500: #a08862;
  --earth-700: #6f5a3d;

  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(16,185,129,0.3);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --container-max: 1280px;
  --navbar-height: 80px;
}

/* ---------- 2. Reset & Base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--slate-800);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

body.loading {
  overflow: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 2b. Scroll Progress Bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10001;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage-400), var(--sage-600), var(--earth-300));
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
}

/* ---------- 3. Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--sage-50) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader.done {
  display: none;
}

/* Soft botanical ambient glow */
.preloader::before {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 168, 134, 0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

/* Decorative leaves in background corners */
.preloader::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 20c-18 32-50 48-72 52 22 6 54 22 72 68 18-46 50-62 72-68-22-4-54-20-72-52z' fill='%238fa886' opacity='0.18'/></svg>") -40px -40px / 280px 280px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M40 160c20-45 55-75 120-130-15 50-25 95-55 130-20 25-50 30-65 0z' fill='%23586f51' opacity='0.16'/></svg>") right -30px bottom -30px / 240px 240px no-repeat;
}

/* Background canvas */
.preloader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Center area — sprout + wordmark */
.preloader-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 2;
}

/* Legacy ring divs (kept in case other code looks them up) */
.preloader-ring,
.preloader-logo-wrap { display: none; }

/* --- Growing sprout SVG --- */
.preloader-sprout {
  width: 200px;
  height: 200px;
  overflow: visible;
  filter: drop-shadow(0 6px 18px rgba(69, 88, 64, 0.18));
}

.sprout-soil {
  fill: var(--earth-500);
  opacity: 0;
  transform-origin: 100px 178px;
  animation: sproutSoilIn 0.6s ease-out 0.1s forwards;
}

.sprout-stem {
  stroke: var(--sage-600);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: sproutStemDraw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

.sprout-leaf,
.sprout-bud {
  fill: var(--sage-500);
  opacity: 0;
  transform: scale(0);
}

.sprout-leaf-ll {
  transform-origin: 100px 150px;
  animation: sproutLeafIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards,
             sproutSway 4s ease-in-out 2.2s infinite;
}

.sprout-leaf-lr {
  transform-origin: 100px 150px;
  animation: sproutLeafIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards,
             sproutSwayReverse 4.2s ease-in-out 2.4s infinite;
}

.sprout-leaf-ul {
  transform-origin: 100px 117px;
  fill: var(--sage-600);
  animation: sproutLeafIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.30s forwards,
             sproutSway 4.4s ease-in-out 2.6s infinite;
}

.sprout-leaf-ur {
  transform-origin: 100px 117px;
  fill: var(--sage-600);
  animation: sproutLeafIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.40s forwards,
             sproutSwayReverse 4.6s ease-in-out 2.8s infinite;
}

.sprout-bud {
  transform-origin: 100px 80px;
  fill: var(--sage-700);
  animation: sproutBudIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.70s forwards,
             sproutBudSway 3.5s ease-in-out 2.3s infinite;
}

@keyframes sproutSoilIn {
  from { opacity: 0; transform: scaleX(0.3); }
  to { opacity: 0.5; transform: scaleX(1); }
}

@keyframes sproutStemDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes sproutLeafIn {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes sproutBudIn {
  0% { opacity: 0; transform: scale(0) rotate(-8deg); }
  60% { opacity: 1; transform: scale(1.15) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes sproutSway {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.02) rotate(2deg); }
}

@keyframes sproutSwayReverse {
  0%, 100% { transform: scale(1) rotate(2deg); }
  50% { transform: scale(1.02) rotate(-2deg); }
}

@keyframes sproutBudSway {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.04) rotate(4deg); }
}

/* Wordmark */
.preloader-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--moss-800);
  letter-spacing: 0.6px;
  opacity: 0;
  transform: translateY(8px);
  animation: brandFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

@keyframes brandFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom area */
.preloader-bottom {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 300px;
}

/* Letter-by-letter text */
.preloader-text-reveal {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  color: var(--sage-700);
  letter-spacing: 2px;
  margin-bottom: 22px;
  min-height: 22px;
}

.preloader-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) scale(0.8);
  animation: letterIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Counter */
.preloader-counter {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--moss-800);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.preloader-pct {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  color: var(--moss-800);
}

.preloader-pct-sign {
  font-size: 11px;
  color: var(--sage-600);
  margin-left: 1px;
}

/* Progress line */
.preloader-line {
  width: 100%;
  height: 2px;
  background: rgba(143, 168, 134, 0.18);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage-400), var(--sage-600), var(--earth-300));
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(143, 168, 134, 0.45);
}

/* Curtains -- exit reveal */
.preloader-curtain {
  position: absolute;
  top: 0;
  width: 51%;
  height: 100%;
  background: var(--cream-50);
  z-index: 0;
  will-change: transform;
}

.preloader-curtain-left { left: 0; }
.preloader-curtain-right { right: 0; }

/* ---- EXIT PHASE 1: content fades ---- */
.preloader.phase-fadeout .preloader-center {
  transition: all 0.5s cubic-bezier(0.4, 0, 1, 1);
  opacity: 0;
  transform: scale(0.7);
  filter: blur(6px);
}

.preloader.phase-fadeout .preloader-bottom {
  transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.preloader.phase-fadeout .preloader-canvas {
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* ---- EXIT PHASE 2: curtains open ---- */
.preloader.phase-curtain .preloader-curtain {
  z-index: 10;
}

.preloader.phase-curtain .preloader-curtain-left {
  animation: curtainLeft 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.preloader.phase-curtain .preloader-curtain-right {
  animation: curtainRight 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes curtainLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-101%); }
}

@keyframes curtainRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(101%); }
}

/* ---------- 4. Navbar ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: var(--navbar-height);
  transition: all var(--transition-base);
}

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

.navbar.scrolled,
body.page-light .navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.navbar-logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
}

.navbar.scrolled .navbar-logo-img,
body.page-light .navbar-logo-img {
  height: 42px;
  background: var(--color-white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar.scrolled .nav-link,
body.page-light .nav-link {
  color: var(--slate-700);
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-500);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--emerald-500);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--emerald-500);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}

.navbar-cta:hover {
  background: var(--emerald-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16,185,129,0.4);
}

.navbar-cta .cta-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.navbar-cta:hover .cta-icon {
  transform: translateX(3px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar.scrolled .hamburger-line,
body.page-light .hamburger-line {
  background: var(--slate-800);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(31, 44, 27, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-white);
  padding: 12px 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-base);
}

.mobile-overlay.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-overlay.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-overlay.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-overlay.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-overlay.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-link:hover {
  color: var(--emerald-400);
}

.mobile-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 36px;
  background: var(--emerald-500);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-base);
}

.mobile-overlay.active .mobile-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* ---------- 5. Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--moss-800);
  background-image: url("../assets/hero-bg.png");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Overlay scuro per garantire la leggibilità del testo bianco sopra la foto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(31, 44, 27, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(31, 44, 27, 0.50) 0%, rgba(31, 44, 27, 0.30) 35%, rgba(31, 44, 27, 0.65) 100%);
  z-index: 2;
}

/* Responsive: foto verticalmente sui dispositivi mobili */
@media (max-width: 768px) {
  .hero {
    /* Mantiene la foto in formato verticale focalizzata sul centro del prato/ulivi */
    background-position: center center;
  }

  .hero-overlay {
    /* Overlay leggermente più scuro su mobile per readability */
    background:
      linear-gradient(180deg, rgba(31, 44, 27, 0.55) 0%, rgba(31, 44, 27, 0.40) 35%, rgba(31, 44, 27, 0.75) 100%);
  }
}

@media (max-width: 480px) {
  .hero {
    /* Su schermi molto stretti focalizza sull'olivo a sinistra (soggetto più forte) */
    background-position: 38% center;
  }
}

/* Su dispositivi mobili in orientamento portrait (la stragrande maggioranza),
   la foto viene mostrata con focus verticale ottimizzato. */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    background-position: 45% 55%;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(245, 239, 225, 0.12);
  border: 1px solid rgba(212, 191, 149, 0.30);
  border-radius: var(--radius-full);
  color: var(--earth-300);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.hero-badge-icon {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-title-line {
  display: block;
  font-size: clamp(40px, 6.5vw, 76px);
  letter-spacing: -0.5px;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--emerald-300) 0%, var(--emerald-400) 50%, var(--emerald-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--slate-300);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 13px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--emerald-400);
  border-radius: var(--radius-full);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

.scroll-text {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero decorative elements */
.hero-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-deco-1 { top: 10%; right: -5%; width: 300px; }
.hero-deco-2 { bottom: 20%; left: -3%; width: 200px; }
.hero-deco-3 { top: 50%; right: 20%; width: 400px; }

/* ---------- 6. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary {
  background: var(--emerald-500);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}

.btn-primary:hover {
  background: var(--emerald-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16,185,129,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--emerald-400);
  color: var(--emerald-400);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--emerald-700);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

/* ---------- 7. Sections ---------- */

.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--emerald-500);
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--emerald-500);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header .section-label::before {
  display: none;
}

.section-header .section-label {
  padding-left: 0;
}

.section-desc {
  font-size: 17px;
  color: var(--slate-500);
  line-height: 1.8;
}

/* ---------- 8. About (Chi Siamo) ---------- */

/* --- About / La Nostra Storia --- */

.section-about {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.about-bg-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: var(--cream-50);
  z-index: 0;
  pointer-events: none;
}

.section-about .container {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

/* --- Visual column --- */
.about-visual {
  position: relative;
}

.about-image-wrap {
  position: relative;
  overflow: visible;
}

.about-image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  width: 100%;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-frame:hover .about-image {
  transform: scale(1.04);
}

/* Decorative ring */
.about-deco-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 3px dashed rgba(16,185,129,0.15);
  border-radius: 50%;
  top: -16px;
  left: -16px;
  animation: svcRingSpin 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Decorative dots */
.about-deco-dots {
  position: absolute;
  bottom: 80px;
  right: -12px;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, var(--emerald-300) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* Experience badge */
.about-exp-badge {
  position: absolute;
  bottom: 80px;
  right: -20px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: var(--color-white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(16,185,129,0.3);
  z-index: 5;
}

.about-exp-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.about-exp-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  opacity: 0.9;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
  position: relative;
  z-index: 4;
}

.stat-card {
  background: var(--color-white);
  padding: 22px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--slate-100);
  transition: all 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: var(--emerald-200);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--emerald-600);
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--emerald-400);
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Content column --- */
.about-content {
  padding: 8px 0;
}

/* Timeline */
.about-timeline {
  margin-top: 8px;
  position: relative;
  padding-left: 28px;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald-400), var(--emerald-100));
  border-radius: var(--radius-full);
}

.about-tl-item {
  position: relative;
  padding-bottom: 28px;
}

.about-tl-item:last-child {
  padding-bottom: 0;
}

.about-tl-marker {
  position: absolute;
  left: -28px;
  top: 2px;
}

.about-tl-year {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald-500);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--emerald-200);
  font-size: 0;
  overflow: hidden;
  text-indent: -9999px;
}

.about-tl-content h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-tl-content h4::after {
  content: attr(data-year);
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-500);
  background: var(--emerald-50);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.about-tl-item:nth-child(1) .about-tl-content h4::after { content: '2023'; }
.about-tl-item:nth-child(2) .about-tl-content h4::after { content: '2024'; }
.about-tl-item:nth-child(3) .about-tl-content h4::after { content: 'Oggi'; }

.about-tl-content p {
  font-size: 15px;
  color: var(--slate-500);
  line-height: 1.75;
}

.about-tl-content strong {
  color: var(--slate-700);
}

/* Quote */
.about-quote {
  position: relative;
  padding: 32px 32px 28px 36px;
  background: linear-gradient(135deg, var(--cream-50), var(--color-white));
  border-left: 4px solid var(--sage-500);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-top: 32px;
  box-shadow: 0 4px 20px rgba(69, 88, 64, 0.05);
}

.about-quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--emerald-200);
  line-height: 0.6;
  margin-bottom: 8px;
}

.about-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--slate-700);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-quote cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-quote cite strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-800);
}

.about-quote cite span {
  font-size: 12px;
  color: var(--emerald-600);
  font-weight: 500;
}

/* ---------- 9. Services (Servizi) ---------- */

/* --- Team Section --- */

.section-team {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, var(--cream-50) 0%, #ffffff 100%);
  overflow: hidden;
}

.team-bg-accent {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.team-bg-accent--2 {
  top: auto;
  left: auto;
  bottom: -160px;
  right: -100px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(52,211,153,0.08) 0%, transparent 70%);
}

/* Header */
.team-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 1;
}

.team-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.1;
  margin: 14px 0 18px;
}

.team-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-desc {
  font-size: 17px;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* === FEATURED LEADER (Antonello) === */
.team-leader {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(69, 88, 64, 0.10);
  margin-bottom: 80px;
  z-index: 1;
}

.team-leader-imgwrap {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.team-leader-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-leader:hover .team-leader-img {
  transform: scale(1.04);
}

.team-leader-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 55%, rgba(69, 88, 64, 0.18) 100%);
  pointer-events: none;
}

.team-leader-badge {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(140deg, var(--sage-500), var(--sage-700));
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(69, 88, 64, 0.28);
}

.team-leader-badge-icon {
  width: 14px;
  height: 14px;
}

.team-leader-info {
  padding: 56px 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-leader-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--sage-700);
  margin-bottom: 16px;
}

.team-leader-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  color: var(--moss-800);
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.team-leader-tagline {
  font-size: 17px;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 28px;
}

.team-leader-quote {
  position: relative;
  padding: 22px 24px 22px 32px;
  background: rgba(255, 255, 255, 0.65);
  border-left: 3px solid var(--sage-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
}

.team-leader-quote-mark {
  position: absolute;
  top: -4px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--sage-300);
  line-height: 1;
}

.team-leader-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--moss-800);
  line-height: 1.6;
  margin: 0;
}

.team-leader-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--sage-200);
}

.team-leader-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--sage-700);
  line-height: 1;
  margin-bottom: 6px;
}

.team-leader-stat-plus {
  color: var(--earth-500);
  font-size: 22px;
}

.team-leader-stat-label {
  display: block;
  font-size: 12px;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* === SQUAD DIVIDER === */
.team-squad {
  position: relative;
  z-index: 1;
}

.team-squad-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 44px;
}

.team-squad-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage-300), transparent);
}

.team-squad-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--sage-700);
  white-space: nowrap;
}

/* Grid — 3 members (Antonello is now featured above) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* Member card */
.team-member {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--slate-100);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
  border-color: var(--emerald-100);
}

.team-member--featured {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
  border-color: var(--emerald-200);
  box-shadow: 0 14px 50px rgba(16, 185, 129, 0.12);
}

.team-member--featured:hover {
  box-shadow: 0 34px 80px rgba(16, 185, 129, 0.22);
}

/* Image wrap */
.team-member-imgwrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--slate-100);
}

.team-member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
  filter: saturate(0.95);
}

.team-member:hover .team-member-img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

/* Overlay quote on hover */
.team-member-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.85) 75%, rgba(6, 78, 59, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px 24px;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.team-member:hover .team-member-overlay {
  opacity: 1;
}

.team-member-quote {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transform: translateY(14px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member:hover .team-member-quote {
  transform: translateY(0);
}

/* Role badge */
.team-member-role {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--emerald-700);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  z-index: 2;
}

.team-role-icon {
  width: 14px;
  height: 14px;
  color: var(--emerald-600);
}

.team-member--featured .team-member-role {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: var(--color-white);
  border-color: transparent;
}

.team-member--featured .team-role-icon {
  color: var(--color-white);
}

/* Info block */
.team-member-info {
  padding: 26px 24px 30px;
  text-align: center;
}

.team-member-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.team-member-title {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--emerald-600);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 12px;
}

.team-member-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-400), var(--emerald-600));
  border-radius: var(--radius-full);
}

.team-member-bio {
  font-size: 14.5px;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .team-leader {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }
  .team-leader-imgwrap {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .team-leader-info {
    padding: 40px 36px;
  }
  .team-leader-img-gradient {
    background: linear-gradient(180deg, transparent 55%, rgba(69, 88, 64, 0.22) 100%);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (max-width: 820px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .team-grid > .team-member:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section-team {
    padding: 80px 0 70px;
  }
  .team-header {
    margin-bottom: 44px;
  }
  .team-leader-imgwrap {
    aspect-ratio: 4 / 3;
  }
  .team-leader-info {
    padding: 32px 24px 36px;
  }
  .team-leader-quote {
    padding: 18px 18px 18px 26px;
    margin-bottom: 24px;
  }
  .team-leader-quote-mark {
    font-size: 44px;
    top: -2px;
  }
  .team-leader-stats {
    gap: 18px;
    padding-top: 22px;
  }
  .team-leader-stat-num { font-size: 24px; }
  .team-squad-divider { margin-bottom: 32px; gap: 14px; }
  .team-squad-line { max-width: 60px; }
  .team-squad-label { font-size: 15px; }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .team-grid > .team-member:nth-child(3) {
    max-width: 100%;
    grid-column: auto;
  }
  .team-member-imgwrap {
    aspect-ratio: 4 / 4.2;
  }
  .team-member-name {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .team-leader-badge {
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    font-size: 11px;
  }
  .team-leader-info { padding: 28px 20px 32px; }
  .team-leader-name { font-size: 28px; }
  .team-leader-tagline { font-size: 15px; }
}

@media (hover: none) {
  /* On touch devices show overlay always partially */
  .team-member-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(15,23,42,0) 50%, rgba(15,23,42,0.75) 100%);
  }
  .team-member-quote {
    transform: translateY(0);
    font-size: 15px;
  }
}

/* --- Services Section --- */

.section-services {
  background:
    radial-gradient(circle at 12% 8%, rgba(143, 168, 134, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(212, 191, 149, 0.22) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream-50) 0%, var(--linen) 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}

/* Botanical accents (kept class names so HTML stays compatible) */
.services-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.services-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

.services-shape-1 {
  width: 320px;
  height: 320px;
  top: 4%;
  right: -60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 10c-20 35-55 50-80 55 25 8 60 25 80 75 20-50 55-67 80-75-25-5-60-20-80-55z' fill='%238fa886' opacity='0.18'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  animation: svcSway 14s ease-in-out infinite;
  transform-origin: top right;
}

.services-shape-2 {
  width: 240px;
  height: 240px;
  bottom: 6%;
  left: -40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M40 160c20-45 55-75 120-130-15 50-25 95-55 130-20 25-50 30-65 0z' fill='%23586f51' opacity='0.16'/><path d='M40 160c30-25 65-55 100-105' stroke='%23586f51' stroke-opacity='0.22' stroke-width='1.5' fill='none'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  animation: svcSway 18s ease-in-out infinite reverse;
  transform-origin: bottom left;
}

.services-shape-3 {
  width: 180px;
  height: 180px;
  top: 48%;
  left: 6%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 30c-15 25-40 40-60 45 20 5 45 18 60 60 15-42 40-55 60-60-20-5-45-20-60-45z' fill='%23a08862' opacity='0.12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  animation: svcSway 22s ease-in-out infinite;
  transform-origin: center;
}

@keyframes svcSway {
  0%, 100% { transform: rotate(-3deg) translate(0, 0); }
  50% { transform: rotate(4deg) translate(8px, -10px); }
}

/* Featured row: 2 large cards */
.services-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

/* Standard row: 3 cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Service Card --- */
.svc-card {
  position: relative;
  padding: 44px 36px 40px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--sage-100);
  box-shadow: 0 8px 30px rgba(69, 88, 64, 0.06);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.45s ease;
  display: flex;
  flex-direction: column;
}

/* Soft botanical accent on hover (replaces glow) */
.svc-card-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -70px;
  right: -70px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 20c-18 32-50 48-72 52 22 6 54 22 72 68 18-46 50-62 72-68-22-4-54-20-72-52z' fill='%238fa886' opacity='0.5'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: rotate(-20deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.svc-card:hover .svc-card-glow {
  opacity: 0.35;
  transform: rotate(0deg);
}

.svc-card:hover {
  border-color: var(--sage-300);
  transform: translateY(-6px);
  box-shadow:
    0 24px 50px rgba(69, 88, 64, 0.14);
}

/* Decorative number — warm olive tone instead of cold tech */
.svc-number {
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--sage-100);
  pointer-events: none;
  transition: color 0.5s ease, transform 0.5s ease;
}

.svc-card:hover .svc-number {
  color: var(--sage-200);
  transform: scale(1.03);
}

.svc-card--large .svc-number {
  font-size: 96px;
}

/* Icon — soft botanical leaf-circle, no spinning ring */
.svc-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 28px;
  background: var(--sage-50);
}

.svc-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--sage-400) 0%, var(--sage-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(69, 88, 64, 0.18);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.svc-card:hover .svc-icon-circle {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 22px rgba(69, 88, 64, 0.28);
}

.svc-icon {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

/* Typography */
.svc-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--moss-800);
  margin-bottom: 14px;
  line-height: 1.25;
}

.svc-card--large .svc-title {
  font-size: 28px;
}

.svc-desc {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 28px;
  flex-grow: 1;
}

/* Link */
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-700);
  transition: all 0.3s ease;
  margin-top: auto;
}

.svc-link-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.svc-link:hover {
  color: var(--moss-800);
  gap: 14px;
}

.svc-link:hover .svc-link-arrow {
  transform: translateX(4px);
}

/* --- Services CTA Banner --- */
.services-cta {
  margin-top: 56px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-800) 60%, #064e3b 100%);
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.services-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 56px;
  position: relative;
  z-index: 1;
}

.services-cta-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.services-cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 480px;
}

.services-cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ---------- 10. Why Us (Perché Noi) ---------- */

/* --- Why Section --- */

.section-why {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: linear-gradient(180deg, var(--sage-50) 0%, #ffffff 65%, var(--cream-50) 100%);
}

.why-parallax-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(143, 168, 134, 0.22) 0%, transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(212, 191, 149, 0.18) 0%, transparent 35%);
  z-index: 0;
  pointer-events: none;
}

.why-overlay {
  position: absolute;
  top: 8%;
  right: -80px;
  width: 360px;
  height: 360px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M30 170c10-50 35-100 130-150-15 55-25 105-60 140-25 25-55 30-70 10z' fill='%238fa886' opacity='0.18'/><path d='M30 170c30-30 65-65 110-115' stroke='%23586f51' stroke-opacity='0.18' stroke-width='1.5' fill='none'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  animation: svcSway 22s ease-in-out infinite;
  transform-origin: top right;
}

/* Hidden — replaced by botanical accent */
.why-timeline-line { display: none; }

.section-why .container {
  position: relative;
  z-index: 2;
}

.section-header-light .section-label {
  color: var(--emerald-400);
}

.section-header-light .section-label::before {
  background: var(--emerald-400);
}

.section-header-light .section-title {
  color: var(--color-white);
}

.section-header-light .section-title em {
  background: linear-gradient(135deg, var(--emerald-300) 0%, var(--emerald-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header-light .section-desc {
  color: var(--slate-400);
}

/* --- Bento Grid --- */
.why-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

/* Featured cards span 2 rows */
.why-card--featured:nth-child(1) {
  grid-row: 1 / 3;
  grid-column: 1;
}

.why-card[data-why="2"] {
  grid-row: 1;
  grid-column: 2;
}

.why-card[data-why="3"] {
  grid-row: 1;
  grid-column: 3;
}

.why-card--featured:nth-child(4) {
  grid-row: 2;
  grid-column: 2 / 4;
}

/* --- Card Base --- */
.why-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s ease;
  cursor: default;
}

/* Clean paper card */
.why-card-bg {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 30px rgba(69, 88, 64, 0.06);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.why-card--featured .why-card-bg {
  background: linear-gradient(160deg, #ffffff 0%, var(--sage-50) 100%);
  border-color: var(--sage-200);
}

.why-card:hover .why-card-bg {
  border-color: var(--sage-300);
  box-shadow: 0 24px 50px rgba(69, 88, 64, 0.14);
}

.why-card:hover {
  transform: translateY(-8px);
}

/* Card content */
.why-card-content {
  position: relative;
  z-index: 2;
  padding: 40px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.why-card--featured .why-card-content {
  padding: 48px 40px;
  justify-content: center;
}

/* Badge (number + line) */
.why-card-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.why-badge-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--sage-700);
  letter-spacing: 2px;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  transition: all 0.4s ease;
}

.why-card:hover .why-badge-num {
  background: var(--sage-600);
  color: var(--color-white);
  border-color: var(--sage-600);
  box-shadow: 0 4px 14px rgba(69, 88, 64, 0.22);
}

.why-badge-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--sage-200), transparent);
}

/* Icon */
.why-card-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.why-icon {
  width: 30px;
  height: 30px;
  color: var(--sage-600);
  position: relative;
  z-index: 2;
  transition: color 0.4s ease, transform 0.4s ease;
}

.why-card:hover .why-icon {
  color: var(--color-white);
  transform: scale(1.1);
}

/* Soft circle behind icon */
.why-icon-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  transition: all 0.5s ease;
}

.why-card:hover .why-icon-pulse {
  background: linear-gradient(140deg, var(--sage-500), var(--sage-700));
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(69, 88, 64, 0.22);
}

/* Typography */
.why-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--moss-800);
  margin-bottom: 14px;
  line-height: 1.2;
}

.why-card--featured .why-card-title {
  font-size: 30px;
}

.why-card-desc {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.75;
}

/* Tags */
.why-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.why-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--sage-700);
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  transition: all 0.3s ease;
}

.why-card:hover .why-tag {
  background: var(--sage-100);
  border-color: var(--sage-300);
}

/* --- Stats Strip --- */
.why-strip {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 36px 48px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--sage-100);
  box-shadow: 0 8px 30px rgba(69, 88, 64, 0.06);
}

.why-strip-item {
  flex: 1;
  text-align: center;
}

.why-strip-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--moss-800);
  display: inline;
}

.why-strip-plus {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--sage-600);
  display: inline;
}

.why-strip-label {
  display: block;
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.why-strip-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--sage-200), transparent);
  flex-shrink: 0;
}

/* ---------- 11. CTA Section ---------- */

/* --- CTA Section --- */

.section-cta {
  position: relative;
  overflow: hidden;
  padding: 160px 0;
}

.cta-parallax-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, var(--sage-700) 0%, var(--moss-700) 40%, var(--moss-800) 100%);
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(245, 239, 225, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(245, 239, 225, 0.08) 0%, transparent 55%);
  z-index: 1;
}

/* Botanical leaf accents (replaces sci-fi particles, reusing existing slots) */
.cta-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.cta-particle {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.cta-p1 {
  width: 110px; height: 110px;
  top: 12%; left: 6%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 20c-18 32-50 48-72 52 22 6 54 22 72 68 18-46 50-62 72-68-22-4-54-20-72-52z' fill='%23ffffff'/></svg>");
  animation: ctaSway 14s 0s infinite;
  transform-origin: top left;
}

.cta-p2 {
  width: 70px; height: 70px;
  top: 70%; left: 14%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M40 160c20-45 55-75 120-130-15 50-25 95-55 130-20 25-50 30-65 0z' fill='%23ffffff'/></svg>");
  animation: ctaSway 18s 2s infinite reverse;
  transform-origin: bottom left;
}

.cta-p3 {
  width: 140px; height: 140px;
  top: 18%; right: 8%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 20c-18 32-50 48-72 52 22 6 54 22 72 68 18-46 50-62 72-68-22-4-54-20-72-52z' fill='%23ffffff'/></svg>");
  opacity: 0.18;
  animation: ctaSway 16s 1s infinite;
  transform-origin: top right;
}

.cta-p4 {
  width: 80px; height: 80px;
  bottom: 18%; right: 16%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M40 160c20-45 55-75 120-130-15 50-25 95-55 130-20 25-50 30-65 0z' fill='%23ffffff'/></svg>");
  animation: ctaSway 20s 3s infinite;
  transform-origin: bottom right;
}

.cta-p5, .cta-p6 { display: none; }

@keyframes ctaSway {
  0%, 100% { transform: rotate(-4deg) translate(0, 0); }
  50% { transform: rotate(5deg) translate(6px, -8px); }
}

.section-cta .container {
  position: relative;
  z-index: 3;
}

.cta-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* Label with pulsing dot */
.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--earth-300);
  margin-bottom: 24px;
  background: rgba(245, 239, 225, 0.08);
  border: 1px solid rgba(212, 191, 149, 0.22);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--earth-300);
  animation: ctaDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ctaDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 191, 149, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(212, 191, 149, 0); }
}

/* Title */
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.cta-title-highlight {
  font-style: italic;
  position: relative;
  display: inline-block;
}

.cta-title-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(90deg, rgba(212, 191, 149, 0.32), rgba(212, 191, 149, 0.12));
  border-radius: 4px;
  z-index: -1;
}

/* Description */
.cta-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Trust badges */
.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

.cta-trust-icon {
  width: 18px;
  height: 18px;
  color: var(--emerald-300);
}

/* Action buttons */
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  background: var(--color-white) !important;
  color: var(--emerald-700) !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.cta-btn-primary:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.cta-btn-whatsapp {
  background: #25D366 !important;
  color: var(--color-white) !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(37,211,102,0.3);
}

.cta-btn-whatsapp:hover {
  background: #20bd5a !important;
  box-shadow: 0 12px 40px rgba(37,211,102,0.4);
  transform: translateY(-2px);
}

/* ---------- 12. Contact (Contatti) ---------- */

/* --- Contact Section --- */

.section-contact {
  background:
    radial-gradient(circle at 10% 12%, rgba(143, 168, 134, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 90% 88%, rgba(212, 191, 149, 0.20) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream-50) 0%, var(--linen) 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.contact-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-shape {
  position: absolute;
  pointer-events: none;
}

.contact-shape-1 {
  width: 280px;
  height: 280px;
  top: 4%;
  left: -50px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 20c-18 32-50 48-72 52 22 6 54 22 72 68 18-46 50-62 72-68-22-4-54-20-72-52z' fill='%238fa886' opacity='0.18'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  animation: svcSway 16s ease-in-out infinite;
  transform-origin: top left;
}

.contact-shape-2 {
  width: 240px;
  height: 240px;
  bottom: 4%;
  right: -40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M40 160c20-45 55-75 120-130-15 50-25 95-55 130-20 25-50 30-65 0z' fill='%23586f51' opacity='0.16'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  animation: svcSway 20s ease-in-out infinite reverse;
  transform-origin: bottom right;
}

.section-contact .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

/* --- Form --- */
.contact-form-wrap {
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--sage-100);
  box-shadow: 0 12px 40px rgba(69, 88, 64, 0.08);
  overflow: hidden;
}

.contact-form-header {
  padding: 32px 36px 0;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--moss-800);
  margin-bottom: 6px;
}

.contact-form-subtitle {
  font-size: 14px;
  color: var(--slate-500);
}

.contact-form {
  padding: 28px 36px 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group:last-child {
  margin-bottom: 0;
}

.contact-form > .form-group {
  margin-bottom: 16px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sage-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  padding: 14px 18px;
  background: var(--cream-50);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--moss-800);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--slate-400);
}

.form-input:focus {
  border-color: var(--sage-500);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(143, 168, 134, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Right column --- */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Quick action cards */
.contact-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  cursor: pointer;
}

.contact-action--phone {
  background: #ffffff;
  border: 1px solid var(--sage-200);
  box-shadow: 0 6px 18px rgba(69, 88, 64, 0.06);
}

.contact-action--phone:hover {
  background: var(--sage-50);
  border-color: var(--sage-400);
  transform: translateX(6px);
  box-shadow: 0 10px 28px rgba(69, 88, 64, 0.14);
}

.contact-action--whatsapp {
  background: #ffffff;
  border: 1px solid var(--sage-200);
  box-shadow: 0 6px 18px rgba(69, 88, 64, 0.06);
}

.contact-action--whatsapp:hover {
  background: #f1faf3;
  border-color: rgba(37,211,102,0.45);
  transform: translateX(6px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.16);
}

.contact-action-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.contact-action--phone .contact-action-icon {
  background: linear-gradient(140deg, var(--sage-500), var(--sage-700));
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(69, 88, 64, 0.22);
}

.contact-action--whatsapp .contact-action-icon {
  background: #25D366;
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.25);
}

.contact-action-icon i,
.contact-action-icon svg {
  width: 22px;
  height: 22px;
}

.contact-action-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--moss-800);
}

.contact-action-value {
  display: block;
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 2px;
}

.contact-action-arrow {
  width: 18px;
  height: 18px;
  color: var(--slate-400);
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-action-card:hover .contact-action-arrow {
  color: var(--sage-700);
  transform: translateX(4px);
}

/* Detail rows */
.contact-details {
  background: #ffffff;
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 6px 22px rgba(69, 88, 64, 0.05);
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
}

.contact-detail-row:not(:last-child) {
  border-bottom: 1px solid var(--sage-100);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-50);
  border-radius: var(--radius-md);
  color: var(--sage-700);
  flex-shrink: 0;
}

.contact-detail-icon i {
  width: 18px;
  height: 18px;
}

.contact-detail-row h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--moss-800);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail-row p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Social block */
.contact-social-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-social-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  white-space: nowrap;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-white);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.15);
}

.social-link--facebook {
  background: #1877f2;
  box-shadow: 0 4px 14px rgba(24,119,242,0.3);
}

.social-link--instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 4px 14px rgba(225,48,108,0.3);
}

.social-link--whatsapp {
  background: #25D366;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}

/* Map */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sage-200);
  box-shadow: 0 8px 22px rgba(69, 88, 64, 0.10);
}

/* ---------- 13. Footer ---------- */

.footer {
  background: linear-gradient(180deg, var(--moss-800) 0%, var(--moss-900) 100%);
  color: var(--sage-100);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  bottom: -60px;
  left: -60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M40 160c20-45 55-75 120-130-15 50-25 95-55 130-20 25-50 30-65 0z' fill='%23ffffff' opacity='0.05'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.footer-top-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--sage-600), var(--sage-400), var(--earth-300), var(--sage-400), var(--sage-600));
}

/* Social banner */
.footer-social-banner {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-social-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-social-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-white);
}

.footer-social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  transition: all var(--transition-base);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.social-facebook {
  background: #1877f2;
  box-shadow: 0 4px 16px rgba(24,119,242,0.3);
}

.social-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 4px 16px rgba(225,48,108,0.3);
}

.social-whatsapp {
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

/* Footer main */
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Brand column */
.footer-logo-wrap {
  width: 160px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  transition: all var(--transition-base);
}

.footer-logo-wrap:hover {
  box-shadow: 0 4px 24px rgba(16,185,129,0.15);
}

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

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--sage-200);
  margin-bottom: 16px;
}

.footer-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--earth-300);
  font-weight: 500;
}

/* Nav columns */
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--earth-300);
  border-radius: var(--radius-full);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--sage-200);
  transition: all var(--transition-fast);
}

.footer-li-icon {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: all var(--transition-fast);
  color: var(--earth-300);
  flex-shrink: 0;
  margin-left: -20px;
}

.footer-col ul li a:hover {
  color: var(--earth-300);
  padding-left: 6px;
}

.footer-col ul li a:hover .footer-li-icon {
  opacity: 1;
  margin-left: 0;
}

/* Contact column */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px !important;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--earth-300);
  flex-shrink: 0;
}

.footer-contact-icon i,
.footer-contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer-contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sage-300);
  margin-bottom: 2px;
}

.footer-contact-list a,
.footer-contact-list span {
  font-size: 14px;
  color: var(--sage-100);
  transition: color var(--transition-fast);
}

.footer-contact-list a:hover {
  color: var(--earth-300);
}

/* Footer bottom */
.footer-bottom {
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--sage-300);
}

.footer-bottom-sub {
  margin-top: 4px;
  font-size: 12px !important;
  color: var(--slate-700) !important;
}

.footer-bottom-credit {
  margin-top: 12px;
  font-size: 12px !important;
  color: var(--slate-600) !important;
}

.footer-bottom-credit a {
  color: var(--emerald-400);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-bottom-credit a:hover {
  color: var(--emerald-300);
}

/* ---------- 14. WhatsApp Float ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-base);
  opacity: 0;
  transform: scale(0.5) translateY(20px);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.whatsapp-float-icon {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--slate-800);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--slate-800);
  border-right: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ---------- 15. Toast ---------- */

.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--slate-800);
  color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-icon {
  width: 22px;
  height: 22px;
  color: var(--emerald-400);
}

.toast-text {
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 16. Reveal Animation Classes ---------- */

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 17. Responsive ---------- */

@media (max-width: 1200px) {
  .why-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .why-card--featured:nth-child(1) {
    grid-row: auto;
    grid-column: 1 / 3;
  }

  .why-card[data-why="2"] {
    grid-row: auto;
    grid-column: auto;
  }

  .why-card[data-why="3"] {
    grid-row: auto;
    grid-column: auto;
  }

  .why-card--featured:nth-child(4) {
    grid-row: auto;
    grid-column: 1 / 3;
  }

  .why-timeline-line {
    display: none;
  }
}

@media (max-width: 1024px) {
  .navbar-menu {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-bg-accent {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-exp-badge {
    right: -12px;
    bottom: 60px;
    padding: 16px 20px;
  }

  .about-exp-num {
    font-size: 28px;
  }

  .about-deco-ring {
    width: 80px;
    height: 80px;
    top: -20px;
    left: -16px;
  }

  .about-deco-dots {
    display: none;
  }

  .services-featured {
    grid-template-columns: 1fr;
  }

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

  .services-cta-content {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }

  .services-cta-actions {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 68px;
  }

  .section {
    padding: 80px 0;
  }

  .section-cta {
    padding: 100px 0;
  }

  .hero-title-line {
    font-size: clamp(32px, 8.5vw, 52px);
  }

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

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

  .hero-scroll-indicator {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .svc-card {
    padding: 32px 24px 28px;
  }

  .svc-number {
    font-size: 52px;
  }

  .svc-card--large .svc-number {
    font-size: 64px;
  }

  .svc-title {
    font-size: 22px;
  }

  .svc-card--large .svc-title {
    font-size: 24px;
  }

  .services-cta-title {
    font-size: 24px;
  }

  .services-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .services-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .why-bento {
    grid-template-columns: 1fr;
  }

  .why-card--featured:nth-child(1),
  .why-card--featured:nth-child(4) {
    grid-column: auto;
  }

  .why-card-content {
    padding: 32px 24px;
  }

  .why-card--featured .why-card-content {
    padding: 36px 28px;
  }

  .why-card--featured .why-card-title {
    font-size: 26px;
  }

  .why-strip {
    flex-wrap: wrap;
    gap: 28px 0;
    padding: 28px 20px;
  }

  .why-strip-item {
    flex: 0 0 50%;
  }

  .why-strip-divider {
    display: none;
  }

  .why-strip-num {
    font-size: 32px;
  }

  .google-badge {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }

  .google-badge-left {
    flex-direction: column;
  }

  .google-badge-right {
    flex-direction: column;
    gap: 8px;
  }

  .google-review-count {
    border-left: none;
    padding-left: 0;
  }

  .google-rating {
    text-align: center;
  }

  .google-rating-stars {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px 20px 28px;
  }

  .contact-form-header {
    padding: 24px 20px 0;
  }

  .contact-social-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-social-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
  }

  .social-btn span {
    display: none;
  }

  .social-btn {
    padding: 12px;
    border-radius: 50%;
  }

  .cta-trust {
    gap: 16px;
  }

  .cta-trust-item {
    font-size: 13px;
  }

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

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    margin-top: 20px;
    padding: 0;
  }

  .stat-number {
    font-size: 28px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float-icon {
    width: 26px;
    height: 26px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .mobile-link {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .section-title {
    font-size: clamp(28px, 7.5vw, 40px);
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 16px;
  }

  .stat-card {
    padding: 14px 6px;
  }

  .stat-number {
    font-size: 22px;
  }

  .about-exp-badge {
    right: 0;
    bottom: 50px;
    padding: 12px 16px;
    gap: 8px;
  }

  .about-exp-num {
    font-size: 22px;
  }

  .about-exp-text {
    font-size: 10px;
  }

  .about-deco-ring {
    display: none;
  }

  .stat-label {
    font-size: 10px;
  }

  .svc-card {
    padding: 24px 18px 22px;
  }

  .svc-icon-ring {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .svc-icon-circle {
    width: 46px;
    height: 46px;
  }

  .svc-icon {
    width: 20px;
    height: 20px;
  }

  .services-cta-content {
    padding: 28px 20px;
  }

  /* CTA title scales down on tiny screens */
  .cta-title {
    font-size: clamp(30px, 8vw, 48px);
    line-height: 1.15;
  }

  .cta-desc {
    font-size: 15px;
  }

  /* Preloader sprout shrinks on small screens */
  .preloader-sprout {
    width: 150px;
    height: 150px;
  }

  .preloader-brand {
    font-size: 20px;
  }

  .preloader-text-reveal {
    font-size: 14px;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
  }

  .preloader-bottom {
    bottom: 36px;
    width: calc(100% - 40px);
    max-width: 280px;
  }

  /* Hero badge wraps if too narrow */
  .hero-badge {
    text-align: center;
  }

  /* Page hero title shrinks more */
  .page-hero {
    padding: 110px 0 50px;
  }
  .page-hero .section-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .page-hero .section-desc {
    font-size: 14px;
  }

  /* Review card slightly narrower on phones */
  .review-card {
    width: 280px;
    padding: 22px 20px;
  }

  /* Tighter reviews mask on small viewports */
  .reviews-carousel {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  }

  /* Year badge inside about timeline wraps better */
  .about-tl-content h4 {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Service CTA banner readable on small */
  .services-cta-title {
    font-size: 22px;
  }
  .services-cta-desc {
    font-size: 14px;
  }
}

/* ---------- 18. Utility & Performance ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }
}

::selection {
  background: var(--sage-200);
  color: var(--moss-800);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream-100);
}

::-webkit-scrollbar-thumb {
  background: var(--sage-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sage-600);
}

/* ============================================================
   19. Projects Section (Homepage)
   ============================================================ */

.section-projects {
  background: var(--color-white);
}

.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.project-card-reverse {
  direction: rtl;
}

.project-card-reverse > * {
  direction: ltr;
}

.project-card-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}

.project-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-thumb:hover img {
  transform: scale(1.06);
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-thumb-overlay i,
.project-thumb-overlay svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
}

.project-thumb:hover .project-thumb-overlay {
  opacity: 1;
}

.project-thumb-main {
  aspect-ratio: 4/3;
}

.project-thumb-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-thumb-sm {
  flex: 1;
  min-height: 0;
}

.project-card-info {
  padding: 16px 0;
}

.project-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 14px;
}

.project-card-desc {
  font-size: 15px;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-card-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-400);
}

.project-card-count i,
.project-card-count svg {
  width: 16px;
  height: 16px;
}

.projects-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   20. Reviews Section (Homepage)
   ============================================================ */

/* --- Reviews Section --- */

.section-reviews {
  position: relative;
  background-color: var(--sage-50);
  background-image:
    linear-gradient(180deg, rgba(253, 250, 242, 0.78) 0%, rgba(244, 247, 241, 0.85) 100%),
    url("../assets/reviews-bg.png");
  background-size: auto, cover;
  background-position: 0 0, center 35%;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  overflow: hidden;
}

/* Responsive: foto fissa non funziona bene su mobile (laggy/zoomata su iOS) */
@media (max-width: 1024px) {
  .section-reviews {
    background-attachment: scroll, scroll;
    background-position: 0 0, center center;
  }
}

@media (max-width: 480px) {
  .section-reviews {
    background-image:
      linear-gradient(180deg, rgba(253, 250, 242, 0.85) 0%, rgba(244, 247, 241, 0.90) 100%),
      url("../assets/reviews-bg.png");
    background-position: 0 0, 42% center;
  }
}

/* Google badge */
.google-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--color-white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.google-badge-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.google-logo {
  flex-shrink: 0;
}

.google-badge-title {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-900);
}

.google-badge-subtitle {
  display: block;
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 2px;
}

.google-badge-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.google-rating {
  text-align: right;
}

.google-rating-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1;
}

.google-rating-stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.google-rating-stars svg {
  width: 16px;
  height: 16px;
}

.google-review-count {
  font-size: 13px;
  color: var(--slate-500);
  white-space: nowrap;
  border-left: 1px solid var(--slate-200);
  padding-left: 16px;
}

/* Carousel */
.reviews-carousel {
  position: relative;
  margin: 0 calc(-1 * var(--container-padding, 20px));
  padding: 0 var(--container-padding, 20px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 24px;
  animation: reviewsScroll 45s linear infinite;
  width: max-content;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes reviewsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Review card */
.review-card {
  flex-shrink: 0;
  width: 380px;
  background: var(--color-white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sage-100);
  box-shadow: 0 4px 18px rgba(69, 88, 64, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(69, 88, 64, 0.12);
  border-color: var(--sage-300);
}

/* Review header */
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-avatar--sage {
  background: linear-gradient(140deg, var(--sage-400), var(--sage-600));
  color: var(--color-white);
}

.review-avatar--earth {
  background: linear-gradient(140deg, var(--earth-300), var(--earth-500));
  color: var(--color-white);
}

.review-avatar--moss {
  background: linear-gradient(140deg, var(--sage-600), var(--moss-700));
  color: var(--color-white);
}

.review-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.2;
}

.review-date {
  display: block;
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 1px;
}

.review-google-icon {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Stars */
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
}

.star-filled {
  width: 16px;
  height: 16px;
  color: #f59e0b;
  fill: #f59e0b;
}

/* Text */
.review-text {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.75;
  flex: 1;
}

/* CTA bottom */
.reviews-cta {
  text-align: center;
  margin-top: 40px;
}

.reviews-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--color-white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  transition: all 0.35s ease;
}

.reviews-cta-btn:hover {
  border-color: #4285F4;
  color: #4285F4;
  box-shadow: 0 4px 20px rgba(66,133,244,0.15);
  transform: translateY(-2px);
}

/* ============================================================
   21. Lightbox
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
}

/* ============================================================
   22. Projects Page (progetti.html)
   ============================================================ */

.page-hero {
  padding: 160px 0 80px;
  background:
    radial-gradient(circle at 14% 18%, rgba(143, 168, 134, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 88% 84%, rgba(212, 191, 149, 0.22) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream-50) 0%, var(--linen) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  top: -20px;
  right: -30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 20c-18 32-50 48-72 52 22 6 54 22 72 68 18-46 50-62 72-68-22-4-54-20-72-52z' fill='%238fa886' opacity='0.22'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: rotate(20deg);
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  bottom: -30px;
  left: -40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M40 160c20-45 55-75 120-130-15 50-25 95-55 130-20 25-50 30-65 0z' fill='%23586f51' opacity='0.18'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .section-label {
  color: var(--sage-700);
}

.page-hero .section-label::before {
  background: var(--sage-500);
}

.page-hero .section-title {
  color: var(--moss-800);
}

.page-hero .section-title em {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .section-desc {
  color: var(--slate-600);
  max-width: 560px;
  margin: 0 auto;
}

.project-section {
  padding: 100px 0;
}

.project-section:nth-child(even) {
  background: var(--cream-50);
}

.project-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.project-section-header .project-tag {
  margin-bottom: 8px;
}

.project-section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.2;
}

.project-section-desc {
  font-size: 15px;
  color: var(--slate-500);
  max-width: 400px;
  text-align: right;
  line-height: 1.7;
}

/* Masonry-style gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Duo variant — 2 large side-by-side images */
.project-gallery--duo {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-gallery--duo .project-gallery-item {
  aspect-ratio: 4/3;
  box-shadow: 0 10px 40px rgba(15,23,42,0.08);
}

/* Quad variant — 4 images in a 2x2 grid */
.project-gallery--quad {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-gallery--quad .project-gallery-item {
  aspect-ratio: 4/3;
  box-shadow: 0 10px 40px rgba(15,23,42,0.08);
}

/* Solo variant — 1 single centered image */
.project-gallery--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.project-gallery--solo .project-gallery-item {
  aspect-ratio: 3/4;
  max-height: 640px;
  box-shadow: 0 14px 44px rgba(69, 88, 64, 0.14);
}

/* Homepage card variant — single tall image with no thumb stack */
.project-card-gallery--solo {
  grid-template-columns: 1fr !important;
  gap: 0;
}

.project-thumb-main--solo {
  aspect-ratio: 4/3;
}

.project-gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.project-gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.project-gallery-item.wide {
  grid-column: span 2;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-gallery-item:hover img {
  transform: scale(1.08);
}

.project-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,0.4) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-gallery-item:hover::after {
  opacity: 1;
}

/* Video / Reels Section */
.video-section {
  padding: 100px 0;
  background:
    linear-gradient(165deg, var(--moss-700) 0%, var(--moss-800) 60%, var(--moss-900) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.video-section::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  top: 12%;
  right: -60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M100 20c-18 32-50 48-72 52 22 6 54 22 72 68 18-46 50-62 72-68-22-4-54-20-72-52z' fill='%23ffffff' opacity='0.06'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.video-section::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  bottom: 6%;
  left: -50px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'><path d='M40 160c20-45 55-75 120-130-15 50-25 95-55 130-20 25-50 30-65 0z' fill='%23ffffff' opacity='0.05'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Reels grid -- Instagram-style vertical cards */
.reels-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.reel-card {
  width: 320px;
  flex-shrink: 0;
}

.reel-card-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/16;
  box-shadow: 0 16px 60px rgba(0,0,0,0.5);
  cursor: pointer;
}

.reel-card-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  pointer-events: none;
  transition: all var(--transition-base);
}

.reel-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.reel-card-inner:hover .reel-play-btn {
  background: rgba(255,255,255,0.35);
  transform: translate(-50%, -50%) scale(1.1);
}

.reel-card-inner.playing .reel-play-btn {
  opacity: 0;
}

.reel-info {
  padding: 16px 4px 0;
  text-align: left;
}

.reel-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--emerald-400);
  background: rgba(16,185,129,0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.reel-caption {
  font-size: 14px;
  color: var(--slate-400);
  line-height: 1.5;
}

/* Follow CTA */
.reels-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.reels-follow-text {
  font-size: 15px;
  color: var(--slate-400);
}

.reels-follow-text strong {
  color: var(--color-white);
}

/* ============================================================
   23. Responsive additions
   ============================================================ */

@media (max-width: 1024px) {
  .project-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-card-reverse {
    direction: ltr;
  }

  .review-card {
    width: 300px;
  }

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

  .project-gallery-item.tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .project-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-section-desc {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .project-card-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-title {
    font-size: 24px;
  }

  .project-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .project-gallery--duo,
  .project-gallery--quad,
  .project-gallery--solo {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-gallery--solo .project-gallery-item {
    aspect-ratio: 4/5;
    max-height: 540px;
  }

  .project-gallery-item.wide {
    grid-column: span 1;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }

  .reel-card {
    width: 280px;
  }

  .page-hero {
    padding: 120px 0 60px;
  }
}

@media (max-width: 480px) {
  .project-card-gallery {
    grid-template-columns: 1fr;
  }

  .project-thumb-stack {
    flex-direction: row;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   24. Language Switcher (IT / EN)
   ============================================================ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  margin-left: auto;
  margin-right: 14px;
  border-radius: var(--radius-full);
  background: rgba(245, 239, 225, 0.12);
  border: 1px solid rgba(212, 191, 149, 0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-base), border-color var(--transition-base);
  flex-shrink: 0;
}

.lang-option {
  padding: 5px 11px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  line-height: 1;
}

.lang-option:hover { color: #fff; }

.lang-option.active {
  background: linear-gradient(140deg, var(--sage-500), var(--sage-700));
  color: #fff;
  box-shadow: 0 2px 8px rgba(69, 88, 64, 0.28);
}

.lang-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

/* --- navbar chiara (scrolled oppure pagina interna) --- */
.navbar.scrolled .lang-switch,
body.page-light .lang-switch {
  background: var(--sage-50);
  border-color: var(--sage-200);
}

.navbar.scrolled .lang-option,
body.page-light .lang-option {
  color: var(--slate-600);
}

.navbar.scrolled .lang-option:hover,
body.page-light .lang-option:hover {
  color: var(--moss-800);
}

.navbar.scrolled .lang-option.active,
body.page-light .lang-option.active {
  color: #fff;
}

.navbar.scrolled .lang-sep,
body.page-light .lang-sep {
  background: var(--sage-200);
}

/* --- versione nel menu mobile --- */
.lang-switch--mobile {
  display: none;
  margin: 28px auto 0;
  padding: 6px 8px;
  gap: 4px;
  background: rgba(245, 239, 225, 0.10);
  border-color: rgba(212, 191, 149, 0.28);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.45s, transform 0.5s ease 0.45s;
}

.mobile-overlay.active .lang-switch--mobile {
  opacity: 1;
  transform: translateY(0);
}

.lang-switch--mobile .lang-option {
  padding: 9px 20px;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.75);
}

.lang-switch--mobile .lang-option.active {
  color: #fff;
}

/* --- responsive: sotto 1024px lo switcher vive nel menu mobile --- */
@media (max-width: 1024px) {
  .navbar .lang-switch:not(.lang-switch--mobile) { display: none; }
  .lang-switch--mobile { display: inline-flex; }
}

@media (max-width: 480px) {
  .lang-switch--mobile .lang-option {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* accessibilita: focus visibile da tastiera */
.lang-option:focus-visible {
  outline: 2px solid var(--sage-400);
  outline-offset: 2px;
}

/* --- Mini bandiere nello switcher lingua --- */

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lang-option::before {
  content: '';
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 2px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(31, 44, 27, 0.16), 0 1px 2px rgba(31, 44, 27, 0.20);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-option[data-lang="it"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%203%202'%3E%3Crect%20width%3D'3'%20height%3D'2'%20fill%3D'%23F1F2F1'%2F%3E%3Crect%20width%3D'1'%20height%3D'2'%20fill%3D'%23009246'%2F%3E%3Crect%20x%3D'2'%20width%3D'1'%20height%3D'2'%20fill%3D'%23CE2B37'%2F%3E%3C%2Fsvg%3E"); }
.lang-option[data-lang="en"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2060%2030'%3E%3CclipPath%20id%3D'a'%3E%3Cpath%20d%3D'M0%200v30h60V0z'%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D'b'%3E%3Cpath%20d%3D'M30%2015h30v15zv15H30zH0V15zV0h30z'%2F%3E%3C%2FclipPath%3E%3Cg%20clip-path%3D'url(%23a)'%3E%3Cpath%20d%3D'M0%200v30h60V0z'%20fill%3D'%23012169'%2F%3E%3Cpath%20d%3D'M0%200l60%2030m0-30L0%2030'%20stroke%3D'%23F1F2F1'%20stroke-width%3D'6'%2F%3E%3Cpath%20d%3D'M0%200l60%2030m0-30L0%2030'%20clip-path%3D'url(%23b)'%20stroke%3D'%23C8102E'%20stroke-width%3D'4'%2F%3E%3Cpath%20d%3D'M30%200v30M0%2015h60'%20stroke%3D'%23F1F2F1'%20stroke-width%3D'10'%2F%3E%3Cpath%20d%3D'M30%200v30M0%2015h60'%20stroke%3D'%23C8102E'%20stroke-width%3D'6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }

/* la bandiera attiva risalta un filo di piu */
.lang-option.active::before {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 1px 3px rgba(31, 44, 27, 0.30);
}

.lang-option:hover::before {
  transform: scale(1.08);
}

/* su navbar chiara il contorno segue la palette */
.navbar.scrolled .lang-option::before,
body.page-light .lang-option::before {
  box-shadow: 0 0 0 1px var(--sage-200), 0 1px 2px rgba(69, 88, 64, 0.18);
}

.navbar.scrolled .lang-option.active::before,
body.page-light .lang-option.active::before {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(69, 88, 64, 0.28);
}

/* pastiglia leggermente piu larga per far spazio alla bandiera */
.lang-option { padding: 5px 12px 5px 9px; }
.lang-switch--mobile .lang-option { padding: 9px 20px 9px 16px; gap: 9px; }
.lang-switch--mobile .lang-option::before { width: 22px; height: 15px; }

/* su schermi molto stretti tengo solo la bandiera nella navbar */
@media (max-width: 380px) {
  .lang-switch--mobile .lang-option { padding: 9px 16px 9px 13px; }
}
