/* ============================================================
   Studio Legale Longoni — Stylesheet
   Aesthetic: Italian editorial minimalism
   Fonts: Cormorant Garant (serif display) + Jost (sans body)
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --navy-deep:   #09172B;
  --navy:        #0E2244;
  --navy-mid:    #163366;
  --navy-light:  #1E4A8F;
  --gold:        #A8884A;
  --gold-light:  #C4A96A;
  --white:       #FAFAF8;
  --off-white:   #F3F2EF;
  --gray-200:    #E8E7E3;
  --gray-400:    #B0AFA9;
  --gray-600:    #6E6D67;
  --text:        #1A1A18;

  /* Typography */
  --font-serif: 'Cormorant', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  /* Spacing */
  --section-gap: clamp(80px, 10vw, 140px);
  --container:   1200px;
  --gutter:      clamp(24px, 5vw, 60px);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* --- CONTAINER --- */
.container {
  width: min(var(--container), 100%);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              padding 0.4s var(--ease);
  padding-block: 28px;
}

.site-header.scrolled {
  background: rgba(9, 23, 43, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding-block: 18px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-monogram {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease);
}

.logo:hover .logo-monogram {
  border-color: var(--gold-light);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-studio {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.06em;
}

.logo-small .logo-monogram { width: 36px; height: 36px; font-size: 18px; }
.logo-small .logo-name { font-size: 16px; }

/* Nav links */
.nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color 0.25s var(--ease);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold-light);
  transition: width 0.3s var(--ease);
}

.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.3) !important;
  padding: 8px 20px !important;
  color: var(--white) !important;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  border-color: var(--gold-light) !important;
  background: rgba(168, 136, 74, 0.12) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), width 0.3s var(--ease);
}

.hamburger span:first-child { width: 24px; }
.hamburger span:last-child  { width: 16px; }

.hamburger.open span:first-child {
  width: 22px;
  transform: translateY(3.5px) rotate(45deg);
}

.hamburger.open span:last-child {
  width: 22px;
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}

.mobile-menu.open {
  max-height: 300px;
}

.mobile-menu ul {
  padding: 16px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  display: block;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s var(--ease);
}

.mobile-link:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 70% 60% at 75% 30%, rgba(30, 74, 143, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(22, 51, 102, 0.25) 0%, transparent 60%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

/* Subtle grid lines */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  padding-block: 80px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 44px;
}

/* Hero photo — full-bleed right panel */
.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  z-index: 0;
  pointer-events: none;
}

/* Thin gold vertical accent at the left edge of the photo panel */
.hero-photo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(168, 136, 74, 0.55) 25%,
    rgba(168, 136, 74, 0.55) 75%,
    transparent
  );
  z-index: 3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.68) contrast(1.1) saturate(0.55);
}

/* Left-to-right gradient blends photo into navy background */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      var(--navy-deep) 0%,
      rgba(9, 23, 43, 0.85) 12%,
      rgba(9, 23, 43, 0.3) 38%,
      transparent 58%
    ),
    linear-gradient(
      to top,
      var(--navy-deep) 0%,
      transparent 16%
    );
  z-index: 1;
}

/* Rotated editorial caption */
.hero-photo-caption {
  position: absolute;
  bottom: 52px;
  left: 16px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 2;
}

/* Override reveal: fade-only for the full-height photo */
.hero-photo.reveal {
  transform: none;
  transition: opacity 1.4s var(--ease-out);
  transition-delay: 0.5s;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.6s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-sans);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(0.6); transform-origin: top; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease);
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { color: var(--navy-deep); }
.btn-primary span { position: relative; z-index: 1; }

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 13px;
  padding: 16px 32px;
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}

.btn-submit:hover {
  color: var(--white);
}

.btn-submit::before {
  background: var(--navy-deep);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.hero-content .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.55s; }
.hero-photo.reveal { transition-delay: 0.65s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0;
}

.section-title em {
  font-style: italic;
  color: var(--gray-600);
}

/* ============================================================
   SERVIZI
   ============================================================ */
.section-servizi {
  padding-block: var(--section-gap);
  background: var(--white);
}

.section-header {
  margin-bottom: 72px;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-200);
}

.servizio-card {
  padding: 52px 44px 52px 0;
  border-right: 1px solid var(--gray-200);
  transition-delay: calc(var(--i, 0) * 0.12s);
}

.servizio-card:last-child { border-right: none; }
.servizio-card:not(:first-child) { padding-left: 44px; }

.servizio-card:nth-child(1) { --i: 0; }
.servizio-card:nth-child(2) { --i: 1; }
.servizio-card:nth-child(3) { --i: 2; }

.servizio-number {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 32px;
}

.servizio-body h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.25;
}

.servizio-body p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ============================================================
   APPROCCIO
   ============================================================ */
.section-approccio {
  padding-block: var(--section-gap);
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.section-approccio::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy-mid), transparent);
}

.approccio-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.approccio-lead .section-label { color: var(--gold-light); }

blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255,255,255,0.75);
  position: relative;
}

blockquote p::before {
  content: '\201C';
  font-size: 80px;
  line-height: 0;
  vertical-align: -0.38em;
  margin-right: 4px;
  color: var(--gold);
  font-family: var(--font-serif);
}

.approccio-testo p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 20px;
}

.approccio-testo p:last-of-type { margin-bottom: 0; }

.approccio-testo strong {
  font-weight: 500;
  color: rgba(255,255,255,0.78);
}

.approccio-firma {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.firma-nome {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.firma-titolo {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ============================================================
   CONTATTI
   ============================================================ */
.section-contatti {
  padding-block: var(--section-gap);
  background: var(--off-white);
}

.contatti-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.contatti-info .section-title { margin-bottom: 24px; color: var(--navy-deep); }
.contatti-info .section-title em { color: var(--gray-600); }

.contatti-intro {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contatti-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contatti-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--gray-600);
}

.contatti-icon {
  color: var(--gold);
  flex-shrink: 0;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contatti-list a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.contatti-list a:hover { border-bottom-color: var(--gold); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.form-group label span { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(22, 51, 102, 0.08);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236E6D67' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* Privacy checkbox */
.form-privacy { grid-template-columns: 1fr; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  flex-shrink: 0;
  margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--navy);
  border-color: var(--navy);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border-right: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(45deg);
}

.checkbox-label a {
  color: var(--navy);
  border-bottom: 1px solid rgba(14, 34, 68, 0.3);
  transition: border-color 0.2s var(--ease);
}
.checkbox-label a:hover { border-color: var(--navy); }

/* Submit button */
.btn-loader {
  width: 14px;
  height: 14px;
  border: 1.5px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  position: relative;
  z-index: 1;
}

.btn-submit.loading .btn-loader { display: block; }
.btn-submit.loading .btn-text { opacity: 0.7; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Messages */
.form-success, .form-error {
  display: none;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.form-success.show {
  display: block;
  background: rgba(22, 51, 102, 0.07);
  border-left: 3px solid var(--navy-mid);
  color: var(--navy);
}

.form-error.show {
  display: block;
  background: rgba(192, 57, 43, 0.07);
  border-left: 3px solid #c0392b;
  color: #a93226;
}

/* Validation alert — campi obbligatori mancanti */
.form-validate {
  display: none;
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #991B1B;
}

.form-validate.show {
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  padding-block: 64px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
}

.footer-bottom {
  text-align: center;
  padding-bottom: 4px;
}

.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.13);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.13);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-bottom a:hover {
  color: rgba(168, 136, 74, 0.55);
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  margin-top: 18px;
}

.footer-links nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover { color: var(--white); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-legal p {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.65;
}

.footer-legal a {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: inline-block;
  margin-top: 8px;
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-photo {
    width: 42%;
  }

  .hero-photo-overlay {
    background:
      linear-gradient(
        to right,
        var(--navy-deep) 0%,
        rgba(9, 23, 43, 0.9) 16%,
        rgba(9, 23, 43, 0.4) 45%,
        transparent 65%
      ),
      linear-gradient(to top, var(--navy-deep) 0%, transparent 16%);
  }

  .servizi-grid {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .servizio-card {
    padding: 36px 0;
    border-right: none;
    border-top: 1px solid var(--gray-200);
  }

  .servizio-card:not(:first-child) { padding-left: 0; }

  .approccio-inner,
  .contatti-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .hero-inner {
    padding-block: 60px 96px;
  }

  /* Mobile: photo becomes full-bleed cinematic backdrop */
  .hero-photo {
    display: block;
    width: 100%;
    left: 0;
    right: 0;
  }

  /* Hide the desktop gold vertical line — makes no sense full-width */
  .hero-photo::before {
    display: none;
  }

  /* Deeper desaturation + dark treatment for text readability */
  .hero-photo img {
    filter: brightness(0.32) contrast(1.12) saturate(0.38);
    object-position: center 18%; /* prioritise face in frame */
  }

  /* Repaint overlay: top vignette + heavy bottom-to-top fade */
  .hero-photo-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(9, 23, 43, 0.55) 0%,
        transparent 28%
      ),
      linear-gradient(
        to top,
        var(--navy-deep) 0%,
        rgba(9, 23, 43, 0.72) 22%,
        rgba(9, 23, 43, 0.12) 52%,
        transparent 70%
      );
  }

  .hero-photo-caption { display: none; }

  .hero-title { font-size: clamp(42px, 10vw, 64px); }
  .br-desktop { display: none; }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 40px; }
  .section-title { font-size: 32px; }
  blockquote p { font-size: 22px; }
}

/* ============================================================
   MOBILE CTA — floating call button
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 24px;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.mobile-cta a:hover {
  background: var(--gold-light);
}

.mobile-cta svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mobile-cta { display: block; }

  /* Prevent content from being hidden behind the fixed bar */
  .site-footer { padding-bottom: calc(40px + 68px + env(safe-area-inset-bottom)); }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll-indicator {
    animation: none;
    opacity: 0.4;
  }

  .scroll-line {
    animation: none;
  }
}

/* ============================================================
   HONEYPOT — hidden from humans, visible to bots
   ============================================================ */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ============================================================
   UTILITY
   ============================================================ */
::selection {
  background: var(--navy-mid);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
