/* =====================================================
   RSI – CSS Custom Properties & Reset
   ===================================================== */
:root {
  --bg:        #FFFDF7;
  --black:     #111111;
  --gray:      #3D3D3D;
  --olive:     rgb(127,134,120);
  --blue-light:#C4DBF3;
  --blue-panel:#97B4D2;
  --border:    #D8D5CC;
  --font:      'Syne', sans-serif;

  /* Padding aligned to logo left edge (~40px at 1280px) */
  --page-pad: clamp(1.5rem, 3.1vw, 2.5rem);

  /* Fluid spacing */
  --space-xs:  clamp(0.4rem, 0.8vw, 0.6rem);
  --space-sm:  clamp(0.6rem, 1.2vw, 1rem);
  --space-md:  clamp(1rem, 2vw, 1.75rem);
  --space-lg:  clamp(1.5rem, 3.5vw, 2.75rem);
  --space-xl:  clamp(2rem, 5vw, 4rem);
  --space-2xl: clamp(3rem, 7vw, 6rem);

  /* Fluid type – calibrated to WordPress */
  --text-xs:   clamp(0.75rem, 1vw, 0.9rem);
  --text-sm:   clamp(0.95rem, 1.3vw, 1.1rem);
  --text-base: clamp(1rem, 1.4vw, 1.1rem);
  --text-md:   clamp(1.05rem, 1.6vw, 1.25rem);
  --text-lg:   clamp(1.15rem, 2.2vw, 2rem);
  --text-xl:   clamp(1.5rem, 2.8vw, 2rem);
  --text-2xl:  clamp(1.9rem, 3.6vw, 2.8rem);
  --text-hero: clamp(2rem, 4.3vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--olive);
  height: 68px;
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  position: relative;
}

.logo-link {
  position: absolute;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad);
  border-right: 1px solid var(--olive);
}
.logo-img { height: 36px; width: auto; }

/* Nav – truly centered in viewport */
.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: stretch;
}

.nav-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0 1.1rem;
  font-size: 15px;           /* slightly larger */
  font-weight: 500;          /* exact match */
  letter-spacing: 0.7px;    /* exact match */
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.55; }
.nav-dot { font-size: 1em; line-height: 1; color: var(--gray); }
/* Active HOME link – bullet, black color, same size */
.nav-list > li:first-child .nav-dot { color: var(--black); }

/* Submenu */
.sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--bg);
  border: 1px solid var(--olive);
  border-top: 1px solid var(--olive);
  min-width: 260px;
  padding: 1.2em 0.6em 1.2em 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
  overflow: visible;
}
.has-sub:hover .sub-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.sub-menu a {
  display: inline-block;
  padding: 0.6em 1.8em 0.6em 2.5em;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gray);
  border-bottom: 1px solid var(--olive);
  white-space: nowrap;
  position: relative;
  transition: color 0.12s;
  width: 100%;
}
.sub-menu a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 2.5em;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.6s ease;
}
.sub-menu a:last-child { border-bottom: none; }
.sub-menu a:hover {
  color: var(--black);
}
.sub-menu a:hover::after {
  width: var(--underline-width, calc(100% - 2.5em - 1.8em));
}

/* CTA Book */
.cta-book {
  position: absolute;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0 var(--page-pad);
  border-left: 1px solid var(--olive);
  background: var(--blue-panel);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--black);
  transition: opacity 0.2s;
}
.cta-book:hover { opacity: 0.55; }
.cta-dot { font-weight: 400; }

/* Hamburger – 2 lines */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 var(--page-pad);
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger span:nth-child(3) { display: none; }
.hamburger.open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* Mobile hamburger – longer lines, right-aligned, vertically centered */
@media (max-width: 900px) {
  .header-inner { position: relative; }
  .hamburger {
    position: absolute;
    right: var(--page-pad);
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
  }
  .hamburger span {
    width: 32px;
  }
}

/* Page offset */
main, .page-wrap { padding-top: 68px; }

/* =====================================================
   HERO – Homepage
   ===================================================== */
.hero {
  max-width: 100%;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(3rem, 7vw, 5.5rem) var(--page-pad) var(--space-xl);
}

.hero-text { max-width: 65%; }

.hero-sub {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.3em;
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.15;
}

.hero-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
  padding-left: var(--page-pad);
}
.hero-social .social-link {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: underline;
  transition: opacity 0.2s;
}
.hero-social .social-link:hover { opacity: 0.5; }

/* Hero image – parallax div, full-width within page container */
.hero-image {
  padding: 0 var(--page-pad);
}
.hero-parallax {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(260px, 38vw, 490px);
}

/* =====================================================
   INTRO / I NOSTRI SERVIZI
   ===================================================== */
.intro {
  padding: var(--space-2xl) var(--page-pad) var(--space-xl);
  max-width: 100%;
}
.intro-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.intro-eyebrow::before { content: '○'; font-size: 1em; }
.intro-heading {
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  max-width: 66%;
}
.intro-sub {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  max-width: 66%;
}

/* =====================================================
   SERVICES GRID – full-width background, aligned content
   ===================================================== */
.services-section {
  background: var(--blue-panel);
  padding: var(--space-xl) var(--page-pad);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-top: 1px solid var(--olive);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  max-width: 100%;
}
.service-card {
  display: flex; flex-direction: column; gap: var(--space-sm);
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  opacity: 0.85;
  transform: translateY(-4px);
}
.service-card:hover .service-name { text-decoration: underline; }
.service-icon {
  width: clamp(36px, 4vw, 52px);
  height: clamp(52px, 6vw, 72px);
  margin-bottom: var(--space-xs);
}
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-name { font-size: var(--text-md); font-weight: 600; line-height: 1.3; }
.service-desc { font-size: var(--text-sm); line-height: 1.5; }

/* =====================================================
   HIGHLIGHT TEXT (blue gradient underline)
   ===================================================== */
.hl {
  background: linear-gradient(rgba(0,0,0,0) 60%, var(--blue-light) 60%, var(--blue-light) 100%);
  display: inline;
  font-weight: 700;
}

/* =====================================================
   PAGE HEADER (inner pages)
   ===================================================== */
.page-header {
  padding: 5.5rem var(--page-pad) var(--space-xl);
  max-width: 100%;
}
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.page-eyebrow::before { content: '○'; font-size: 1em; }
.page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 60%;
}
.page-subtitle {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--gray);
  margin-top: var(--space-sm);
  max-width: 60%;
  line-height: 1.5;
}

/* =====================================================
   PARALLAX — rAF + transform:translateY (tutti i device)
   Container: overflow:hidden, altezza fissa.
   .parallax-inner: più alto del container (±150px), spostato via translateY.
   GPU-accelerato, funziona su iOS Safari e tutti i browser.
   progress 0→1: translateY +150px→-150px (mostra top→bottom dell'immagine).
   ===================================================== */
.parallax-wrap { padding: 0 var(--page-pad); }

.parallax-img,
.hero-parallax {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(280px, 42vw, 500px);
}

.parallax-inner {
  position: absolute;
  top: -150px;
  left: 0;
  right: 0;
  bottom: -150px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* Tablet (769–1024px): container basso → span ampio → parallax visibile */
@media (max-width: 1024px) {
  .parallax-img,
  .hero-parallax {
    height: clamp(200px, 28vw, 300px);
  }
}

/* Mobile (≤768px): frame corto, immagine portrait via JS */
@media (max-width: 768px) {
  .parallax-img,
  .hero-parallax {
    height: clamp(200px, 56vw, 280px);
  }
}

/* =====================================================
   CHI SIAMO
   ===================================================== */
.chisiamo-body {
  padding: var(--space-xl) var(--page-pad);
  max-width: 100%;
}
.chisiamo-body p {
  font-size: var(--text-base);
  line-height: 1.5;
  max-width: 900px;
}
.chisiamo-body strong { font-weight: 700; }

/* Quote block */
.quote-block {
  padding: var(--space-xl) var(--page-pad) var(--space-xl);
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}
.service-page-body .quote-block {
  padding: 0 0 var(--space-md) 0;
}
.quote-block.quote-compact {
  padding: var(--space-md) var(--page-pad) var(--space-md);
}
.quote-icon {
  width: clamp(60px, 8vw, 81px);
  height: auto;
  flex-shrink: 0;
  margin-top: 0.5em;
  opacity: 0.4;
}
.quote-text {
  font-size: clamp(0.98rem, 1.87vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 860px;
}
.quote-text::before {
  content: none;
}
.quote-text::after {
  content: none;
}

/* CEO Panel – photo displayed naturally, not stretched */
.ceo-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.ceo-content {
  background: var(--blue-panel);
  padding: var(--space-xl) clamp(5rem, 9vw, 7rem) var(--space-xl) var(--page-pad);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-sm);
}
.ceo-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5em;
}
.ceo-eyebrow::before { content: '○'; font-size: 1em; }
.ceo-name { font-size: clamp(1.3rem, 2.8vw, 1.7rem); font-weight: 700; line-height: 1.1; }
.ceo-bio p { font-size: clamp(0.9rem, 1.2vw, 1rem); line-height: 1.75; margin-bottom: 0.6em; }
.ceo-bio p:last-child { margin-bottom: 0; }
.ceo-bio strong { font-weight: 700; }

/* Photo: centered with padding, no background */
.ceo-photo {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}
.ceo-photo img {
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: 340px;
}

/* =====================================================
   SERVICE PAGES – consistent spacing around parallax
   ===================================================== */
.service-page-body {
  padding: var(--space-xl) var(--page-pad) 0;  /* same top as above image */
  max-width: 100%;
}
.service-page-body > p {
  font-size: var(--text-base);
  line-height: 1.5;
  max-width: 860px;
  margin-bottom: var(--space-md);
  color: var(--gray);
}
.service-page-body h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-md);
}
/* Section labels keep their small uppercase style even inside service-page-body */
.service-page-body h3.service-section-label {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.service-section-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--black);
}

.service-link {
  color: var(--blue-panel);
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: underline;
  transition: opacity 0.2s;
}
.service-link:hover { opacity: 0.7; }

.service-differenzia {
  background: var(--blue-panel);
  padding: var(--space-md) var(--page-pad);
  margin-top: 0.5em;
  margin-bottom: var(--space-2xl);
  border-top: 1px solid var(--olive);
  border-bottom: 1px solid var(--olive);
}
.service-differenzia + .service-differenzia-bottom {
  margin-top: calc(var(--space-2xl) * -1);
}
.service-differenzia-inner {
  width: 66%;
}

.service-differenzia-bottom {
  padding: var(--space-xl) var(--page-pad) var(--space-2xl);
  max-width: 70%;
}

.diff-list-bottom {
  list-style: square;
  padding-left: 1.8em;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  max-width: 100%;
  margin-top: 0;
}

.service-divider {
  border: none;
  border-top: 1px solid var(--black);
  margin: var(--space-md) 0;
  height: 0;
}

.service-intro-heading {
  font-size: clamp(2.64rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.2;
  max-width: 900px;
  margin-bottom: var(--space-md);
}
.service-page-body > .service-intro-heading {
  font-size: clamp(1.18rem, 2.24vw, 2.04rem);
  line-height: 1.15;
  color: var(--black);
}

/* Reusable large section title (matches metodo agisco intro size) */
.section-title-lg,
.service-page-body .section-title-lg {
  font-size: clamp(1.18rem, 2.24vw, 2.04rem);
  line-height: 1.15;
  font-weight: 500;
  color: var(--black);
  margin-bottom: var(--space-md);
  max-width: 860px;
}

/* Full-width image inside a blue box (spans wider than the 66% inner) */
.service-differenzia-img {
  width: 100%;
  height: auto;
  display: block;
  margin: var(--space-md) 0 var(--space-lg);
}

.btn-download-link {
  font-weight: 700;
  text-decoration: underline;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  color: var(--black);
}
.btn-download-link:hover { opacity: 0.6; }

.diff-list {
  list-style: square;
  padding-left: 1.8em;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  max-width: 100%;
  margin-top: 0;
}
.diff-list li {
  font-size: var(--text-base);
  line-height: 1.3;
  color: var(--black);
}

.service-section-label::before {
  content: '○ ';
  margin-right: 0.5em;
}

.service-differenzia .quote-block {
  display: flex;
  gap: 0.5em;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  padding: 0;
}
.service-differenzia .quote-icon {
  color: var(--black);
}
.service-differenzia .quote-text {
  font-size: clamp(0.98rem, 1.87vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  margin: 0;
}

/* =====================================================
   CONTATTI
   ===================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background: var(--blue-panel);
  border-top: 1px solid var(--olive);
  border-bottom: 1px solid var(--olive);
  margin-bottom: var(--space-2xl);
}
.contact-info {
  padding: var(--space-xl) var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
  border-right: 1px solid rgba(0,0,0,0.1);
}
.contact-info img { width: 132px; height: auto; }
.contact-company { font-size: var(--text-sm); font-weight: 700; line-height: 1.6; }
.contact-detail { font-size: var(--text-sm); line-height: 1.8; }
.contact-detail a { text-decoration: underline; transition: opacity 0.2s; }
.contact-detail a:hover { opacity: 0.6; }

.contact-form-wrap {
  padding: var(--space-xl) var(--page-pad);
  background: var(--bg);
}
.contact-form { max-width: 700px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group {
  display: flex; flex-direction: column; gap: 0.35rem;
  margin-bottom: var(--space-md);
}
.form-group label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.03em; }
.form-group input, .form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.7em 0.9em;
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--black);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--black); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-check {
  display: flex; align-items: flex-start; gap: 0.7em;
  font-size: var(--text-xs); color: var(--gray);
  margin-bottom: var(--space-md); line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width: 15px; height: 15px; flex-shrink: 0;
  margin-top: 0.1em; cursor: pointer; accent-color: var(--black);
}
.privacy-link {
  color: #1e88e5;
  text-decoration: underline;
}
.privacy-link:hover, .privacy-link:focus {
  color: #1565c0;
}

/* =====================================================
   BUTTONS – blue panel color matching original
   ===================================================== */
.btn-submit {
  background: var(--blue-panel);
  color: var(--black);
  padding: 0.85em 2.2em;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-appearance: none;
}
.btn-submit:hover { opacity: 0.8; }

.btn-footer {
  display: inline-block;
  background: var(--blue-panel);
  color: var(--gray);
  padding: 0.75em 1.6em;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
  transition: opacity 0.2s;
  align-self: flex-start;
  border: 1px solid rgba(0,0,0,0.12);
}
.btn-footer:hover { opacity: 0.8; }

/* =====================================================
   FOOTER – vertical olive borders between columns
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--olive);
  border-bottom: 1px solid var(--black);
  padding: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: stretch;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: var(--text-xs);
  color: var(--gray);
  padding: var(--space-md) var(--space-md) var(--space-xl);
}
/* First column: left padding aligned with content */
.footer-col:first-child {
  padding-left: var(--page-pad);
}
/* Last column: right padding aligned with content */
.footer-col:last-child {
  padding-right: var(--page-pad);
}
/* Olive vertical separators between all columns – full height */
.footer-col + .footer-col {
  border-left: 1px solid var(--olive);
}
.footer-col a { transition: opacity 0.2s; }
.footer-col a:hover { opacity: 0.6; }
.footer-logo { width: 132px; height: auto; margin-bottom: var(--space-sm); }
.footer-brand p {
  font-size: var(--text-xs); color: var(--gray);
  line-height: 1.6; max-width: 260px;
}
.footer-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.7px; text-transform: uppercase;
  color: var(--black); margin-bottom: var(--space-xs);
}

/* =====================================================
   MOBILE NAV
   ===================================================== */
/* Desktop nav - hidden by default (visibili solo nel menu mobile) */
.nav-social { display: none; }
.nav-list > li.nav-cta-item { display: none; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .cta-book { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }

  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--olive);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 99;
    display: flex;
    flex-direction: column;
  }
  .main-nav.open { max-height: 600px; }
  .nav-list { flex-direction: column; align-items: flex-start; padding: 0; width: 100%; }
  .nav-list > li { width: 100%; flex-direction: column; align-items: flex-start; }
  .nav-link { width: 100%; padding: 0.9em var(--page-pad); border-bottom: none; }
  /* "Scopri il manuale" – sempre presente nel menu mobile: centrato, senza
     pallino, con riga superiore che lo divide dalle altre voci */
  .nav-list > li.nav-cta-item { display: block; width: 100%; border-top: 1px solid var(--olive); background: var(--blue-panel); }
  .nav-cta { justify-content: center; text-align: center; font-weight: 700; }
  /* SERVIZI indicator arrow */
  .has-sub > .nav-link::after { content: '›'; position: absolute; right: var(--page-pad); font-size: 1.5em; }
  .sub-menu {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; border: none;
    border-bottom: 1px solid var(--olive);
    width: 100%; min-width: 0; display: none;
  }
  .has-sub.open .sub-menu { display: block; }
  .sub-menu a { padding-left: calc(var(--page-pad) + 1em); white-space: normal; }

  /* Mobile nav social links – hidden */
  .nav-social {
    display: none;
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col {
    padding: var(--space-md) var(--space-md) var(--space-xl);
  }
  .footer-col:nth-child(odd) {
    padding-left: var(--page-pad);
    padding-right: var(--space-md);
  }
  .footer-col:nth-child(even) {
    padding-left: var(--space-md);
    padding-right: var(--page-pad);
    border-left: 1px solid var(--olive);
  }
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    border-top: 1px solid var(--olive);
  }
  .parallax-img { width: 100%; margin: 0; }
  .ceo-panel { grid-template-columns: 1fr 1fr; }
  .ceo-content { padding: var(--space-xl) var(--page-pad); }
  .ceo-photo { padding: var(--space-xl) var(--page-pad); }
  .ceo-photo img { max-height: 400px; width: auto; }
  .intro-heading, .intro-sub { max-width: 80%; }
  .page-title, .page-subtitle { max-width: 80%; }
  .service-page-body { max-width: 80%; }
  .chisiamo-body { max-width: 80%; }
  .quote-block { max-width: 80%; }
  .service-differenzia-inner { width: 80%; }
  .service-differenzia-bottom { max-width: 80%; }
}

@media (max-width: 768px) {
  /* Voci di menu leggermente più piccole su smartphone;
     il pallino è 1em quindi resta proporzionato come su desktop */
  .nav-link { font-size: 13.5px; }

  .hero-top {
    flex-direction: column; align-items: flex-start;
    padding: var(--space-xl) var(--page-pad) var(--space-xl); gap: 0;
  }
  .hero-text { max-width: 100%; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-social {
    flex-direction: column; align-items: flex-end;
    margin-left: auto; margin-top: var(--space-xl); padding-left: 0;
  }

  .parallax-img { width: 100%; margin: 0; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .intro-heading, .intro-sub, .page-title, .page-subtitle { max-width: 100%; }
  .service-page-body { max-width: 100%; }
  .chisiamo-body { max-width: 100%; }
  .quote-block { max-width: 100%; }
  .service-differenzia-inner { width: 100%; }
  .service-differenzia-bottom { max-width: 100%; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-info {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: var(--space-xl) var(--page-pad);
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col {
    padding: var(--space-md) var(--page-pad) var(--space-xl);
  }
  .footer-col:nth-child(odd),
  .footer-col:nth-child(even) {
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }
  .footer-col + .footer-col {
    border-left: none;
    border-top: 1px solid var(--olive);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
  }
  .quote-block { flex-direction: column; align-items: flex-start; gap: var(--space-sm); padding: var(--space-xl) var(--page-pad) var(--space-xl); }
  .quote-icon { width: clamp(50px, 8vw, 70px); opacity: 0.4; margin-top: 0; }
  .quote-text { font-size: clamp(1.2rem, 2.5vw, 1.5rem); line-height: 1.5; font-weight: 600; }
  .quote-text::before { content: none; }
  .quote-text::after { content: none; }
  .ceo-panel { grid-template-columns: 1fr; }
  .ceo-content { padding: var(--space-xl) var(--page-pad); justify-content: flex-start; }
  .ceo-photo { order: -1; padding: var(--space-xl) var(--page-pad); }
  .ceo-photo img { max-height: 300px; width: auto; }
  /* Mobile footer – slightly larger font */
  .footer-col { font-size: var(--text-sm); }
  .footer-brand p { font-size: var(--text-sm); }
  .footer-label { font-size: 13px; }
  /* Service cards – no wrapping on titles */
  .service-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

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

/* =====================================================
   FOOTER — POLICY section spacing
   ===================================================== */
.footer-label--mt { margin-top: var(--space-md); }

/* =====================================================
   COOKIE BANNER
   ===================================================== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--blue-panel);
  border-top: 2px solid var(--blue-light);
  padding: 1.1rem var(--page-pad);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
#cookie-banner.cookie-banner--out {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.cookie-banner__text {
  flex: 1;
  font-size: 13px;
  color: var(--black);
  line-height: 1.6;
  margin: 0;
}
.cookie-banner__link {
  color: var(--black);
  text-decoration: underline;
  font-weight: 600;
}
.cookie-banner__link:hover { opacity: 0.7; }
.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.6rem;
}
.cookie-banner__btn {
  background: var(--black);
  color: var(--blue-panel);
  border: none;
  padding: 0.55em 1.5em;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cookie-banner__btn--secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.cookie-banner__btn:hover { opacity: 0.7; }

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .cookie-banner__actions { align-self: flex-end; }
}
