/* =========================================================
   Dott. Ing. Alessio Zanghi — alessiozanghi.com
   Hi-fi Variante C · Navy + Gold
   ========================================================= */

:root {
  --navy-900: #08162A;
  --navy-800: #0B1E36;
  --navy-700: #122844;
  --navy-600: #1B355A;
  --gold: #C9A961;
  --gold-soft: #E5C989;
  --gold-dark: #A8893F;
  --cream: #FAF8F3;
  --cream-alt: #F3EFE4;
  --ink: #14223A;
  --ink-soft: #5C6B85;
  --ink-muted: #8A97AE;
  --line: #E2D9C4;
  --line-soft: #EEE7D6;
  --white: #FFFFFF;
  --success: #2F8F5D;
  --danger: #B73A3A;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(11,30,54,.06);
  --shadow: 0 10px 30px rgba(11,30,54,.08);
  --shadow-lg: 0 20px 60px rgba(11,30,54,.15);

  --container: 1200px;
}

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

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

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

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--gold); }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, .section-title, .hero-title, .quote-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  color: var(--navy-900);
}
.section-title-light { color: var(--white); }

em { font-style: italic; color: var(--gold-dark); }
.section-title em,
.hero-title em,
.quote-title em { font-style: italic; color: var(--gold-dark); font-weight: 600; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1FA851;
  border-color: #1FA851;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-whatsapp svg { width: 18px; height: 18px; }

.icon-wa { width: 18px; height: 18px; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-900);
}

.brand-mark {
  display: inline-block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto 0 40px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 32px 24px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a.btn {
  margin-top: 10px;
  border-bottom: 0;
}
.mobile-nav a.btn-primary,
.mobile-nav a.btn-primary:hover,
.mobile-nav a.btn-primary:visited {
  color: #ffffff !important;
}
.mobile-nav a.btn-outline { color: var(--navy-900) !important; }

/* ========== HERO ========== */
.hero {
  padding: 140px 0 80px;
  background: var(--cream);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.95);
}
.photo-badge {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}
.photo-badge .eyebrow { margin-bottom: 4px; font-size: 10px; }
.photo-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy-900);
  line-height: 1.2;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.logo-mono {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.hero-brand-text { line-height: 1.2; }
.hero-brand-text .eyebrow { margin-bottom: 2px; font-size: 11px; }
.hero-brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--navy-900);
}
.hero-brand-role {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-title {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ========== QUOTE SECTION ========== */
.quote-section {
  padding: 100px 0;
  background: var(--cream-alt);
  text-align: center;
  position: relative;
}
.quote-section::before,
.quote-section::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.quote-section::before { top: 40px; }
.quote-section::after { bottom: 40px; }

.quote-wrap { max-width: 820px; margin: 0 auto; }
.quote-mark {
  font-family: var(--font-serif);
  font-size: 110px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: -28px;
}
.quote-title {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--navy-900);
}
.quote-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 680px;
}
.quote-signature {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ========== SECTIONS BASE ========== */
.section { padding: 120px 0; }
.section-alt { background: var(--cream-alt); }

.section-header { margin-bottom: 64px; }
.section-header-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.section-header-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; margin-bottom: 72px; }

.section-intro {
  max-width: 420px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  text-align: right;
}

/* ========== SERVIZI ========== */
.services-list { display: flex; flex-direction: column; gap: 16px; }

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s;
}
.service-row:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-row-featured {
  background: linear-gradient(135deg, #fffbf3 0%, #fff 100%);
  border-color: var(--gold);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy-900);
  border-radius: 14px;
  color: var(--navy-900);
  flex-shrink: 0;
  background: var(--white);
}
.service-icon svg { width: 30px; height: 30px; }
.service-row-featured .service-icon {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.service-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.service-body p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-alt);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}
.pill-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  font-weight: 600;
  font-size: 11px;
}
.pill-dark {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.service-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.service-cta:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
}

/* ========== PERCHÉ ME ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .25s;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.why-num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 18px;
}
.why-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--navy-900);
}
.why-card .pills { margin-bottom: 14px; }
.why-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ========== TIMELINE ========== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: timeline;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold) 0%, var(--line) 100%);
}
.timeline-step {
  position: relative;
  padding-left: 96px;
  padding-bottom: 44px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy-900);
  box-shadow: 0 0 0 6px var(--cream);
}
.timeline-body h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--navy-900);
}
.timeline-body p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.timeline-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ========== PORTFOLIO ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
}
.portfolio-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cream-alt);
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .5s;
}
.portfolio-card:hover .portfolio-img img { transform: scale(1.03); }

.portfolio-meta { padding: 24px 28px 28px; }
.portfolio-meta .eyebrow { margin-bottom: 6px; margin-top: 0; }
.portfolio-meta h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--navy-900);
}
.portfolio-meta p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.portfolio-meta .pills { margin-bottom: 14px; }

/* Featured (colonna sinistra grande) */
.portfolio-featured { display: flex; flex-direction: column; }
.portfolio-featured .portfolio-img { aspect-ratio: 16/10; flex: 1; }
.portfolio-featured .portfolio-meta { padding: 28px 32px 32px; }
.portfolio-featured h3 { font-size: 28px; }
.portfolio-featured p { font-size: 15px; }

.portfolio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.case-study-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 999px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
}

/* Side column (2 card verticali impilate) */
.portfolio-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.portfolio-side .portfolio-card { flex: 1; display: flex; flex-direction: column; }
.portfolio-side .portfolio-img { flex: 1; }
.portfolio-side .portfolio-meta { padding: 22px 26px 26px; }
.portfolio-side h3 { font-size: 20px; }
.portfolio-side p { font-size: 14px; }

/* ========== CONTATTI ========== */
.contact-section {
  padding: 120px 0;
  background: var(--navy-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(201,169,97,0.12), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(27,53,90,0.4), transparent 50%);
  pointer-events: none;
}
.contact-section .container { position: relative; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-intro { color: var(--white); }
.contact-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin: 24px 0 40px;
}

.contact-methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-methods li {
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact-methods svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.contact-methods div { display: flex; flex-direction: column; }
.contact-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.contact-methods a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.contact-methods a:hover { color: var(--gold); }

/* Form card glass */
.contact-form-wrap {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,97,0.25);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}
.form-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-tab svg { width: 16px; height: 16px; }
.form-tab.active {
  background: var(--gold);
  color: var(--navy-900);
}
.form-tab:not(.active):hover { color: var(--white); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form[hidden] { display: none !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23C9A961' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-field select option { background: var(--navy-900); color: var(--white); }
.form-field textarea { resize: vertical; min-height: 100px; font-family: var(--font-sans); }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  cursor: pointer;
}
.form-check input {
  margin: 3px 0 0 0;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-check a { color: var(--gold); text-decoration: underline; }

.form-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

.form-intro {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 4px;
  line-height: 1.55;
}

.form-result {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.form-result.success {
  background: rgba(47,143,93,0.18);
  border: 1px solid rgba(47,143,93,0.5);
  color: #7AD9A5;
}
.form-result.error {
  background: rgba(183,58,58,0.18);
  border: 1px solid rgba(183,58,58,0.5);
  color: #F08787;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy-800);
  color: rgba(255,255,255,0.72);
  padding: 60px 0 28px;
  border-top: 1px solid rgba(201,169,97,0.18);
}
.site-footer .eyebrow { color: var(--gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-logo {
  width: 64px;
  height: 64px;
}
.footer-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--white);
  line-height: 1.2;
}
.footer-role {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.footer-legal-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-legal-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
  cursor: pointer;
}
.footer-legal-nav a:hover { color: var(--white); }

.footer-nav h4,
.footer-contact h4,
.footer-legal-nav h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-nav a,
.footer-contact a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--white); }
.footer-contact p { margin: 0 0 8px; font-size: 14px; }

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.footer-legal p { margin: 0 0 8px; }
.footer-legal strong { color: rgba(255,255,255,0.65); font-weight: 600; }
.footer-rights { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

/* ========== FLOATING ACTIONS (WhatsApp + Torna su) ========== */
.floating-wa,
.floating-top {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(8, 22, 42, 0.25);
  z-index: 9998;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, opacity .25s;
}
.floating-wa svg,
.floating-top svg { width: 22px; height: 22px; }

/* WhatsApp — sopra icona cookie (che è a bottom:20px left:20px) */
.floating-wa {
  bottom: 80px;
  left: 20px;
  background: #25D366;
  color: #fff;
}
.floating-wa:hover {
  background: #1FA851;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

/* Torna in cima — sopra reCAPTCHA badge (che è a bottom-right) */
.floating-top {
  bottom: 90px;
  right: 20px;
  background: #0B1E36;
  border: 1.5px solid #C9A961;
  color: #C9A961;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
}
.floating-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.floating-top:hover {
  background: #C9A961;
  color: #0B1E36;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(201, 169, 97, 0.35);
}

@media (max-width: 640px) {
  .floating-wa, .floating-top { width: 44px; height: 44px; }
  .floating-wa svg, .floating-top svg { width: 20px; height: 20px; }
  .floating-wa { bottom: 76px; left: 16px; }
  .floating-top { bottom: 82px; right: 16px; }
}

/* ========== LEGAL LIGHTBOX (Privacy / Cookie modal) ========== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.legal-modal[hidden] { display: none; }
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: legalFadeIn .25s ease;
}
.legal-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: legalSlideUp .3s cubic-bezier(.4,0,.2,1);
}
.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(11, 30, 54, 0.06);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--navy-900);
  transition: all .2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-modal-close:hover {
  background: var(--navy-900);
  color: var(--gold);
}
.legal-modal-content {
  overflow-y: auto;
  padding: 48px 44px 40px;
  flex: 1;
}
.legal-modal-content .legal-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-modal-content .legal-header h1 { font-size: clamp(28px, 4vw, 38px); margin: 6px 0 8px; }
.legal-modal-content h2 { margin: 32px 0 12px; font-size: 22px; }
.legal-modal-content h3 { margin: 22px 0 8px; font-size: 18px; }
.legal-modal-content p, .legal-modal-content ul, .legal-modal-content li { font-size: 14px; line-height: 1.7; }
.legal-modal-content .eyebrow { margin-bottom: 0; }
.legal-modal-loading {
  padding: 80px 32px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}

@keyframes legalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes legalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .legal-modal { padding: 12px 8px; }
  .legal-modal-dialog { max-height: 95vh; border-radius: 12px; }
  .legal-modal-content { padding: 36px 24px 28px; }
  .legal-modal-close { top: 10px; right: 12px; width: 36px; height: 36px; font-size: 22px; }
}

/* ========== LEGAL PAGES (Privacy / Cookie) ========== */
.legal-page { padding: 140px 0 80px; background: var(--cream); min-height: 80vh; }
.legal-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--navy-900);
  margin: 8px 0 10px;
  font-weight: 600;
}
.legal-meta { font-size: 13px; color: var(--ink-muted); margin: 0; }
.legal-content { max-width: 780px; font-size: 15px; line-height: 1.75; color: var(--ink); }
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--navy-900);
  margin: 40px 0 14px;
  font-weight: 600;
}
.legal-content h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--navy-900);
  margin: 28px 0 10px;
  font-weight: 600;
}
.legal-content p { margin: 0 0 14px; color: var(--ink-soft); }
.legal-content ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--gold-dark); font-weight: 500; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--navy-900); }
.legal-content code {
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 13px;
  background: var(--cream-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--navy-900);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.legal-table th {
  background: var(--cream-alt);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legal-table td { color: var(--ink-soft); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .photo-frame { max-width: 420px; margin: 0 auto; }
  .hero-title { font-size: clamp(36px, 7vw, 60px); }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-side { flex-direction: row; }
  .portfolio-side .portfolio-card { flex: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .quote-section { padding: 72px 0; }
  .hero { padding: 120px 0 60px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .section-header-split { grid-template-columns: 1fr; }
  .section-intro { text-align: left; }

  .service-row {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .service-cta { grid-column: 1 / -1; justify-self: start; }

  .why-grid { grid-template-columns: 1fr; }
  .portfolio-side { flex-direction: column; }

  .timeline::before { left: 22px; }
  .timeline-step { padding-left: 72px; }
  .timeline-marker { width: 44px; height: 44px; font-size: 16px; box-shadow: 0 0 0 4px var(--cream); }

  .contact-form-wrap { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding-bottom: 100px; }
  .modal-content { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .brand-text { display: none; }
}
