/* ============================================================
   RD EDILE — style.css
   Serramenti & Lavori Edili | Alba, Cuneo, Piemonte
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800;900&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --green:        #1e7a3c;
  --green-dark:   #155c2c;
  --green-light:  #2d9e52;
  --green-bg:     #eef7f2;
  --green-subtle: #f0f7f2;
  --white:        #ffffff;
  --off-white:    #f9faf9;
  --gray-50:      #f4f6f4;
  --gray-100:     #e8ede9;
  --gray-200:     #d0ddd3;
  --beige:        #f5f1eb;
  --stone:        #ece8e1;
  --text-900:     #121e16;
  --text-700:     #2d4035;
  --text-500:     #4d6455;
  --text-300:     #7a9080;
  --shadow-xs:    0 1px 4px rgba(18,30,22,.06);
  --shadow-sm:    0 2px 10px rgba(18,30,22,.08);
  --shadow-md:    0 6px 24px rgba(18,30,22,.12);
  --shadow-lg:    0 12px 48px rgba(18,30,22,.16);
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --t:     .3s ease;
  --fw-h:  'Manrope', sans-serif;
  --fw-b:  'Inter', sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--fw-b);
  color: var(--text-700);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--fw-h); color: var(--text-900); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--text-500); line-height: 1.75; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-label {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 16px; }
.section-sub {
  font-size: 1.125rem;
  color: var(--text-300);
  max-width: 560px;
  margin-bottom: 52px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--fw-h);
  font-size: .9375rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,122,60,.3);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1eba57;
  border-color: #1eba57;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

.btn-lg { padding: 18px 38px; font-size: 1.0625rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.header.scrolled {
  border-bottom-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.header-bar {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 20px;
  transition: height var(--t);
}
.header.scrolled .header-bar { height: 64px; }

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 52px;
  width: auto;
  transition: height var(--t);
}
.header.scrolled .header-logo img { height: 40px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  padding: 7px 11px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-700);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--green);
  background: var(--green-bg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-700);
}
.header-phone svg { color: var(--green); width: 16px; height: 16px; }

/* Mobile header elements */
.mobile-left-actions,
.mobile-right-actions {
  display: none;
  align-items: center;
}
.mobile-left-actions { gap: 8px; }
.mobile-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  transition: all var(--t);
}
.mobile-icon-btn:hover { background: var(--green); color: var(--white); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  padding: 4px;
  transition: background var(--t);
}
.hamburger:hover { background: var(--gray-50); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-900);
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.drawer-overlay.visible { opacity: 1; pointer-events: auto; }

/* Drawer menu */
.drawer {
  position: fixed;
  top: 0; right: -320px;
  width: 300px;
  height: 100dvh;
  background: var(--white);
  z-index: 999;
  padding: 96px 28px 32px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  visibility: hidden;
  transition: right .38s cubic-bezier(.25,.46,.45,.94), visibility 0s linear .38s;
}
.drawer.open { right: 0; visibility: visible; transition-delay: 0s; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav a {
  display: block;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-700);
  border-left: 3px solid transparent;
  transition: all var(--t);
}
.drawer nav a:hover {
  color: var(--green);
  background: var(--green-bg);
  border-left-color: var(--green);
  padding-left: 22px;
}
.drawer-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding-top: 80px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, var(--white) 0%, var(--green-subtle) 100%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(30,122,60,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,122,60,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .7; }
}

.hero-title { margin-bottom: 22px; }
.hero-title em { font-style: normal; color: var(--green); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-500);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-benefits {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--gray-100);
}
.h-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-700);
}
.h-benefit-dot {
  width: 24px; height: 24px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.h-benefit-dot svg { width: 12px; height: 12px; color: white; }

/* Hero image side */
.hero-media { position: relative; }
.hero-media-mobile { display: none; }
.hero-img-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--green-bg);
}
.hero-img-wrap img, .hero-img-wrap svg { width: 100%; height: 100%; object-fit: cover; }

.hero-card {
  position: absolute;
  bottom: -24px;
  left: -28px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 24px;
}
.hero-stat { text-align: center; }
.hero-stat-n {
  font-family: var(--fw-h);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.hero-stat-word { font-size: .88rem; line-height: 1.15; }
.hero-stat-l { font-size: .75rem; color: var(--text-300); margin-top: 4px; font-weight: 500; }
.hero-stat-divider { width: 1px; background: var(--gray-100); }

/* ─── SERVICES ───────────────────────────────────────────── */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.srv-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.srv-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.srv-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--green-bg);
}
.srv-img img, .srv-img svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.srv-card:hover .srv-img img,
.srv-card:hover .srv-img svg { transform: scale(1.06); }

.srv-body { padding: 20px; }
.srv-icon {
  width: 42px; height: 42px;
  background: var(--green-bg);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: var(--green);
}
.srv-icon svg { width: 20px; height: 20px; }
.srv-title { font-size: .9375rem; font-weight: 700; margin-bottom: 8px; color: var(--text-900); }
.srv-desc { font-size: .8125rem; color: var(--text-300); line-height: 1.65; margin-bottom: 14px; }
.srv-link {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--green);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--t);
}
.srv-card:hover .srv-link { gap: 8px; }

/* ─── SERVICES SLIDER DOTS ──────────────────────────────── */
.srv-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.srv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t), width var(--t);
}
.srv-dot.active {
  background: var(--green);
  width: 24px;
}

/* ─── WHY US ─────────────────────────────────────────────── */
.why-us { background: var(--beige); }
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-img-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  background: var(--green-bg);
  position: relative;
}
.why-img-wrap img, .why-img-wrap svg { width: 100%; height: 100%; object-fit: cover; }
.why-img-badge {
  position: absolute;
  bottom: 28px; right: 28px;
  background: var(--green);
  color: white;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-family: var(--fw-h);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  line-height: 1.3;
}
.why-content .section-sub { margin-bottom: 32px; }

.ben-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.ben-item { display: flex; align-items: flex-start; gap: 14px; }
.ben-check {
  width: 22px; height: 22px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.ben-check svg { width: 11px; height: 11px; color: white; }
.ben-text { font-size: .9375rem; font-weight: 500; color: var(--text-700); line-height: 1.5; }

/* Why-us image SVG placeholder (internal room) */
.why-img-svg-wrap {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f5ee 0%, #d0eadc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SERRAMENTI SECTION ─────────────────────────────────── */
.serramenti-sec { background: var(--white); }
.serramenti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.serramenti-grid > *, .svc-detail-grid > * { min-width: 0; }
.serr-text { font-size: 1.0625rem; color: var(--text-500); line-height: 1.85; margin-bottom: 28px; }
.serr-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.serr-item {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; color: var(--text-700); font-size: .9375rem;
}
.serr-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.serr-visual {
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  background: var(--green-bg);
}
.serr-visual img, .serr-visual svg { width: 100%; height: 100%; object-fit: cover; }

/* ─── GALLERY ────────────────────────────────────────────── */
.gallery-sec { background: var(--off-white); }
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.gf-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--text-500);
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--t);
}
.gf-btn:hover, .gf-btn.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.g-item {
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-50);
  outline: none;
}
.g-item img, .g-item svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  pointer-events: none;
}
.g-item:hover img, .g-item:hover svg { transform: scale(1.06); }

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,92,44,.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t);
  display: flex;
  align-items: flex-end;
  padding: 18px 18px 18px;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-label { color: white; font-size: .875rem; font-weight: 700; }

.g-zoom {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  opacity: 0;
  transition: opacity var(--t);
}
.g-item:hover .g-zoom { opacity: 1; }
.g-zoom svg { width: 16px; height: 16px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lb-inner img, .lb-inner svg {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--r-md);
  object-fit: contain;
  width: auto;
  display: block;
}
.lb-close {
  position: absolute;
  top: -48px; right: 0;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: background var(--t);
  line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.35); }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: background var(--t);
}
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.35); }

/* ─── QUOTE FORM ─────────────────────────────────────────── */
.quote-sec { background: var(--white); }
.quote-wrap {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.q-left {
  background: linear-gradient(160deg, #1e7a3c 0%, #155c2c 100%);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.q-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.q-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.q-left .section-label { color: rgba(255,255,255,.65); }
.q-left h2 { color: white; font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 18px; }
.q-left p { color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.8; margin-bottom: 36px; }
.q-icons { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.q-icon-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.88); font-size: .875rem; font-weight: 500; }
.q-icon-item svg { width: 18px; height: 18px; flex-shrink: 0; color: rgba(255,255,255,.7); }

.q-right { background: var(--white); padding: 60px 48px; }
.q-right h3 { margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg.full { grid-column: 1/-1; }
.fg label { font-size: .8125rem; font-weight: 600; color: var(--text-700); }
.fg input,
.fg select,
.fg textarea {
  padding: 11px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  color: var(--text-900);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30,122,60,.1);
}
.fg textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.fg input[type="file"] { padding: 8px; font-size: .8125rem; cursor: pointer; }
.fg select { cursor: pointer; }
.fg-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8125rem;
  color: var(--text-300);
  cursor: pointer;
  line-height: 1.55;
}
.fg-privacy input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}
.fg-privacy a { color: var(--green); text-decoration: underline; }

.f-msg { padding: 12px 16px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 500; display: none; margin-top: 6px; }
.f-msg.success { background: var(--green-bg); color: var(--green-dark); border: 1px solid var(--green); }
.f-msg.error   { background: #fff0f0; color: #b91c1c; border: 1px solid #f87171; }

/* ─── LOCAL SEO ──────────────────────────────────────────── */
.local-sec { background: var(--gray-50); }
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.local-text { color: var(--text-500); line-height: 1.85; margin-bottom: 28px; }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--green);
}

.map-box {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  background: var(--white);
  aspect-ratio: 4/3;
}
.map-box svg, .map-box img { width: 100%; height: 100%; object-fit: cover; }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testi-sec { background: var(--white); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.t-card {
  background: var(--off-white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: box-shadow var(--t), border-color var(--t);
}
.t-card:hover { box-shadow: var(--shadow-md); border-color: var(--green); }
.t-stars { display: flex; gap: 3px; margin-bottom: 18px; }
.t-stars svg { width: 18px; height: 18px; color: #f59e0b; fill: #f59e0b; }
.t-text {
  font-size: .9375rem;
  color: var(--text-500);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fw-h);
  font-weight: 800;
  font-size: .9375rem;
  color: var(--green);
  flex-shrink: 0;
}
.t-name { font-weight: 700; font-size: .875rem; color: var(--text-900); margin-bottom: 2px; }
.t-loc  { font-size: .75rem; color: var(--text-300); }
.t-source { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .7rem; color: var(--text-300); }
.t-source svg { width: 12px; height: 12px; }

/* ─── CTA FINAL ──────────────────────────────────────────── */
.cta-final {
  background: linear-gradient(140deg, #155c2c 0%, #1e7a3c 55%, #2d9e52 100%);
  padding: 108px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.025) 0px,
    rgba(255,255,255,.025) 1px,
    transparent 1px,
    transparent 48px
  );
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 { color: white; max-width: 720px; margin: 0 auto 20px; }
.cta-final p { color: rgba(255,255,255,.82); font-size: 1.125rem; max-width: 520px; margin: 0 auto 48px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer { background: #0e1812; color: rgba(255,255,255,.65); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.f-brand img { height: 48px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.f-brand p { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.75; margin-bottom: 22px; }

.f-socials { display: flex; gap: 10px; }
.f-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.f-social:hover { background: var(--green); color: white; }
.f-social svg { width: 16px; height: 16px; }

.f-col h4 {
  font-family: var(--fw-h);
  font-size: .75rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.f-col ul { display: flex; flex-direction: column; gap: 10px; }
.f-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 6px;
  transition: color var(--t);
}
.f-col ul li a::before { content: '›'; color: var(--green-light); font-size: 1rem; }
.f-col ul li a:hover { color: white; }

.f-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.f-contact-item svg { width: 15px; height: 15px; color: var(--green-light); flex-shrink: 0; margin-top: 3px; }
.f-contact-item a, .f-contact-item span { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.f-contact-item a:hover { color: white; }

.f-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.f-copy { font-size: .75rem; color: rgba(255,255,255,.3); }
.f-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.f-legal a { font-size: .75rem; color: rgba(255,255,255,.3); transition: color var(--t); }
.f-legal a:hover { color: rgba(255,255,255,.7); }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-btn {
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 22px rgba(37,211,102,.45);
  transition: transform var(--t), box-shadow var(--t);
  animation: wa-pulse 2.5s infinite;
}
.wa-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37,211,102,.6);
  animation: none;
}
.wa-btn svg { width: 28px; height: 28px; }

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 22px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 22px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,.1); }
}

.wa-tip {
  background: var(--text-900);
  color: white;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--t);
  pointer-events: none;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateX(0); }

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--text-900);
  color: rgba(255,255,255,.85);
  padding: 20px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .875rem; color: rgba(255,255,255,.75); line-height: 1.55; }
.cookie-banner p a { color: var(--green-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept { background: var(--green); color: white; padding: 9px 20px; border-radius: 50px; font-size: .875rem; font-weight: 700; transition: background var(--t); }
.cookie-accept:hover { background: var(--green-light); }
.cookie-decline { background: rgba(255,255,255,.1); color: rgba(255,255,255,.65); padding: 9px 16px; border-radius: 50px; font-size: .875rem; font-weight: 600; transition: background var(--t); }
.cookie-decline:hover { background: rgba(255,255,255,.2); }

/* ─── SCROLL ANIMATIONS ──────────────────────────────────── */
.anim-up, .anim-left, .anim-right, .anim-fade {
  opacity: 0;
  transition: opacity .65s ease, transform .65s ease;
}
.anim-up    { transform: translateY(32px); }
.anim-left  { transform: translateX(-32px); }
.anim-right { transform: translateX(32px); }
.anim-fade  { transform: none; }

.anim-up.in, .anim-left.in, .anim-right.in, .anim-fade.in {
  opacity: 1;
  transform: translate(0);
}

.d-1 { transition-delay: .1s !important; }
.d-2 { transition-delay: .2s !important; }
.d-3 { transition-delay: .3s !important; }
.d-4 { transition-delay: .4s !important; }
.d-5 { transition-delay: .5s !important; }
.d-6 { transition-delay: .6s !important; }
.d-7 { transition-delay: .7s !important; }

/* ─── FOCUS ACCESSIBILITY ────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
a:focus-visible,
button:focus-visible { border-radius: var(--r-sm); }
.btn:focus-visible   { outline-offset: 4px; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(30,122,60,.15) !important;
}
/* Skip to main content (screen readers) */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--green);
  color: white;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  font-size: .875rem;
  z-index: 9999;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* ─── FAQ SECTION ────────────────────────────────────────── */
.faq-sec { background: var(--gray-50); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.faq-item.open  { border-color: var(--green); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--fw-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-900);
  transition: color var(--t), background var(--t);
}
.faq-q:hover { background: var(--green-subtle); color: var(--green); }
.faq-item.open .faq-q { color: var(--green); background: var(--green-subtle); }

.faq-arrow {
  flex-shrink: 0;
  color: var(--green);
  transition: transform var(--t);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-a:not([hidden]) {
  max-height: 300px;
  padding: 0 22px 20px;
}
.faq-a p {
  font-size: .9375rem;
  color: var(--text-500);
  line-height: 1.75;
}
.faq-a a { color: var(--green); text-decoration: underline; }

/* ─── CHI SIAMO PAGE ────────────────────────────────────── */
.val-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.val-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-md);
  padding: 28px 22px;
  transition: border-color var(--t), box-shadow var(--t);
}
.val-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.val-icon {
  width: 44px; height: 44px;
  background: var(--green-bg);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-bottom: 14px;
}
.val-title { font-size: 1.0625rem; font-weight: 700; color: var(--text-900); margin-bottom: 8px; }
.val-desc { font-size: .9rem; color: var(--text-500); line-height: 1.65; margin: 0; }

.svc-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.zone-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.zone-tag {
  background: var(--green-bg);
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .875rem;
  font-weight: 600;
}

/* ─── PERFORMANCE: ASPECT RATIO BOXES ───────────────────── */
.hero-img-wrap,
.why-img-wrap,
.serr-visual,
.map-box       { contain: layout style paint; }

img { content-visibility: auto; }
.hero-img-wrap img { content-visibility: visible; }

/* ─── BUTTON: SIZE VARIANTS ──────────────────────────────── */
.btn-sm { padding: 9px 20px; font-size: .8125rem; }

/* ─── ANIMATION: SCALE IN ────────────────────────────────── */
.anim-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .65s ease, transform .65s ease;
}
.anim-scale.in { opacity: 1; transform: scale(1); }

/* ─── SERVICES CTA STRIP ─────────────────────────────────── */
.services-cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 36px 0;
}
.services-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.services-cta-text {
  color: rgba(255,255,255,.92);
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: var(--fw-h);
}
.services-cta-text strong { color: white; display: block; font-size: 1.25rem; font-weight: 800; }
.services-cta-btns { display: flex; gap: 12px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   SERVICE PAGES — serramenti, tapparelle, zanzariere,
   porte, ristrutturazioni, bagno-completo
   ═══════════════════════════════════════════════════════════ */

/* ─── SERVICE HERO ───────────────────────────────────────── */
.svc-hero {
  padding-top: 80px;
  background: linear-gradient(150deg, var(--white) 0%, var(--green-subtle) 100%);
  position: relative;
  overflow: hidden;
}
.svc-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(30,122,60,.07) 0%, transparent 70%);
  pointer-events: none;
}
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 72px;
  position: relative;
  z-index: 1;
}
.svc-hero-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--green-bg);
}
.svc-hero-img img, .svc-hero-img svg {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  padding: 20px 0 0;
  position: relative;
  z-index: 1;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--text-300);
}
.breadcrumb li::after {
  content: '›';
  color: var(--text-300);
  font-size: 1rem;
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li a { color: var(--green); transition: color var(--t); }
.breadcrumb li a:hover { color: var(--green-dark); text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--text-500); }

/* ─── BENEFIT CARDS ──────────────────────────────────────── */
.benefits-sec { background: var(--gray-50); }
.ben-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.ben-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.ben-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.ben-card-icon {
  width: 50px; height: 50px;
  background: var(--green-bg);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ben-card-icon svg { width: 24px; height: 24px; color: var(--green); }
.ben-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.ben-card p { font-size: .9rem; color: var(--text-500); line-height: 1.7; }

/* ─── PROCESS STEPS ──────────────────────────────────────── */
.steps-sec { background: var(--white); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.step-item {
  padding: 28px 22px;
  background: var(--off-white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--gray-100);
  transition: border-color var(--t), box-shadow var(--t);
}
.step-item:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.step-num {
  font-family: var(--fw-h);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--green);
  opacity: .22;
  line-height: 1;
  margin-bottom: 10px;
}
.step-item h3 { font-size: 1rem; margin-bottom: 8px; }
.step-item p { font-size: .875rem; color: var(--text-500); line-height: 1.7; }

/* ─── SERVICE DETAIL ─────────────────────────────────────── */
.svc-detail { background: var(--beige); }
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.svc-detail-img { width: 100%; }
.svc-detail-text h3 { margin-bottom: 12px; margin-top: 32px; }
.svc-detail-text h3:first-child { margin-top: 0; }
.svc-detail-text p { font-size: .9375rem; color: var(--text-500); line-height: 1.8; margin-bottom: 14px; }
.svc-detail-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  background: var(--green-bg);
  position: sticky;
  top: 100px;
}
.svc-detail-img img, .svc-detail-img svg {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ─── MID CTA ────────────────────────────────────────────── */
.mid-cta {
  background: var(--green);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mid-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg,
    rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px,
    transparent 1px, transparent 40px);
}
.mid-cta-inner { position: relative; z-index: 1; }
.mid-cta h2 { color: white; max-width: 600px; margin: 0 auto 14px; }
.mid-cta p { color: rgba(255,255,255,.82); margin-bottom: 32px; font-size: 1.0625rem;
             max-width: 500px; margin-left: auto; margin-right: auto; }
.mid-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── RELATED SERVICES ───────────────────────────────────── */
.related-sec { background: var(--gray-50); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.rel-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rel-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.rel-card-icon {
  width: 46px; height: 46px;
  background: var(--green-bg);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.rel-card-icon svg { width: 22px; height: 22px; color: var(--green); }
.rel-card h4 { font-size: .9375rem; color: var(--text-900); }
.rel-card a {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--green);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--t);
}
.rel-card a:hover { gap: 8px; }

/* ─── PRINT IMPROVEMENTS ─────────────────────────────────── */
@media print {
  .faq-a[hidden] { display: block !important; max-height: none !important; padding: 0 22px 20px !important; }
}
