/* ===========================
   MASTER SRL — Stylesheet
   =========================== */

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

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0d2461;
  --blue-mid:    #1a4fa0;
  --blue-brand:  #2b72d5;
  --blue-light:  #6ab4f5;
  --blue-pale:   #e8f2fd;
  --white:       #ffffff;
  --gray-50:     #f7f9fc;
  --gray-100:    #edf2f7;
  --gray-400:    #94a3b8;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --nav-h:       88px;
  --transition:  0.3s ease;
  --shadow-sm:   0 2px 8px rgba(13,36,97,0.08);
  --shadow-md:   0 8px 32px rgba(13,36,97,0.14);
  --shadow-lg:   0 20px 60px rgba(13,36,97,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── TYPOGRAPHY HELPERS ─── */
.section-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--blue-brand);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--blue-dark);
  margin-bottom: 1.2rem;
}

.section-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 620px;
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── BUTTON ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue-brand);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.4s ease;
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(13,36,97,0.10);
  border-bottom-color: transparent;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 68px;
  width: auto;
  /* SVG already has white background — integrates perfectly with white navbar */
  transition: var(--transition);
}
.nav-logo img:hover {
  opacity: 0.85;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-brand);
  background: var(--blue-pale);
}
.nav-links .btn-nav-cta {
  background: var(--blue-brand);
  color: var(--white) !important;
  margin-left: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
}
.nav-links .btn-nav-cta:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--blue-dark);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-dark) 0%, #163b80 50%, var(--blue-mid) 100%);
}

/* Background photo */
#hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.18;
  z-index: 0;
}

/* Blueprint grid overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* Diagonal accent shape */
#hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(106,180,245,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 1rem;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title .accent { color: var(--blue-light); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  animation: fadeUp 0.8s 0.4s ease both;
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-num span { color: var(--blue-light); }
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.8s ease both;
}
.scroll-indicator .arrow {
  width: 20px; height: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  position: relative;
}
.scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollDot 1.5s infinite;
}

/* ─── CHI SIAMO ─── */
#chi-siamo {
  padding: 7rem 0;
  background: var(--white);
}
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.chi-siamo-visual {
  position: relative;
}
.cs-image-frame {
  border-radius: 8px;
  height: 460px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.cs-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.cs-image-frame:hover img {
  transform: scale(1.04);
}
/* Dark gradient overlay at bottom for badge readability */
.cs-image-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(13,36,97,0.55), transparent);
  pointer-events: none;
}
.cs-year-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 120px; height: 120px;
  background: var(--blue-brand);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.cs-year-badge .year {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.cs-year-badge .since {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.cs-overlay-text {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
}

.chi-siamo-text .section-sub { margin-bottom: 1.5rem; }

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
}
.value-item .vi-icon {
  width: 28px; height: 28px;
  background: var(--blue-pale);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-brand);
  flex-shrink: 0;
}

/* ─── SERVIZI ─── */
#servizi {
  padding: 7rem 0;
  background: var(--gray-50);
}
.servizi-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  gap: 2rem;
}
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--blue-brand);
  transition: height 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { height: 100%; }

.sc-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--blue-brand);
  font-size: 1.5rem;
}
.sc-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
}
.sc-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-400);
}

/* featured card */
.service-card.featured {
  background: linear-gradient(145deg, var(--blue-dark), var(--blue-mid));
  border-color: transparent;
  color: var(--white);
}
.service-card.featured .sc-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.service-card.featured .sc-title { color: var(--white); }
.service-card.featured .sc-desc { color: rgba(255,255,255,0.7); }
.service-card.featured::before { background: var(--blue-light); }

/* ─── NUMERI ─── */
#numeri {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #163b80 100%);
  position: relative;
  overflow: hidden;
}
#numeri::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.numeri-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.numero-item { padding: 2rem; }
.numero-val {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.numero-val .unit { color: var(--blue-light); }
.numero-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}
.numero-divider {
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* ─── PERCHÉ NOI ─── */
#perche-noi {
  padding: 7rem 0;
  background: var(--white);
}
.pn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.pn-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.pn-feature {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.pn-feature:hover {
  background: var(--blue-pale);
  border-color: var(--blue-light);
}
.pnf-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--blue-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}
.pnf-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.3rem;
}
.pnf-desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.pn-certif {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 2.5rem;
  margin-top: 2rem;
}
.pn-certif-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.cert-item::before {
  content: '✓';
  color: var(--blue-brand);
  font-weight: 700;
}

/* ─── GALLERIA PROGETTI ─── */
#progetti {
  padding: 7rem 0;
  background: var(--white);
}
.progetti-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.progetti-header .section-sub {
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gray-100);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item.tall {
  aspect-ratio: 6/7;
}
/* Make first item span 2 columns for visual interest */
.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,36,97,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-label {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ─── CONTATTI ─── */
#contatti {
  padding: 7rem 0;
  background: var(--gray-50);
}
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { }
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.cc-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--blue-pale);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-brand);
  font-size: 1rem;
}
.cc-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}
.cc-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blue-dark);
}
.cc-value a { color: var(--blue-brand); }
.cc-value a:hover { text-decoration: underline; }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}
.form-sub {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 1.8rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(43,114,213,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1.05rem;
}
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.8rem;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}
.form-success p { color: var(--gray-400); font-size: 0.9rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 60px;
  width: auto;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  filter: none;
  margin-bottom: 1.2rem;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-piva { font-size: 0.82rem; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDot {
  0%   { top: 5px; opacity: 1; }
  100% { top: 15px; opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .chi-siamo-grid,
  .pn-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cs-image-frame { height: 320px; }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .numeri-inner { grid-template-columns: repeat(2, 1fr); }
  .numero-divider:nth-child(2) { border-left: none; }
  .contatti-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    padding: 1.5rem 2rem 2rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links a { font-size: 1.2rem; padding: 0.75rem 1rem; color: var(--blue-dark); }
  .nav-toggle { display: flex; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .servizi-grid { grid-template-columns: 1fr; }
  .servizi-header { flex-direction: column; align-items: flex-start; }
  .numeri-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .values-list { grid-template-columns: 1fr; }
  .cs-year-badge { bottom: -16px; right: -16px; width: 90px; height: 90px; }
  .cs-year-badge .year { font-size: 1.7rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .hero-actions { flex-direction: column; }
  .numeri-inner { grid-template-columns: 1fr; }
  .numero-divider { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
}
