/* ============================================================
   JAC — Judica Appalti e Costruzioni S.r.l.
   Stylesheet principale
   Palette: #FCB80B (giallo) · #1A1F5C (blu navy) · #FFFFFF · #2B2B2B
   Font: Raleway (headings) · Open Sans (body) — Google Fonts
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ── Skip-link (WCAG 2.4.1) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 99999;
  background: var(--navy, #1A1F5C);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ── Focus visible (WCAG 2.4.7) ── */
:focus-visible {
  outline: 3px solid #1A1F5C;
  outline-offset: 3px;
}
/* Per elementi su sfondo scuro (topbar, footer, contact-info) */
.topbar a:focus-visible,
.site-footer a:focus-visible,
.contact-info a:focus-visible,
.contact-social a:focus-visible,
.wa-bubble:focus-visible,
.cookie-banner button:focus-visible {
  outline-color: var(--yellow, #FCB80B);
}
/* Bottoni primari */
.btn:focus-visible {
  outline: 3px solid var(--navy, #1A1F5C);
  outline-offset: 3px;
}
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline-color: var(--navy, #1A1F5C);
}

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

:root {
  --yellow:  #FCB80B;
  --navy:    #1A1F5C;
  --white:   #FFFFFF;
  --gray:    #2B2B2B;
  --light:   #F5F5F5;
  --border:  #E0E0E0;
  --navy-dk: #13185A;
  --yellow-dk: #e0a208;
  --radius:  6px;
  --shadow:  0 4px 18px rgba(0,0,0,.10);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--gray);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

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

h1, h2, h3, h4, h5 {
  font-family: 'Raleway', sans-serif;
  color: var(--navy);
  line-height: 1.25;
}

/* ── Utility ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin-top: 8px;
}
.section-subtitle {
  color: #666;
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}
.text-center { text-align: center; }
.text-center .section-title::after { margin: 8px auto 0; }

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-dk);
  border-color: var(--yellow-dk);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dk);
  border-color: var(--navy-dk);
}

/* ── Top Bar ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar-contacts a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
.topbar-contacts a:hover { color: var(--yellow); }
.topbar-contacts svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-social a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.topbar-social a:hover { color: var(--yellow); }
.topbar-social svg { width: 16px; height: 16px; }
.topbar-lang {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.site-logo img { height: 80px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: .93rem;
  color: var(--navy);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--yellow-dk);
  background: rgba(252,184,11,.08);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
}
.nav-cta {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--yellow-dk) !important; }
.nav-cta:focus-visible { outline-color: var(--navy) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero Slider ── */
.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: var(--navy);
}
.hero-slides { display: flex; height: 100%; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 40px 20px;
}
.hero-text {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-title span { color: var(--yellow); }
.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Slider controls */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.slider-dot.active { background: var(--yellow); transform: scale(1.3); }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.1rem;
}
.slider-arrow:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ── Certifications Strip ── */
.certs-strip {
  background: var(--navy);
  padding: 24px 0;
}
.certs-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.cert-icon {
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-icon svg { width: 24px; height: 24px; color: var(--navy); }
.cert-label strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--yellow);
}
.cert-label span { font-size: .82rem; color: rgba(255,255,255,.75); }

/* ── About Section (Home) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-wrap img { width: 100%; height: 400px; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 24px;
  left: -14px;
  background: var(--yellow);
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(252,184,11,.4);
}
.about-badge strong { display: block; font-size: 1.6rem; }
.about-features { display: grid; gap: 16px; margin-top: 28px; }
.about-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.about-feature-icon {
  width: 38px;
  height: 38px;
  background: rgba(252,184,11,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--yellow-dk);
}
.about-feature-icon svg { width: 18px; height: 18px; }
.about-feature-text strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.about-feature-text p { font-size: .9rem; color: #666; }

/* ── Stats Counter ── */
.stats { background: var(--yellow); padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ── Services Cards (Home preview) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 26px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  border-color: var(--yellow);
}
.service-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(252,184,11,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--yellow-dk);
}
.service-card-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card p { font-size: .9rem; color: #666; line-height: 1.6; }

/* ── Target Clients ── */
.target-bg { background: var(--light); }
.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.target-card {
  background: var(--white);
  border-radius: 10px;
  padding: 26px 22px;
  border-left: 4px solid var(--yellow);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.target-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.target-card li {
  font-size: .88rem;
  color: #555;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.target-card li::before {
  content: '›';
  color: var(--yellow-dk);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #242a7a 100%);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 32px; }
.cta-checklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 36px;
}
.cta-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
}
.cta-checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #242a7a 100%);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(252,184,11,.06);
  border-radius: 50%;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--yellow); }
.breadcrumb span::before { content: '›'; }

/* ── Chi Siamo page ── */
.chisiamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.chisiamo-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.value-card {
  background: var(--light);
  border-radius: 10px;
  padding: 22px 18px;
  border-top: 3px solid var(--yellow);
}
.value-card h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}
.value-card p { font-size: .85rem; color: #666; }

/* ── Servizi page ── */
.servizio-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: flex-start;
  padding: 36px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 22px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.servizio-block:hover { box-shadow: 0 8px 28px rgba(0,0,0,.09); border-color: var(--yellow); }
.servizio-icon {
  width: 64px;
  height: 64px;
  background: rgba(26,31,92,.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.servizio-icon svg { width: 30px; height: 30px; }
.servizio-block h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.servizio-block p { font-size: .93rem; color: #555; margin-bottom: 12px; }
.servizio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.servizio-list li {
  background: rgba(252,184,11,.12);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Contatti page ── */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}
.contact-info { background: var(--navy); border-radius: 12px; padding: 40px 32px; color: var(--white); }
.contact-info h3 { color: var(--white); margin-bottom: 28px; font-size: 1.3rem; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  background: rgba(252,184,11,.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; color: var(--yellow); }
.contact-item-text strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}
.contact-item-text a,
.contact-item-text p { color: rgba(255,255,255,.85); font-size: .92rem; }
.contact-item-text a:hover { color: var(--yellow); }
.contact-social { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: color var(--transition);
}
.contact-social a:hover { color: var(--yellow); }
.contact-social svg { width: 18px; height: 18px; }

/* Contact Form */
.contact-form { background: var(--white); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group label .req { color: #e74c3c; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: .92rem;
  color: var(--gray);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,31,92,.08); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.form-checkbox label {
  font-size: .83rem;
  color: #555;
  cursor: pointer;
  line-height: 1.5;
}
.form-checkbox label a { color: var(--navy); text-decoration: underline; }
.form-note { font-size: .8rem; color: #696969; margin-bottom: 16px; } /* #696969 = 5.74:1 su bianco (WCAG AA) */

/* Map */
.map-section { padding: 0; }
.map-section iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ── Privacy page ── */
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2 {
  font-size: 1.3rem;
  margin: 36px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(252,184,11,.3);
  color: var(--navy);
}
.privacy-content h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--navy); }
.privacy-content p { margin-bottom: 14px; font-size: .94rem; color: #444; }
.privacy-content ul { margin: 10px 0 14px 20px; }
.privacy-content ul li { list-style: disc; font-size: .92rem; color: #444; margin-bottom: 6px; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 50px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col li a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col li a::before { content: '›'; color: var(--yellow); }
.footer-col li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 12px;
}
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: var(--yellow); }
.footer-contact-item svg { width: 14px; height: 14px; color: var(--yellow); flex-shrink: 0; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(255,255,255,.6); /* alzato da .4 → .6 per WCAG 1.4.3 su sfondo navy */
}
.footer-legal { line-height: 1.8; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--yellow); color: var(--navy); }
.footer-social svg { width: 16px; height: 16px; }

/* ── WhatsApp Bubble ── */
.wa-bubble {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.5);
  transition: transform var(--transition);
  animation: wa-pulse 2.5s infinite;
}
.wa-bubble:hover { transform: scale(1.1); }
.wa-bubble svg { width: 28px; height: 28px; color: #fff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,.5); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,.8); }
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 18px 24px;
  display: none; /* mostrato via JS solo se assente il consenso */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.18);
  border-top: 3px solid var(--yellow);
}
.cookie-banner p { font-size: .88rem; color: rgba(255,255,255,.88); flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--yellow); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
  padding: 9px 22px;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
/* Uguale evidenza visiva — conforme Provvedimento Garante Privacy n. 231 del 10/06/2021 */
.cookie-btn-accept { background: var(--yellow); color: var(--navy); border: 2px solid var(--yellow); }
.cookie-btn-accept:hover { background: var(--yellow-dk); border-color: var(--yellow-dk); }
.cookie-btn-decline { background: var(--white); color: var(--navy); border: 2px solid var(--white); }
.cookie-btn-decline:hover { background: #f0f0f0; border-color: #f0f0f0; }

/* ── Map Placeholder (two-click GDPR) ── */
.map-placeholder {
  background: #f0f2f5;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.map-ph-inner { text-align: center; padding: 24px 20px; max-width: 500px; }
.map-ph-inner svg { width: 44px; height: 44px; color: var(--navy); margin: 0 auto 14px; display: block; }
.map-ph-inner strong { font-size: 1rem; color: var(--navy); }
.map-ph-notice { font-size: .82rem; color: #666; margin: 10px 0 18px; line-height: 1.5; }
.map-ph-notice a { color: var(--navy); text-decoration: underline; }

/* ── Portfolio ── */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.pf-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .4px;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
}
.pf-btn:hover,
.pf-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pf-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

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

.pf-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.pf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.pf-card-img {
  position: relative;
  height: 230px;
  overflow: hidden;
}
.pf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.pf-card:hover .pf-card-img img { transform: scale(1.05); }
.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,31,92,.7) 0%, transparent 55%);
  pointer-events: none;
}
.pf-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--yellow);
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.pf-card-body { padding: 22px 20px 24px; }
.pf-card-meta {
  display: flex;
  gap: 16px;
  font-size: .78rem;
  color: #696969; /* 5.74:1 su bianco (WCAG AA) */
  margin-bottom: 10px;
}
.pf-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pf-card-meta svg { width: 13px; height: 13px; }
.pf-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.pf-card-body p {
  font-size: .86rem;
  color: #555;
  line-height: 1.65;
}
.pf-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .72rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: .3px;
}
.pf-tag-pub  { background: rgba(26,31,92,.08);  color: var(--navy); }
.pf-tag-priv { background: rgba(252,184,11,.15); color: #8a6100; }

.pf-note {
  text-align: center;
  margin-top: 48px;
  padding: 22px 28px;
  background: var(--light);
  border-radius: 10px;
  border-left: 4px solid var(--yellow);
  font-size: .9rem;
  color: #555;
}
.pf-note strong { color: var(--navy); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid, .chisiamo-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 16px 20px 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    z-index: 100;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .nav-toggle { display: flex; }
  .hero { height: 460px; }
  .services-grid, .target-grid { grid-template-columns: 1fr; }
  .contatti-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-contacts { gap: 10px; }
  .certs-inner { gap: 24px; }
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar { display: none; }
}
