/* ============================================================
   PPL Service - Foglio di stile principale
   v1.0.0
   ============================================================ */

/* ----- Font self-hosted (no Google Fonts, no terze parti) -----
   File: /assets/fonts/*.woff2 - variable fonts, latin subset.
   Licenza: SIL OFL 1.1 (vedi /assets/fonts/LICENSE.txt)
*/
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations'),
       url('../fonts/fraunces-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-opsz-italic.woff2') format('woff2-variations'),
       url('../fonts/fraunces-latin-opsz-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-italic.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----- Token ----- */
:root {
  /* Palette dal logo */
  --navy:        #173447;
  --navy-deep:   #0F2733;
  --forest:      #2E7D52;
  --forest-deep: #225E3D;
  --leaf:        #85C088;
  --sky:         #7BB8D9;
  --service:     #5BA068;

  /* Neutrali */
  --bone:        #FBFAF7;
  --mist:        #EEF3F1;
  --pearl:       #F5F2EC;
  --line:        #D9DFDB;
  --line-soft:   #E8ECEA;
  --ink:         #0F2733;
  --ink-soft:    #3F4A55;
  --ink-mute:    #6A7680;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;

  /* Layout */
  --container: 1200px;
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  /* Effetti */
  --shadow-sm: 0 1px 2px rgba(15, 39, 51, 0.04), 0 1px 3px rgba(15, 39, 51, 0.06);
  --shadow:    0 4px 16px rgba(15, 39, 51, 0.06), 0 2px 4px rgba(15, 39, 51, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 39, 51, 0.12);
  --t:         180ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:    420ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--forest); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--forest-deep); }
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: white;
  padding: var(--sp-3) var(--sp-5);
  z-index: 9999;
}
.skip:focus { left: var(--sp-4); top: var(--sp-4); color: white; }

/* ----- Tipografia ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2.25rem, 4.5vw + 1rem, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 0.8vw + 1rem, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--ink-soft); }
p + p { margin-top: var(--sp-4); }

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--forest);
  vertical-align: middle;
  margin-right: var(--sp-3);
  transform: translateY(-2px);
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--dark { background: var(--navy); color: var(--bone); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--bone); }
.section--dark p { color: rgba(251, 250, 247, 0.78); }
.section--mist { background: var(--mist); }

@media (max-width: 720px) {
  .section { padding: var(--sp-8) 0; }
}

/* ----- Bottoni ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn--solid {
  background: var(--navy);
  color: var(--bone);
  border-color: var(--navy);
}
.btn--solid:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--bone);
}
.btn--light {
  background: var(--bone);
  color: var(--navy);
  border-color: var(--bone);
}
.btn--light:hover {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--navy-deep);
}
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 76px;
}
.brand { display: block; flex-shrink: 0; }
.brand__logo {
  width: auto;
  height: 48px;
  display: block;
}
.primary-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  padding: 0;
}
.nav-list > li > a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0;
  position: relative;
}
.nav-list > li > a:not(.btn):hover { color: var(--forest); }
.nav-list > li > a[aria-current="page"]:not(.btn) { color: var(--forest); }
.nav-list > li > a[aria-current="page"]:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}
/* Forza i colori del bottone CTA in nav (vince sui selettori sopra) */
.nav-list .btn--solid {
  color: var(--bone);
}
.nav-list .btn--solid:hover {
  color: white;
}
.has-sub { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bone);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  list-style: none;
  padding: var(--sp-2);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility 0s linear var(--t);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.submenu a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  border-radius: 6px;
  font-size: 0.9375rem;
}
.submenu a:hover { background: var(--mist); color: var(--forest); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-slow);
  }
  .primary-nav[data-open="true"] { max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) var(--sp-5);
  }
  .nav-list > li > a { padding: var(--sp-3) 0; }
  .submenu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--mist);
    margin-top: var(--sp-2);
    margin-bottom: var(--sp-3);
  }
  .nav-cta { padding-top: var(--sp-3); }
}

/* ----- Hero ----- */
.hero {
  padding: var(--sp-9) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.hero__title {
  margin-bottom: var(--sp-5);
  letter-spacing: -0.025em;
}
.hero__title em {
  font-style: italic;
  color: var(--forest);
  font-weight: 400;
}
.hero__lede { max-width: 52ch; margin-bottom: var(--sp-6); }
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}

@media (max-width: 920px) {
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero__visual { max-width: 380px; margin: 0 auto; }
}

/* ----- Servizio: card ----- */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.servizio-card {
  position: relative;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.servizio-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent, var(--forest));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.servizio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.servizio-card:hover::before { transform: scaleX(1); }
.servizio-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-bg, var(--mist));
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-2);
}
.servizio-card__icon svg { width: 26px; height: 26px; stroke: var(--accent, var(--forest)); }
.servizio-card__title { color: var(--navy); }
.servizio-card__more {
  margin-top: auto;
  padding-top: var(--sp-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.servizio-card__more::after {
  content: "→";
  transition: transform var(--t);
}
.servizio-card:hover .servizio-card__more::after { transform: translateX(4px); }

/* Accenti colorati per ogni card */
.acc-leaf    { --accent: var(--leaf);    --accent-bg: #E8F2DD; }
.acc-sky     { --accent: var(--sky);     --accent-bg: #DCEDF5; }
.acc-forest  { --accent: var(--forest);  --accent-bg: #DCEAE0; }
.acc-navy    { --accent: var(--navy);    --accent-bg: #DDE3E8; }
.acc-service { --accent: var(--service); --accent-bg: #E2EFE2; }

/* ----- Sezione: Perché PPL ----- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}
.trust-item {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--forest);
}
.trust-item__num {
  position: absolute;
  top: var(--sp-3); right: 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.04em;
}
.trust-item h3 { margin-bottom: var(--sp-3); }
.trust-item p { font-size: 0.9375rem; }

/* ----- Settori ----- */
.settori-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-6);
}
.settore-chip {
  padding: 0.55rem 1.1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

/* ----- Sezioni di testo (pagine interne) ----- */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}
.prose h2 { margin: var(--sp-7) 0 var(--sp-4); }
.prose h3 { margin: var(--sp-6) 0 var(--sp-3); }
.prose p { margin-bottom: var(--sp-4); }
.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: var(--sp-4);
  color: var(--ink-soft);
}
.prose li { margin-bottom: var(--sp-2); }
.prose ul li::marker { color: var(--forest); }

.page-header {
  padding: var(--sp-9) 0 var(--sp-6);
  background: linear-gradient(180deg, var(--mist) 0%, var(--bone) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.page-header__inner {
  max-width: 760px;
}
.page-header h1 {
  font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem);
  margin-bottom: var(--sp-4);
}
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin-bottom: var(--sp-5);
}
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--forest); }
.breadcrumbs span[aria-hidden] { margin: 0 var(--sp-2); }

/* ----- Sezione contatti / CTA ----- */
.cta-block {
  background: var(--navy);
  color: var(--bone);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  margin: var(--sp-8) 0;
  position: relative;
  overflow: hidden;
}
.cta-block__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: var(--sp-6);
}
.cta-block h2 { color: var(--bone); margin-bottom: var(--sp-3); }
.cta-block p { color: rgba(251, 250, 247, 0.78); margin: 0; }
.cta-block::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 192, 136, 0.18), transparent 70%);
  pointer-events: none;
}
@media (max-width: 720px) {
  .cta-block { padding: var(--sp-6); }
  .cta-block__inner { grid-template-columns: 1fr; }
}

/* ----- Form contatti ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.contact-card h3 { margin-bottom: var(--sp-4); }
.contact-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-card .info-row:last-child { border-bottom: 0; }
.contact-card .info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  min-width: 80px;
}
.contact-card .info-value { color: var(--ink); }

.form-field {
  display: block;
  margin-bottom: var(--sp-4);
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  font-size: 0.9375rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(46, 125, 82, 0.12);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: var(--sp-5);
}
.form-consent input { margin-top: 4px; }
.form-msg {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  background: var(--mist);
  border-left: 3px solid var(--forest);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-4);
}
.form-msg--ok { border-color: var(--forest); background: #E2EFE2; color: var(--forest-deep); }
.form-msg--err { border-color: #C44; background: #FCE9E9; color: #883232; }

/* Honeypot anti-bot - nascosto in modo che non sia visibile ma non bloccato da AT */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ----- Pagina errore ----- */
.error-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: var(--sp-8) var(--sp-5);
}
.error-page__inner {
  max-width: 600px;
  text-align: center;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--forest);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}
.error-page h1 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  margin-bottom: var(--sp-4);
}
.error-page p { margin-bottom: var(--sp-6); }
.error-page__actions { display: inline-flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: rgba(251, 250, 247, 0.75);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(251, 250, 247, 0.1);
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--sp-4);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-tagline {
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--sp-2);
}
.footer-mini {
  font-size: 0.875rem;
  color: rgba(251, 250, 247, 0.88);
}
.footer-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: var(--sp-4);
}
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: var(--sp-2); }
.footer-list a {
  color: rgba(251, 250, 247, 0.75);
  font-size: 0.9375rem;
}
.footer-list a:hover { color: var(--leaf); }
.footer-address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(251, 250, 247, 0.85);
}
.footer-address a { color: var(--leaf); }
.footer-address strong { color: var(--bone); }

.footer-legal {
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(251, 250, 247, 0.55);
}
.footer-legal__data {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}
.footer-legal__data span:not(:last-child)::after {
  content: " · ";
  margin-left: var(--sp-4);
  color: rgba(251, 250, 247, 0.3);
}
.footer-legal__links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer-legal__links a { color: rgba(251, 250, 247, 0.75); }
.footer-legal__links a:hover { color: var(--leaf); }

/* Credito sviluppatore - presente nel DOM ma non visibile a occhio (stesso colore del bg footer) */
.dev-credit {
  color: var(--navy);
  font-size: 10px;
  line-height: 1.1;
  margin: var(--sp-4) 0 0;
  padding: 0;
  letter-spacing: 0;
  user-select: text;
}

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-4); left: var(--sp-4); right: var(--sp-4);
  z-index: 200;
  background: var(--navy-deep);
  color: var(--bone);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.875rem;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(133, 192, 136, 0.18);
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding: 0;
}
.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.5;
}
.cookie-banner__text strong {
  color: var(--leaf);
  font-weight: 600;
}
.cookie-banner__text span {
  color: rgba(251, 250, 247, 0.82);
}
.cookie-banner a {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner a:hover {
  color: white;
}
@media (max-width: 560px) {
  .cookie-banner { padding: var(--sp-3) var(--sp-4); font-size: 0.8125rem; }
  .cookie-banner__inner { gap: var(--sp-3); }
  .cookie-banner button { width: 100%; }
}

/* ----- WhatsApp ----- */
:root {
  --wa-green:       #25D366;
  --wa-green-dark:  #1DA851;
}

/* Floating Action Button - presente su ogni pagina */
.wa-fab {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  animation: waPulse 2.4s ease-out 1.5s 2;
}
.wa-fab:hover {
  background: var(--wa-green-dark);
  transform: scale(1.06);
  color: white;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 6px 16px rgba(0, 0, 0, 0.14);
}
.wa-fab svg {
  width: 30px;
  height: 30px;
}
.wa-fab__tooltip {
  position: absolute;
  right: calc(100% + var(--sp-3));
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy);
  color: var(--bone);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  box-shadow: var(--shadow);
}
.wa-fab__tooltip::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--navy);
}
.wa-fab:hover .wa-fab__tooltip,
.wa-fab:focus-visible .wa-fab__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@keyframes waPulse {
  0%   { box-shadow: 0 8px 24px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,.6); }
  70%  { box-shadow: 0 8px 24px rgba(37,211,102,.35), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
}
@media (max-width: 560px) {
  .wa-fab { width: 52px; height: 52px; right: var(--sp-3); bottom: var(--sp-3); }
  .wa-fab svg { width: 26px; height: 26px; }
  .wa-fab__tooltip { display: none; }
}

/* Bottone WhatsApp - variante di .btn */
.btn--whatsapp {
  background: var(--wa-green);
  color: white;
  border-color: var(--wa-green);
  gap: var(--sp-2);
}
.btn--whatsapp:hover {
  background: var(--wa-green-dark);
  border-color: var(--wa-green-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--whatsapp svg {
  width: 18px; height: 18px;
  fill: currentColor;
}

/* Link WhatsApp inline (sidebar contatti) */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wa-green-dark);
  font-weight: 500;
}
.whatsapp-link svg {
  width: 16px; height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.whatsapp-link:hover { color: var(--wa-green); }

/* Wrapper flex per i due bottoni CTA nelle pagine servizio */
.cta-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}

/* ----- Utilities ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ----- Animazioni minime (reveal su scroll) ----- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Print ----- */
@media print {
  .site-header, .site-footer, .cookie-banner, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
}

/* ============================================================
   Pagina Qualità / Certificazione ISO 9001  (v1.0.10)
   ============================================================ */

.cert-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding: var(--sp-6);
  background: var(--bone);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cert-hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.cert-hero__logo img { width: 100%; height: auto; max-width: 300px; }
.cert-hero__body h2 { margin: 0 0 var(--sp-3); }
.cert-hero__body p { margin: 0 0 var(--sp-3); color: var(--ink-soft); }
.cert-hero__body p:last-child { margin-bottom: 0; }

/* Griglia dati certificato */
.cert-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: var(--sp-6) 0 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.cert-facts__item { background: var(--bone); padding: var(--sp-4) var(--sp-5); }
.cert-facts__item--wide { grid-column: 1 / -1; }
.cert-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-bottom: var(--sp-1);
}
.cert-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.cert-facts dd a { color: var(--forest); }

/* Politica per la qualità */
.policy .eyebrow { margin-bottom: var(--sp-2); }
.policy__sign {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

/* Blocco certificato: anteprima + download */
.cert-doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--sp-7);
  align-items: start;
}
.cert-doc__preview a {
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--t), transform var(--t);
}
.cert-doc__preview a:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cert-doc__preview img { display: block; width: 100%; height: auto; }
.cert-doc__side { position: sticky; top: var(--sp-6); }
.cert-doc__side h2 { margin: 0 0 var(--sp-3); }
.cert-doc__side p { color: var(--ink-soft); margin-bottom: var(--sp-4); }
.cert-doc__note { font-size: 0.85rem; color: var(--ink-mute); }

@media (max-width: 860px) {
  .cert-hero { grid-template-columns: 1fr; text-align: center; }
  .cert-hero__logo { justify-self: center; max-width: 320px; }
  .cert-facts { grid-template-columns: repeat(2, 1fr); }
  .cert-doc { grid-template-columns: 1fr; }
  .cert-doc__side { position: static; }
}
@media (max-width: 520px) {
  .cert-facts { grid-template-columns: 1fr; }
}

/* ----- Badge certificazione nel footer (v1.0.11) ----- */
.footer-legal__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1 1 420px;
  min-width: 0;
}
.footer-cert {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  opacity: 0.92;
  transition: opacity var(--t), transform var(--t);
}
.footer-cert:hover,
.footer-cert:focus-visible { opacity: 1; transform: translateY(-2px); }
.footer-cert img {
  display: block;
  width: 124px;
  height: auto;
}
@media (max-width: 720px) {
  .footer-legal { justify-content: center; text-align: center; }
  .footer-legal__text { flex-basis: 100%; align-items: center; }
  .footer-cert { margin: var(--sp-2) auto 0; }
  .footer-cert img { width: 108px; }
}

/* ============================================================
   SEO locale: pagine zona, FAQ, strip footer  (v1.0.13)
   ============================================================ */

/* ----- Scheda dati della localita ----- */
.local-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin: 0;
}
.local-facts__item { min-width: 0; }
.local-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: var(--sp-2);
}
.local-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
}
@media (max-width: 920px) {
  .local-facts { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
@media (max-width: 480px) {
  .local-facts { grid-template-columns: 1fr; }
}

/* ----- FAQ ----- */
.faq {
  max-width: 68ch;
  margin: var(--sp-8) 0 0;
}
.faq__title { margin-bottom: var(--sp-5); }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  margin-bottom: var(--sp-3);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  padding-right: var(--sp-8);
  font-weight: 600;
  color: var(--navy);
  position: relative;
  list-style: none;
  transition: background var(--t);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--mist); }
.faq__item summary::after {
  content: '';
  position: absolute;
  right: var(--sp-5);
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--ink-soft);
}
.faq__body p { margin: 0; }

/* ----- Card delle zone / pagine correlate ----- */
.zone-related { margin-top: var(--sp-8); }
.zone-related__title { margin-bottom: var(--sp-5); }
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.zone-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.zone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--leaf);
}
.zone-card__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.zone-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.zone-card__more {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
}
.zone-card__more::after {
  content: ' →';
  display: inline-block;
  transition: transform var(--t);
}
.zone-prov { color: var(--ink-mute); font-weight: 400; }

/* ----- Separatore nel submenu ----- */
.submenu__sep { border-top: 1px solid var(--line-soft); }

/* ----- Strip zone nel footer ----- */
.footer-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid rgba(251, 250, 247, 0.1);
}
.footer-zone__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(251, 250, 247, 0.55);
  flex-shrink: 0;
}
.footer-zone__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}
.footer-zone__list a {
  font-size: 0.8125rem;
  color: rgba(251, 250, 247, 0.72);
}
.footer-zone__list a:hover { color: var(--leaf); }
.footer-zone__all { font-weight: 600; color: var(--leaf) !important; }

@media (max-width: 720px) {
  .footer-zone { gap: var(--sp-2) var(--sp-4); }
  .footer-zone__list { gap: var(--sp-2) var(--sp-3); }
}
.zone-related__lede { color: var(--ink-soft); max-width: 62ch; margin: 0 0 var(--sp-2); }
