/* ══════════════════════════════════════════════════════════════════
   Studio Notarile Cosenza — Foglio di stile principale
   Palette: Blu notte, oro antico, avorio, grigio pietra
   ══════════════════════════════════════════════════════════════════ */

/* ─── VARIABILI ──────────────────────────────────────────────────── */
:root {
  --navy:        #0d1b2a;
  --navy-mid:    #1a2e47;
  --navy-light:  #243c58;
  --gold:        #b89750;
  --gold-light:  #d4b96e;
  --gold-pale:   #f0e4c3;
  --ivory:       #faf8f4;
  --ivory-warm:  #f4f0e8;
  --stone:       #e8e2d8;
  --stone-mid:   #c8bfb0;
  --text-dark:   #1a1a1a;
  --text-mid:    #4a4a4a;
  --text-light:  #7a7a7a;
  --white:       #ffffff;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --radius:      4px;
  --radius-lg:   8px;
  --shadow-sm:   0 2px 12px rgba(13,27,42,.08);
  --shadow-md:   0 6px 30px rgba(13,27,42,.14);
  --shadow-lg:   0 16px 60px rgba(13,27,42,.20);
  --transition:  0.3s ease;
  --nav-h:       76px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ─── SCROLLBAR ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ─── SELECTION ──────────────────────────────────────────────────── */
::selection { background: var(--gold-pale); color: var(--navy); }


/* ══════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13, 27, 42, 0.0);
  backdrop-filter: blur(0px);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-title {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.logo-surname {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .03em;
  white-space: nowrap;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-linkedin {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--gold);
  color: var(--navy) !important;
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-linkedin::after { display: none; }
.nav-linkedin:hover { background: var(--gold-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/bagn1.jpg') center center / cover no-repeat;
  overflow: hidden;
}

/* Dark overlay sopra la foto hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 27, 42, 0.72) 0%,
    rgba(13, 27, 42, 0.60) 50%,
    rgba(13, 27, 42, 0.80) 100%
  );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 70%, rgba(184,151,80,.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: .06em;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1.8rem auto;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.78);
  margin-bottom: 2.8rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 1rem 2.4rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(184,151,80,.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,151,80,.45);
}

/* Scroll arrow */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
.hero-scroll:hover { color: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ══════════════════════════════════════════════════════════════════
   SEZIONI GENERALI
   ══════════════════════════════════════════════════════════════════ */
.section {
  padding: 7rem 0;
}
.section-light  { background: var(--ivory); }
.section-dark   { background: var(--navy); }
.section-accent { background: var(--navy-mid); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header sezione */
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.section-tag.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
}
.section-title.light { color: var(--white); }

.title-rule {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  margin: 1.2rem auto 0;
  border-radius: 1px;
}
.title-rule.light {
  background: linear-gradient(to right, var(--gold-light), var(--gold));
}


/* ══════════════════════════════════════════════════════════════════
   CHI SIAMO / BIO
   ══════════════════════════════════════════════════════════════════ */
.bio-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: start;
}

.bio-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.avatar-photo {
  width: 240px;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 40px rgba(13,27,42,.22);
  position: relative;
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .5s ease;
}
.avatar-photo:hover img {
  transform: scale(1.03);
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #0a66c2;
  color: var(--white);
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-linkedin:hover {
  background: #0b5fad;
  transform: translateY(-2px);
}

.bio-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .2rem;
}
.bio-role {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.bio-description {
  font-size: .95rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.85;
}

.bio-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--ivory-warm);
  border: 1px solid var(--stone);
  padding: .5rem 1rem;
  border-radius: var(--radius);
}
.highlight-item i { color: var(--gold); font-size: .85rem; }


/* ══════════════════════════════════════════════════════════════════
   SERVIZI
   ══════════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid var(--gold);
  padding: 2.4rem 2rem;
  border-radius: var(--radius-lg);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,.07);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(184,151,80,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.service-icon i { font-size: 1.25rem; color: var(--gold-light); }

.service-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .8rem;
}
.service-text {
  font-size: .88rem;
  color: rgba(255,255,255,.62);
  line-height: 1.8;
}


/* ══════════════════════════════════════════════════════════════════
   SEDI
   ══════════════════════════════════════════════════════════════════ */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.office-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  border-bottom: 3px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}
.office-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.office-header {
  background: var(--navy);
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.office-icon {
  width: 44px; height: 44px;
  background: rgba(184,151,80,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.office-icon i { color: var(--gold); font-size: 1.1rem; }
.office-city {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
}
.office-province {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: .15rem;
}

.office-body {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.office-info {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  font-size: .88rem;
  color: var(--text-mid);
}
.office-info i {
  color: var(--gold);
  width: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}
.office-info a { color: var(--navy); font-weight: 500; }
.office-info a:hover { color: var(--gold); }
.office-info p { margin: 0; line-height: 1.5; }

.office-map { 
  border-top: 1px solid var(--stone); 
  overflow: hidden;
}
.office-map iframe { display: block; }

.office-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.btn-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem .8rem;
  transition: background var(--transition);
}
.btn-directions:hover { background: var(--navy-light); color: var(--gold-light); }
.btn-directions i { color: var(--gold); }

.btn-directions--gallery {
  background: var(--navy-mid);
  border-left: 1px solid rgba(255,255,255,.1);
}
.btn-directions--gallery:hover { background: var(--navy-light); }


/* ══════════════════════════════════════════════════════════════════
   COME RAGGIUNGERCI
   ══════════════════════════════════════════════════════════════════ */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.direction-item {
  text-align: center;
  padding: 2.4rem 1.8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  transition: background var(--transition);
}
.direction-item:hover { background: rgba(255,255,255,.07); }

.direction-icon {
  width: 64px; height: 64px;
  background: rgba(184,151,80,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
}
.direction-icon i { font-size: 1.5rem; color: var(--gold-light); }

.direction-item h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .7rem;
}
.direction-item p {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
}
.direction-item strong { color: var(--gold-light); font-weight: 600; }


/* ══════════════════════════════════════════════════════════════════
   CONTATTI
   ══════════════════════════════════════════════════════════════════ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--stone);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon i { font-size: .85rem; color: var(--gold); }
.contact-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .2rem;
}
.contact-value {
  display: block;
  font-size: .97rem;
  font-weight: 500;
  color: var(--navy);
}
.contact-value:hover { color: var(--gold); }
.contact-value-sub {
  font-size: .82rem;
  color: var(--text-light);
}

.btn-linkedin-large {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #0a66c2;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .85rem 1.8rem;
  border-radius: var(--radius);
  margin-top: 1.8rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-linkedin-large:hover {
  background: #0b5fad;
  transform: translateY(-2px);
}

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group {
  margin-bottom: 1.4rem;
}
.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--ivory-warm);
  border: 1.5px solid var(--stone);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,151,80,.12);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--stone-mid); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Custom select arrow */
.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 d='M1 1l5 5 5-5' stroke='%23b89750' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-privacy {
  margin-bottom: 1.6rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  cursor: pointer;
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-label a { color: var(--gold); font-weight: 500; }
.checkbox-label a:hover { text-decoration: underline; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  border-radius: var(--radius);
  width: 100%;
  justify-content: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(13,27,42,.2);
}
.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,27,42,.28);
}

.form-note {
  margin-top: 1rem;
  font-size: .74rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

.form-success {
  margin-top: 1.2rem;
  padding: 1rem 1.4rem;
  background: #edf7f0;
  border: 1px solid #b2d8bc;
  border-radius: var(--radius);
  color: #2d6a4f;
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.form-success.hidden { display: none; }


/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer { background: var(--navy); color: rgba(255,255,255,.65); }

.footer-top { padding: 5rem 0 3.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo-title {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1;
}
.footer-logo-surname {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .95rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: #0a66c2;
  color: var(--white);
  border-radius: 50%;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition);
}
.footer-social:hover { background: #0b5fad; transform: scale(1.1); }

.footer-heading {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col a:hover { color: var(--gold-light); padding-left: 6px; }

.footer-contacts { display: flex; flex-direction: column; gap: .8rem; }
.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.4;
}
.footer-contacts i { color: var(--gold); margin-top: 2px; font-size: .8rem; width: 14px; flex-shrink: 0; }
.footer-contacts a { color: rgba(255,255,255,.6); }
.footer-contacts a:hover { color: var(--gold-light); }

.footer-bottom { padding: 1.6rem 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.38); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold-light); }


/* ══════════════════════════════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgba(184,151,80,.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--gold-light); }


/* ══════════════════════════════════════════════════════════════════
   ANIMAZIONI DI ENTRATA
   ══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }


/* ──────────────────────────────────────────────────────────────
   ACTIVE NAV LINK
────────────────────────────────────────────────────────────── */
.nav-link.active { color: var(--white) !important; }
.nav-link.active::after { width: 100% !important; }

/* ══════════════════════════════════════════════════════════════════
   CONTATTI — CARD LAYOUT (senza form)
   ══════════════════════════════════════════════════════════════════ */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.contact-card-header {
  background: var(--navy);
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.contact-card-icon {
  width: 40px; height: 40px;
  background: rgba(184,151,80,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon i { color: var(--gold); font-size: 1rem; }

.contact-card-city {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
}
.contact-card-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: .15rem;
}

.contact-card-body {
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .6rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .75rem 1.2rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.contact-map-btn:hover { background: var(--navy-light); color: var(--gold-light); }
.contact-map-btn i { color: var(--gold); }

.contact-value-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #0a66c2 !important;
  font-weight: 600;
  transition: color var(--transition);
}
.contact-value-link:hover { color: #0b5fad !important; text-decoration: underline; }
.contact-value-link i { font-size: .85rem; }

@media (max-width: 1024px) {
  .contact-cards-grid { grid-template-columns: 1fr 1fr; }
  .contact-card-email { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
  .contact-card-email { grid-column: auto; }
}

/* ──────────────────────────────────────────────────────────────
   FORM VALIDATION STATES
────────────────────────────────────────────────────────────── */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-6px); }
  35%       { transform: translateX(6px); }
  55%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
  90%       { transform: translateX(-2px); }
}
.shake { animation: shake .5s ease; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 5rem 0; }

  /* Nav mobile */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(13,27,42,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem 1.5rem 2.5rem;
    gap: 1.2rem;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    border-bottom: 1px solid rgba(184,151,80,.25);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { font-size: .85rem; }
  .nav-linkedin { align-self: flex-start; }

  /* Hero */
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }

  /* Bio */
  .bio-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .bio-highlights { justify-content: center; }
  .bio-avatar { margin: 0 auto; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Directions */
  .directions-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 2rem 1.4rem; }

  /* Back to top */
  .back-to-top { bottom: 1.2rem; right: 1.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero-content { padding: 1.2rem; }
  .section-header { margin-bottom: 3rem; }
}
