/* =========================================================
   Cilento Ristrutturazioni — Design System
   Palette basata sul logo (#278a81)
   ========================================================= */

:root {
  /* Brand */
  --teal-900: #10453f;
  --teal-800: #176159;
  --teal-700: #1f7a70;
  --teal-600: #278a81;   /* colore logo */
  --teal-500: #2fa094;
  --teal-100: #d7ece9;
  --teal-050: #eef7f5;

  --sand-600: #c8894b;
  --sand-500: #e0a458;   /* accento caldo (edilizia) */
  --sand-100: #f7ead7;

  --ink-900: #10201e;
  --ink-700: #2c3a38;
  --ink-500: #55635f;
  --ink-300: #8b9793;

  --paper: #ffffff;
  --paper-soft: #f6f9f8;
  --line: #e4ebe9;

  --shadow-sm: 0 1px 2px rgba(16, 32, 30, .06), 0 2px 8px rgba(16, 32, 30, .05);
  --shadow-md: 0 8px 24px rgba(16, 32, 30, .10);
  --shadow-lg: 0 24px 60px rgba(16, 32, 30, .16);

  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1180px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.12; font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--soft { background: var(--paper-soft); }
.section--teal { background: var(--teal-900); color: #dff0ed; }
.section--teal h2, .section--teal h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sand-500); border-radius: 2px; }
.section--teal .eyebrow { color: var(--teal-100); }

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 16px 0 14px; letter-spacing: -.02em; }
.section-head p { font-size: 1.08rem; color: var(--ink-500); }
.section--teal .section-head p { color: #bcd8d3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sand-500); color: #3a2409; box-shadow: 0 10px 24px rgba(224,164,88,.4); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(224,164,88,.5); }
.btn--dark { background: var(--teal-800); color: #fff; }
.btn--dark:hover { background: var(--teal-700); transform: translateY(-3px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink-900); }
.btn--outline:hover { border-color: var(--teal-600); color: var(--teal-700); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.16rem; color: var(--ink-900); flex: none; }
.brand img { width: 46px; height: 46px; }
.brand small { display: block; font-family: var(--font-body); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-700); font-weight: 700; margin-top: 1px; }

/* Header: solo logo (più grande), testo brand nascosto */
.site-header .nav { gap: 22px; height: 88px; }
.site-header .brand span { display: none; }
.site-header .brand img { width: 68px; height: 68px; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); flex: 1 1 auto; justify-content: center; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink-700); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--teal-700); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-800); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink-900); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px); background:
  radial-gradient(1200px 600px at 78% -10%, var(--teal-050), transparent 60%),
  radial-gradient(900px 500px at -10% 20%, var(--sand-100), transparent 55%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -.03em; margin: 18px 0 22px; }
.hero h1 .hl { color: var(--teal-700); position: relative; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-500); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--ink-700); }
.hero-trust svg { color: var(--teal-600); flex: none; }

.hero-visual { position: relative; }
.hero-card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; background:
    linear-gradient(155deg, var(--teal-700), var(--teal-900));
  position: relative; display: grid; place-items: center; color: #fff; text-align: center; padding: 30px;
}
.hero-card .logo-badge { width: 62%; opacity: .96; filter: drop-shadow(0 8px 24px rgba(0,0,0,.3)); }
.hero-card .logo-badge svg path, .hero-card .logo-badge svg .st0 { fill: #eaf6f3 !important; }
.hero-float {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 16px 18px; display: flex; align-items: center; gap: 13px;
}
.hero-float strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink-900); line-height: 1; }
.hero-float span { font-size: .8rem; color: var(--ink-500); }
.hero-float .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-700); flex: none; }
.hero-float.f1 { top: 22px; left: -26px; }
.hero-float.f2 { bottom: 28px; right: -22px; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trustbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-top: 26px; padding-bottom: 26px; }
.trustbar .item { display: flex; align-items: center; gap: 12px; }
.trustbar .num { font-family: var(--font-head); font-size: 1.9rem; color: var(--teal-700); line-height: 1; }
.trustbar .lab { font-size: .86rem; color: var(--ink-500); max-width: 150px; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--teal-600), var(--sand-500)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-700); margin-bottom: 20px; }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: .98rem; margin-bottom: 16px; }
.card ul.mini { display: grid; gap: 7px; margin-bottom: 20px; }
.card ul.mini li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--ink-700); }
.card ul.mini li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sand-500); }
.card .more { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--teal-700); font-size: .92rem; }
.card .more svg { transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .n { counter-increment: step; font-family: var(--font-head); font-size: 2.6rem; color: var(--teal-100); line-height: 1; }
.step .n::before { content: counter(step, decimal-leading-zero); }
.section--teal .step .n { color: rgba(255,255,255,.22); }
.step h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.step p { font-size: .95rem; color: var(--ink-500); }
.section--teal .step p { color: #a9ccc6; }

/* ---------- Why / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: grid; gap: 22px; margin-top: 26px; }
.feature { display: flex; gap: 16px; }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--sand-100); color: var(--sand-600); }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { font-size: .95rem; color: var(--ink-500); }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/6;
  background: linear-gradient(160deg, var(--teal-100), var(--sand-100)); position: relative; }
.media-frame .tag { position: absolute; left: 20px; bottom: 20px; background: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-md); font-weight: 700; color: var(--teal-800); }
.media-frame .watermark { position: absolute; inset: 0; display: grid; place-items: center; }
.media-frame .watermark svg .st0, .media-frame .watermark svg path { fill: rgba(39,138,129,.16) !important; }
.media-frame .watermark svg { width: 60%; }

/* ---------- Zones / areas ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 12px; }
.zone {
  padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; color: var(--ink-700); transition: .25s;
}
.zone:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-050); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.quote .stars { color: var(--sand-500); letter-spacing: 2px; margin-bottom: 14px; }
.quote p { color: var(--ink-700); font-size: 1rem; margin-bottom: 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-100); color: var(--teal-800); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.quote .who strong { display: block; font-size: .95rem; color: var(--ink-900); }
.quote .who span { font-size: .82rem; color: var(--ink-300); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-family: var(--font-head); font-size: 1.16rem; color: var(--ink-900); font-weight: 600; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.6rem; color: var(--teal-600); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 0 24px; color: var(--ink-500); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal-800), var(--teal-600)); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 68px); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% -20%, rgba(255,255,255,.14), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; position: relative; }
.cta-band p { color: #dff0ed; max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info .row { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .ic { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-700); }
.contact-info h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 3px; }
.contact-info a, .contact-info p { font-weight: 600; color: var(--ink-900); }
form.quote-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit;
  font-size: .95rem; color: var(--ink-900); background: var(--paper-soft); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal-500); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--ink-300); margin-top: 12px; }
.form-ok { display: none; background: var(--teal-050); border: 1px solid var(--teal-100); color: var(--teal-800); padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; }
.form-err { display: none; background: #fdecec; border: 1px solid #f6c9c9; color: #a83232; padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #b9c6c3; padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: var(--teal-100); }
.site-footer p.about { font-size: .94rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #8ea19d; }
.footer-brand-mark { display:flex; align-items:center; gap:10px; }
.footer-brand-mark img { width: 40px; height: 40px; }
.site-footer .footer-brand-mark img { filter: brightness(0) invert(1); opacity:.9; }

/* ---------- Page hero (interne) ---------- */
.page-hero { background: linear-gradient(180deg, var(--teal-050), var(--paper)); padding: clamp(48px, 7vw, 92px) 0 clamp(40px,6vw,64px); }
.breadcrumb { font-size: .85rem; color: var(--ink-300); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--teal-700); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; max-width: 780px; margin-bottom: 16px; }
.page-hero p { font-size: 1.12rem; color: var(--ink-500); max-width: 640px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.8rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--ink-600, var(--ink-500)); }
.prose ul.checks { display: grid; gap: 10px; margin: 16px 0 24px; }
.prose ul.checks li { position: relative; padding-left: 30px; }
.prose ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-600); font-weight: 800; }

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .25s var(--ease), box-shadow .25s;
  animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 38px rgba(37,211,102,.55); }
@keyframes wa-pulse {
  0% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 720px) { .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; } }

/* ---------- Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .cards, .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; padding: 22px; gap: 18px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
  }
  .cards, .quotes, .form-row, .footer-grid, .steps { grid-template-columns: 1fr; }
  .hero-float.f1 { left: 4px; } .hero-float.f2 { right: 4px; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
