/* ============================================================
   COSTRUZIONI GENERALI A. L. DI LA CECILIA GIOVANNI
   Clone statico del sito GHL — parti native (header, hero,
   strip, intestazioni sezione, form, footer).
   I componenti custom code mantengono i loro <style> inline.
   ============================================================ */

:root {
  --navy-btn: #0b3a5b;
  --navy-btn-hover: #092d48;
  --brand: #2f568e;
  --brand-accent: #30608f;
  --dark: #161b22;
  --hero-dark: #111111;
  --light: #f5f6f8;
  --ink: #0f1318;
  --ink-2: #212a37;
  --body-gray: #455466;
  --hero-muted: #c8d4e3;
  --strip-gray: #798086;
  --footer-text: #e6e8eb;
  --footer-link: #188bf6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--light);
  font-family: 'Barlow', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */

.site-header {
  position: relative;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 250px;
  height: auto;
  margin: -34px 0;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
  margin-right: 32px;
}

.site-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #f5f6f8;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover { color: #7da9e8; }

.header-cta {
  display: inline-block;
  background: var(--navy-btn);
  color: #ffffff;
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--navy-btn-hover);
  transform: translateY(-2px);
}

/* ============ HERO ============ */

.hero {
  background-color: var(--hero-dark);
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: 50% 50%;
  padding-bottom: 80px;
}

.hero-inner {
  padding-top: 48px;
  max-width: 690px;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--hero-muted);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: 'Barlow', sans-serif;
  font-size: 60px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  color: #f0f4f8;
  margin: 0 0 18px;
  max-width: 510px;
}

.hero h1 .accent { color: var(--brand-accent); }

.hero-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--hero-muted);
  margin: 0 0 34px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 480px;
}

/* ============ STRIP BADGE (desktop) ============ */

.strip {
  background: var(--dark);
  padding: 20px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  text-align: center;
  padding: 10px 18px;
  position: relative;
}

.strip-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(245, 246, 248, 0.14);
}

.strip-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f0f4f8;
  margin: 0 0 4px;
}

.strip-sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--strip-gray);
  margin: 0;
}

/* strip mobile 2x2 */
.strip-mobile { display: none; }

/* ============ INTESTAZIONI SEZIONE ============ */

.sec-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
  margin: 0 0 14px;
}

.sec-eyebrow--left {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}

.sec-title {
  font-family: 'Barlow', sans-serif;
  font-size: 46px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

.sec-title .accent { color: var(--brand); }

.sec-title--light { color: #f0f4f8; }

.sec-title--xl { font-size: 50px; }

.sec-title--w700 { font-weight: 700; }

.sec-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--body-gray);
  margin: 0;
}

.sec-sub--light { color: var(--hero-muted); }

.sec-head--center { text-align: center; }

.sec-head--center .sec-sub { max-width: 640px; margin: 0 auto; }

.sec-divider {
  width: 396px;
  max-width: 60%;
  height: 2px;
  background: var(--brand);
  margin: 28px auto 0;
  border: none;
}

/* ============ SEZIONI ============ */

.section-specialisti {
  background: var(--light);
  padding: 20px 0 40px;
}

.section-specialisti .sec-head--center { padding: 36px 0 30px; }

.section-servizi {
  background: var(--dark);
  padding: 40px 0 60px;
}

.section-servizi .sec-head { max-width: 1280px; margin: 0 auto 8px; padding: 20px 24px 26px; }

.servizi-cta {
  text-align: center;
  padding: 56px 24px 0;
}

.servizi-cta h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  color: #f0f4f8;
  margin: 0 0 10px;
}

.servizi-cta p {
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--hero-muted);
  margin: 0 0 28px;
}

.section-processo {
  background: var(--light);
  padding: 0 0 30px;
}

.section-processo .sec-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.section-lavori {
  background: var(--dark);
  padding: 40px 0;
}

.section-lavori .sec-head--center { padding: 20px 24px 36px; }

.section-form {
  background: var(--light);
  padding: 40px 0;
}

.section-faq {
  background: var(--dark);
  padding: 40px 0;
}

.section-faq .sec-head--center { padding: 20px 24px 30px; }

.section-cta-finale {
  background: var(--light);
  padding: 40px 0 20px;
  text-align: center;
}

.cta-finale-title {
  font-family: 'Barlow', sans-serif;
  font-size: 60px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}

.cta-finale-title .accent { color: var(--brand); }

.cta-finale-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--body-gray);
  margin: 0 auto 34px;
  max-width: 560px;
}

.cta-finale-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.cta-finale-micro {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0;
}

/* ============ FORM PREVENTIVO ============ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.form-left .sec-eyebrow { letter-spacing: 1px; font-weight: 600; font-size: 16px; }

.form-left h2 {
  font-family: 'Barlow', sans-serif;
  font-size: 60px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

.form-left h2 .accent { color: var(--brand); }

.form-left p {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--body-gray);
  margin: 0 0 24px;
  max-width: 460px;
}

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

.form-checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
}

.form-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--brand);
  font-weight: 700;
  font-size: 20px;
}

.quote-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(15, 30, 55, 0.10);
  padding: 32px 30px;
}

.quote-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1f1f1e;
  text-align: center;
  margin: 0 0 6px;
}

.quote-card .quote-sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #1f1f1e;
  text-align: center;
  margin: 0 0 24px;
}

.quote-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-field { display: flex; flex-direction: column; }

.quote-field--full { grid-column: 1 / -1; }

.quote-field label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #344054;
  margin-bottom: 6px;
}

.quote-field input,
.quote-field select {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-height: 46px;
}

.quote-field input::placeholder { color: #667085; }

.quote-field select:invalid { color: #667085; }

.quote-field input:focus,
.quote-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 86, 142, 0.15);
}

.quote-submit {
  grid-column: 1 / -1;
  background: var(--brand);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  padding: 13px 14px;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quote-submit:hover { background: #274a7c; transform: translateY(-1px); }

.quote-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

.quote-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #344054;
  line-height: 1.45;
}

.quote-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.quote-consent a { color: var(--footer-link); text-decoration: none; }
.quote-consent a:hover { text-decoration: underline; }

.quote-feedback {
  grid-column: 1 / -1;
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 8px;
  padding: 14px 16px;
}

.quote-feedback.success {
  display: block;
  background: #e8f5ec;
  color: #14532d;
  border: 1px solid #b7e0c3;
}

.quote-feedback.error {
  display: block;
  background: #fdeaea;
  color: #7f1d1d;
  border: 1px solid #f3c1c1;
}

.quote-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: #25d146;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 18px;
  transition: background 0.2s ease;
}

.quote-whatsapp:hover { background: #1fb63c; }

.quote-whatsapp svg { width: 18px; height: 18px; }

/* ============ FOOTER ============ */

.site-footer {
  background: var(--dark);
  padding: 44px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 30px;
}

.footer-brand img {
  width: 190px;
  height: auto;
  margin: -22px 0 2px -14px;
  display: block;
}

.footer-name {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 10px;
}

.footer-brand p {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--footer-text);
  margin: 0 0 6px;
  line-height: 1.5;
}

.footer-brand a { color: var(--footer-text); text-decoration: none; }
.footer-brand a:hover { color: #ffffff; }

.footer-legal-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links li { margin-bottom: 8px; }

.footer-legal-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--footer-link);
  text-decoration: none;
}

.footer-legal-links a:hover { text-decoration: underline; }

.footer-copy {
  border-top: 1px solid rgba(245, 246, 248, 0.10);
  padding-top: 20px;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--footer-text);
}

/* ============ PAGINE LEGALI ============ */

.legal-page {
  background: #ffffff;
}

.legal-topbar { background: var(--dark); }

.legal-topbar-inner {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 140px;
}

.legal-topbar .site-logo img {
  width: 294px;
  height: auto;
  margin: -30px 0;
  display: block;
}

/* contenuto rich-text GHL (informativa privacy) */
.ghl-richtext {
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #000000;
}

.ghl-richtext p { margin: 0; min-height: 21px; }

.ghl-richtext a { color: #188bf6; text-decoration: none; }

/* contenuto custom code (cookie / termini): porta i suoi stili inline */
.legal-main {
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px 10px;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1100px) {
  .site-nav { display: none; }
}

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; gap: 44px; }
  .form-left h2 { font-size: 44px; }
  .cta-finale-title { font-size: 42px; }
  .sec-title { font-size: 38px; }
  .hero h1 { font-size: 48px; }
}

@media (max-width: 768px) {
  .site-header .container { min-height: 88px; }
  .site-logo img { width: 250px; margin: -40px 0; }
  .header-cta { display: none; }

  .hero { padding-bottom: 52px; }
  .hero-inner { padding-top: 24px; }
  .hero h1 { font-size: 39px; line-height: 1.3; }
  .hero-sub { font-size: 17px; }
  .hero-buttons { max-width: 100%; width: 100%; }

  .strip { display: none; }

  .strip-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dark);
    padding: 18px 16px;
    gap: 0;
  }

  .strip-mobile .strip-item {
    padding: 14px 10px;
    text-align: center;
  }

  .strip-mobile .strip-item:nth-child(odd)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: rgba(245, 246, 248, 0.14);
  }

  .strip-mobile .strip-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(245, 246, 248, 0.14);
  }

  .strip-mobile .strip-title { font-size: 14px; color: #f5f5f5; }
  .strip-mobile .strip-sub { font-size: 13px; }

  .sec-title { font-size: 31px; }
  .sec-title--xl { font-size: 31px; }
  .sec-sub { font-size: 17px; }
  .sec-eyebrow--left { font-size: 16px; }
  .sec-divider { margin-top: 22px; }

  .servizi-cta h3 { font-size: 24px; }
  .servizi-cta p { font-size: 16px; }

  .form-left h2 { font-size: 37px; }
  .form-left p { font-size: 17px; }
  .quote-card { padding: 26px 20px; }
  .quote-fields { grid-template-columns: 1fr; }

  .cta-finale-title { font-size: 33px; }
  .cta-finale-sub { font-size: 17px; }
  .cta-finale-micro { font-size: 11.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .legal-topbar-inner {
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    gap: 2px;
    padding: 8px 16px 20px;
  }
  .legal-topbar .site-logo img { width: 210px; margin: -22px 0; }
  .legal-topbar .hero-blue-btn-wrap { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
