/* Landing PHP custom - Autospurgo in Gallura */

:root {
  --blue: #102f5e;
  --blue-dark: #071b35;
  --red: #d72828;
  --gold: #c08435;
  --green: #16a34a;
  --green-dark: #12823d;
  --whatsapp: #25d366;
  --white: #ffffff;
  --light: #f4f7fb;
  --muted: #667085;
  --text: #122033;
  --border: #e2e8f0;
  --shadow: 0 22px 60px rgba(7, 27, 53, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: 158px;
  height: auto;
}

.mini-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 12px 16px;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,27,53,.96) 0%, rgba(16,47,94,.86) 48%, rgba(16,47,94,.30) 100%),
    radial-gradient(circle at 20% 25%, rgba(215,40,40,.20), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 80px 0 110px;
  max-width: 820px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #f5c067;
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 900;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: .98;
  letter-spacing: -1.8px;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.45;
  color: rgba(255,255,255,.92);
}

.hero-cta,
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.hero-cta.centered {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 14px;
  border: 0;
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.btn-call {
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 34px rgba(22, 163, 74, .34);
}

.btn-call:hover {
  background: var(--green-dark);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #052d15;
}

.btn-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  color: #fff;
  font-weight: 800;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 10px 13px;
}

.urgent-strip {
  width: min(1180px, 92%);
  margin: -52px auto 0;
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.urgent-strip strong {
  color: var(--red);
}

.urgent-strip a {
  white-space: nowrap;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  border-radius: 999px;
  padding: 13px 18px;
}

.section {
  padding: 82px 0;
}

.section-head {
  width: min(880px, 92%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.form-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--blue-dark);
  line-height: 1.08;
  letter-spacing: -1px;
}

.section-head p,
.form-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.cards-grid,
.proof-grid {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card,
.proof-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(7,27,53,.07);
}

.info-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 900;
}

.info-card h3,
.proof-item strong {
  display: block;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 22px;
}

.info-card p,
.proof-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-section {
  background: var(--light);
}

.split {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}

.split h2 {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
}

.split p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--green);
  font-weight: 900;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.photo-card {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.25);
}

.photo-card img {
  width: 100%;
  display: block;
}

.zone-section {
  padding: 82px 0;
  background: var(--blue-dark);
  color: #fff;
}

.section-head.light h2 {
  color: #fff;
}

.section-head.light p {
  color: rgba(255,255,255,.78);
}

.zone-grid {
  width: min(1080px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.zone-grid span {
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
}

.proof-section {
  background: #fff;
}

.form-section {
  padding: 82px 0;
  background:
    linear-gradient(135deg, rgba(16,47,94,.96), rgba(7,27,53,.98)),
    radial-gradient(circle at 20% 10%, rgba(215,40,40,.22), transparent 32%);
}

.form-wrap {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.form-copy {
  color: #fff;
  padding: 20px 0;
}

.form-copy h2 {
  color: #fff;
}

.form-copy p {
  color: rgba(255,255,255,.82);
}

.big-phone {
  display: inline-flex;
  margin-top: 28px;
  color: #fff;
  background: var(--green);
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  padding: 16px 20px;
  border-radius: 14px;
}

.lead-form {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 15px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: var(--blue-dark);
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 14px;
  font-size: 16px;
  font-family: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.privacy-check {
  display: flex !important;
  align-items: flex-start;
  grid-template-columns: auto 1fr;
  gap: 10px !important;
  font-size: 14px;
  color: var(--muted) !important;
  font-weight: 500 !important;
}

.privacy-check input {
  width: auto;
  margin-top: 2px;
}

.form-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
}

.hp-field {
  display: none;
}

.site-footer {
  background: #06162c;
  color: rgba(255,255,255,.82);
  padding: 34px 4% 102px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.site-footer img {
  width: 130px;
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  grid-template-columns: 1.2fr .8fr;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 30px rgba(7,27,53,.16);
}

.mobile-action-bar a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 900;
}

.mobile-call {
  background: var(--green);
  color: #fff;
}

.mobile-wa {
  background: var(--whatsapp);
  color: #052d15;
}

.thanks-body {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--blue-dark);
  padding: 24px;
}

.thanks-card {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 38px;
  text-align: center;
  box-shadow: var(--shadow);
}

.thanks-card img {
  width: 160px;
  background: var(--blue-dark);
  border-radius: 16px;
  padding: 8px;
}

.thanks-card h1 {
  font-size: 44px;
  color: var(--blue-dark);
  margin-top: 24px;
}

.thanks-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cards-grid,
  .proof-grid,
  .split,
  .form-wrap {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 84px;
  }

  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(7,27,53,.94), rgba(7,27,53,.55));
    border-bottom: 0;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 132px;
  }

  .mini-phone {
    display: none;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7,27,53,.88) 0%, rgba(7,27,53,.75) 30%, rgba(7,27,53,.94) 100%);
  }

  .hero-content {
    width: 92%;
    padding: 118px 0 96px;
  }

  h1 {
    font-size: 38px;
    letter-spacing: -1.1px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .trust-row span {
    font-size: 13px;
    padding: 9px 11px;
  }

  .urgent-strip {
    margin-top: -36px;
    flex-direction: column;
    align-items: flex-start;
  }

  .urgent-strip a {
    width: 100%;
    text-align: center;
  }

  .section,
  .zone-section,
  .form-section {
    padding: 60px 0;
  }

  .section-head {
    text-align: left;
  }

  .section-head h2,
  .form-copy h2,
  .split h2 {
    font-size: 32px;
  }

  .info-card,
  .proof-item,
  .lead-form {
    padding: 22px;
  }

  .zone-grid {
    grid-template-columns: 1fr;
  }

  .mobile-action-bar {
    display: grid;
  }
}
