:root {
  --navy: #123f38;
  --navy-dark: #0c2c27;
  --ink: #173c35;
  --muted: #5d7068;
  --paper: #fafaf5;
  --white: #ffffff;
  --header: rgba(250, 250, 245, 0.94);

  --accent: #446820;
  --lime: #d7ef9a;
  --lime-hover: #e4f6b6;

  --water: #0284c7;
  --water-soft: #eef7fc;
  --gas: #d96b18;
  --gas-soft: #fdf4eb;

  --surface-muted: #eef1e8;
  --surface-hover: #f5f8eb;
  --surface-callout: #eef3e6;
  --surface-contact: #edf1e8;
  --surface-field: #fcfcfa;
  --surface-icon: #edf3e6;

  --line: #dbe3d8;
  --line-strong: #b6c7ba;
  --line-field: #cddace;

  --wa: #167c46;
  --wa-hover: #12663a;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

em {
  font-style: normal;
  color: var(--accent);
}

p {
  color: var(--muted);
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* Utility bar */
.utility {
  background: var(--navy);
  color: #ffffff;
  font-size: 13.5px;
  padding: 8px 0;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.utility-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a4d698;
  box-shadow: 0 0 0 4px rgba(164, 214, 152, 0.2);
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
}

.brand-name {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.03em;
  border-left: 1px solid var(--line-strong);
  padding-left: 11px;
}

.brand-name small {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.header-call:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.phone-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

/* HERO / SERVICE ENTRY */
.service-entry {
  padding-top: 44px;
  padding-bottom: 46px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.service-entry-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-entry h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.service-entry-prompt {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.service-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}

.service-entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.service-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(18, 63, 56, 0.08);
}

.card-acqua:hover {
  border-color: var(--water);
}

.card-gas:hover {
  border-color: var(--gas);
}

.service-entry-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 24px 24px 16px;
}

.service-entry-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 11px;
}

.service-entry-icon svg {
  width: 26px;
  height: 26px;
}

.icon-acqua {
  background: var(--water-soft);
  color: var(--water);
}

.icon-gas {
  background: var(--gas-soft);
  color: var(--gas);
}

.service-entry-details > strong {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.service-entry-description {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.service-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.service-entry-call-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  min-height: 48px;
  margin: 0 24px 22px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 800;
  transition: filter 0.16s ease, transform 0.15s ease;
}

.call-acqua {
  background: var(--water);
  color: #ffffff;
}

.call-gas {
  background: var(--gas);
  color: #ffffff;
}

.service-entry-call-action:hover {
  filter: brightness(1.06);
}

.service-entry-safety {
  margin: 20px 0 6px;
  font-size: 14.5px;
}

.service-entry-safety a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-entry-trust {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

/* Shared Section Styling */
.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  margin-bottom: 0;
}

.section-heading > p {
  font-size: 14.5px;
  max-width: 340px;
  margin-bottom: 4px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-accent {
  background: var(--lime);
  color: var(--navy);
}

.button-accent:hover {
  background: var(--lime-hover);
}

.button-outline {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--accent);
}

/* Acqua & Gas Cards + Safety Box */
.leak-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.leak-service-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.gas-service-card {
  background: var(--surface-callout);
}

.leak-service-tag {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 16px;
}

.leak-service-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.leak-service-heading h3 {
  font-size: 28px;
  margin-bottom: 0;
}

.leak-service-heading svg {
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex-shrink: 0;
}

.leak-service-card p {
  font-size: 14.5px;
  margin-bottom: 22px;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.gas-safety {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  margin-top: 22px;
  border: 1px solid #d2b986;
  border-left: 4px solid #a8731e;
  border-radius: 10px;
  background: #fff8e9;
  color: #4f3b16;
  scroll-margin-top: 100px;
}

.gas-safety-icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.gas-safety h3 {
  font-size: 16.5px;
  color: #4f3b16;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.gas-safety p {
  font-size: 14px;
  color: inherit;
  margin: 0;
}

.gas-safety a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Process Dark Section */
.process-section {
  background: var(--navy);
  color: #ffffff;
  padding: 72px 0;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: start;
}

.process-section .eyebrow {
  color: #bdd3bc;
}

.process-section h2 {
  color: #ffffff;
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 14px;
}

.process-section h2 em {
  color: var(--lime);
}

.process-layout > div > p:not(.eyebrow) {
  color: #c0d2c1;
  font-size: 15px;
  max-width: 380px;
  margin-bottom: 24px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.steps li > span {
  font-size: 14px;
  font-weight: 800;
  color: var(--lime);
  padding-top: 3px;
}

.steps h3 {
  color: #ffffff;
  font-size: 19px;
  margin-bottom: 6px;
}

.steps p {
  color: #c0d2c1;
  font-size: 14.5px;
  margin: 0;
}

/* Tools 4-Card Bordered Strip */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.tool-card {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease;
}

.tool-card:last-child {
  border-right: 0;
}

.tool-card:hover {
  background: var(--surface-hover);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-icon);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.tool-icon svg {
  width: 24px;
  height: 24px;
}

.tool-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: var(--surface-contact);
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  margin-bottom: 14px;
}

.contact-copy > p:not(.eyebrow) {
  font-size: 15px;
  max-width: 360px;
  margin-bottom: 22px;
}

.contact-number {
  display: inline-block;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.contact-number span {
  color: var(--accent);
}

.contact-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.contact-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.request-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(18, 63, 56, 0.05);
}

.request-form h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.request-form > p {
  font-size: 14px;
  margin-bottom: 18px;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.radio-pill {
  position: relative;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-field);
  transition: all 0.16s ease;
}

.radio-pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.request-form > label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.request-form input[type="text"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line-field);
  border-radius: 7px;
  background: var(--surface-field);
  color: var(--ink);
  font-size: 15px;
}

.request-form input[type="text"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

/* FAQ */
.faq-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.faq-section h2 {
  font-size: clamp(30px, 3.2vw, 42px);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-list details:first-child {
  padding-top: 0;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  font-size: 14.5px;
  margin: 10px 0 0;
}

.faq-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-contact a {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0 92px;
  font-size: 13px;
  color: var(--muted);
}

/* FLOATING BOTTOM BAR: CHIAMA + WHATSAPP */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(250, 250, 245, 0.94);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(18, 63, 56, 0.16);
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.floating-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.floating-call {
  background: var(--navy);
  color: #ffffff;
}

.floating-wa {
  background: var(--wa);
  color: #ffffff;
}

/* Cookie Banner (Consent Mode v2) */
.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-reset-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 32px rgba(18, 63, 56, 0.16);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 800;
  border: 1px solid var(--line-strong);
}

.cookie-reject {
  background: var(--paper);
  color: var(--ink);
}

.cookie-accept {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-card:nth-child(2) {
    border-right: 0;
  }

  .tool-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .process-layout,
  .contact-layout,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .utility {
    font-size: 12.5px;
  }

  .header-inner {
    height: 66px;
  }

  .brand-name {
    font-size: 12.5px;
  }

  .service-entry {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .service-entry h1 {
    font-size: clamp(32px, 9.2vw, 42px);
    margin-bottom: 14px;
  }

  .service-entry-prompt {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .service-entry-grid {
    gap: 10px;
  }

  .service-entry-card {
    border-radius: 11px;
  }

  .service-entry-details {
    padding: 14px 12px 12px;
  }

  .service-entry-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .service-entry-icon svg {
    width: 21px;
    height: 21px;
  }

  .service-entry-details > strong {
    font-size: 16.5px;
    margin-bottom: 4px;
  }

  .service-entry-description {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .service-entry-link {
    font-size: 12.5px;
  }

  .service-entry-call-action {
    margin: 0 12px 12px;
    min-height: 44px;
    padding: 9px 8px;
    font-size: 14.5px;
  }

  .section,
  .process-section,
  .contact-section {
    padding: 52px 0;
  }

  .leak-service-grid,
  .tools-grid,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .tool-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-card:last-child {
    border-bottom: 0;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact {
    align-items: flex-start;
  }

  .floating-contact {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .floating-btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 10px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 78px;
    max-width: none;
  }
}
