/* ============================================================
   SALDOMUS — Sito vetrina
   Palette derivata dal logo: sabbia, teal/petrolio, navy, oro
   ============================================================ */

:root {
  --sand:        #f4eee2;
  --sand-deep:   #eadfc7;
  --teal:        #1c5a60;
  --teal-light:  #2e7c8a;
  --navy:        #18313d;
  --gold:        #c49a4a;
  --gold-light:  #d9b76b;
  --ink:         #1e2b30;
  --muted:       #5f7174;
  --white:       #ffffff;
  --line:        rgba(24, 49, 61, 0.12);

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(24, 49, 61, 0.12);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-light); }

.lead { font-size: 1.15rem; max-width: 640px; margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 238, 226, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 42px; width: auto; border-radius: 8px; }
.brand-name { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.14em; color: var(--navy); font-size: 1.1rem; }

.main-nav { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink); position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: var(--transition);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--teal); color: var(--white) !important; padding: 9px 20px; border-radius: 50px; }
.nav-cta:hover { background: var(--navy); }

.lang-switch { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 50px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; font: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); padding: 5px 11px; border-radius: 50px; cursor: pointer; transition: var(--transition);
}
.lang-switch button.active { background: var(--teal); color: var(--white); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); transition: var(--transition); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-scene { width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 80px; max-width: 760px; }
.hero h1 { margin: 6px 0 18px; }
.hero-sub { font-size: 1.2rem; color: var(--navy); max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--navy); border-color: rgba(24,49,61,0.4); }
.hero .btn-ghost:hover { background: rgba(24,49,61,0.06); }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 46px 28px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--gold-light); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.78); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.col-text h2 { margin-bottom: 18px; }
.col-text p { margin-bottom: 14px; }

/* About pillars */
.col-cards { display: grid; gap: 18px; }
.pillar { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pillar-icon { font-size: 1.4rem; color: var(--gold); margin-bottom: 8px; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { font-size: 0.95rem; }

/* ---------- Venus ---------- */
.venus { background: var(--sand-deep); }
.venus-head { max-width: 720px; margin-bottom: 44px; }
.venus-head .lead { margin-top: 14px; }
.venus-body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: stretch; }
.venus-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.img-placeholder {
  height: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 60%, var(--navy) 100%);
  color: rgba(255,255,255,0.92); text-align: center; padding: 24px;
}
.img-placeholder span { font-family: var(--font-head); font-size: 1.3rem; }
.img-placeholder small { font-size: 0.8rem; color: rgba(255,255,255,0.65); font-family: monospace; }

.venus-specs { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.venus-specs h3 { margin-bottom: 20px; }
.spec-list { list-style: none; margin-bottom: 26px; }
.spec-list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: none; }
.spec-list span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.spec-list strong { color: var(--navy); font-weight: 500; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.project-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: var(--transition); }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(24,49,61,0.18); }
.project-img { position: relative; height: 190px; background: linear-gradient(135deg, var(--teal-light), var(--teal)); }
.project-card:nth-child(2) .project-img { background: linear-gradient(135deg, #3a8a96, var(--teal)); }
.project-card:nth-child(3) .project-img { background: linear-gradient(135deg, var(--navy), var(--teal)); }
.project-card:nth-child(4) .project-img { background: linear-gradient(135deg, var(--gold), #a87f33); }
.project-card:nth-child(5) .project-img { background: linear-gradient(135deg, var(--teal), var(--navy)); }
.project-card:nth-child(6) .project-img { background: linear-gradient(135deg, #4a96a0, var(--teal-light)); }
.project-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.92); color: var(--navy);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 50px;
}
.tag-live { background: var(--gold); color: var(--white); }
.tag-pipe { background: rgba(255,255,255,0.82); color: var(--muted); }
.project-info { padding: 22px 24px 26px; }
.project-info h3 { margin-bottom: 2px; }
.project-loc { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 10px; }
.project-info p:last-child { font-size: 0.94rem; }
.project-card.featured { grid-column: span 1; outline: 2px solid var(--gold); }

/* ---------- Why ---------- */
.why { background: var(--navy); color: var(--white); }
.why h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 44px; }
.why-item { border-top: 2px solid var(--gold); padding-top: 18px; }
.why-num { font-family: var(--font-head); font-size: 1.4rem; color: var(--gold-light); }
.why-item h3 { color: var(--white); margin: 8px 0 8px; }
.why-item p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-col { align-items: start; }
.contact-list { list-style: none; margin-top: 28px; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 3px; }
.contact-list a { color: var(--teal); font-weight: 600; }
.contact-list a:hover { color: var(--navy); }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--sand);
  color: var(--ink); resize: vertical; transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form-note { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 28px 40px; }
.footer-logo { height: 56px; border-radius: 8px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-legal p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 2px; }
.footer-legal strong { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 0.84rem; color: rgba(255,255,255,0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .venus-body { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .main-nav, .lang-switch { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--sand); padding: 24px 28px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open .nav-cta { text-align: center; }
  .menu-toggle { display: flex; margin-left: auto; }
  .section { padding: 64px 0; }
  .project-grid, .why-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}

/* ---------- Render reali (immagini) ---------- */
.hero-bg { background: var(--navy); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,34,40,0.80) 0%, rgba(18,34,40,0.52) 44%, rgba(18,34,40,0.18) 100%);
}
.hero h1, .hero .hero-sub { color: var(--white); }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.16); }

.venus-photo { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }

.venus-gallery { margin-top: 44px; }
.venus-gallery-title { margin-bottom: 18px; }
.venus-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.venus-gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.venus-gallery img { width: 100%; height: 210px; object-fit: cover; display: block; }
.venus-gallery figcaption { padding: 11px 14px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }

.project-img .project-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) { .venus-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .venus-gallery img { height: 180px; } }

.form-status { font-size: 0.88rem; min-height: 1.2em; margin: 0; font-weight: 500; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #b3402e; }

.venus-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
